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

com.basho.riak.protobuf.RiakKvPB Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: riak_kv.proto

package com.basho.riak.protobuf;

public final class RiakKvPB {
  private RiakKvPB() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface RpbGetClientIdRespOrBuilder extends
      // @@protoc_insertion_point(interface_extends:RpbGetClientIdResp)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required bytes client_id = 1;
     *
     * 
     * Client id in use for this connection
     * 
*/ boolean hasClientId(); /** * required bytes client_id = 1; * *
     * Client id in use for this connection
     * 
*/ com.google.protobuf.ByteString getClientId(); } /** * Protobuf type {@code RpbGetClientIdResp} * *
   * Get ClientId Request - no message defined, just send RpbGetClientIdReq message code
   * 
*/ public static final class RpbGetClientIdResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbGetClientIdResp) RpbGetClientIdRespOrBuilder { // Use RpbGetClientIdResp.newBuilder() to construct. private RpbGetClientIdResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbGetClientIdResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbGetClientIdResp defaultInstance; public static RpbGetClientIdResp getDefaultInstance() { return defaultInstance; } public RpbGetClientIdResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbGetClientIdResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; clientId_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetClientIdResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetClientIdResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp.class, com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbGetClientIdResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbGetClientIdResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CLIENT_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString clientId_; /** * required bytes client_id = 1; * *
     * Client id in use for this connection
     * 
*/ public boolean hasClientId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes client_id = 1; * *
     * Client id in use for this connection
     * 
*/ public com.google.protobuf.ByteString getClientId() { return clientId_; } private void initFields() { clientId_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasClientId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, clientId_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, clientId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbGetClientIdResp} * *
     * Get ClientId Request - no message defined, just send RpbGetClientIdReq message code
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbGetClientIdResp) com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetClientIdResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetClientIdResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp.class, com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); clientId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetClientIdResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp build() { com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp result = new com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.clientId_ = clientId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp.getDefaultInstance()) return this; if (other.hasClientId()) { setClientId(other.getClientId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasClientId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbGetClientIdResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes client_id = 1; * *
       * Client id in use for this connection
       * 
*/ public boolean hasClientId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes client_id = 1; * *
       * Client id in use for this connection
       * 
*/ public com.google.protobuf.ByteString getClientId() { return clientId_; } /** * required bytes client_id = 1; * *
       * Client id in use for this connection
       * 
*/ public Builder setClientId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; clientId_ = value; onChanged(); return this; } /** * required bytes client_id = 1; * *
       * Client id in use for this connection
       * 
*/ public Builder clearClientId() { bitField0_ = (bitField0_ & ~0x00000001); clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbGetClientIdResp) } static { defaultInstance = new RpbGetClientIdResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbGetClientIdResp) } public interface RpbSetClientIdReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbSetClientIdReq) com.google.protobuf.MessageOrBuilder { /** * required bytes client_id = 1; * *
     * Client id to use for this connection
     * 
*/ boolean hasClientId(); /** * required bytes client_id = 1; * *
     * Client id to use for this connection
     * 
*/ com.google.protobuf.ByteString getClientId(); } /** * Protobuf type {@code RpbSetClientIdReq} */ public static final class RpbSetClientIdReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbSetClientIdReq) RpbSetClientIdReqOrBuilder { // Use RpbSetClientIdReq.newBuilder() to construct. private RpbSetClientIdReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbSetClientIdReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbSetClientIdReq defaultInstance; public static RpbSetClientIdReq getDefaultInstance() { return defaultInstance; } public RpbSetClientIdReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbSetClientIdReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; clientId_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbSetClientIdReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbSetClientIdReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq.class, com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbSetClientIdReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbSetClientIdReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CLIENT_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString clientId_; /** * required bytes client_id = 1; * *
     * Client id to use for this connection
     * 
*/ public boolean hasClientId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes client_id = 1; * *
     * Client id to use for this connection
     * 
*/ public com.google.protobuf.ByteString getClientId() { return clientId_; } private void initFields() { clientId_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasClientId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, clientId_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, clientId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbSetClientIdReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbSetClientIdReq) com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbSetClientIdReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbSetClientIdReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq.class, com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); clientId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbSetClientIdReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq build() { com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq result = new com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.clientId_ = clientId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq.getDefaultInstance()) return this; if (other.hasClientId()) { setClientId(other.getClientId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasClientId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbSetClientIdReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes client_id = 1; * *
       * Client id to use for this connection
       * 
*/ public boolean hasClientId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes client_id = 1; * *
       * Client id to use for this connection
       * 
*/ public com.google.protobuf.ByteString getClientId() { return clientId_; } /** * required bytes client_id = 1; * *
       * Client id to use for this connection
       * 
*/ public Builder setClientId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; clientId_ = value; onChanged(); return this; } /** * required bytes client_id = 1; * *
       * Client id to use for this connection
       * 
*/ public Builder clearClientId() { bitField0_ = (bitField0_ & ~0x00000001); clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbSetClientIdReq) } static { defaultInstance = new RpbSetClientIdReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbSetClientIdReq) } public interface RpbGetReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbGetReq) com.google.protobuf.MessageOrBuilder { /** * required bytes bucket = 1; */ boolean hasBucket(); /** * required bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * required bytes key = 2; */ boolean hasKey(); /** * required bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * optional uint32 r = 3; */ boolean hasR(); /** * optional uint32 r = 3; */ int getR(); /** * optional uint32 pr = 4; */ boolean hasPr(); /** * optional uint32 pr = 4; */ int getPr(); /** * optional bool basic_quorum = 5; */ boolean hasBasicQuorum(); /** * optional bool basic_quorum = 5; */ boolean getBasicQuorum(); /** * optional bool notfound_ok = 6; */ boolean hasNotfoundOk(); /** * optional bool notfound_ok = 6; */ boolean getNotfoundOk(); /** * optional bytes if_modified = 7; * *
     * fail if the supplied vclock does not match
     * 
*/ boolean hasIfModified(); /** * optional bytes if_modified = 7; * *
     * fail if the supplied vclock does not match
     * 
*/ com.google.protobuf.ByteString getIfModified(); /** * optional bool head = 8; * *
     * return everything but the value
     * 
*/ boolean hasHead(); /** * optional bool head = 8; * *
     * return everything but the value
     * 
*/ boolean getHead(); /** * optional bool deletedvclock = 9; * *
     * return the tombstone's vclock, if applicable
     * 
*/ boolean hasDeletedvclock(); /** * optional bool deletedvclock = 9; * *
     * return the tombstone's vclock, if applicable
     * 
*/ boolean getDeletedvclock(); /** * optional uint32 timeout = 10; */ boolean hasTimeout(); /** * optional uint32 timeout = 10; */ int getTimeout(); /** * optional bool sloppy_quorum = 11; * *
     * Experimental, may change/disappear
     * 
*/ boolean hasSloppyQuorum(); /** * optional bool sloppy_quorum = 11; * *
     * Experimental, may change/disappear
     * 
*/ boolean getSloppyQuorum(); /** * optional uint32 n_val = 12; * *
     * Experimental, may change/disappear
     * 
*/ boolean hasNVal(); /** * optional uint32 n_val = 12; * *
     * Experimental, may change/disappear
     * 
*/ int getNVal(); /** * optional bytes type = 13; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ boolean hasType(); /** * optional bytes type = 13; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ com.google.protobuf.ByteString getType(); } /** * Protobuf type {@code RpbGetReq} * *
   * Get Request - retrieve bucket/key
   * 
*/ public static final class RpbGetReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbGetReq) RpbGetReqOrBuilder { // Use RpbGetReq.newBuilder() to construct. private RpbGetReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbGetReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbGetReq defaultInstance; public static RpbGetReq getDefaultInstance() { return defaultInstance; } public RpbGetReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbGetReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; r_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000008; pr_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; basicQuorum_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000020; notfoundOk_ = input.readBool(); break; } case 58: { bitField0_ |= 0x00000040; ifModified_ = input.readBytes(); break; } case 64: { bitField0_ |= 0x00000080; head_ = input.readBool(); break; } case 72: { bitField0_ |= 0x00000100; deletedvclock_ = input.readBool(); break; } case 80: { bitField0_ |= 0x00000200; timeout_ = input.readUInt32(); break; } case 88: { bitField0_ |= 0x00000400; sloppyQuorum_ = input.readBool(); break; } case 96: { bitField0_ |= 0x00000800; nVal_ = input.readUInt32(); break; } case 106: { bitField0_ |= 0x00001000; type_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetReq.class, com.basho.riak.protobuf.RiakKvPB.RpbGetReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbGetReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbGetReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int R_FIELD_NUMBER = 3; private int r_; /** * optional uint32 r = 3; */ public boolean hasR() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 r = 3; */ public int getR() { return r_; } public static final int PR_FIELD_NUMBER = 4; private int pr_; /** * optional uint32 pr = 4; */ public boolean hasPr() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 pr = 4; */ public int getPr() { return pr_; } public static final int BASIC_QUORUM_FIELD_NUMBER = 5; private boolean basicQuorum_; /** * optional bool basic_quorum = 5; */ public boolean hasBasicQuorum() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bool basic_quorum = 5; */ public boolean getBasicQuorum() { return basicQuorum_; } public static final int NOTFOUND_OK_FIELD_NUMBER = 6; private boolean notfoundOk_; /** * optional bool notfound_ok = 6; */ public boolean hasNotfoundOk() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool notfound_ok = 6; */ public boolean getNotfoundOk() { return notfoundOk_; } public static final int IF_MODIFIED_FIELD_NUMBER = 7; private com.google.protobuf.ByteString ifModified_; /** * optional bytes if_modified = 7; * *
     * fail if the supplied vclock does not match
     * 
*/ public boolean hasIfModified() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bytes if_modified = 7; * *
     * fail if the supplied vclock does not match
     * 
*/ public com.google.protobuf.ByteString getIfModified() { return ifModified_; } public static final int HEAD_FIELD_NUMBER = 8; private boolean head_; /** * optional bool head = 8; * *
     * return everything but the value
     * 
*/ public boolean hasHead() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool head = 8; * *
     * return everything but the value
     * 
*/ public boolean getHead() { return head_; } public static final int DELETEDVCLOCK_FIELD_NUMBER = 9; private boolean deletedvclock_; /** * optional bool deletedvclock = 9; * *
     * return the tombstone's vclock, if applicable
     * 
*/ public boolean hasDeletedvclock() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool deletedvclock = 9; * *
     * return the tombstone's vclock, if applicable
     * 
*/ public boolean getDeletedvclock() { return deletedvclock_; } public static final int TIMEOUT_FIELD_NUMBER = 10; private int timeout_; /** * optional uint32 timeout = 10; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint32 timeout = 10; */ public int getTimeout() { return timeout_; } public static final int SLOPPY_QUORUM_FIELD_NUMBER = 11; private boolean sloppyQuorum_; /** * optional bool sloppy_quorum = 11; * *
     * Experimental, may change/disappear
     * 
*/ public boolean hasSloppyQuorum() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bool sloppy_quorum = 11; * *
     * Experimental, may change/disappear
     * 
*/ public boolean getSloppyQuorum() { return sloppyQuorum_; } public static final int N_VAL_FIELD_NUMBER = 12; private int nVal_; /** * optional uint32 n_val = 12; * *
     * Experimental, may change/disappear
     * 
*/ public boolean hasNVal() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional uint32 n_val = 12; * *
     * Experimental, may change/disappear
     * 
*/ public int getNVal() { return nVal_; } public static final int TYPE_FIELD_NUMBER = 13; private com.google.protobuf.ByteString type_; /** * optional bytes type = 13; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bytes type = 13; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public com.google.protobuf.ByteString getType() { return type_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; key_ = com.google.protobuf.ByteString.EMPTY; r_ = 0; pr_ = 0; basicQuorum_ = false; notfoundOk_ = false; ifModified_ = com.google.protobuf.ByteString.EMPTY; head_ = false; deletedvclock_ = false; timeout_ = 0; sloppyQuorum_ = false; nVal_ = 0; type_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } if (!hasKey()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, r_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, pr_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, basicQuorum_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, notfoundOk_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, ifModified_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(8, head_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(9, deletedvclock_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeUInt32(10, timeout_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(11, sloppyQuorum_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeUInt32(12, nVal_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBytes(13, type_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, r_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, pr_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, basicQuorum_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, notfoundOk_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, ifModified_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, head_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, deletedvclock_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, timeout_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, sloppyQuorum_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, nVal_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, type_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbGetReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbGetReq} * *
     * Get Request - retrieve bucket/key
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbGetReq) com.basho.riak.protobuf.RiakKvPB.RpbGetReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetReq.class, com.basho.riak.protobuf.RiakKvPB.RpbGetReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbGetReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); r_ = 0; bitField0_ = (bitField0_ & ~0x00000004); pr_ = 0; bitField0_ = (bitField0_ & ~0x00000008); basicQuorum_ = false; bitField0_ = (bitField0_ & ~0x00000010); notfoundOk_ = false; bitField0_ = (bitField0_ & ~0x00000020); ifModified_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); head_ = false; bitField0_ = (bitField0_ & ~0x00000080); deletedvclock_ = false; bitField0_ = (bitField0_ & ~0x00000100); timeout_ = 0; bitField0_ = (bitField0_ & ~0x00000200); sloppyQuorum_ = false; bitField0_ = (bitField0_ & ~0x00000400); nVal_ = 0; bitField0_ = (bitField0_ & ~0x00000800); type_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbGetReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbGetReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbGetReq build() { com.basho.riak.protobuf.RiakKvPB.RpbGetReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbGetReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbGetReq result = new com.basho.riak.protobuf.RiakKvPB.RpbGetReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.r_ = r_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.pr_ = pr_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.basicQuorum_ = basicQuorum_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.notfoundOk_ = notfoundOk_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.ifModified_ = ifModified_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.head_ = head_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.deletedvclock_ = deletedvclock_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.timeout_ = timeout_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.sloppyQuorum_ = sloppyQuorum_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.nVal_ = nVal_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbGetReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbGetReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbGetReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbGetReq.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasR()) { setR(other.getR()); } if (other.hasPr()) { setPr(other.getPr()); } if (other.hasBasicQuorum()) { setBasicQuorum(other.getBasicQuorum()); } if (other.hasNotfoundOk()) { setNotfoundOk(other.getNotfoundOk()); } if (other.hasIfModified()) { setIfModified(other.getIfModified()); } if (other.hasHead()) { setHead(other.getHead()); } if (other.hasDeletedvclock()) { setDeletedvclock(other.getDeletedvclock()); } if (other.hasTimeout()) { setTimeout(other.getTimeout()); } if (other.hasSloppyQuorum()) { setSloppyQuorum(other.getSloppyQuorum()); } if (other.hasNVal()) { setNVal(other.getNVal()); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } if (!hasKey()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbGetReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbGetReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * required bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * required bytes key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } private int r_ ; /** * optional uint32 r = 3; */ public boolean hasR() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 r = 3; */ public int getR() { return r_; } /** * optional uint32 r = 3; */ public Builder setR(int value) { bitField0_ |= 0x00000004; r_ = value; onChanged(); return this; } /** * optional uint32 r = 3; */ public Builder clearR() { bitField0_ = (bitField0_ & ~0x00000004); r_ = 0; onChanged(); return this; } private int pr_ ; /** * optional uint32 pr = 4; */ public boolean hasPr() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 pr = 4; */ public int getPr() { return pr_; } /** * optional uint32 pr = 4; */ public Builder setPr(int value) { bitField0_ |= 0x00000008; pr_ = value; onChanged(); return this; } /** * optional uint32 pr = 4; */ public Builder clearPr() { bitField0_ = (bitField0_ & ~0x00000008); pr_ = 0; onChanged(); return this; } private boolean basicQuorum_ ; /** * optional bool basic_quorum = 5; */ public boolean hasBasicQuorum() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bool basic_quorum = 5; */ public boolean getBasicQuorum() { return basicQuorum_; } /** * optional bool basic_quorum = 5; */ public Builder setBasicQuorum(boolean value) { bitField0_ |= 0x00000010; basicQuorum_ = value; onChanged(); return this; } /** * optional bool basic_quorum = 5; */ public Builder clearBasicQuorum() { bitField0_ = (bitField0_ & ~0x00000010); basicQuorum_ = false; onChanged(); return this; } private boolean notfoundOk_ ; /** * optional bool notfound_ok = 6; */ public boolean hasNotfoundOk() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool notfound_ok = 6; */ public boolean getNotfoundOk() { return notfoundOk_; } /** * optional bool notfound_ok = 6; */ public Builder setNotfoundOk(boolean value) { bitField0_ |= 0x00000020; notfoundOk_ = value; onChanged(); return this; } /** * optional bool notfound_ok = 6; */ public Builder clearNotfoundOk() { bitField0_ = (bitField0_ & ~0x00000020); notfoundOk_ = false; onChanged(); return this; } private com.google.protobuf.ByteString ifModified_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes if_modified = 7; * *
       * fail if the supplied vclock does not match
       * 
*/ public boolean hasIfModified() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bytes if_modified = 7; * *
       * fail if the supplied vclock does not match
       * 
*/ public com.google.protobuf.ByteString getIfModified() { return ifModified_; } /** * optional bytes if_modified = 7; * *
       * fail if the supplied vclock does not match
       * 
*/ public Builder setIfModified(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; ifModified_ = value; onChanged(); return this; } /** * optional bytes if_modified = 7; * *
       * fail if the supplied vclock does not match
       * 
*/ public Builder clearIfModified() { bitField0_ = (bitField0_ & ~0x00000040); ifModified_ = getDefaultInstance().getIfModified(); onChanged(); return this; } private boolean head_ ; /** * optional bool head = 8; * *
       * return everything but the value
       * 
*/ public boolean hasHead() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool head = 8; * *
       * return everything but the value
       * 
*/ public boolean getHead() { return head_; } /** * optional bool head = 8; * *
       * return everything but the value
       * 
*/ public Builder setHead(boolean value) { bitField0_ |= 0x00000080; head_ = value; onChanged(); return this; } /** * optional bool head = 8; * *
       * return everything but the value
       * 
*/ public Builder clearHead() { bitField0_ = (bitField0_ & ~0x00000080); head_ = false; onChanged(); return this; } private boolean deletedvclock_ ; /** * optional bool deletedvclock = 9; * *
       * return the tombstone's vclock, if applicable
       * 
*/ public boolean hasDeletedvclock() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool deletedvclock = 9; * *
       * return the tombstone's vclock, if applicable
       * 
*/ public boolean getDeletedvclock() { return deletedvclock_; } /** * optional bool deletedvclock = 9; * *
       * return the tombstone's vclock, if applicable
       * 
*/ public Builder setDeletedvclock(boolean value) { bitField0_ |= 0x00000100; deletedvclock_ = value; onChanged(); return this; } /** * optional bool deletedvclock = 9; * *
       * return the tombstone's vclock, if applicable
       * 
*/ public Builder clearDeletedvclock() { bitField0_ = (bitField0_ & ~0x00000100); deletedvclock_ = false; onChanged(); return this; } private int timeout_ ; /** * optional uint32 timeout = 10; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint32 timeout = 10; */ public int getTimeout() { return timeout_; } /** * optional uint32 timeout = 10; */ public Builder setTimeout(int value) { bitField0_ |= 0x00000200; timeout_ = value; onChanged(); return this; } /** * optional uint32 timeout = 10; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000200); timeout_ = 0; onChanged(); return this; } private boolean sloppyQuorum_ ; /** * optional bool sloppy_quorum = 11; * *
       * Experimental, may change/disappear
       * 
*/ public boolean hasSloppyQuorum() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bool sloppy_quorum = 11; * *
       * Experimental, may change/disappear
       * 
*/ public boolean getSloppyQuorum() { return sloppyQuorum_; } /** * optional bool sloppy_quorum = 11; * *
       * Experimental, may change/disappear
       * 
*/ public Builder setSloppyQuorum(boolean value) { bitField0_ |= 0x00000400; sloppyQuorum_ = value; onChanged(); return this; } /** * optional bool sloppy_quorum = 11; * *
       * Experimental, may change/disappear
       * 
*/ public Builder clearSloppyQuorum() { bitField0_ = (bitField0_ & ~0x00000400); sloppyQuorum_ = false; onChanged(); return this; } private int nVal_ ; /** * optional uint32 n_val = 12; * *
       * Experimental, may change/disappear
       * 
*/ public boolean hasNVal() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional uint32 n_val = 12; * *
       * Experimental, may change/disappear
       * 
*/ public int getNVal() { return nVal_; } /** * optional uint32 n_val = 12; * *
       * Experimental, may change/disappear
       * 
*/ public Builder setNVal(int value) { bitField0_ |= 0x00000800; nVal_ = value; onChanged(); return this; } /** * optional uint32 n_val = 12; * *
       * Experimental, may change/disappear
       * 
*/ public Builder clearNVal() { bitField0_ = (bitField0_ & ~0x00000800); nVal_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString type_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes type = 13; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bytes type = 13; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public com.google.protobuf.ByteString getType() { return type_; } /** * optional bytes type = 13; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder setType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; type_ = value; onChanged(); return this; } /** * optional bytes type = 13; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00001000); type_ = getDefaultInstance().getType(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbGetReq) } static { defaultInstance = new RpbGetReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbGetReq) } public interface RpbGetRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbGetResp) com.google.protobuf.MessageOrBuilder { /** * repeated .RpbContent content = 1; */ java.util.List getContentList(); /** * repeated .RpbContent content = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbContent getContent(int index); /** * repeated .RpbContent content = 1; */ int getContentCount(); /** * repeated .RpbContent content = 1; */ java.util.List getContentOrBuilderList(); /** * repeated .RpbContent content = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder getContentOrBuilder( int index); /** * optional bytes vclock = 2; * *
     * the opaque vector clock for the object
     * 
*/ boolean hasVclock(); /** * optional bytes vclock = 2; * *
     * the opaque vector clock for the object
     * 
*/ com.google.protobuf.ByteString getVclock(); /** * optional bool unchanged = 3; */ boolean hasUnchanged(); /** * optional bool unchanged = 3; */ boolean getUnchanged(); } /** * Protobuf type {@code RpbGetResp} * *
   * Get Response - if the record was not found there will be no content/vclock
   * 
*/ public static final class RpbGetResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbGetResp) RpbGetRespOrBuilder { // Use RpbGetResp.newBuilder() to construct. private RpbGetResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbGetResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbGetResp defaultInstance; public static RpbGetResp getDefaultInstance() { return defaultInstance; } public RpbGetResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbGetResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { content_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } content_.add(input.readMessage(com.basho.riak.protobuf.RiakKvPB.RpbContent.PARSER, extensionRegistry)); break; } case 18: { bitField0_ |= 0x00000001; vclock_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000002; unchanged_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { content_ = java.util.Collections.unmodifiableList(content_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetResp.class, com.basho.riak.protobuf.RiakKvPB.RpbGetResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbGetResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbGetResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CONTENT_FIELD_NUMBER = 1; private java.util.List content_; /** * repeated .RpbContent content = 1; */ public java.util.List getContentList() { return content_; } /** * repeated .RpbContent content = 1; */ public java.util.List getContentOrBuilderList() { return content_; } /** * repeated .RpbContent content = 1; */ public int getContentCount() { return content_.size(); } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent getContent(int index) { return content_.get(index); } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder getContentOrBuilder( int index) { return content_.get(index); } public static final int VCLOCK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString vclock_; /** * optional bytes vclock = 2; * *
     * the opaque vector clock for the object
     * 
*/ public boolean hasVclock() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes vclock = 2; * *
     * the opaque vector clock for the object
     * 
*/ public com.google.protobuf.ByteString getVclock() { return vclock_; } public static final int UNCHANGED_FIELD_NUMBER = 3; private boolean unchanged_; /** * optional bool unchanged = 3; */ public boolean hasUnchanged() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool unchanged = 3; */ public boolean getUnchanged() { return unchanged_; } private void initFields() { content_ = java.util.Collections.emptyList(); vclock_ = com.google.protobuf.ByteString.EMPTY; unchanged_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getContentCount(); i++) { if (!getContent(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < content_.size(); i++) { output.writeMessage(1, content_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, vclock_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, unchanged_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < content_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, content_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, vclock_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, unchanged_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbGetResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbGetResp} * *
     * Get Response - if the record was not found there will be no content/vclock
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbGetResp) com.basho.riak.protobuf.RiakKvPB.RpbGetRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetResp.class, com.basho.riak.protobuf.RiakKvPB.RpbGetResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbGetResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (contentBuilder_ == null) { content_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { contentBuilder_.clear(); } vclock_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); unchanged_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbGetResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbGetResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbGetResp build() { com.basho.riak.protobuf.RiakKvPB.RpbGetResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbGetResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbGetResp result = new com.basho.riak.protobuf.RiakKvPB.RpbGetResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contentBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { content_ = java.util.Collections.unmodifiableList(content_); bitField0_ = (bitField0_ & ~0x00000001); } result.content_ = content_; } else { result.content_ = contentBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.vclock_ = vclock_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.unchanged_ = unchanged_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbGetResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbGetResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbGetResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbGetResp.getDefaultInstance()) return this; if (contentBuilder_ == null) { if (!other.content_.isEmpty()) { if (content_.isEmpty()) { content_ = other.content_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureContentIsMutable(); content_.addAll(other.content_); } onChanged(); } } else { if (!other.content_.isEmpty()) { if (contentBuilder_.isEmpty()) { contentBuilder_.dispose(); contentBuilder_ = null; content_ = other.content_; bitField0_ = (bitField0_ & ~0x00000001); contentBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContentFieldBuilder() : null; } else { contentBuilder_.addAllMessages(other.content_); } } } if (other.hasVclock()) { setVclock(other.getVclock()); } if (other.hasUnchanged()) { setUnchanged(other.getUnchanged()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getContentCount(); i++) { if (!getContent(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbGetResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbGetResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List content_ = java.util.Collections.emptyList(); private void ensureContentIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { content_ = new java.util.ArrayList(content_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbContent, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder, com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder> contentBuilder_; /** * repeated .RpbContent content = 1; */ public java.util.List getContentList() { if (contentBuilder_ == null) { return java.util.Collections.unmodifiableList(content_); } else { return contentBuilder_.getMessageList(); } } /** * repeated .RpbContent content = 1; */ public int getContentCount() { if (contentBuilder_ == null) { return content_.size(); } else { return contentBuilder_.getCount(); } } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent getContent(int index) { if (contentBuilder_ == null) { return content_.get(index); } else { return contentBuilder_.getMessage(index); } } /** * repeated .RpbContent content = 1; */ public Builder setContent( int index, com.basho.riak.protobuf.RiakKvPB.RpbContent value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContentIsMutable(); content_.set(index, value); onChanged(); } else { contentBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbContent content = 1; */ public Builder setContent( int index, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder builderForValue) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.set(index, builderForValue.build()); onChanged(); } else { contentBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addContent(com.basho.riak.protobuf.RiakKvPB.RpbContent value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContentIsMutable(); content_.add(value); onChanged(); } else { contentBuilder_.addMessage(value); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addContent( int index, com.basho.riak.protobuf.RiakKvPB.RpbContent value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContentIsMutable(); content_.add(index, value); onChanged(); } else { contentBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addContent( com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder builderForValue) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.add(builderForValue.build()); onChanged(); } else { contentBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addContent( int index, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder builderForValue) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.add(index, builderForValue.build()); onChanged(); } else { contentBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addAllContent( java.lang.Iterable values) { if (contentBuilder_ == null) { ensureContentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, content_); onChanged(); } else { contentBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbContent content = 1; */ public Builder clearContent() { if (contentBuilder_ == null) { content_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { contentBuilder_.clear(); } return this; } /** * repeated .RpbContent content = 1; */ public Builder removeContent(int index) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.remove(index); onChanged(); } else { contentBuilder_.remove(index); } return this; } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder getContentBuilder( int index) { return getContentFieldBuilder().getBuilder(index); } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder getContentOrBuilder( int index) { if (contentBuilder_ == null) { return content_.get(index); } else { return contentBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbContent content = 1; */ public java.util.List getContentOrBuilderList() { if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(content_); } } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder addContentBuilder() { return getContentFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance()); } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder addContentBuilder( int index) { return getContentFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance()); } /** * repeated .RpbContent content = 1; */ public java.util.List getContentBuilderList() { return getContentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbContent, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder, com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder> getContentFieldBuilder() { if (contentBuilder_ == null) { contentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbContent, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder, com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder>( content_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); content_ = null; } return contentBuilder_; } private com.google.protobuf.ByteString vclock_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes vclock = 2; * *
       * the opaque vector clock for the object
       * 
*/ public boolean hasVclock() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes vclock = 2; * *
       * the opaque vector clock for the object
       * 
*/ public com.google.protobuf.ByteString getVclock() { return vclock_; } /** * optional bytes vclock = 2; * *
       * the opaque vector clock for the object
       * 
*/ public Builder setVclock(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; vclock_ = value; onChanged(); return this; } /** * optional bytes vclock = 2; * *
       * the opaque vector clock for the object
       * 
*/ public Builder clearVclock() { bitField0_ = (bitField0_ & ~0x00000002); vclock_ = getDefaultInstance().getVclock(); onChanged(); return this; } private boolean unchanged_ ; /** * optional bool unchanged = 3; */ public boolean hasUnchanged() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool unchanged = 3; */ public boolean getUnchanged() { return unchanged_; } /** * optional bool unchanged = 3; */ public Builder setUnchanged(boolean value) { bitField0_ |= 0x00000004; unchanged_ = value; onChanged(); return this; } /** * optional bool unchanged = 3; */ public Builder clearUnchanged() { bitField0_ = (bitField0_ & ~0x00000004); unchanged_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbGetResp) } static { defaultInstance = new RpbGetResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbGetResp) } public interface RpbPutReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbPutReq) com.google.protobuf.MessageOrBuilder { /** * required bytes bucket = 1; */ boolean hasBucket(); /** * required bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * optional bytes key = 2; */ boolean hasKey(); /** * optional bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * optional bytes vclock = 3; */ boolean hasVclock(); /** * optional bytes vclock = 3; */ com.google.protobuf.ByteString getVclock(); /** * required .RpbContent content = 4; */ boolean hasContent(); /** * required .RpbContent content = 4; */ com.basho.riak.protobuf.RiakKvPB.RpbContent getContent(); /** * required .RpbContent content = 4; */ com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder getContentOrBuilder(); /** * optional uint32 w = 5; */ boolean hasW(); /** * optional uint32 w = 5; */ int getW(); /** * optional uint32 dw = 6; */ boolean hasDw(); /** * optional uint32 dw = 6; */ int getDw(); /** * optional bool return_body = 7; */ boolean hasReturnBody(); /** * optional bool return_body = 7; */ boolean getReturnBody(); /** * optional uint32 pw = 8; */ boolean hasPw(); /** * optional uint32 pw = 8; */ int getPw(); /** * optional bool if_not_modified = 9; */ boolean hasIfNotModified(); /** * optional bool if_not_modified = 9; */ boolean getIfNotModified(); /** * optional bool if_none_match = 10; */ boolean hasIfNoneMatch(); /** * optional bool if_none_match = 10; */ boolean getIfNoneMatch(); /** * optional bool return_head = 11; */ boolean hasReturnHead(); /** * optional bool return_head = 11; */ boolean getReturnHead(); /** * optional uint32 timeout = 12; */ boolean hasTimeout(); /** * optional uint32 timeout = 12; */ int getTimeout(); /** * optional bool asis = 13; */ boolean hasAsis(); /** * optional bool asis = 13; */ boolean getAsis(); /** * optional bool sloppy_quorum = 14; * *
     * Experimental, may change/disappear
     * 
*/ boolean hasSloppyQuorum(); /** * optional bool sloppy_quorum = 14; * *
     * Experimental, may change/disappear
     * 
*/ boolean getSloppyQuorum(); /** * optional uint32 n_val = 15; * *
     * Experimental, may change/disappear
     * 
*/ boolean hasNVal(); /** * optional uint32 n_val = 15; * *
     * Experimental, may change/disappear
     * 
*/ int getNVal(); /** * optional bytes type = 16; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ boolean hasType(); /** * optional bytes type = 16; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ com.google.protobuf.ByteString getType(); } /** * Protobuf type {@code RpbPutReq} * *
   * Put request - if options.return_body is set then the updated metadata/data for
   *               the key will be returned.
   * 
*/ public static final class RpbPutReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbPutReq) RpbPutReqOrBuilder { // Use RpbPutReq.newBuilder() to construct. private RpbPutReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbPutReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbPutReq defaultInstance; public static RpbPutReq getDefaultInstance() { return defaultInstance; } public RpbPutReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbPutReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; vclock_ = input.readBytes(); break; } case 34: { com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = content_.toBuilder(); } content_ = input.readMessage(com.basho.riak.protobuf.RiakKvPB.RpbContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(content_); content_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 40: { bitField0_ |= 0x00000010; w_ = input.readUInt32(); break; } case 48: { bitField0_ |= 0x00000020; dw_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000040; returnBody_ = input.readBool(); break; } case 64: { bitField0_ |= 0x00000080; pw_ = input.readUInt32(); break; } case 72: { bitField0_ |= 0x00000100; ifNotModified_ = input.readBool(); break; } case 80: { bitField0_ |= 0x00000200; ifNoneMatch_ = input.readBool(); break; } case 88: { bitField0_ |= 0x00000400; returnHead_ = input.readBool(); break; } case 96: { bitField0_ |= 0x00000800; timeout_ = input.readUInt32(); break; } case 104: { bitField0_ |= 0x00001000; asis_ = input.readBool(); break; } case 112: { bitField0_ |= 0x00002000; sloppyQuorum_ = input.readBool(); break; } case 120: { bitField0_ |= 0x00004000; nVal_ = input.readUInt32(); break; } case 130: { bitField0_ |= 0x00008000; type_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbPutReq.class, com.basho.riak.protobuf.RiakKvPB.RpbPutReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbPutReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbPutReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * optional bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VCLOCK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString vclock_; /** * optional bytes vclock = 3; */ public boolean hasVclock() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes vclock = 3; */ public com.google.protobuf.ByteString getVclock() { return vclock_; } public static final int CONTENT_FIELD_NUMBER = 4; private com.basho.riak.protobuf.RiakKvPB.RpbContent content_; /** * required .RpbContent content = 4; */ public boolean hasContent() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .RpbContent content = 4; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent getContent() { return content_; } /** * required .RpbContent content = 4; */ public com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder getContentOrBuilder() { return content_; } public static final int W_FIELD_NUMBER = 5; private int w_; /** * optional uint32 w = 5; */ public boolean hasW() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 w = 5; */ public int getW() { return w_; } public static final int DW_FIELD_NUMBER = 6; private int dw_; /** * optional uint32 dw = 6; */ public boolean hasDw() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 dw = 6; */ public int getDw() { return dw_; } public static final int RETURN_BODY_FIELD_NUMBER = 7; private boolean returnBody_; /** * optional bool return_body = 7; */ public boolean hasReturnBody() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool return_body = 7; */ public boolean getReturnBody() { return returnBody_; } public static final int PW_FIELD_NUMBER = 8; private int pw_; /** * optional uint32 pw = 8; */ public boolean hasPw() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 pw = 8; */ public int getPw() { return pw_; } public static final int IF_NOT_MODIFIED_FIELD_NUMBER = 9; private boolean ifNotModified_; /** * optional bool if_not_modified = 9; */ public boolean hasIfNotModified() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool if_not_modified = 9; */ public boolean getIfNotModified() { return ifNotModified_; } public static final int IF_NONE_MATCH_FIELD_NUMBER = 10; private boolean ifNoneMatch_; /** * optional bool if_none_match = 10; */ public boolean hasIfNoneMatch() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bool if_none_match = 10; */ public boolean getIfNoneMatch() { return ifNoneMatch_; } public static final int RETURN_HEAD_FIELD_NUMBER = 11; private boolean returnHead_; /** * optional bool return_head = 11; */ public boolean hasReturnHead() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bool return_head = 11; */ public boolean getReturnHead() { return returnHead_; } public static final int TIMEOUT_FIELD_NUMBER = 12; private int timeout_; /** * optional uint32 timeout = 12; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional uint32 timeout = 12; */ public int getTimeout() { return timeout_; } public static final int ASIS_FIELD_NUMBER = 13; private boolean asis_; /** * optional bool asis = 13; */ public boolean hasAsis() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bool asis = 13; */ public boolean getAsis() { return asis_; } public static final int SLOPPY_QUORUM_FIELD_NUMBER = 14; private boolean sloppyQuorum_; /** * optional bool sloppy_quorum = 14; * *
     * Experimental, may change/disappear
     * 
*/ public boolean hasSloppyQuorum() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional bool sloppy_quorum = 14; * *
     * Experimental, may change/disappear
     * 
*/ public boolean getSloppyQuorum() { return sloppyQuorum_; } public static final int N_VAL_FIELD_NUMBER = 15; private int nVal_; /** * optional uint32 n_val = 15; * *
     * Experimental, may change/disappear
     * 
*/ public boolean hasNVal() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional uint32 n_val = 15; * *
     * Experimental, may change/disappear
     * 
*/ public int getNVal() { return nVal_; } public static final int TYPE_FIELD_NUMBER = 16; private com.google.protobuf.ByteString type_; /** * optional bytes type = 16; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional bytes type = 16; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public com.google.protobuf.ByteString getType() { return type_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; key_ = com.google.protobuf.ByteString.EMPTY; vclock_ = com.google.protobuf.ByteString.EMPTY; content_ = com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance(); w_ = 0; dw_ = 0; returnBody_ = false; pw_ = 0; ifNotModified_ = false; ifNoneMatch_ = false; returnHead_ = false; timeout_ = 0; asis_ = false; sloppyQuorum_ = false; nVal_ = 0; type_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } if (!hasContent()) { memoizedIsInitialized = 0; return false; } if (!getContent().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, vclock_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, content_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, w_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, dw_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, returnBody_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(8, pw_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(9, ifNotModified_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(10, ifNoneMatch_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(11, returnHead_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeUInt32(12, timeout_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBool(13, asis_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeBool(14, sloppyQuorum_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeUInt32(15, nVal_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeBytes(16, type_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, vclock_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, content_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, w_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, dw_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, returnBody_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, pw_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, ifNotModified_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, ifNoneMatch_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, returnHead_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, timeout_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, asis_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, sloppyQuorum_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(15, nVal_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(16, type_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbPutReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbPutReq} * *
     * Put request - if options.return_body is set then the updated metadata/data for
     *               the key will be returned.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbPutReq) com.basho.riak.protobuf.RiakKvPB.RpbPutReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbPutReq.class, com.basho.riak.protobuf.RiakKvPB.RpbPutReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbPutReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); vclock_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); if (contentBuilder_ == null) { content_ = com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance(); } else { contentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); w_ = 0; bitField0_ = (bitField0_ & ~0x00000010); dw_ = 0; bitField0_ = (bitField0_ & ~0x00000020); returnBody_ = false; bitField0_ = (bitField0_ & ~0x00000040); pw_ = 0; bitField0_ = (bitField0_ & ~0x00000080); ifNotModified_ = false; bitField0_ = (bitField0_ & ~0x00000100); ifNoneMatch_ = false; bitField0_ = (bitField0_ & ~0x00000200); returnHead_ = false; bitField0_ = (bitField0_ & ~0x00000400); timeout_ = 0; bitField0_ = (bitField0_ & ~0x00000800); asis_ = false; bitField0_ = (bitField0_ & ~0x00001000); sloppyQuorum_ = false; bitField0_ = (bitField0_ & ~0x00002000); nVal_ = 0; bitField0_ = (bitField0_ & ~0x00004000); type_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00008000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbPutReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbPutReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbPutReq build() { com.basho.riak.protobuf.RiakKvPB.RpbPutReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbPutReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbPutReq result = new com.basho.riak.protobuf.RiakKvPB.RpbPutReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.vclock_ = vclock_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (contentBuilder_ == null) { result.content_ = content_; } else { result.content_ = contentBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.w_ = w_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.dw_ = dw_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.returnBody_ = returnBody_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.pw_ = pw_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.ifNotModified_ = ifNotModified_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.ifNoneMatch_ = ifNoneMatch_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.returnHead_ = returnHead_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.timeout_ = timeout_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.asis_ = asis_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.sloppyQuorum_ = sloppyQuorum_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.nVal_ = nVal_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbPutReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbPutReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbPutReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbPutReq.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasVclock()) { setVclock(other.getVclock()); } if (other.hasContent()) { mergeContent(other.getContent()); } if (other.hasW()) { setW(other.getW()); } if (other.hasDw()) { setDw(other.getDw()); } if (other.hasReturnBody()) { setReturnBody(other.getReturnBody()); } if (other.hasPw()) { setPw(other.getPw()); } if (other.hasIfNotModified()) { setIfNotModified(other.getIfNotModified()); } if (other.hasIfNoneMatch()) { setIfNoneMatch(other.getIfNoneMatch()); } if (other.hasReturnHead()) { setReturnHead(other.getReturnHead()); } if (other.hasTimeout()) { setTimeout(other.getTimeout()); } if (other.hasAsis()) { setAsis(other.getAsis()); } if (other.hasSloppyQuorum()) { setSloppyQuorum(other.getSloppyQuorum()); } if (other.hasNVal()) { setNVal(other.getNVal()); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } if (!hasContent()) { return false; } if (!getContent().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbPutReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbPutReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * optional bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * optional bytes key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString vclock_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes vclock = 3; */ public boolean hasVclock() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes vclock = 3; */ public com.google.protobuf.ByteString getVclock() { return vclock_; } /** * optional bytes vclock = 3; */ public Builder setVclock(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; vclock_ = value; onChanged(); return this; } /** * optional bytes vclock = 3; */ public Builder clearVclock() { bitField0_ = (bitField0_ & ~0x00000004); vclock_ = getDefaultInstance().getVclock(); onChanged(); return this; } private com.basho.riak.protobuf.RiakKvPB.RpbContent content_ = com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbContent, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder, com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder> contentBuilder_; /** * required .RpbContent content = 4; */ public boolean hasContent() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .RpbContent content = 4; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent getContent() { if (contentBuilder_ == null) { return content_; } else { return contentBuilder_.getMessage(); } } /** * required .RpbContent content = 4; */ public Builder setContent(com.basho.riak.protobuf.RiakKvPB.RpbContent value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { contentBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * required .RpbContent content = 4; */ public Builder setContent( com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder builderForValue) { if (contentBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { contentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * required .RpbContent content = 4; */ public Builder mergeContent(com.basho.riak.protobuf.RiakKvPB.RpbContent value) { if (contentBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && content_ != com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance()) { content_ = com.basho.riak.protobuf.RiakKvPB.RpbContent.newBuilder(content_).mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { contentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * required .RpbContent content = 4; */ public Builder clearContent() { if (contentBuilder_ == null) { content_ = com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance(); onChanged(); } else { contentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * required .RpbContent content = 4; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder getContentBuilder() { bitField0_ |= 0x00000008; onChanged(); return getContentFieldBuilder().getBuilder(); } /** * required .RpbContent content = 4; */ public com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder getContentOrBuilder() { if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilder(); } else { return content_; } } /** * required .RpbContent content = 4; */ private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbContent, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder, com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder> getContentFieldBuilder() { if (contentBuilder_ == null) { contentBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbContent, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder, com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder>( getContent(), getParentForChildren(), isClean()); content_ = null; } return contentBuilder_; } private int w_ ; /** * optional uint32 w = 5; */ public boolean hasW() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 w = 5; */ public int getW() { return w_; } /** * optional uint32 w = 5; */ public Builder setW(int value) { bitField0_ |= 0x00000010; w_ = value; onChanged(); return this; } /** * optional uint32 w = 5; */ public Builder clearW() { bitField0_ = (bitField0_ & ~0x00000010); w_ = 0; onChanged(); return this; } private int dw_ ; /** * optional uint32 dw = 6; */ public boolean hasDw() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 dw = 6; */ public int getDw() { return dw_; } /** * optional uint32 dw = 6; */ public Builder setDw(int value) { bitField0_ |= 0x00000020; dw_ = value; onChanged(); return this; } /** * optional uint32 dw = 6; */ public Builder clearDw() { bitField0_ = (bitField0_ & ~0x00000020); dw_ = 0; onChanged(); return this; } private boolean returnBody_ ; /** * optional bool return_body = 7; */ public boolean hasReturnBody() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool return_body = 7; */ public boolean getReturnBody() { return returnBody_; } /** * optional bool return_body = 7; */ public Builder setReturnBody(boolean value) { bitField0_ |= 0x00000040; returnBody_ = value; onChanged(); return this; } /** * optional bool return_body = 7; */ public Builder clearReturnBody() { bitField0_ = (bitField0_ & ~0x00000040); returnBody_ = false; onChanged(); return this; } private int pw_ ; /** * optional uint32 pw = 8; */ public boolean hasPw() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 pw = 8; */ public int getPw() { return pw_; } /** * optional uint32 pw = 8; */ public Builder setPw(int value) { bitField0_ |= 0x00000080; pw_ = value; onChanged(); return this; } /** * optional uint32 pw = 8; */ public Builder clearPw() { bitField0_ = (bitField0_ & ~0x00000080); pw_ = 0; onChanged(); return this; } private boolean ifNotModified_ ; /** * optional bool if_not_modified = 9; */ public boolean hasIfNotModified() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool if_not_modified = 9; */ public boolean getIfNotModified() { return ifNotModified_; } /** * optional bool if_not_modified = 9; */ public Builder setIfNotModified(boolean value) { bitField0_ |= 0x00000100; ifNotModified_ = value; onChanged(); return this; } /** * optional bool if_not_modified = 9; */ public Builder clearIfNotModified() { bitField0_ = (bitField0_ & ~0x00000100); ifNotModified_ = false; onChanged(); return this; } private boolean ifNoneMatch_ ; /** * optional bool if_none_match = 10; */ public boolean hasIfNoneMatch() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bool if_none_match = 10; */ public boolean getIfNoneMatch() { return ifNoneMatch_; } /** * optional bool if_none_match = 10; */ public Builder setIfNoneMatch(boolean value) { bitField0_ |= 0x00000200; ifNoneMatch_ = value; onChanged(); return this; } /** * optional bool if_none_match = 10; */ public Builder clearIfNoneMatch() { bitField0_ = (bitField0_ & ~0x00000200); ifNoneMatch_ = false; onChanged(); return this; } private boolean returnHead_ ; /** * optional bool return_head = 11; */ public boolean hasReturnHead() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bool return_head = 11; */ public boolean getReturnHead() { return returnHead_; } /** * optional bool return_head = 11; */ public Builder setReturnHead(boolean value) { bitField0_ |= 0x00000400; returnHead_ = value; onChanged(); return this; } /** * optional bool return_head = 11; */ public Builder clearReturnHead() { bitField0_ = (bitField0_ & ~0x00000400); returnHead_ = false; onChanged(); return this; } private int timeout_ ; /** * optional uint32 timeout = 12; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional uint32 timeout = 12; */ public int getTimeout() { return timeout_; } /** * optional uint32 timeout = 12; */ public Builder setTimeout(int value) { bitField0_ |= 0x00000800; timeout_ = value; onChanged(); return this; } /** * optional uint32 timeout = 12; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000800); timeout_ = 0; onChanged(); return this; } private boolean asis_ ; /** * optional bool asis = 13; */ public boolean hasAsis() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bool asis = 13; */ public boolean getAsis() { return asis_; } /** * optional bool asis = 13; */ public Builder setAsis(boolean value) { bitField0_ |= 0x00001000; asis_ = value; onChanged(); return this; } /** * optional bool asis = 13; */ public Builder clearAsis() { bitField0_ = (bitField0_ & ~0x00001000); asis_ = false; onChanged(); return this; } private boolean sloppyQuorum_ ; /** * optional bool sloppy_quorum = 14; * *
       * Experimental, may change/disappear
       * 
*/ public boolean hasSloppyQuorum() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional bool sloppy_quorum = 14; * *
       * Experimental, may change/disappear
       * 
*/ public boolean getSloppyQuorum() { return sloppyQuorum_; } /** * optional bool sloppy_quorum = 14; * *
       * Experimental, may change/disappear
       * 
*/ public Builder setSloppyQuorum(boolean value) { bitField0_ |= 0x00002000; sloppyQuorum_ = value; onChanged(); return this; } /** * optional bool sloppy_quorum = 14; * *
       * Experimental, may change/disappear
       * 
*/ public Builder clearSloppyQuorum() { bitField0_ = (bitField0_ & ~0x00002000); sloppyQuorum_ = false; onChanged(); return this; } private int nVal_ ; /** * optional uint32 n_val = 15; * *
       * Experimental, may change/disappear
       * 
*/ public boolean hasNVal() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional uint32 n_val = 15; * *
       * Experimental, may change/disappear
       * 
*/ public int getNVal() { return nVal_; } /** * optional uint32 n_val = 15; * *
       * Experimental, may change/disappear
       * 
*/ public Builder setNVal(int value) { bitField0_ |= 0x00004000; nVal_ = value; onChanged(); return this; } /** * optional uint32 n_val = 15; * *
       * Experimental, may change/disappear
       * 
*/ public Builder clearNVal() { bitField0_ = (bitField0_ & ~0x00004000); nVal_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString type_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes type = 16; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional bytes type = 16; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public com.google.protobuf.ByteString getType() { return type_; } /** * optional bytes type = 16; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder setType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; type_ = value; onChanged(); return this; } /** * optional bytes type = 16; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00008000); type_ = getDefaultInstance().getType(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbPutReq) } static { defaultInstance = new RpbPutReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbPutReq) } public interface RpbPutRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbPutResp) com.google.protobuf.MessageOrBuilder { /** * repeated .RpbContent content = 1; */ java.util.List getContentList(); /** * repeated .RpbContent content = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbContent getContent(int index); /** * repeated .RpbContent content = 1; */ int getContentCount(); /** * repeated .RpbContent content = 1; */ java.util.List getContentOrBuilderList(); /** * repeated .RpbContent content = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder getContentOrBuilder( int index); /** * optional bytes vclock = 2; * *
     * the opaque vector clock for the object
     * 
*/ boolean hasVclock(); /** * optional bytes vclock = 2; * *
     * the opaque vector clock for the object
     * 
*/ com.google.protobuf.ByteString getVclock(); /** * optional bytes key = 3; * *
     * the key generated, if any
     * 
*/ boolean hasKey(); /** * optional bytes key = 3; * *
     * the key generated, if any
     * 
*/ com.google.protobuf.ByteString getKey(); } /** * Protobuf type {@code RpbPutResp} * *
   * Put response - same as get response with optional key if one was generated
   * 
*/ public static final class RpbPutResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbPutResp) RpbPutRespOrBuilder { // Use RpbPutResp.newBuilder() to construct. private RpbPutResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbPutResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbPutResp defaultInstance; public static RpbPutResp getDefaultInstance() { return defaultInstance; } public RpbPutResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbPutResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { content_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } content_.add(input.readMessage(com.basho.riak.protobuf.RiakKvPB.RpbContent.PARSER, extensionRegistry)); break; } case 18: { bitField0_ |= 0x00000001; vclock_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { content_ = java.util.Collections.unmodifiableList(content_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbPutResp.class, com.basho.riak.protobuf.RiakKvPB.RpbPutResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbPutResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbPutResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CONTENT_FIELD_NUMBER = 1; private java.util.List content_; /** * repeated .RpbContent content = 1; */ public java.util.List getContentList() { return content_; } /** * repeated .RpbContent content = 1; */ public java.util.List getContentOrBuilderList() { return content_; } /** * repeated .RpbContent content = 1; */ public int getContentCount() { return content_.size(); } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent getContent(int index) { return content_.get(index); } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder getContentOrBuilder( int index) { return content_.get(index); } public static final int VCLOCK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString vclock_; /** * optional bytes vclock = 2; * *
     * the opaque vector clock for the object
     * 
*/ public boolean hasVclock() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes vclock = 2; * *
     * the opaque vector clock for the object
     * 
*/ public com.google.protobuf.ByteString getVclock() { return vclock_; } public static final int KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString key_; /** * optional bytes key = 3; * *
     * the key generated, if any
     * 
*/ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes key = 3; * *
     * the key generated, if any
     * 
*/ public com.google.protobuf.ByteString getKey() { return key_; } private void initFields() { content_ = java.util.Collections.emptyList(); vclock_ = com.google.protobuf.ByteString.EMPTY; key_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getContentCount(); i++) { if (!getContent(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < content_.size(); i++) { output.writeMessage(1, content_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, vclock_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(3, key_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < content_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, content_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, vclock_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, key_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbPutResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbPutResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbPutResp} * *
     * Put response - same as get response with optional key if one was generated
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbPutResp) com.basho.riak.protobuf.RiakKvPB.RpbPutRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbPutResp.class, com.basho.riak.protobuf.RiakKvPB.RpbPutResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbPutResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (contentBuilder_ == null) { content_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { contentBuilder_.clear(); } vclock_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbPutResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbPutResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbPutResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbPutResp build() { com.basho.riak.protobuf.RiakKvPB.RpbPutResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbPutResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbPutResp result = new com.basho.riak.protobuf.RiakKvPB.RpbPutResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contentBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { content_ = java.util.Collections.unmodifiableList(content_); bitField0_ = (bitField0_ & ~0x00000001); } result.content_ = content_; } else { result.content_ = contentBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.vclock_ = vclock_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbPutResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbPutResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbPutResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbPutResp.getDefaultInstance()) return this; if (contentBuilder_ == null) { if (!other.content_.isEmpty()) { if (content_.isEmpty()) { content_ = other.content_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureContentIsMutable(); content_.addAll(other.content_); } onChanged(); } } else { if (!other.content_.isEmpty()) { if (contentBuilder_.isEmpty()) { contentBuilder_.dispose(); contentBuilder_ = null; content_ = other.content_; bitField0_ = (bitField0_ & ~0x00000001); contentBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContentFieldBuilder() : null; } else { contentBuilder_.addAllMessages(other.content_); } } } if (other.hasVclock()) { setVclock(other.getVclock()); } if (other.hasKey()) { setKey(other.getKey()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getContentCount(); i++) { if (!getContent(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbPutResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbPutResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List content_ = java.util.Collections.emptyList(); private void ensureContentIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { content_ = new java.util.ArrayList(content_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbContent, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder, com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder> contentBuilder_; /** * repeated .RpbContent content = 1; */ public java.util.List getContentList() { if (contentBuilder_ == null) { return java.util.Collections.unmodifiableList(content_); } else { return contentBuilder_.getMessageList(); } } /** * repeated .RpbContent content = 1; */ public int getContentCount() { if (contentBuilder_ == null) { return content_.size(); } else { return contentBuilder_.getCount(); } } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent getContent(int index) { if (contentBuilder_ == null) { return content_.get(index); } else { return contentBuilder_.getMessage(index); } } /** * repeated .RpbContent content = 1; */ public Builder setContent( int index, com.basho.riak.protobuf.RiakKvPB.RpbContent value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContentIsMutable(); content_.set(index, value); onChanged(); } else { contentBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbContent content = 1; */ public Builder setContent( int index, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder builderForValue) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.set(index, builderForValue.build()); onChanged(); } else { contentBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addContent(com.basho.riak.protobuf.RiakKvPB.RpbContent value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContentIsMutable(); content_.add(value); onChanged(); } else { contentBuilder_.addMessage(value); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addContent( int index, com.basho.riak.protobuf.RiakKvPB.RpbContent value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContentIsMutable(); content_.add(index, value); onChanged(); } else { contentBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addContent( com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder builderForValue) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.add(builderForValue.build()); onChanged(); } else { contentBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addContent( int index, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder builderForValue) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.add(index, builderForValue.build()); onChanged(); } else { contentBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbContent content = 1; */ public Builder addAllContent( java.lang.Iterable values) { if (contentBuilder_ == null) { ensureContentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, content_); onChanged(); } else { contentBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbContent content = 1; */ public Builder clearContent() { if (contentBuilder_ == null) { content_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { contentBuilder_.clear(); } return this; } /** * repeated .RpbContent content = 1; */ public Builder removeContent(int index) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.remove(index); onChanged(); } else { contentBuilder_.remove(index); } return this; } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder getContentBuilder( int index) { return getContentFieldBuilder().getBuilder(index); } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder getContentOrBuilder( int index) { if (contentBuilder_ == null) { return content_.get(index); } else { return contentBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbContent content = 1; */ public java.util.List getContentOrBuilderList() { if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(content_); } } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder addContentBuilder() { return getContentFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance()); } /** * repeated .RpbContent content = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder addContentBuilder( int index) { return getContentFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance()); } /** * repeated .RpbContent content = 1; */ public java.util.List getContentBuilderList() { return getContentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbContent, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder, com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder> getContentFieldBuilder() { if (contentBuilder_ == null) { contentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbContent, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder, com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder>( content_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); content_ = null; } return contentBuilder_; } private com.google.protobuf.ByteString vclock_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes vclock = 2; * *
       * the opaque vector clock for the object
       * 
*/ public boolean hasVclock() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes vclock = 2; * *
       * the opaque vector clock for the object
       * 
*/ public com.google.protobuf.ByteString getVclock() { return vclock_; } /** * optional bytes vclock = 2; * *
       * the opaque vector clock for the object
       * 
*/ public Builder setVclock(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; vclock_ = value; onChanged(); return this; } /** * optional bytes vclock = 2; * *
       * the opaque vector clock for the object
       * 
*/ public Builder clearVclock() { bitField0_ = (bitField0_ & ~0x00000002); vclock_ = getDefaultInstance().getVclock(); onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes key = 3; * *
       * the key generated, if any
       * 
*/ public boolean hasKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes key = 3; * *
       * the key generated, if any
       * 
*/ public com.google.protobuf.ByteString getKey() { return key_; } /** * optional bytes key = 3; * *
       * the key generated, if any
       * 
*/ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; key_ = value; onChanged(); return this; } /** * optional bytes key = 3; * *
       * the key generated, if any
       * 
*/ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000004); key_ = getDefaultInstance().getKey(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbPutResp) } static { defaultInstance = new RpbPutResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbPutResp) } public interface RpbDelReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbDelReq) com.google.protobuf.MessageOrBuilder { /** * required bytes bucket = 1; */ boolean hasBucket(); /** * required bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * required bytes key = 2; */ boolean hasKey(); /** * required bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * optional uint32 rw = 3; */ boolean hasRw(); /** * optional uint32 rw = 3; */ int getRw(); /** * optional bytes vclock = 4; */ boolean hasVclock(); /** * optional bytes vclock = 4; */ com.google.protobuf.ByteString getVclock(); /** * optional uint32 r = 5; */ boolean hasR(); /** * optional uint32 r = 5; */ int getR(); /** * optional uint32 w = 6; */ boolean hasW(); /** * optional uint32 w = 6; */ int getW(); /** * optional uint32 pr = 7; */ boolean hasPr(); /** * optional uint32 pr = 7; */ int getPr(); /** * optional uint32 pw = 8; */ boolean hasPw(); /** * optional uint32 pw = 8; */ int getPw(); /** * optional uint32 dw = 9; */ boolean hasDw(); /** * optional uint32 dw = 9; */ int getDw(); /** * optional uint32 timeout = 10; */ boolean hasTimeout(); /** * optional uint32 timeout = 10; */ int getTimeout(); /** * optional bool sloppy_quorum = 11; * *
     * Experimental, may change/disappear
     * 
*/ boolean hasSloppyQuorum(); /** * optional bool sloppy_quorum = 11; * *
     * Experimental, may change/disappear
     * 
*/ boolean getSloppyQuorum(); /** * optional uint32 n_val = 12; * *
     * Experimental, may change/disappear
     * 
*/ boolean hasNVal(); /** * optional uint32 n_val = 12; * *
     * Experimental, may change/disappear
     * 
*/ int getNVal(); /** * optional bytes type = 13; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ boolean hasType(); /** * optional bytes type = 13; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ com.google.protobuf.ByteString getType(); } /** * Protobuf type {@code RpbDelReq} * *
   * Delete request
   * 
*/ public static final class RpbDelReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbDelReq) RpbDelReqOrBuilder { // Use RpbDelReq.newBuilder() to construct. private RpbDelReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbDelReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbDelReq defaultInstance; public static RpbDelReq getDefaultInstance() { return defaultInstance; } public RpbDelReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbDelReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; rw_ = input.readUInt32(); break; } case 34: { bitField0_ |= 0x00000008; vclock_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; r_ = input.readUInt32(); break; } case 48: { bitField0_ |= 0x00000020; w_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000040; pr_ = input.readUInt32(); break; } case 64: { bitField0_ |= 0x00000080; pw_ = input.readUInt32(); break; } case 72: { bitField0_ |= 0x00000100; dw_ = input.readUInt32(); break; } case 80: { bitField0_ |= 0x00000200; timeout_ = input.readUInt32(); break; } case 88: { bitField0_ |= 0x00000400; sloppyQuorum_ = input.readBool(); break; } case 96: { bitField0_ |= 0x00000800; nVal_ = input.readUInt32(); break; } case 106: { bitField0_ |= 0x00001000; type_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbDelReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbDelReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbDelReq.class, com.basho.riak.protobuf.RiakKvPB.RpbDelReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbDelReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbDelReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int RW_FIELD_NUMBER = 3; private int rw_; /** * optional uint32 rw = 3; */ public boolean hasRw() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 rw = 3; */ public int getRw() { return rw_; } public static final int VCLOCK_FIELD_NUMBER = 4; private com.google.protobuf.ByteString vclock_; /** * optional bytes vclock = 4; */ public boolean hasVclock() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes vclock = 4; */ public com.google.protobuf.ByteString getVclock() { return vclock_; } public static final int R_FIELD_NUMBER = 5; private int r_; /** * optional uint32 r = 5; */ public boolean hasR() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 r = 5; */ public int getR() { return r_; } public static final int W_FIELD_NUMBER = 6; private int w_; /** * optional uint32 w = 6; */ public boolean hasW() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 w = 6; */ public int getW() { return w_; } public static final int PR_FIELD_NUMBER = 7; private int pr_; /** * optional uint32 pr = 7; */ public boolean hasPr() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 pr = 7; */ public int getPr() { return pr_; } public static final int PW_FIELD_NUMBER = 8; private int pw_; /** * optional uint32 pw = 8; */ public boolean hasPw() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 pw = 8; */ public int getPw() { return pw_; } public static final int DW_FIELD_NUMBER = 9; private int dw_; /** * optional uint32 dw = 9; */ public boolean hasDw() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint32 dw = 9; */ public int getDw() { return dw_; } public static final int TIMEOUT_FIELD_NUMBER = 10; private int timeout_; /** * optional uint32 timeout = 10; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint32 timeout = 10; */ public int getTimeout() { return timeout_; } public static final int SLOPPY_QUORUM_FIELD_NUMBER = 11; private boolean sloppyQuorum_; /** * optional bool sloppy_quorum = 11; * *
     * Experimental, may change/disappear
     * 
*/ public boolean hasSloppyQuorum() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bool sloppy_quorum = 11; * *
     * Experimental, may change/disappear
     * 
*/ public boolean getSloppyQuorum() { return sloppyQuorum_; } public static final int N_VAL_FIELD_NUMBER = 12; private int nVal_; /** * optional uint32 n_val = 12; * *
     * Experimental, may change/disappear
     * 
*/ public boolean hasNVal() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional uint32 n_val = 12; * *
     * Experimental, may change/disappear
     * 
*/ public int getNVal() { return nVal_; } public static final int TYPE_FIELD_NUMBER = 13; private com.google.protobuf.ByteString type_; /** * optional bytes type = 13; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bytes type = 13; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public com.google.protobuf.ByteString getType() { return type_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; key_ = com.google.protobuf.ByteString.EMPTY; rw_ = 0; vclock_ = com.google.protobuf.ByteString.EMPTY; r_ = 0; w_ = 0; pr_ = 0; pw_ = 0; dw_ = 0; timeout_ = 0; sloppyQuorum_ = false; nVal_ = 0; type_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } if (!hasKey()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, rw_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, vclock_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, r_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, w_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, pr_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(8, pw_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeUInt32(9, dw_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeUInt32(10, timeout_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(11, sloppyQuorum_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeUInt32(12, nVal_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBytes(13, type_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, rw_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, vclock_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, r_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, w_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, pr_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, pw_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, dw_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, timeout_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, sloppyQuorum_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, nVal_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, type_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbDelReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbDelReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbDelReq} * *
     * Delete request
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbDelReq) com.basho.riak.protobuf.RiakKvPB.RpbDelReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbDelReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbDelReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbDelReq.class, com.basho.riak.protobuf.RiakKvPB.RpbDelReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbDelReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); rw_ = 0; bitField0_ = (bitField0_ & ~0x00000004); vclock_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); r_ = 0; bitField0_ = (bitField0_ & ~0x00000010); w_ = 0; bitField0_ = (bitField0_ & ~0x00000020); pr_ = 0; bitField0_ = (bitField0_ & ~0x00000040); pw_ = 0; bitField0_ = (bitField0_ & ~0x00000080); dw_ = 0; bitField0_ = (bitField0_ & ~0x00000100); timeout_ = 0; bitField0_ = (bitField0_ & ~0x00000200); sloppyQuorum_ = false; bitField0_ = (bitField0_ & ~0x00000400); nVal_ = 0; bitField0_ = (bitField0_ & ~0x00000800); type_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbDelReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbDelReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbDelReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbDelReq build() { com.basho.riak.protobuf.RiakKvPB.RpbDelReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbDelReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbDelReq result = new com.basho.riak.protobuf.RiakKvPB.RpbDelReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.rw_ = rw_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.vclock_ = vclock_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.r_ = r_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.w_ = w_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.pr_ = pr_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.pw_ = pw_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.dw_ = dw_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.timeout_ = timeout_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.sloppyQuorum_ = sloppyQuorum_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.nVal_ = nVal_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbDelReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbDelReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbDelReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbDelReq.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasRw()) { setRw(other.getRw()); } if (other.hasVclock()) { setVclock(other.getVclock()); } if (other.hasR()) { setR(other.getR()); } if (other.hasW()) { setW(other.getW()); } if (other.hasPr()) { setPr(other.getPr()); } if (other.hasPw()) { setPw(other.getPw()); } if (other.hasDw()) { setDw(other.getDw()); } if (other.hasTimeout()) { setTimeout(other.getTimeout()); } if (other.hasSloppyQuorum()) { setSloppyQuorum(other.getSloppyQuorum()); } if (other.hasNVal()) { setNVal(other.getNVal()); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } if (!hasKey()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbDelReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbDelReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * required bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * required bytes key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } private int rw_ ; /** * optional uint32 rw = 3; */ public boolean hasRw() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 rw = 3; */ public int getRw() { return rw_; } /** * optional uint32 rw = 3; */ public Builder setRw(int value) { bitField0_ |= 0x00000004; rw_ = value; onChanged(); return this; } /** * optional uint32 rw = 3; */ public Builder clearRw() { bitField0_ = (bitField0_ & ~0x00000004); rw_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString vclock_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes vclock = 4; */ public boolean hasVclock() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes vclock = 4; */ public com.google.protobuf.ByteString getVclock() { return vclock_; } /** * optional bytes vclock = 4; */ public Builder setVclock(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; vclock_ = value; onChanged(); return this; } /** * optional bytes vclock = 4; */ public Builder clearVclock() { bitField0_ = (bitField0_ & ~0x00000008); vclock_ = getDefaultInstance().getVclock(); onChanged(); return this; } private int r_ ; /** * optional uint32 r = 5; */ public boolean hasR() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 r = 5; */ public int getR() { return r_; } /** * optional uint32 r = 5; */ public Builder setR(int value) { bitField0_ |= 0x00000010; r_ = value; onChanged(); return this; } /** * optional uint32 r = 5; */ public Builder clearR() { bitField0_ = (bitField0_ & ~0x00000010); r_ = 0; onChanged(); return this; } private int w_ ; /** * optional uint32 w = 6; */ public boolean hasW() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 w = 6; */ public int getW() { return w_; } /** * optional uint32 w = 6; */ public Builder setW(int value) { bitField0_ |= 0x00000020; w_ = value; onChanged(); return this; } /** * optional uint32 w = 6; */ public Builder clearW() { bitField0_ = (bitField0_ & ~0x00000020); w_ = 0; onChanged(); return this; } private int pr_ ; /** * optional uint32 pr = 7; */ public boolean hasPr() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 pr = 7; */ public int getPr() { return pr_; } /** * optional uint32 pr = 7; */ public Builder setPr(int value) { bitField0_ |= 0x00000040; pr_ = value; onChanged(); return this; } /** * optional uint32 pr = 7; */ public Builder clearPr() { bitField0_ = (bitField0_ & ~0x00000040); pr_ = 0; onChanged(); return this; } private int pw_ ; /** * optional uint32 pw = 8; */ public boolean hasPw() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 pw = 8; */ public int getPw() { return pw_; } /** * optional uint32 pw = 8; */ public Builder setPw(int value) { bitField0_ |= 0x00000080; pw_ = value; onChanged(); return this; } /** * optional uint32 pw = 8; */ public Builder clearPw() { bitField0_ = (bitField0_ & ~0x00000080); pw_ = 0; onChanged(); return this; } private int dw_ ; /** * optional uint32 dw = 9; */ public boolean hasDw() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint32 dw = 9; */ public int getDw() { return dw_; } /** * optional uint32 dw = 9; */ public Builder setDw(int value) { bitField0_ |= 0x00000100; dw_ = value; onChanged(); return this; } /** * optional uint32 dw = 9; */ public Builder clearDw() { bitField0_ = (bitField0_ & ~0x00000100); dw_ = 0; onChanged(); return this; } private int timeout_ ; /** * optional uint32 timeout = 10; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint32 timeout = 10; */ public int getTimeout() { return timeout_; } /** * optional uint32 timeout = 10; */ public Builder setTimeout(int value) { bitField0_ |= 0x00000200; timeout_ = value; onChanged(); return this; } /** * optional uint32 timeout = 10; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000200); timeout_ = 0; onChanged(); return this; } private boolean sloppyQuorum_ ; /** * optional bool sloppy_quorum = 11; * *
       * Experimental, may change/disappear
       * 
*/ public boolean hasSloppyQuorum() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bool sloppy_quorum = 11; * *
       * Experimental, may change/disappear
       * 
*/ public boolean getSloppyQuorum() { return sloppyQuorum_; } /** * optional bool sloppy_quorum = 11; * *
       * Experimental, may change/disappear
       * 
*/ public Builder setSloppyQuorum(boolean value) { bitField0_ |= 0x00000400; sloppyQuorum_ = value; onChanged(); return this; } /** * optional bool sloppy_quorum = 11; * *
       * Experimental, may change/disappear
       * 
*/ public Builder clearSloppyQuorum() { bitField0_ = (bitField0_ & ~0x00000400); sloppyQuorum_ = false; onChanged(); return this; } private int nVal_ ; /** * optional uint32 n_val = 12; * *
       * Experimental, may change/disappear
       * 
*/ public boolean hasNVal() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional uint32 n_val = 12; * *
       * Experimental, may change/disappear
       * 
*/ public int getNVal() { return nVal_; } /** * optional uint32 n_val = 12; * *
       * Experimental, may change/disappear
       * 
*/ public Builder setNVal(int value) { bitField0_ |= 0x00000800; nVal_ = value; onChanged(); return this; } /** * optional uint32 n_val = 12; * *
       * Experimental, may change/disappear
       * 
*/ public Builder clearNVal() { bitField0_ = (bitField0_ & ~0x00000800); nVal_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString type_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes type = 13; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bytes type = 13; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public com.google.protobuf.ByteString getType() { return type_; } /** * optional bytes type = 13; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder setType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; type_ = value; onChanged(); return this; } /** * optional bytes type = 13; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00001000); type_ = getDefaultInstance().getType(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbDelReq) } static { defaultInstance = new RpbDelReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbDelReq) } public interface RpbListBucketsReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbListBucketsReq) com.google.protobuf.MessageOrBuilder { /** * optional uint32 timeout = 1; */ boolean hasTimeout(); /** * optional uint32 timeout = 1; */ int getTimeout(); /** * optional bool stream = 2; */ boolean hasStream(); /** * optional bool stream = 2; */ boolean getStream(); /** * optional bytes type = 3; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ boolean hasType(); /** * optional bytes type = 3; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ com.google.protobuf.ByteString getType(); } /** * Protobuf type {@code RpbListBucketsReq} * *
   * List buckets request
   * 
*/ public static final class RpbListBucketsReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbListBucketsReq) RpbListBucketsReqOrBuilder { // Use RpbListBucketsReq.newBuilder() to construct. private RpbListBucketsReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbListBucketsReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbListBucketsReq defaultInstance; public static RpbListBucketsReq getDefaultInstance() { return defaultInstance; } public RpbListBucketsReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbListBucketsReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; timeout_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; stream_ = input.readBool(); break; } case 26: { bitField0_ |= 0x00000004; type_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq.class, com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbListBucketsReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbListBucketsReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int TIMEOUT_FIELD_NUMBER = 1; private int timeout_; /** * optional uint32 timeout = 1; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 timeout = 1; */ public int getTimeout() { return timeout_; } public static final int STREAM_FIELD_NUMBER = 2; private boolean stream_; /** * optional bool stream = 2; */ public boolean hasStream() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool stream = 2; */ public boolean getStream() { return stream_; } public static final int TYPE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString type_; /** * optional bytes type = 3; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes type = 3; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public com.google.protobuf.ByteString getType() { return type_; } private void initFields() { timeout_ = 0; stream_ = false; type_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, timeout_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, stream_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, type_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, timeout_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, stream_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, type_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbListBucketsReq} * *
     * List buckets request
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbListBucketsReq) com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq.class, com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); timeout_ = 0; bitField0_ = (bitField0_ & ~0x00000001); stream_ = false; bitField0_ = (bitField0_ & ~0x00000002); type_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq build() { com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq result = new com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.timeout_ = timeout_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.stream_ = stream_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq.getDefaultInstance()) return this; if (other.hasTimeout()) { setTimeout(other.getTimeout()); } if (other.hasStream()) { setStream(other.getStream()); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbListBucketsReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int timeout_ ; /** * optional uint32 timeout = 1; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 timeout = 1; */ public int getTimeout() { return timeout_; } /** * optional uint32 timeout = 1; */ public Builder setTimeout(int value) { bitField0_ |= 0x00000001; timeout_ = value; onChanged(); return this; } /** * optional uint32 timeout = 1; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000001); timeout_ = 0; onChanged(); return this; } private boolean stream_ ; /** * optional bool stream = 2; */ public boolean hasStream() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool stream = 2; */ public boolean getStream() { return stream_; } /** * optional bool stream = 2; */ public Builder setStream(boolean value) { bitField0_ |= 0x00000002; stream_ = value; onChanged(); return this; } /** * optional bool stream = 2; */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000002); stream_ = false; onChanged(); return this; } private com.google.protobuf.ByteString type_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes type = 3; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes type = 3; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public com.google.protobuf.ByteString getType() { return type_; } /** * optional bytes type = 3; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder setType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * optional bytes type = 3; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = getDefaultInstance().getType(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbListBucketsReq) } static { defaultInstance = new RpbListBucketsReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbListBucketsReq) } public interface RpbListBucketsRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbListBucketsResp) com.google.protobuf.MessageOrBuilder { /** * repeated bytes buckets = 1; */ java.util.List getBucketsList(); /** * repeated bytes buckets = 1; */ int getBucketsCount(); /** * repeated bytes buckets = 1; */ com.google.protobuf.ByteString getBuckets(int index); /** * optional bool done = 2; */ boolean hasDone(); /** * optional bool done = 2; */ boolean getDone(); } /** * Protobuf type {@code RpbListBucketsResp} * *
   * List buckets response - one or more of these packets will be sent
   * the last one will have done set true (and may not have any buckets in it)
   * 
*/ public static final class RpbListBucketsResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbListBucketsResp) RpbListBucketsRespOrBuilder { // Use RpbListBucketsResp.newBuilder() to construct. private RpbListBucketsResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbListBucketsResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbListBucketsResp defaultInstance; public static RpbListBucketsResp getDefaultInstance() { return defaultInstance; } public RpbListBucketsResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbListBucketsResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { buckets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } buckets_.add(input.readBytes()); break; } case 16: { bitField0_ |= 0x00000001; done_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { buckets_ = java.util.Collections.unmodifiableList(buckets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp.class, com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbListBucketsResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbListBucketsResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKETS_FIELD_NUMBER = 1; private java.util.List buckets_; /** * repeated bytes buckets = 1; */ public java.util.List getBucketsList() { return buckets_; } /** * repeated bytes buckets = 1; */ public int getBucketsCount() { return buckets_.size(); } /** * repeated bytes buckets = 1; */ public com.google.protobuf.ByteString getBuckets(int index) { return buckets_.get(index); } public static final int DONE_FIELD_NUMBER = 2; private boolean done_; /** * optional bool done = 2; */ public boolean hasDone() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool done = 2; */ public boolean getDone() { return done_; } private void initFields() { buckets_ = java.util.Collections.emptyList(); done_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < buckets_.size(); i++) { output.writeBytes(1, buckets_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(2, done_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < buckets_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(buckets_.get(i)); } size += dataSize; size += 1 * getBucketsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, done_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbListBucketsResp} * *
     * List buckets response - one or more of these packets will be sent
     * the last one will have done set true (and may not have any buckets in it)
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbListBucketsResp) com.basho.riak.protobuf.RiakKvPB.RpbListBucketsRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp.class, com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); buckets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); done_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListBucketsResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp build() { com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp result = new com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { buckets_ = java.util.Collections.unmodifiableList(buckets_); bitField0_ = (bitField0_ & ~0x00000001); } result.buckets_ = buckets_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.done_ = done_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp.getDefaultInstance()) return this; if (!other.buckets_.isEmpty()) { if (buckets_.isEmpty()) { buckets_ = other.buckets_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBucketsIsMutable(); buckets_.addAll(other.buckets_); } onChanged(); } if (other.hasDone()) { setDone(other.getDone()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbListBucketsResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List buckets_ = java.util.Collections.emptyList(); private void ensureBucketsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { buckets_ = new java.util.ArrayList(buckets_); bitField0_ |= 0x00000001; } } /** * repeated bytes buckets = 1; */ public java.util.List getBucketsList() { return java.util.Collections.unmodifiableList(buckets_); } /** * repeated bytes buckets = 1; */ public int getBucketsCount() { return buckets_.size(); } /** * repeated bytes buckets = 1; */ public com.google.protobuf.ByteString getBuckets(int index) { return buckets_.get(index); } /** * repeated bytes buckets = 1; */ public Builder setBuckets( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBucketsIsMutable(); buckets_.set(index, value); onChanged(); return this; } /** * repeated bytes buckets = 1; */ public Builder addBuckets(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBucketsIsMutable(); buckets_.add(value); onChanged(); return this; } /** * repeated bytes buckets = 1; */ public Builder addAllBuckets( java.lang.Iterable values) { ensureBucketsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, buckets_); onChanged(); return this; } /** * repeated bytes buckets = 1; */ public Builder clearBuckets() { buckets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private boolean done_ ; /** * optional bool done = 2; */ public boolean hasDone() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool done = 2; */ public boolean getDone() { return done_; } /** * optional bool done = 2; */ public Builder setDone(boolean value) { bitField0_ |= 0x00000002; done_ = value; onChanged(); return this; } /** * optional bool done = 2; */ public Builder clearDone() { bitField0_ = (bitField0_ & ~0x00000002); done_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbListBucketsResp) } static { defaultInstance = new RpbListBucketsResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbListBucketsResp) } public interface RpbListKeysReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbListKeysReq) com.google.protobuf.MessageOrBuilder { /** * required bytes bucket = 1; */ boolean hasBucket(); /** * required bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * optional uint32 timeout = 2; */ boolean hasTimeout(); /** * optional uint32 timeout = 2; */ int getTimeout(); /** * optional bytes type = 3; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ boolean hasType(); /** * optional bytes type = 3; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ com.google.protobuf.ByteString getType(); } /** * Protobuf type {@code RpbListKeysReq} * *
   * List keys in bucket request
   * 
*/ public static final class RpbListKeysReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbListKeysReq) RpbListKeysReqOrBuilder { // Use RpbListKeysReq.newBuilder() to construct. private RpbListKeysReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbListKeysReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbListKeysReq defaultInstance; public static RpbListKeysReq getDefaultInstance() { return defaultInstance; } public RpbListKeysReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbListKeysReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; timeout_ = input.readUInt32(); break; } case 26: { bitField0_ |= 0x00000004; type_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq.class, com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbListKeysReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbListKeysReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int TIMEOUT_FIELD_NUMBER = 2; private int timeout_; /** * optional uint32 timeout = 2; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 timeout = 2; */ public int getTimeout() { return timeout_; } public static final int TYPE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString type_; /** * optional bytes type = 3; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes type = 3; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public com.google.protobuf.ByteString getType() { return type_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; timeout_ = 0; type_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, timeout_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, type_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, timeout_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, type_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbListKeysReq} * *
     * List keys in bucket request
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbListKeysReq) com.basho.riak.protobuf.RiakKvPB.RpbListKeysReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq.class, com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); timeout_ = 0; bitField0_ = (bitField0_ & ~0x00000002); type_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq build() { com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq result = new com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.timeout_ = timeout_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasTimeout()) { setTimeout(other.getTimeout()); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbListKeysReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private int timeout_ ; /** * optional uint32 timeout = 2; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 timeout = 2; */ public int getTimeout() { return timeout_; } /** * optional uint32 timeout = 2; */ public Builder setTimeout(int value) { bitField0_ |= 0x00000002; timeout_ = value; onChanged(); return this; } /** * optional uint32 timeout = 2; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000002); timeout_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString type_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes type = 3; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes type = 3; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public com.google.protobuf.ByteString getType() { return type_; } /** * optional bytes type = 3; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder setType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * optional bytes type = 3; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = getDefaultInstance().getType(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbListKeysReq) } static { defaultInstance = new RpbListKeysReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbListKeysReq) } public interface RpbListKeysRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbListKeysResp) com.google.protobuf.MessageOrBuilder { /** * repeated bytes keys = 1; */ java.util.List getKeysList(); /** * repeated bytes keys = 1; */ int getKeysCount(); /** * repeated bytes keys = 1; */ com.google.protobuf.ByteString getKeys(int index); /** * optional bool done = 2; */ boolean hasDone(); /** * optional bool done = 2; */ boolean getDone(); } /** * Protobuf type {@code RpbListKeysResp} * *
   * List keys in bucket response - one or more of these packets will be sent
   * the last one will have done set true (and may not have any keys in it)
   * 
*/ public static final class RpbListKeysResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbListKeysResp) RpbListKeysRespOrBuilder { // Use RpbListKeysResp.newBuilder() to construct. private RpbListKeysResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbListKeysResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbListKeysResp defaultInstance; public static RpbListKeysResp getDefaultInstance() { return defaultInstance; } public RpbListKeysResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbListKeysResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } keys_.add(input.readBytes()); break; } case 16: { bitField0_ |= 0x00000001; done_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp.class, com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbListKeysResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbListKeysResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** * repeated bytes keys = 1; */ public java.util.List getKeysList() { return keys_; } /** * repeated bytes keys = 1; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 1; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } public static final int DONE_FIELD_NUMBER = 2; private boolean done_; /** * optional bool done = 2; */ public boolean hasDone() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool done = 2; */ public boolean getDone() { return done_; } private void initFields() { keys_ = java.util.Collections.emptyList(); done_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < keys_.size(); i++) { output.writeBytes(1, keys_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(2, done_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, done_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbListKeysResp} * *
     * List keys in bucket response - one or more of these packets will be sent
     * the last one will have done set true (and may not have any keys in it)
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbListKeysResp) com.basho.riak.protobuf.RiakKvPB.RpbListKeysRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp.class, com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); done_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbListKeysResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp build() { com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp result = new com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000001); } result.keys_ = keys_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.done_ = done_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp.getDefaultInstance()) return this; if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (other.hasDone()) { setDone(other.getDone()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbListKeysResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; } } /** * repeated bytes keys = 1; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** * repeated bytes keys = 1; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 1; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** * repeated bytes keys = 1; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** * repeated bytes keys = 1; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** * repeated bytes keys = 1; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** * repeated bytes keys = 1; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private boolean done_ ; /** * optional bool done = 2; */ public boolean hasDone() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool done = 2; */ public boolean getDone() { return done_; } /** * optional bool done = 2; */ public Builder setDone(boolean value) { bitField0_ |= 0x00000002; done_ = value; onChanged(); return this; } /** * optional bool done = 2; */ public Builder clearDone() { bitField0_ = (bitField0_ & ~0x00000002); done_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbListKeysResp) } static { defaultInstance = new RpbListKeysResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbListKeysResp) } public interface RpbMapRedReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbMapRedReq) com.google.protobuf.MessageOrBuilder { /** * required bytes request = 1; */ boolean hasRequest(); /** * required bytes request = 1; */ com.google.protobuf.ByteString getRequest(); /** * required bytes content_type = 2; */ boolean hasContentType(); /** * required bytes content_type = 2; */ com.google.protobuf.ByteString getContentType(); } /** * Protobuf type {@code RpbMapRedReq} * *
   * Map/Reduce request
   * 
*/ public static final class RpbMapRedReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbMapRedReq) RpbMapRedReqOrBuilder { // Use RpbMapRedReq.newBuilder() to construct. private RpbMapRedReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbMapRedReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbMapRedReq defaultInstance; public static RpbMapRedReq getDefaultInstance() { return defaultInstance; } public RpbMapRedReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbMapRedReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; request_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; contentType_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq.class, com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbMapRedReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbMapRedReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private com.google.protobuf.ByteString request_; /** * required bytes request = 1; */ public boolean hasRequest() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes request = 1; */ public com.google.protobuf.ByteString getRequest() { return request_; } public static final int CONTENT_TYPE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contentType_; /** * required bytes content_type = 2; */ public boolean hasContentType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes content_type = 2; */ public com.google.protobuf.ByteString getContentType() { return contentType_; } private void initFields() { request_ = com.google.protobuf.ByteString.EMPTY; contentType_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRequest()) { memoizedIsInitialized = 0; return false; } if (!hasContentType()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, request_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, contentType_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, request_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, contentType_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbMapRedReq} * *
     * Map/Reduce request
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbMapRedReq) com.basho.riak.protobuf.RiakKvPB.RpbMapRedReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq.class, com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); request_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); contentType_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq build() { com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq result = new com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.request_ = request_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.contentType_ = contentType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq.getDefaultInstance()) return this; if (other.hasRequest()) { setRequest(other.getRequest()); } if (other.hasContentType()) { setContentType(other.getContentType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasRequest()) { return false; } if (!hasContentType()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbMapRedReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString request_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes request = 1; */ public boolean hasRequest() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes request = 1; */ public com.google.protobuf.ByteString getRequest() { return request_; } /** * required bytes request = 1; */ public Builder setRequest(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; request_ = value; onChanged(); return this; } /** * required bytes request = 1; */ public Builder clearRequest() { bitField0_ = (bitField0_ & ~0x00000001); request_ = getDefaultInstance().getRequest(); onChanged(); return this; } private com.google.protobuf.ByteString contentType_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes content_type = 2; */ public boolean hasContentType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes content_type = 2; */ public com.google.protobuf.ByteString getContentType() { return contentType_; } /** * required bytes content_type = 2; */ public Builder setContentType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; contentType_ = value; onChanged(); return this; } /** * required bytes content_type = 2; */ public Builder clearContentType() { bitField0_ = (bitField0_ & ~0x00000002); contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbMapRedReq) } static { defaultInstance = new RpbMapRedReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbMapRedReq) } public interface RpbMapRedRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbMapRedResp) com.google.protobuf.MessageOrBuilder { /** * optional uint32 phase = 1; */ boolean hasPhase(); /** * optional uint32 phase = 1; */ int getPhase(); /** * optional bytes response = 2; */ boolean hasResponse(); /** * optional bytes response = 2; */ com.google.protobuf.ByteString getResponse(); /** * optional bool done = 3; */ boolean hasDone(); /** * optional bool done = 3; */ boolean getDone(); } /** * Protobuf type {@code RpbMapRedResp} * *
   * Map/Reduce response
   * one or more of these packets will be sent the last one will have done set
   * true (and may not have phase/data in it)
   * 
*/ public static final class RpbMapRedResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbMapRedResp) RpbMapRedRespOrBuilder { // Use RpbMapRedResp.newBuilder() to construct. private RpbMapRedResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbMapRedResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbMapRedResp defaultInstance; public static RpbMapRedResp getDefaultInstance() { return defaultInstance; } public RpbMapRedResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbMapRedResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; phase_ = input.readUInt32(); break; } case 18: { bitField0_ |= 0x00000002; response_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; done_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp.class, com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbMapRedResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbMapRedResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int PHASE_FIELD_NUMBER = 1; private int phase_; /** * optional uint32 phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 phase = 1; */ public int getPhase() { return phase_; } public static final int RESPONSE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString response_; /** * optional bytes response = 2; */ public boolean hasResponse() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes response = 2; */ public com.google.protobuf.ByteString getResponse() { return response_; } public static final int DONE_FIELD_NUMBER = 3; private boolean done_; /** * optional bool done = 3; */ public boolean hasDone() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool done = 3; */ public boolean getDone() { return done_; } private void initFields() { phase_ = 0; response_ = com.google.protobuf.ByteString.EMPTY; done_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, phase_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, response_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, done_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, phase_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, response_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, done_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbMapRedResp} * *
     * Map/Reduce response
     * one or more of these packets will be sent the last one will have done set
     * true (and may not have phase/data in it)
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbMapRedResp) com.basho.riak.protobuf.RiakKvPB.RpbMapRedRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp.class, com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); phase_ = 0; bitField0_ = (bitField0_ & ~0x00000001); response_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); done_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbMapRedResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp build() { com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp result = new com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.phase_ = phase_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.response_ = response_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.done_ = done_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp.getDefaultInstance()) return this; if (other.hasPhase()) { setPhase(other.getPhase()); } if (other.hasResponse()) { setResponse(other.getResponse()); } if (other.hasDone()) { setDone(other.getDone()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbMapRedResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int phase_ ; /** * optional uint32 phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 phase = 1; */ public int getPhase() { return phase_; } /** * optional uint32 phase = 1; */ public Builder setPhase(int value) { bitField0_ |= 0x00000001; phase_ = value; onChanged(); return this; } /** * optional uint32 phase = 1; */ public Builder clearPhase() { bitField0_ = (bitField0_ & ~0x00000001); phase_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString response_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes response = 2; */ public boolean hasResponse() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes response = 2; */ public com.google.protobuf.ByteString getResponse() { return response_; } /** * optional bytes response = 2; */ public Builder setResponse(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; response_ = value; onChanged(); return this; } /** * optional bytes response = 2; */ public Builder clearResponse() { bitField0_ = (bitField0_ & ~0x00000002); response_ = getDefaultInstance().getResponse(); onChanged(); return this; } private boolean done_ ; /** * optional bool done = 3; */ public boolean hasDone() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool done = 3; */ public boolean getDone() { return done_; } /** * optional bool done = 3; */ public Builder setDone(boolean value) { bitField0_ |= 0x00000004; done_ = value; onChanged(); return this; } /** * optional bool done = 3; */ public Builder clearDone() { bitField0_ = (bitField0_ & ~0x00000004); done_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbMapRedResp) } static { defaultInstance = new RpbMapRedResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbMapRedResp) } public interface RpbIndexReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbIndexReq) com.google.protobuf.MessageOrBuilder { /** * required bytes bucket = 1; */ boolean hasBucket(); /** * required bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * required bytes index = 2; */ boolean hasIndex(); /** * required bytes index = 2; */ com.google.protobuf.ByteString getIndex(); /** * required .RpbIndexReq.IndexQueryType qtype = 3; */ boolean hasQtype(); /** * required .RpbIndexReq.IndexQueryType qtype = 3; */ com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType getQtype(); /** * optional bytes key = 4; * *
     * key here means equals value for index?
     * 
*/ boolean hasKey(); /** * optional bytes key = 4; * *
     * key here means equals value for index?
     * 
*/ com.google.protobuf.ByteString getKey(); /** * optional bytes range_min = 5; */ boolean hasRangeMin(); /** * optional bytes range_min = 5; */ com.google.protobuf.ByteString getRangeMin(); /** * optional bytes range_max = 6; */ boolean hasRangeMax(); /** * optional bytes range_max = 6; */ com.google.protobuf.ByteString getRangeMax(); /** * optional bool return_terms = 7; */ boolean hasReturnTerms(); /** * optional bool return_terms = 7; */ boolean getReturnTerms(); /** * optional bool stream = 8; */ boolean hasStream(); /** * optional bool stream = 8; */ boolean getStream(); /** * optional uint32 max_results = 9; */ boolean hasMaxResults(); /** * optional uint32 max_results = 9; */ int getMaxResults(); /** * optional bytes continuation = 10; */ boolean hasContinuation(); /** * optional bytes continuation = 10; */ com.google.protobuf.ByteString getContinuation(); /** * optional uint32 timeout = 11; */ boolean hasTimeout(); /** * optional uint32 timeout = 11; */ int getTimeout(); /** * optional bytes type = 12; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ boolean hasType(); /** * optional bytes type = 12; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ com.google.protobuf.ByteString getType(); /** * optional bytes term_regex = 13; */ boolean hasTermRegex(); /** * optional bytes term_regex = 13; */ com.google.protobuf.ByteString getTermRegex(); /** * optional bool pagination_sort = 14; * *
     * Whether to use pagination sort for non-paginated queries
     * 
*/ boolean hasPaginationSort(); /** * optional bool pagination_sort = 14; * *
     * Whether to use pagination sort for non-paginated queries
     * 
*/ boolean getPaginationSort(); /** * optional bytes cover_context = 15; * *
     * parallel extraction extension
     * 
*/ boolean hasCoverContext(); /** * optional bytes cover_context = 15; * *
     * parallel extraction extension
     * 
*/ com.google.protobuf.ByteString getCoverContext(); /** * optional bool return_body = 16; * *
     * Return values with keys, only works with $bucket/$key index queries
     * 
*/ boolean hasReturnBody(); /** * optional bool return_body = 16; * *
     * Return values with keys, only works with $bucket/$key index queries
     * 
*/ boolean getReturnBody(); } /** * Protobuf type {@code RpbIndexReq} * *
   * Secondary Index query request
   * 
*/ public static final class RpbIndexReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbIndexReq) RpbIndexReqOrBuilder { // Use RpbIndexReq.newBuilder() to construct. private RpbIndexReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbIndexReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbIndexReq defaultInstance; public static RpbIndexReq getDefaultInstance() { return defaultInstance; } public RpbIndexReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbIndexReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; index_ = input.readBytes(); break; } case 24: { int rawValue = input.readEnum(); com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType value = com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; qtype_ = value; } break; } case 34: { bitField0_ |= 0x00000008; key_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; rangeMin_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000020; rangeMax_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; returnTerms_ = input.readBool(); break; } case 64: { bitField0_ |= 0x00000080; stream_ = input.readBool(); break; } case 72: { bitField0_ |= 0x00000100; maxResults_ = input.readUInt32(); break; } case 82: { bitField0_ |= 0x00000200; continuation_ = input.readBytes(); break; } case 88: { bitField0_ |= 0x00000400; timeout_ = input.readUInt32(); break; } case 98: { bitField0_ |= 0x00000800; type_ = input.readBytes(); break; } case 106: { bitField0_ |= 0x00001000; termRegex_ = input.readBytes(); break; } case 112: { bitField0_ |= 0x00002000; paginationSort_ = input.readBool(); break; } case 122: { bitField0_ |= 0x00004000; coverContext_ = input.readBytes(); break; } case 128: { bitField0_ |= 0x00008000; returnBody_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.class, com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbIndexReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbIndexReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code RpbIndexReq.IndexQueryType} */ public enum IndexQueryType implements com.google.protobuf.ProtocolMessageEnum { /** * eq = 0; */ eq(0, 0), /** * range = 1; */ range(1, 1), ; /** * eq = 0; */ public static final int eq_VALUE = 0; /** * range = 1; */ public static final int range_VALUE = 1; public final int getNumber() { return value; } public static IndexQueryType valueOf(int value) { switch (value) { case 0: return eq; case 1: return range; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public IndexQueryType findValueByNumber(int number) { return IndexQueryType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.getDescriptor().getEnumTypes().get(0); } private static final IndexQueryType[] VALUES = values(); public static IndexQueryType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private IndexQueryType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:RpbIndexReq.IndexQueryType) } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int INDEX_FIELD_NUMBER = 2; private com.google.protobuf.ByteString index_; /** * required bytes index = 2; */ public boolean hasIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes index = 2; */ public com.google.protobuf.ByteString getIndex() { return index_; } public static final int QTYPE_FIELD_NUMBER = 3; private com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType qtype_; /** * required .RpbIndexReq.IndexQueryType qtype = 3; */ public boolean hasQtype() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .RpbIndexReq.IndexQueryType qtype = 3; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType getQtype() { return qtype_; } public static final int KEY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString key_; /** * optional bytes key = 4; * *
     * key here means equals value for index?
     * 
*/ public boolean hasKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes key = 4; * *
     * key here means equals value for index?
     * 
*/ public com.google.protobuf.ByteString getKey() { return key_; } public static final int RANGE_MIN_FIELD_NUMBER = 5; private com.google.protobuf.ByteString rangeMin_; /** * optional bytes range_min = 5; */ public boolean hasRangeMin() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bytes range_min = 5; */ public com.google.protobuf.ByteString getRangeMin() { return rangeMin_; } public static final int RANGE_MAX_FIELD_NUMBER = 6; private com.google.protobuf.ByteString rangeMax_; /** * optional bytes range_max = 6; */ public boolean hasRangeMax() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes range_max = 6; */ public com.google.protobuf.ByteString getRangeMax() { return rangeMax_; } public static final int RETURN_TERMS_FIELD_NUMBER = 7; private boolean returnTerms_; /** * optional bool return_terms = 7; */ public boolean hasReturnTerms() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool return_terms = 7; */ public boolean getReturnTerms() { return returnTerms_; } public static final int STREAM_FIELD_NUMBER = 8; private boolean stream_; /** * optional bool stream = 8; */ public boolean hasStream() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool stream = 8; */ public boolean getStream() { return stream_; } public static final int MAX_RESULTS_FIELD_NUMBER = 9; private int maxResults_; /** * optional uint32 max_results = 9; */ public boolean hasMaxResults() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint32 max_results = 9; */ public int getMaxResults() { return maxResults_; } public static final int CONTINUATION_FIELD_NUMBER = 10; private com.google.protobuf.ByteString continuation_; /** * optional bytes continuation = 10; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bytes continuation = 10; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } public static final int TIMEOUT_FIELD_NUMBER = 11; private int timeout_; /** * optional uint32 timeout = 11; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional uint32 timeout = 11; */ public int getTimeout() { return timeout_; } public static final int TYPE_FIELD_NUMBER = 12; private com.google.protobuf.ByteString type_; /** * optional bytes type = 12; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional bytes type = 12; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public com.google.protobuf.ByteString getType() { return type_; } public static final int TERM_REGEX_FIELD_NUMBER = 13; private com.google.protobuf.ByteString termRegex_; /** * optional bytes term_regex = 13; */ public boolean hasTermRegex() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bytes term_regex = 13; */ public com.google.protobuf.ByteString getTermRegex() { return termRegex_; } public static final int PAGINATION_SORT_FIELD_NUMBER = 14; private boolean paginationSort_; /** * optional bool pagination_sort = 14; * *
     * Whether to use pagination sort for non-paginated queries
     * 
*/ public boolean hasPaginationSort() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional bool pagination_sort = 14; * *
     * Whether to use pagination sort for non-paginated queries
     * 
*/ public boolean getPaginationSort() { return paginationSort_; } public static final int COVER_CONTEXT_FIELD_NUMBER = 15; private com.google.protobuf.ByteString coverContext_; /** * optional bytes cover_context = 15; * *
     * parallel extraction extension
     * 
*/ public boolean hasCoverContext() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional bytes cover_context = 15; * *
     * parallel extraction extension
     * 
*/ public com.google.protobuf.ByteString getCoverContext() { return coverContext_; } public static final int RETURN_BODY_FIELD_NUMBER = 16; private boolean returnBody_; /** * optional bool return_body = 16; * *
     * Return values with keys, only works with $bucket/$key index queries
     * 
*/ public boolean hasReturnBody() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional bool return_body = 16; * *
     * Return values with keys, only works with $bucket/$key index queries
     * 
*/ public boolean getReturnBody() { return returnBody_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; index_ = com.google.protobuf.ByteString.EMPTY; qtype_ = com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType.eq; key_ = com.google.protobuf.ByteString.EMPTY; rangeMin_ = com.google.protobuf.ByteString.EMPTY; rangeMax_ = com.google.protobuf.ByteString.EMPTY; returnTerms_ = false; stream_ = false; maxResults_ = 0; continuation_ = com.google.protobuf.ByteString.EMPTY; timeout_ = 0; type_ = com.google.protobuf.ByteString.EMPTY; termRegex_ = com.google.protobuf.ByteString.EMPTY; paginationSort_ = false; coverContext_ = com.google.protobuf.ByteString.EMPTY; returnBody_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } if (!hasIndex()) { memoizedIsInitialized = 0; return false; } if (!hasQtype()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, index_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, qtype_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, key_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, rangeMin_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, rangeMax_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, returnTerms_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(8, stream_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeUInt32(9, maxResults_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(10, continuation_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeUInt32(11, timeout_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBytes(12, type_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBytes(13, termRegex_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeBool(14, paginationSort_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeBytes(15, coverContext_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeBool(16, returnBody_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, index_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, qtype_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, key_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, rangeMin_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, rangeMax_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, returnTerms_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, stream_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, maxResults_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, continuation_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, timeout_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, type_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, termRegex_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, paginationSort_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, coverContext_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, returnBody_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbIndexReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbIndexReq} * *
     * Secondary Index query request
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbIndexReq) com.basho.riak.protobuf.RiakKvPB.RpbIndexReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.class, com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); index_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); qtype_ = com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType.eq; bitField0_ = (bitField0_ & ~0x00000004); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); rangeMin_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); rangeMax_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); returnTerms_ = false; bitField0_ = (bitField0_ & ~0x00000040); stream_ = false; bitField0_ = (bitField0_ & ~0x00000080); maxResults_ = 0; bitField0_ = (bitField0_ & ~0x00000100); continuation_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); timeout_ = 0; bitField0_ = (bitField0_ & ~0x00000400); type_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000800); termRegex_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); paginationSort_ = false; bitField0_ = (bitField0_ & ~0x00002000); coverContext_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); returnBody_ = false; bitField0_ = (bitField0_ & ~0x00008000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbIndexReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbIndexReq build() { com.basho.riak.protobuf.RiakKvPB.RpbIndexReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbIndexReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbIndexReq result = new com.basho.riak.protobuf.RiakKvPB.RpbIndexReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.index_ = index_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.qtype_ = qtype_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.key_ = key_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.rangeMin_ = rangeMin_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.rangeMax_ = rangeMax_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.returnTerms_ = returnTerms_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.stream_ = stream_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.maxResults_ = maxResults_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.continuation_ = continuation_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.timeout_ = timeout_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.type_ = type_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.termRegex_ = termRegex_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.paginationSort_ = paginationSort_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.coverContext_ = coverContext_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.returnBody_ = returnBody_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbIndexReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbIndexReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbIndexReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasIndex()) { setIndex(other.getIndex()); } if (other.hasQtype()) { setQtype(other.getQtype()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasRangeMin()) { setRangeMin(other.getRangeMin()); } if (other.hasRangeMax()) { setRangeMax(other.getRangeMax()); } if (other.hasReturnTerms()) { setReturnTerms(other.getReturnTerms()); } if (other.hasStream()) { setStream(other.getStream()); } if (other.hasMaxResults()) { setMaxResults(other.getMaxResults()); } if (other.hasContinuation()) { setContinuation(other.getContinuation()); } if (other.hasTimeout()) { setTimeout(other.getTimeout()); } if (other.hasType()) { setType(other.getType()); } if (other.hasTermRegex()) { setTermRegex(other.getTermRegex()); } if (other.hasPaginationSort()) { setPaginationSort(other.getPaginationSort()); } if (other.hasCoverContext()) { setCoverContext(other.getCoverContext()); } if (other.hasReturnBody()) { setReturnBody(other.getReturnBody()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } if (!hasIndex()) { return false; } if (!hasQtype()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbIndexReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbIndexReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private com.google.protobuf.ByteString index_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes index = 2; */ public boolean hasIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes index = 2; */ public com.google.protobuf.ByteString getIndex() { return index_; } /** * required bytes index = 2; */ public Builder setIndex(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; index_ = value; onChanged(); return this; } /** * required bytes index = 2; */ public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000002); index_ = getDefaultInstance().getIndex(); onChanged(); return this; } private com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType qtype_ = com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType.eq; /** * required .RpbIndexReq.IndexQueryType qtype = 3; */ public boolean hasQtype() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .RpbIndexReq.IndexQueryType qtype = 3; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType getQtype() { return qtype_; } /** * required .RpbIndexReq.IndexQueryType qtype = 3; */ public Builder setQtype(com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; qtype_ = value; onChanged(); return this; } /** * required .RpbIndexReq.IndexQueryType qtype = 3; */ public Builder clearQtype() { bitField0_ = (bitField0_ & ~0x00000004); qtype_ = com.basho.riak.protobuf.RiakKvPB.RpbIndexReq.IndexQueryType.eq; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes key = 4; * *
       * key here means equals value for index?
       * 
*/ public boolean hasKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes key = 4; * *
       * key here means equals value for index?
       * 
*/ public com.google.protobuf.ByteString getKey() { return key_; } /** * optional bytes key = 4; * *
       * key here means equals value for index?
       * 
*/ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; key_ = value; onChanged(); return this; } /** * optional bytes key = 4; * *
       * key here means equals value for index?
       * 
*/ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000008); key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString rangeMin_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes range_min = 5; */ public boolean hasRangeMin() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bytes range_min = 5; */ public com.google.protobuf.ByteString getRangeMin() { return rangeMin_; } /** * optional bytes range_min = 5; */ public Builder setRangeMin(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; rangeMin_ = value; onChanged(); return this; } /** * optional bytes range_min = 5; */ public Builder clearRangeMin() { bitField0_ = (bitField0_ & ~0x00000010); rangeMin_ = getDefaultInstance().getRangeMin(); onChanged(); return this; } private com.google.protobuf.ByteString rangeMax_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes range_max = 6; */ public boolean hasRangeMax() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes range_max = 6; */ public com.google.protobuf.ByteString getRangeMax() { return rangeMax_; } /** * optional bytes range_max = 6; */ public Builder setRangeMax(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; rangeMax_ = value; onChanged(); return this; } /** * optional bytes range_max = 6; */ public Builder clearRangeMax() { bitField0_ = (bitField0_ & ~0x00000020); rangeMax_ = getDefaultInstance().getRangeMax(); onChanged(); return this; } private boolean returnTerms_ ; /** * optional bool return_terms = 7; */ public boolean hasReturnTerms() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool return_terms = 7; */ public boolean getReturnTerms() { return returnTerms_; } /** * optional bool return_terms = 7; */ public Builder setReturnTerms(boolean value) { bitField0_ |= 0x00000040; returnTerms_ = value; onChanged(); return this; } /** * optional bool return_terms = 7; */ public Builder clearReturnTerms() { bitField0_ = (bitField0_ & ~0x00000040); returnTerms_ = false; onChanged(); return this; } private boolean stream_ ; /** * optional bool stream = 8; */ public boolean hasStream() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool stream = 8; */ public boolean getStream() { return stream_; } /** * optional bool stream = 8; */ public Builder setStream(boolean value) { bitField0_ |= 0x00000080; stream_ = value; onChanged(); return this; } /** * optional bool stream = 8; */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000080); stream_ = false; onChanged(); return this; } private int maxResults_ ; /** * optional uint32 max_results = 9; */ public boolean hasMaxResults() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint32 max_results = 9; */ public int getMaxResults() { return maxResults_; } /** * optional uint32 max_results = 9; */ public Builder setMaxResults(int value) { bitField0_ |= 0x00000100; maxResults_ = value; onChanged(); return this; } /** * optional uint32 max_results = 9; */ public Builder clearMaxResults() { bitField0_ = (bitField0_ & ~0x00000100); maxResults_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString continuation_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes continuation = 10; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bytes continuation = 10; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } /** * optional bytes continuation = 10; */ public Builder setContinuation(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; continuation_ = value; onChanged(); return this; } /** * optional bytes continuation = 10; */ public Builder clearContinuation() { bitField0_ = (bitField0_ & ~0x00000200); continuation_ = getDefaultInstance().getContinuation(); onChanged(); return this; } private int timeout_ ; /** * optional uint32 timeout = 11; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional uint32 timeout = 11; */ public int getTimeout() { return timeout_; } /** * optional uint32 timeout = 11; */ public Builder setTimeout(int value) { bitField0_ |= 0x00000400; timeout_ = value; onChanged(); return this; } /** * optional uint32 timeout = 11; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000400); timeout_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString type_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes type = 12; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional bytes type = 12; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public com.google.protobuf.ByteString getType() { return type_; } /** * optional bytes type = 12; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder setType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; type_ = value; onChanged(); return this; } /** * optional bytes type = 12; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000800); type_ = getDefaultInstance().getType(); onChanged(); return this; } private com.google.protobuf.ByteString termRegex_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes term_regex = 13; */ public boolean hasTermRegex() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bytes term_regex = 13; */ public com.google.protobuf.ByteString getTermRegex() { return termRegex_; } /** * optional bytes term_regex = 13; */ public Builder setTermRegex(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; termRegex_ = value; onChanged(); return this; } /** * optional bytes term_regex = 13; */ public Builder clearTermRegex() { bitField0_ = (bitField0_ & ~0x00001000); termRegex_ = getDefaultInstance().getTermRegex(); onChanged(); return this; } private boolean paginationSort_ ; /** * optional bool pagination_sort = 14; * *
       * Whether to use pagination sort for non-paginated queries
       * 
*/ public boolean hasPaginationSort() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional bool pagination_sort = 14; * *
       * Whether to use pagination sort for non-paginated queries
       * 
*/ public boolean getPaginationSort() { return paginationSort_; } /** * optional bool pagination_sort = 14; * *
       * Whether to use pagination sort for non-paginated queries
       * 
*/ public Builder setPaginationSort(boolean value) { bitField0_ |= 0x00002000; paginationSort_ = value; onChanged(); return this; } /** * optional bool pagination_sort = 14; * *
       * Whether to use pagination sort for non-paginated queries
       * 
*/ public Builder clearPaginationSort() { bitField0_ = (bitField0_ & ~0x00002000); paginationSort_ = false; onChanged(); return this; } private com.google.protobuf.ByteString coverContext_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes cover_context = 15; * *
       * parallel extraction extension
       * 
*/ public boolean hasCoverContext() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional bytes cover_context = 15; * *
       * parallel extraction extension
       * 
*/ public com.google.protobuf.ByteString getCoverContext() { return coverContext_; } /** * optional bytes cover_context = 15; * *
       * parallel extraction extension
       * 
*/ public Builder setCoverContext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; coverContext_ = value; onChanged(); return this; } /** * optional bytes cover_context = 15; * *
       * parallel extraction extension
       * 
*/ public Builder clearCoverContext() { bitField0_ = (bitField0_ & ~0x00004000); coverContext_ = getDefaultInstance().getCoverContext(); onChanged(); return this; } private boolean returnBody_ ; /** * optional bool return_body = 16; * *
       * Return values with keys, only works with $bucket/$key index queries
       * 
*/ public boolean hasReturnBody() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional bool return_body = 16; * *
       * Return values with keys, only works with $bucket/$key index queries
       * 
*/ public boolean getReturnBody() { return returnBody_; } /** * optional bool return_body = 16; * *
       * Return values with keys, only works with $bucket/$key index queries
       * 
*/ public Builder setReturnBody(boolean value) { bitField0_ |= 0x00008000; returnBody_ = value; onChanged(); return this; } /** * optional bool return_body = 16; * *
       * Return values with keys, only works with $bucket/$key index queries
       * 
*/ public Builder clearReturnBody() { bitField0_ = (bitField0_ & ~0x00008000); returnBody_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbIndexReq) } static { defaultInstance = new RpbIndexReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbIndexReq) } public interface RpbIndexRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbIndexResp) com.google.protobuf.MessageOrBuilder { /** * repeated bytes keys = 1; */ java.util.List getKeysList(); /** * repeated bytes keys = 1; */ int getKeysCount(); /** * repeated bytes keys = 1; */ com.google.protobuf.ByteString getKeys(int index); /** * repeated .RpbPair results = 2; */ java.util.List getResultsList(); /** * repeated .RpbPair results = 2; */ com.basho.riak.protobuf.RiakPB.RpbPair getResults(int index); /** * repeated .RpbPair results = 2; */ int getResultsCount(); /** * repeated .RpbPair results = 2; */ java.util.List getResultsOrBuilderList(); /** * repeated .RpbPair results = 2; */ com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder getResultsOrBuilder( int index); /** * optional bytes continuation = 3; */ boolean hasContinuation(); /** * optional bytes continuation = 3; */ com.google.protobuf.ByteString getContinuation(); /** * optional bool done = 4; */ boolean hasDone(); /** * optional bool done = 4; */ boolean getDone(); } /** * Protobuf type {@code RpbIndexResp} * *
   * Secondary Index query response
   * 
*/ public static final class RpbIndexResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbIndexResp) RpbIndexRespOrBuilder { // Use RpbIndexResp.newBuilder() to construct. private RpbIndexResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbIndexResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbIndexResp defaultInstance; public static RpbIndexResp getDefaultInstance() { return defaultInstance; } public RpbIndexResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbIndexResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } keys_.add(input.readBytes()); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } results_.add(input.readMessage(com.basho.riak.protobuf.RiakPB.RpbPair.PARSER, extensionRegistry)); break; } case 26: { bitField0_ |= 0x00000001; continuation_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000002; done_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { keys_ = java.util.Collections.unmodifiableList(keys_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbIndexResp.class, com.basho.riak.protobuf.RiakKvPB.RpbIndexResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbIndexResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbIndexResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** * repeated bytes keys = 1; */ public java.util.List getKeysList() { return keys_; } /** * repeated bytes keys = 1; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 1; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** * repeated .RpbPair results = 2; */ public java.util.List getResultsList() { return results_; } /** * repeated .RpbPair results = 2; */ public java.util.List getResultsOrBuilderList() { return results_; } /** * repeated .RpbPair results = 2; */ public int getResultsCount() { return results_.size(); } /** * repeated .RpbPair results = 2; */ public com.basho.riak.protobuf.RiakPB.RpbPair getResults(int index) { return results_.get(index); } /** * repeated .RpbPair results = 2; */ public com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } public static final int CONTINUATION_FIELD_NUMBER = 3; private com.google.protobuf.ByteString continuation_; /** * optional bytes continuation = 3; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes continuation = 3; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } public static final int DONE_FIELD_NUMBER = 4; private boolean done_; /** * optional bool done = 4; */ public boolean hasDone() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool done = 4; */ public boolean getDone() { return done_; } private void initFields() { keys_ = java.util.Collections.emptyList(); results_ = java.util.Collections.emptyList(); continuation_ = com.google.protobuf.ByteString.EMPTY; done_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getResultsCount(); i++) { if (!getResults(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < keys_.size(); i++) { output.writeBytes(1, keys_.get(i)); } for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(3, continuation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(4, done_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, continuation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, done_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbIndexResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbIndexResp} * *
     * Secondary Index query response
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbIndexResp) com.basho.riak.protobuf.RiakKvPB.RpbIndexRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbIndexResp.class, com.basho.riak.protobuf.RiakKvPB.RpbIndexResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbIndexResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getResultsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } continuation_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); done_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbIndexResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbIndexResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbIndexResp build() { com.basho.riak.protobuf.RiakKvPB.RpbIndexResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbIndexResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbIndexResp result = new com.basho.riak.protobuf.RiakKvPB.RpbIndexResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000001); } result.keys_ = keys_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.continuation_ = continuation_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } result.done_ = done_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbIndexResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbIndexResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbIndexResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbIndexResp.getDefaultInstance()) return this; if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); } onChanged(); } } else { if (!other.results_.isEmpty()) { if (resultsBuilder_.isEmpty()) { resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } } } if (other.hasContinuation()) { setContinuation(other.getContinuation()); } if (other.hasDone()) { setDone(other.getDone()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getResultsCount(); i++) { if (!getResults(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbIndexResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbIndexResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; } } /** * repeated bytes keys = 1; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** * repeated bytes keys = 1; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 1; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** * repeated bytes keys = 1; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** * repeated bytes keys = 1; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** * repeated bytes keys = 1; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** * repeated bytes keys = 1; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakPB.RpbPair, com.basho.riak.protobuf.RiakPB.RpbPair.Builder, com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder> resultsBuilder_; /** * repeated .RpbPair results = 2; */ public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { return resultsBuilder_.getMessageList(); } } /** * repeated .RpbPair results = 2; */ public int getResultsCount() { if (resultsBuilder_ == null) { return results_.size(); } else { return resultsBuilder_.getCount(); } } /** * repeated .RpbPair results = 2; */ public com.basho.riak.protobuf.RiakPB.RpbPair getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessage(index); } } /** * repeated .RpbPair results = 2; */ public Builder setResults( int index, com.basho.riak.protobuf.RiakPB.RpbPair value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.set(index, value); onChanged(); } else { resultsBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbPair results = 2; */ public Builder setResults( int index, com.basho.riak.protobuf.RiakPB.RpbPair.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbPair results = 2; */ public Builder addResults(com.basho.riak.protobuf.RiakPB.RpbPair value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(value); onChanged(); } else { resultsBuilder_.addMessage(value); } return this; } /** * repeated .RpbPair results = 2; */ public Builder addResults( int index, com.basho.riak.protobuf.RiakPB.RpbPair value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(index, value); onChanged(); } else { resultsBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbPair results = 2; */ public Builder addResults( com.basho.riak.protobuf.RiakPB.RpbPair.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbPair results = 2; */ public Builder addResults( int index, com.basho.riak.protobuf.RiakPB.RpbPair.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbPair results = 2; */ public Builder addAllResults( java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbPair results = 2; */ public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); } return this; } /** * repeated .RpbPair results = 2; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.remove(index); onChanged(); } else { resultsBuilder_.remove(index); } return this; } /** * repeated .RpbPair results = 2; */ public com.basho.riak.protobuf.RiakPB.RpbPair.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** * repeated .RpbPair results = 2; */ public com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbPair results = 2; */ public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(results_); } } /** * repeated .RpbPair results = 2; */ public com.basho.riak.protobuf.RiakPB.RpbPair.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakPB.RpbPair.getDefaultInstance()); } /** * repeated .RpbPair results = 2; */ public com.basho.riak.protobuf.RiakPB.RpbPair.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakPB.RpbPair.getDefaultInstance()); } /** * repeated .RpbPair results = 2; */ public java.util.List getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakPB.RpbPair, com.basho.riak.protobuf.RiakPB.RpbPair.Builder, com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakPB.RpbPair, com.basho.riak.protobuf.RiakPB.RpbPair.Builder, com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder>( results_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } private com.google.protobuf.ByteString continuation_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes continuation = 3; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes continuation = 3; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } /** * optional bytes continuation = 3; */ public Builder setContinuation(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; continuation_ = value; onChanged(); return this; } /** * optional bytes continuation = 3; */ public Builder clearContinuation() { bitField0_ = (bitField0_ & ~0x00000004); continuation_ = getDefaultInstance().getContinuation(); onChanged(); return this; } private boolean done_ ; /** * optional bool done = 4; */ public boolean hasDone() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool done = 4; */ public boolean getDone() { return done_; } /** * optional bool done = 4; */ public Builder setDone(boolean value) { bitField0_ |= 0x00000008; done_ = value; onChanged(); return this; } /** * optional bool done = 4; */ public Builder clearDone() { bitField0_ = (bitField0_ & ~0x00000008); done_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbIndexResp) } static { defaultInstance = new RpbIndexResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbIndexResp) } public interface RpbIndexBodyRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbIndexBodyResp) com.google.protobuf.MessageOrBuilder { /** * repeated .RpbIndexObject objects = 1; */ java.util.List getObjectsList(); /** * repeated .RpbIndexObject objects = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbIndexObject getObjects(int index); /** * repeated .RpbIndexObject objects = 1; */ int getObjectsCount(); /** * repeated .RpbIndexObject objects = 1; */ java.util.List getObjectsOrBuilderList(); /** * repeated .RpbIndexObject objects = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder getObjectsOrBuilder( int index); /** * optional bytes continuation = 2; */ boolean hasContinuation(); /** * optional bytes continuation = 2; */ com.google.protobuf.ByteString getContinuation(); /** * optional bool done = 3; */ boolean hasDone(); /** * optional bool done = 3; */ boolean getDone(); } /** * Protobuf type {@code RpbIndexBodyResp} * *
   * Stolen from CS bucket response, to be used when return_body=true
   * 
*/ public static final class RpbIndexBodyResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbIndexBodyResp) RpbIndexBodyRespOrBuilder { // Use RpbIndexBodyResp.newBuilder() to construct. private RpbIndexBodyResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbIndexBodyResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbIndexBodyResp defaultInstance; public static RpbIndexBodyResp getDefaultInstance() { return defaultInstance; } public RpbIndexBodyResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbIndexBodyResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { objects_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } objects_.add(input.readMessage(com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.PARSER, extensionRegistry)); break; } case 18: { bitField0_ |= 0x00000001; continuation_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000002; done_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { objects_ = java.util.Collections.unmodifiableList(objects_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexBodyResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexBodyResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp.class, com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbIndexBodyResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbIndexBodyResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int OBJECTS_FIELD_NUMBER = 1; private java.util.List objects_; /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsList() { return objects_; } /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsOrBuilderList() { return objects_; } /** * repeated .RpbIndexObject objects = 1; */ public int getObjectsCount() { return objects_.size(); } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject getObjects(int index) { return objects_.get(index); } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder getObjectsOrBuilder( int index) { return objects_.get(index); } public static final int CONTINUATION_FIELD_NUMBER = 2; private com.google.protobuf.ByteString continuation_; /** * optional bytes continuation = 2; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes continuation = 2; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } public static final int DONE_FIELD_NUMBER = 3; private boolean done_; /** * optional bool done = 3; */ public boolean hasDone() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool done = 3; */ public boolean getDone() { return done_; } private void initFields() { objects_ = java.util.Collections.emptyList(); continuation_ = com.google.protobuf.ByteString.EMPTY; done_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getObjectsCount(); i++) { if (!getObjects(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < objects_.size(); i++) { output.writeMessage(1, objects_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, continuation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, done_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < objects_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, objects_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, continuation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, done_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbIndexBodyResp} * *
     * Stolen from CS bucket response, to be used when return_body=true
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbIndexBodyResp) com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexBodyResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexBodyResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp.class, com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getObjectsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (objectsBuilder_ == null) { objects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { objectsBuilder_.clear(); } continuation_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); done_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexBodyResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp build() { com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp result = new com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (objectsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { objects_ = java.util.Collections.unmodifiableList(objects_); bitField0_ = (bitField0_ & ~0x00000001); } result.objects_ = objects_; } else { result.objects_ = objectsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.continuation_ = continuation_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.done_ = done_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp.getDefaultInstance()) return this; if (objectsBuilder_ == null) { if (!other.objects_.isEmpty()) { if (objects_.isEmpty()) { objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureObjectsIsMutable(); objects_.addAll(other.objects_); } onChanged(); } } else { if (!other.objects_.isEmpty()) { if (objectsBuilder_.isEmpty()) { objectsBuilder_.dispose(); objectsBuilder_ = null; objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000001); objectsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getObjectsFieldBuilder() : null; } else { objectsBuilder_.addAllMessages(other.objects_); } } } if (other.hasContinuation()) { setContinuation(other.getContinuation()); } if (other.hasDone()) { setDone(other.getDone()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getObjectsCount(); i++) { if (!getObjects(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbIndexBodyResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List objects_ = java.util.Collections.emptyList(); private void ensureObjectsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { objects_ = new java.util.ArrayList(objects_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbIndexObject, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder, com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder> objectsBuilder_; /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsList() { if (objectsBuilder_ == null) { return java.util.Collections.unmodifiableList(objects_); } else { return objectsBuilder_.getMessageList(); } } /** * repeated .RpbIndexObject objects = 1; */ public int getObjectsCount() { if (objectsBuilder_ == null) { return objects_.size(); } else { return objectsBuilder_.getCount(); } } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject getObjects(int index) { if (objectsBuilder_ == null) { return objects_.get(index); } else { return objectsBuilder_.getMessage(index); } } /** * repeated .RpbIndexObject objects = 1; */ public Builder setObjects( int index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.set(index, value); onChanged(); } else { objectsBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder setObjects( int index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.set(index, builderForValue.build()); onChanged(); } else { objectsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addObjects(com.basho.riak.protobuf.RiakKvPB.RpbIndexObject value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.add(value); onChanged(); } else { objectsBuilder_.addMessage(value); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addObjects( int index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.add(index, value); onChanged(); } else { objectsBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addObjects( com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(builderForValue.build()); onChanged(); } else { objectsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addObjects( int index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(index, builderForValue.build()); onChanged(); } else { objectsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addAllObjects( java.lang.Iterable values) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, objects_); onChanged(); } else { objectsBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder clearObjects() { if (objectsBuilder_ == null) { objects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { objectsBuilder_.clear(); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder removeObjects(int index) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.remove(index); onChanged(); } else { objectsBuilder_.remove(index); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder getObjectsBuilder( int index) { return getObjectsFieldBuilder().getBuilder(index); } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder getObjectsOrBuilder( int index) { if (objectsBuilder_ == null) { return objects_.get(index); } else { return objectsBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsOrBuilderList() { if (objectsBuilder_ != null) { return objectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(objects_); } } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder addObjectsBuilder() { return getObjectsFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.getDefaultInstance()); } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder addObjectsBuilder( int index) { return getObjectsFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.getDefaultInstance()); } /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsBuilderList() { return getObjectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbIndexObject, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder, com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder> getObjectsFieldBuilder() { if (objectsBuilder_ == null) { objectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbIndexObject, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder, com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder>( objects_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); objects_ = null; } return objectsBuilder_; } private com.google.protobuf.ByteString continuation_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes continuation = 2; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes continuation = 2; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } /** * optional bytes continuation = 2; */ public Builder setContinuation(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; continuation_ = value; onChanged(); return this; } /** * optional bytes continuation = 2; */ public Builder clearContinuation() { bitField0_ = (bitField0_ & ~0x00000002); continuation_ = getDefaultInstance().getContinuation(); onChanged(); return this; } private boolean done_ ; /** * optional bool done = 3; */ public boolean hasDone() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool done = 3; */ public boolean getDone() { return done_; } /** * optional bool done = 3; */ public Builder setDone(boolean value) { bitField0_ |= 0x00000004; done_ = value; onChanged(); return this; } /** * optional bool done = 3; */ public Builder clearDone() { bitField0_ = (bitField0_ & ~0x00000004); done_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbIndexBodyResp) } static { defaultInstance = new RpbIndexBodyResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbIndexBodyResp) } public interface RpbCSBucketReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbCSBucketReq) com.google.protobuf.MessageOrBuilder { /** * required bytes bucket = 1; */ boolean hasBucket(); /** * required bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * required bytes start_key = 2; */ boolean hasStartKey(); /** * required bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * optional bytes end_key = 3; */ boolean hasEndKey(); /** * optional bytes end_key = 3; */ com.google.protobuf.ByteString getEndKey(); /** * optional bool start_incl = 4 [default = true]; */ boolean hasStartIncl(); /** * optional bool start_incl = 4 [default = true]; */ boolean getStartIncl(); /** * optional bool end_incl = 5 [default = false]; */ boolean hasEndIncl(); /** * optional bool end_incl = 5 [default = false]; */ boolean getEndIncl(); /** * optional bytes continuation = 6; */ boolean hasContinuation(); /** * optional bytes continuation = 6; */ com.google.protobuf.ByteString getContinuation(); /** * optional uint32 max_results = 7; */ boolean hasMaxResults(); /** * optional uint32 max_results = 7; */ int getMaxResults(); /** * optional uint32 timeout = 8; */ boolean hasTimeout(); /** * optional uint32 timeout = 8; */ int getTimeout(); /** * optional bytes type = 9; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ boolean hasType(); /** * optional bytes type = 9; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ com.google.protobuf.ByteString getType(); /** * optional bytes cover_context = 10; * *
     * parallel extraction extension
     * 
*/ boolean hasCoverContext(); /** * optional bytes cover_context = 10; * *
     * parallel extraction extension
     * 
*/ com.google.protobuf.ByteString getCoverContext(); } /** * Protobuf type {@code RpbCSBucketReq} * *
   * added solely for riak_cs currently
   * for folding over a bucket and returning
   * objects.
   * 
*/ public static final class RpbCSBucketReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbCSBucketReq) RpbCSBucketReqOrBuilder { // Use RpbCSBucketReq.newBuilder() to construct. private RpbCSBucketReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbCSBucketReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbCSBucketReq defaultInstance; public static RpbCSBucketReq getDefaultInstance() { return defaultInstance; } public RpbCSBucketReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbCSBucketReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; startKey_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; endKey_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; startIncl_ = input.readBool(); break; } case 40: { bitField0_ |= 0x00000010; endIncl_ = input.readBool(); break; } case 50: { bitField0_ |= 0x00000020; continuation_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; maxResults_ = input.readUInt32(); break; } case 64: { bitField0_ |= 0x00000080; timeout_ = input.readUInt32(); break; } case 74: { bitField0_ |= 0x00000100; type_ = input.readBytes(); break; } case 82: { bitField0_ |= 0x00000200; coverContext_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq.class, com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbCSBucketReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbCSBucketReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * required bytes start_key = 2; */ public boolean hasStartKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString endKey_; /** * optional bytes end_key = 3; */ public boolean hasEndKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int START_INCL_FIELD_NUMBER = 4; private boolean startIncl_; /** * optional bool start_incl = 4 [default = true]; */ public boolean hasStartIncl() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool start_incl = 4 [default = true]; */ public boolean getStartIncl() { return startIncl_; } public static final int END_INCL_FIELD_NUMBER = 5; private boolean endIncl_; /** * optional bool end_incl = 5 [default = false]; */ public boolean hasEndIncl() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bool end_incl = 5 [default = false]; */ public boolean getEndIncl() { return endIncl_; } public static final int CONTINUATION_FIELD_NUMBER = 6; private com.google.protobuf.ByteString continuation_; /** * optional bytes continuation = 6; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes continuation = 6; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } public static final int MAX_RESULTS_FIELD_NUMBER = 7; private int maxResults_; /** * optional uint32 max_results = 7; */ public boolean hasMaxResults() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 max_results = 7; */ public int getMaxResults() { return maxResults_; } public static final int TIMEOUT_FIELD_NUMBER = 8; private int timeout_; /** * optional uint32 timeout = 8; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 timeout = 8; */ public int getTimeout() { return timeout_; } public static final int TYPE_FIELD_NUMBER = 9; private com.google.protobuf.ByteString type_; /** * optional bytes type = 9; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bytes type = 9; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public com.google.protobuf.ByteString getType() { return type_; } public static final int COVER_CONTEXT_FIELD_NUMBER = 10; private com.google.protobuf.ByteString coverContext_; /** * optional bytes cover_context = 10; * *
     * parallel extraction extension
     * 
*/ public boolean hasCoverContext() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bytes cover_context = 10; * *
     * parallel extraction extension
     * 
*/ public com.google.protobuf.ByteString getCoverContext() { return coverContext_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; startIncl_ = true; endIncl_ = false; continuation_ = com.google.protobuf.ByteString.EMPTY; maxResults_ = 0; timeout_ = 0; type_ = com.google.protobuf.ByteString.EMPTY; coverContext_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } if (!hasStartKey()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, startKey_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, endKey_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, startIncl_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, endIncl_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, continuation_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, maxResults_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(8, timeout_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(9, type_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(10, coverContext_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, endKey_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, startIncl_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, endIncl_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, continuation_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, maxResults_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, timeout_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, type_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, coverContext_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbCSBucketReq} * *
     * added solely for riak_cs currently
     * for folding over a bucket and returning
     * objects.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbCSBucketReq) com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq.class, com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); startKey_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); endKey_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); startIncl_ = true; bitField0_ = (bitField0_ & ~0x00000008); endIncl_ = false; bitField0_ = (bitField0_ & ~0x00000010); continuation_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); maxResults_ = 0; bitField0_ = (bitField0_ & ~0x00000040); timeout_ = 0; bitField0_ = (bitField0_ & ~0x00000080); type_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); coverContext_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq build() { com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq result = new com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.startKey_ = startKey_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.endKey_ = endKey_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.startIncl_ = startIncl_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.endIncl_ = endIncl_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.continuation_ = continuation_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.maxResults_ = maxResults_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.timeout_ = timeout_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.type_ = type_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.coverContext_ = coverContext_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasStartKey()) { setStartKey(other.getStartKey()); } if (other.hasEndKey()) { setEndKey(other.getEndKey()); } if (other.hasStartIncl()) { setStartIncl(other.getStartIncl()); } if (other.hasEndIncl()) { setEndIncl(other.getEndIncl()); } if (other.hasContinuation()) { setContinuation(other.getContinuation()); } if (other.hasMaxResults()) { setMaxResults(other.getMaxResults()); } if (other.hasTimeout()) { setTimeout(other.getTimeout()); } if (other.hasType()) { setType(other.getType()); } if (other.hasCoverContext()) { setCoverContext(other.getCoverContext()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } if (!hasStartKey()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbCSBucketReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes start_key = 2; */ public boolean hasStartKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * required bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; startKey_ = value; onChanged(); return this; } /** * required bytes start_key = 2; */ public Builder clearStartKey() { bitField0_ = (bitField0_ & ~0x00000002); startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes end_key = 3; */ public boolean hasEndKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * optional bytes end_key = 3; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; endKey_ = value; onChanged(); return this; } /** * optional bytes end_key = 3; */ public Builder clearEndKey() { bitField0_ = (bitField0_ & ~0x00000004); endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private boolean startIncl_ = true; /** * optional bool start_incl = 4 [default = true]; */ public boolean hasStartIncl() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool start_incl = 4 [default = true]; */ public boolean getStartIncl() { return startIncl_; } /** * optional bool start_incl = 4 [default = true]; */ public Builder setStartIncl(boolean value) { bitField0_ |= 0x00000008; startIncl_ = value; onChanged(); return this; } /** * optional bool start_incl = 4 [default = true]; */ public Builder clearStartIncl() { bitField0_ = (bitField0_ & ~0x00000008); startIncl_ = true; onChanged(); return this; } private boolean endIncl_ ; /** * optional bool end_incl = 5 [default = false]; */ public boolean hasEndIncl() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bool end_incl = 5 [default = false]; */ public boolean getEndIncl() { return endIncl_; } /** * optional bool end_incl = 5 [default = false]; */ public Builder setEndIncl(boolean value) { bitField0_ |= 0x00000010; endIncl_ = value; onChanged(); return this; } /** * optional bool end_incl = 5 [default = false]; */ public Builder clearEndIncl() { bitField0_ = (bitField0_ & ~0x00000010); endIncl_ = false; onChanged(); return this; } private com.google.protobuf.ByteString continuation_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes continuation = 6; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes continuation = 6; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } /** * optional bytes continuation = 6; */ public Builder setContinuation(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; continuation_ = value; onChanged(); return this; } /** * optional bytes continuation = 6; */ public Builder clearContinuation() { bitField0_ = (bitField0_ & ~0x00000020); continuation_ = getDefaultInstance().getContinuation(); onChanged(); return this; } private int maxResults_ ; /** * optional uint32 max_results = 7; */ public boolean hasMaxResults() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 max_results = 7; */ public int getMaxResults() { return maxResults_; } /** * optional uint32 max_results = 7; */ public Builder setMaxResults(int value) { bitField0_ |= 0x00000040; maxResults_ = value; onChanged(); return this; } /** * optional uint32 max_results = 7; */ public Builder clearMaxResults() { bitField0_ = (bitField0_ & ~0x00000040); maxResults_ = 0; onChanged(); return this; } private int timeout_ ; /** * optional uint32 timeout = 8; */ public boolean hasTimeout() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 timeout = 8; */ public int getTimeout() { return timeout_; } /** * optional uint32 timeout = 8; */ public Builder setTimeout(int value) { bitField0_ |= 0x00000080; timeout_ = value; onChanged(); return this; } /** * optional uint32 timeout = 8; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000080); timeout_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString type_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes type = 9; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bytes type = 9; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public com.google.protobuf.ByteString getType() { return type_; } /** * optional bytes type = 9; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder setType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; type_ = value; onChanged(); return this; } /** * optional bytes type = 9; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000100); type_ = getDefaultInstance().getType(); onChanged(); return this; } private com.google.protobuf.ByteString coverContext_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes cover_context = 10; * *
       * parallel extraction extension
       * 
*/ public boolean hasCoverContext() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bytes cover_context = 10; * *
       * parallel extraction extension
       * 
*/ public com.google.protobuf.ByteString getCoverContext() { return coverContext_; } /** * optional bytes cover_context = 10; * *
       * parallel extraction extension
       * 
*/ public Builder setCoverContext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; coverContext_ = value; onChanged(); return this; } /** * optional bytes cover_context = 10; * *
       * parallel extraction extension
       * 
*/ public Builder clearCoverContext() { bitField0_ = (bitField0_ & ~0x00000200); coverContext_ = getDefaultInstance().getCoverContext(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbCSBucketReq) } static { defaultInstance = new RpbCSBucketReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbCSBucketReq) } public interface RpbCSBucketRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbCSBucketResp) com.google.protobuf.MessageOrBuilder { /** * repeated .RpbIndexObject objects = 1; */ java.util.List getObjectsList(); /** * repeated .RpbIndexObject objects = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbIndexObject getObjects(int index); /** * repeated .RpbIndexObject objects = 1; */ int getObjectsCount(); /** * repeated .RpbIndexObject objects = 1; */ java.util.List getObjectsOrBuilderList(); /** * repeated .RpbIndexObject objects = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder getObjectsOrBuilder( int index); /** * optional bytes continuation = 2; */ boolean hasContinuation(); /** * optional bytes continuation = 2; */ com.google.protobuf.ByteString getContinuation(); /** * optional bool done = 3; */ boolean hasDone(); /** * optional bool done = 3; */ boolean getDone(); } /** * Protobuf type {@code RpbCSBucketResp} * *
   * return for CS bucket fold
   * 
*/ public static final class RpbCSBucketResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbCSBucketResp) RpbCSBucketRespOrBuilder { // Use RpbCSBucketResp.newBuilder() to construct. private RpbCSBucketResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbCSBucketResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbCSBucketResp defaultInstance; public static RpbCSBucketResp getDefaultInstance() { return defaultInstance; } public RpbCSBucketResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbCSBucketResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { objects_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } objects_.add(input.readMessage(com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.PARSER, extensionRegistry)); break; } case 18: { bitField0_ |= 0x00000001; continuation_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000002; done_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { objects_ = java.util.Collections.unmodifiableList(objects_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp.class, com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbCSBucketResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbCSBucketResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int OBJECTS_FIELD_NUMBER = 1; private java.util.List objects_; /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsList() { return objects_; } /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsOrBuilderList() { return objects_; } /** * repeated .RpbIndexObject objects = 1; */ public int getObjectsCount() { return objects_.size(); } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject getObjects(int index) { return objects_.get(index); } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder getObjectsOrBuilder( int index) { return objects_.get(index); } public static final int CONTINUATION_FIELD_NUMBER = 2; private com.google.protobuf.ByteString continuation_; /** * optional bytes continuation = 2; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes continuation = 2; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } public static final int DONE_FIELD_NUMBER = 3; private boolean done_; /** * optional bool done = 3; */ public boolean hasDone() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool done = 3; */ public boolean getDone() { return done_; } private void initFields() { objects_ = java.util.Collections.emptyList(); continuation_ = com.google.protobuf.ByteString.EMPTY; done_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getObjectsCount(); i++) { if (!getObjects(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < objects_.size(); i++) { output.writeMessage(1, objects_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, continuation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, done_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < objects_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, objects_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, continuation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, done_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbCSBucketResp} * *
     * return for CS bucket fold
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbCSBucketResp) com.basho.riak.protobuf.RiakKvPB.RpbCSBucketRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp.class, com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getObjectsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (objectsBuilder_ == null) { objects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { objectsBuilder_.clear(); } continuation_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); done_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCSBucketResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp build() { com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp result = new com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (objectsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { objects_ = java.util.Collections.unmodifiableList(objects_); bitField0_ = (bitField0_ & ~0x00000001); } result.objects_ = objects_; } else { result.objects_ = objectsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.continuation_ = continuation_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.done_ = done_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp.getDefaultInstance()) return this; if (objectsBuilder_ == null) { if (!other.objects_.isEmpty()) { if (objects_.isEmpty()) { objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureObjectsIsMutable(); objects_.addAll(other.objects_); } onChanged(); } } else { if (!other.objects_.isEmpty()) { if (objectsBuilder_.isEmpty()) { objectsBuilder_.dispose(); objectsBuilder_ = null; objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000001); objectsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getObjectsFieldBuilder() : null; } else { objectsBuilder_.addAllMessages(other.objects_); } } } if (other.hasContinuation()) { setContinuation(other.getContinuation()); } if (other.hasDone()) { setDone(other.getDone()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getObjectsCount(); i++) { if (!getObjects(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbCSBucketResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List objects_ = java.util.Collections.emptyList(); private void ensureObjectsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { objects_ = new java.util.ArrayList(objects_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbIndexObject, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder, com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder> objectsBuilder_; /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsList() { if (objectsBuilder_ == null) { return java.util.Collections.unmodifiableList(objects_); } else { return objectsBuilder_.getMessageList(); } } /** * repeated .RpbIndexObject objects = 1; */ public int getObjectsCount() { if (objectsBuilder_ == null) { return objects_.size(); } else { return objectsBuilder_.getCount(); } } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject getObjects(int index) { if (objectsBuilder_ == null) { return objects_.get(index); } else { return objectsBuilder_.getMessage(index); } } /** * repeated .RpbIndexObject objects = 1; */ public Builder setObjects( int index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.set(index, value); onChanged(); } else { objectsBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder setObjects( int index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.set(index, builderForValue.build()); onChanged(); } else { objectsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addObjects(com.basho.riak.protobuf.RiakKvPB.RpbIndexObject value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.add(value); onChanged(); } else { objectsBuilder_.addMessage(value); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addObjects( int index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.add(index, value); onChanged(); } else { objectsBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addObjects( com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(builderForValue.build()); onChanged(); } else { objectsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addObjects( int index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(index, builderForValue.build()); onChanged(); } else { objectsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder addAllObjects( java.lang.Iterable values) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, objects_); onChanged(); } else { objectsBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder clearObjects() { if (objectsBuilder_ == null) { objects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { objectsBuilder_.clear(); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public Builder removeObjects(int index) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.remove(index); onChanged(); } else { objectsBuilder_.remove(index); } return this; } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder getObjectsBuilder( int index) { return getObjectsFieldBuilder().getBuilder(index); } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder getObjectsOrBuilder( int index) { if (objectsBuilder_ == null) { return objects_.get(index); } else { return objectsBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsOrBuilderList() { if (objectsBuilder_ != null) { return objectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(objects_); } } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder addObjectsBuilder() { return getObjectsFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.getDefaultInstance()); } /** * repeated .RpbIndexObject objects = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder addObjectsBuilder( int index) { return getObjectsFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.getDefaultInstance()); } /** * repeated .RpbIndexObject objects = 1; */ public java.util.List getObjectsBuilderList() { return getObjectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbIndexObject, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder, com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder> getObjectsFieldBuilder() { if (objectsBuilder_ == null) { objectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbIndexObject, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder, com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder>( objects_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); objects_ = null; } return objectsBuilder_; } private com.google.protobuf.ByteString continuation_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes continuation = 2; */ public boolean hasContinuation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes continuation = 2; */ public com.google.protobuf.ByteString getContinuation() { return continuation_; } /** * optional bytes continuation = 2; */ public Builder setContinuation(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; continuation_ = value; onChanged(); return this; } /** * optional bytes continuation = 2; */ public Builder clearContinuation() { bitField0_ = (bitField0_ & ~0x00000002); continuation_ = getDefaultInstance().getContinuation(); onChanged(); return this; } private boolean done_ ; /** * optional bool done = 3; */ public boolean hasDone() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool done = 3; */ public boolean getDone() { return done_; } /** * optional bool done = 3; */ public Builder setDone(boolean value) { bitField0_ |= 0x00000004; done_ = value; onChanged(); return this; } /** * optional bool done = 3; */ public Builder clearDone() { bitField0_ = (bitField0_ & ~0x00000004); done_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbCSBucketResp) } static { defaultInstance = new RpbCSBucketResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbCSBucketResp) } public interface RpbIndexObjectOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbIndexObject) com.google.protobuf.MessageOrBuilder { /** * required bytes key = 1; */ boolean hasKey(); /** * required bytes key = 1; */ com.google.protobuf.ByteString getKey(); /** * required .RpbGetResp object = 2; */ boolean hasObject(); /** * required .RpbGetResp object = 2; */ com.basho.riak.protobuf.RiakKvPB.RpbGetResp getObject(); /** * required .RpbGetResp object = 2; */ com.basho.riak.protobuf.RiakKvPB.RpbGetRespOrBuilder getObjectOrBuilder(); } /** * Protobuf type {@code RpbIndexObject} */ public static final class RpbIndexObject extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbIndexObject) RpbIndexObjectOrBuilder { // Use RpbIndexObject.newBuilder() to construct. private RpbIndexObject(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbIndexObject(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbIndexObject defaultInstance; public static RpbIndexObject getDefaultInstance() { return defaultInstance; } public RpbIndexObject getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbIndexObject( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 18: { com.basho.riak.protobuf.RiakKvPB.RpbGetResp.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = object_.toBuilder(); } object_ = input.readMessage(com.basho.riak.protobuf.RiakKvPB.RpbGetResp.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(object_); object_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexObject_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexObject_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.class, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbIndexObject parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbIndexObject(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** * required bytes key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int OBJECT_FIELD_NUMBER = 2; private com.basho.riak.protobuf.RiakKvPB.RpbGetResp object_; /** * required .RpbGetResp object = 2; */ public boolean hasObject() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .RpbGetResp object = 2; */ public com.basho.riak.protobuf.RiakKvPB.RpbGetResp getObject() { return object_; } /** * required .RpbGetResp object = 2; */ public com.basho.riak.protobuf.RiakKvPB.RpbGetRespOrBuilder getObjectOrBuilder() { return object_; } private void initFields() { key_ = com.google.protobuf.ByteString.EMPTY; object_ = com.basho.riak.protobuf.RiakKvPB.RpbGetResp.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!hasObject()) { memoizedIsInitialized = 0; return false; } if (!getObject().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, object_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, object_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbIndexObject prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbIndexObject} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbIndexObject) com.basho.riak.protobuf.RiakKvPB.RpbIndexObjectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexObject_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexObject_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.class, com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getObjectFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (objectBuilder_ == null) { object_ = com.basho.riak.protobuf.RiakKvPB.RpbGetResp.getDefaultInstance(); } else { objectBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbIndexObject_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject build() { com.basho.riak.protobuf.RiakKvPB.RpbIndexObject result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbIndexObject buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbIndexObject result = new com.basho.riak.protobuf.RiakKvPB.RpbIndexObject(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (objectBuilder_ == null) { result.object_ = object_; } else { result.object_ = objectBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbIndexObject) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbIndexObject)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbIndexObject other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbIndexObject.getDefaultInstance()) return this; if (other.hasKey()) { setKey(other.getKey()); } if (other.hasObject()) { mergeObject(other.getObject()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasKey()) { return false; } if (!hasObject()) { return false; } if (!getObject().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbIndexObject parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbIndexObject) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * required bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * required bytes key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.basho.riak.protobuf.RiakKvPB.RpbGetResp object_ = com.basho.riak.protobuf.RiakKvPB.RpbGetResp.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbGetResp, com.basho.riak.protobuf.RiakKvPB.RpbGetResp.Builder, com.basho.riak.protobuf.RiakKvPB.RpbGetRespOrBuilder> objectBuilder_; /** * required .RpbGetResp object = 2; */ public boolean hasObject() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .RpbGetResp object = 2; */ public com.basho.riak.protobuf.RiakKvPB.RpbGetResp getObject() { if (objectBuilder_ == null) { return object_; } else { return objectBuilder_.getMessage(); } } /** * required .RpbGetResp object = 2; */ public Builder setObject(com.basho.riak.protobuf.RiakKvPB.RpbGetResp value) { if (objectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } object_ = value; onChanged(); } else { objectBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .RpbGetResp object = 2; */ public Builder setObject( com.basho.riak.protobuf.RiakKvPB.RpbGetResp.Builder builderForValue) { if (objectBuilder_ == null) { object_ = builderForValue.build(); onChanged(); } else { objectBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .RpbGetResp object = 2; */ public Builder mergeObject(com.basho.riak.protobuf.RiakKvPB.RpbGetResp value) { if (objectBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && object_ != com.basho.riak.protobuf.RiakKvPB.RpbGetResp.getDefaultInstance()) { object_ = com.basho.riak.protobuf.RiakKvPB.RpbGetResp.newBuilder(object_).mergeFrom(value).buildPartial(); } else { object_ = value; } onChanged(); } else { objectBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .RpbGetResp object = 2; */ public Builder clearObject() { if (objectBuilder_ == null) { object_ = com.basho.riak.protobuf.RiakKvPB.RpbGetResp.getDefaultInstance(); onChanged(); } else { objectBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .RpbGetResp object = 2; */ public com.basho.riak.protobuf.RiakKvPB.RpbGetResp.Builder getObjectBuilder() { bitField0_ |= 0x00000002; onChanged(); return getObjectFieldBuilder().getBuilder(); } /** * required .RpbGetResp object = 2; */ public com.basho.riak.protobuf.RiakKvPB.RpbGetRespOrBuilder getObjectOrBuilder() { if (objectBuilder_ != null) { return objectBuilder_.getMessageOrBuilder(); } else { return object_; } } /** * required .RpbGetResp object = 2; */ private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbGetResp, com.basho.riak.protobuf.RiakKvPB.RpbGetResp.Builder, com.basho.riak.protobuf.RiakKvPB.RpbGetRespOrBuilder> getObjectFieldBuilder() { if (objectBuilder_ == null) { objectBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbGetResp, com.basho.riak.protobuf.RiakKvPB.RpbGetResp.Builder, com.basho.riak.protobuf.RiakKvPB.RpbGetRespOrBuilder>( getObject(), getParentForChildren(), isClean()); object_ = null; } return objectBuilder_; } // @@protoc_insertion_point(builder_scope:RpbIndexObject) } static { defaultInstance = new RpbIndexObject(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbIndexObject) } public interface RpbContentOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbContent) com.google.protobuf.MessageOrBuilder { /** * required bytes value = 1; */ boolean hasValue(); /** * required bytes value = 1; */ com.google.protobuf.ByteString getValue(); /** * optional bytes content_type = 2; * *
     * the media type/format
     * 
*/ boolean hasContentType(); /** * optional bytes content_type = 2; * *
     * the media type/format
     * 
*/ com.google.protobuf.ByteString getContentType(); /** * optional bytes charset = 3; */ boolean hasCharset(); /** * optional bytes charset = 3; */ com.google.protobuf.ByteString getCharset(); /** * optional bytes content_encoding = 4; */ boolean hasContentEncoding(); /** * optional bytes content_encoding = 4; */ com.google.protobuf.ByteString getContentEncoding(); /** * optional bytes vtag = 5; */ boolean hasVtag(); /** * optional bytes vtag = 5; */ com.google.protobuf.ByteString getVtag(); /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ java.util.List getLinksList(); /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ com.basho.riak.protobuf.RiakKvPB.RpbLink getLinks(int index); /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ int getLinksCount(); /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ java.util.List getLinksOrBuilderList(); /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ com.basho.riak.protobuf.RiakKvPB.RpbLinkOrBuilder getLinksOrBuilder( int index); /** * optional uint32 last_mod = 7; */ boolean hasLastMod(); /** * optional uint32 last_mod = 7; */ int getLastMod(); /** * optional uint32 last_mod_usecs = 8; */ boolean hasLastModUsecs(); /** * optional uint32 last_mod_usecs = 8; */ int getLastModUsecs(); /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ java.util.List getUsermetaList(); /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ com.basho.riak.protobuf.RiakPB.RpbPair getUsermeta(int index); /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ int getUsermetaCount(); /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ java.util.List getUsermetaOrBuilderList(); /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder getUsermetaOrBuilder( int index); /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ java.util.List getIndexesList(); /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ com.basho.riak.protobuf.RiakPB.RpbPair getIndexes(int index); /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ int getIndexesCount(); /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ java.util.List getIndexesOrBuilderList(); /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder getIndexesOrBuilder( int index); /** * optional bool deleted = 11; */ boolean hasDeleted(); /** * optional bool deleted = 11; */ boolean getDeleted(); } /** * Protobuf type {@code RpbContent} * *
   * Content message included in get/put responses
   * Holds the value and associated metadata
   * 
*/ public static final class RpbContent extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbContent) RpbContentOrBuilder { // Use RpbContent.newBuilder() to construct. private RpbContent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbContent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbContent defaultInstance; public static RpbContent getDefaultInstance() { return defaultInstance; } public RpbContent getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbContent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; value_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; contentType_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; charset_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; contentEncoding_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; vtag_ = input.readBytes(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { links_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } links_.add(input.readMessage(com.basho.riak.protobuf.RiakKvPB.RpbLink.PARSER, extensionRegistry)); break; } case 56: { bitField0_ |= 0x00000020; lastMod_ = input.readUInt32(); break; } case 64: { bitField0_ |= 0x00000040; lastModUsecs_ = input.readUInt32(); break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { usermeta_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } usermeta_.add(input.readMessage(com.basho.riak.protobuf.RiakPB.RpbPair.PARSER, extensionRegistry)); break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { indexes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } indexes_.add(input.readMessage(com.basho.riak.protobuf.RiakPB.RpbPair.PARSER, extensionRegistry)); break; } case 88: { bitField0_ |= 0x00000080; deleted_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { links_ = java.util.Collections.unmodifiableList(links_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { usermeta_ = java.util.Collections.unmodifiableList(usermeta_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { indexes_ = java.util.Collections.unmodifiableList(indexes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbContent_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbContent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbContent.class, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbContent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbContent(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString value_; /** * required bytes value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int CONTENT_TYPE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contentType_; /** * optional bytes content_type = 2; * *
     * the media type/format
     * 
*/ public boolean hasContentType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes content_type = 2; * *
     * the media type/format
     * 
*/ public com.google.protobuf.ByteString getContentType() { return contentType_; } public static final int CHARSET_FIELD_NUMBER = 3; private com.google.protobuf.ByteString charset_; /** * optional bytes charset = 3; */ public boolean hasCharset() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes charset = 3; */ public com.google.protobuf.ByteString getCharset() { return charset_; } public static final int CONTENT_ENCODING_FIELD_NUMBER = 4; private com.google.protobuf.ByteString contentEncoding_; /** * optional bytes content_encoding = 4; */ public boolean hasContentEncoding() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes content_encoding = 4; */ public com.google.protobuf.ByteString getContentEncoding() { return contentEncoding_; } public static final int VTAG_FIELD_NUMBER = 5; private com.google.protobuf.ByteString vtag_; /** * optional bytes vtag = 5; */ public boolean hasVtag() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bytes vtag = 5; */ public com.google.protobuf.ByteString getVtag() { return vtag_; } public static final int LINKS_FIELD_NUMBER = 6; private java.util.List links_; /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ public java.util.List getLinksList() { return links_; } /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ public java.util.List getLinksOrBuilderList() { return links_; } /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ public int getLinksCount() { return links_.size(); } /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ public com.basho.riak.protobuf.RiakKvPB.RpbLink getLinks(int index) { return links_.get(index); } /** * repeated .RpbLink links = 6; * *
     * links to other resources
     * 
*/ public com.basho.riak.protobuf.RiakKvPB.RpbLinkOrBuilder getLinksOrBuilder( int index) { return links_.get(index); } public static final int LAST_MOD_FIELD_NUMBER = 7; private int lastMod_; /** * optional uint32 last_mod = 7; */ public boolean hasLastMod() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 last_mod = 7; */ public int getLastMod() { return lastMod_; } public static final int LAST_MOD_USECS_FIELD_NUMBER = 8; private int lastModUsecs_; /** * optional uint32 last_mod_usecs = 8; */ public boolean hasLastModUsecs() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 last_mod_usecs = 8; */ public int getLastModUsecs() { return lastModUsecs_; } public static final int USERMETA_FIELD_NUMBER = 9; private java.util.List usermeta_; /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ public java.util.List getUsermetaList() { return usermeta_; } /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ public java.util.List getUsermetaOrBuilderList() { return usermeta_; } /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ public int getUsermetaCount() { return usermeta_.size(); } /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair getUsermeta(int index) { return usermeta_.get(index); } /** * repeated .RpbPair usermeta = 9; * *
     * user metadata stored with the object
     * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder getUsermetaOrBuilder( int index) { return usermeta_.get(index); } public static final int INDEXES_FIELD_NUMBER = 10; private java.util.List indexes_; /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ public java.util.List getIndexesList() { return indexes_; } /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ public java.util.List getIndexesOrBuilderList() { return indexes_; } /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ public int getIndexesCount() { return indexes_.size(); } /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair getIndexes(int index) { return indexes_.get(index); } /** * repeated .RpbPair indexes = 10; * *
     * user metadata stored with the object
     * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder getIndexesOrBuilder( int index) { return indexes_.get(index); } public static final int DELETED_FIELD_NUMBER = 11; private boolean deleted_; /** * optional bool deleted = 11; */ public boolean hasDeleted() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool deleted = 11; */ public boolean getDeleted() { return deleted_; } private void initFields() { value_ = com.google.protobuf.ByteString.EMPTY; contentType_ = com.google.protobuf.ByteString.EMPTY; charset_ = com.google.protobuf.ByteString.EMPTY; contentEncoding_ = com.google.protobuf.ByteString.EMPTY; vtag_ = com.google.protobuf.ByteString.EMPTY; links_ = java.util.Collections.emptyList(); lastMod_ = 0; lastModUsecs_ = 0; usermeta_ = java.util.Collections.emptyList(); indexes_ = java.util.Collections.emptyList(); deleted_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getUsermetaCount(); i++) { if (!getUsermeta(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getIndexesCount(); i++) { if (!getIndexes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, contentType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, charset_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, contentEncoding_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, vtag_); } for (int i = 0; i < links_.size(); i++) { output.writeMessage(6, links_.get(i)); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(7, lastMod_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(8, lastModUsecs_); } for (int i = 0; i < usermeta_.size(); i++) { output.writeMessage(9, usermeta_.get(i)); } for (int i = 0; i < indexes_.size(); i++) { output.writeMessage(10, indexes_.get(i)); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(11, deleted_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, contentType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, charset_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, contentEncoding_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, vtag_); } for (int i = 0; i < links_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, links_.get(i)); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, lastMod_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, lastModUsecs_); } for (int i = 0; i < usermeta_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, usermeta_.get(i)); } for (int i = 0; i < indexes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, indexes_.get(i)); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, deleted_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbContent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbContent prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbContent} * *
     * Content message included in get/put responses
     * Holds the value and associated metadata
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbContent) com.basho.riak.protobuf.RiakKvPB.RpbContentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbContent_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbContent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbContent.class, com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbContent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getLinksFieldBuilder(); getUsermetaFieldBuilder(); getIndexesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); value_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); contentType_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); charset_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); contentEncoding_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); vtag_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); if (linksBuilder_ == null) { links_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { linksBuilder_.clear(); } lastMod_ = 0; bitField0_ = (bitField0_ & ~0x00000040); lastModUsecs_ = 0; bitField0_ = (bitField0_ & ~0x00000080); if (usermetaBuilder_ == null) { usermeta_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { usermetaBuilder_.clear(); } if (indexesBuilder_ == null) { indexes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { indexesBuilder_.clear(); } deleted_ = false; bitField0_ = (bitField0_ & ~0x00000400); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbContent_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbContent getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbContent build() { com.basho.riak.protobuf.RiakKvPB.RpbContent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbContent buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbContent result = new com.basho.riak.protobuf.RiakKvPB.RpbContent(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.contentType_ = contentType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.charset_ = charset_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.contentEncoding_ = contentEncoding_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.vtag_ = vtag_; if (linksBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { links_ = java.util.Collections.unmodifiableList(links_); bitField0_ = (bitField0_ & ~0x00000020); } result.links_ = links_; } else { result.links_ = linksBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.lastMod_ = lastMod_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.lastModUsecs_ = lastModUsecs_; if (usermetaBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { usermeta_ = java.util.Collections.unmodifiableList(usermeta_); bitField0_ = (bitField0_ & ~0x00000100); } result.usermeta_ = usermeta_; } else { result.usermeta_ = usermetaBuilder_.build(); } if (indexesBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { indexes_ = java.util.Collections.unmodifiableList(indexes_); bitField0_ = (bitField0_ & ~0x00000200); } result.indexes_ = indexes_; } else { result.indexes_ = indexesBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000080; } result.deleted_ = deleted_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbContent) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbContent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbContent other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbContent.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } if (other.hasContentType()) { setContentType(other.getContentType()); } if (other.hasCharset()) { setCharset(other.getCharset()); } if (other.hasContentEncoding()) { setContentEncoding(other.getContentEncoding()); } if (other.hasVtag()) { setVtag(other.getVtag()); } if (linksBuilder_ == null) { if (!other.links_.isEmpty()) { if (links_.isEmpty()) { links_ = other.links_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureLinksIsMutable(); links_.addAll(other.links_); } onChanged(); } } else { if (!other.links_.isEmpty()) { if (linksBuilder_.isEmpty()) { linksBuilder_.dispose(); linksBuilder_ = null; links_ = other.links_; bitField0_ = (bitField0_ & ~0x00000020); linksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLinksFieldBuilder() : null; } else { linksBuilder_.addAllMessages(other.links_); } } } if (other.hasLastMod()) { setLastMod(other.getLastMod()); } if (other.hasLastModUsecs()) { setLastModUsecs(other.getLastModUsecs()); } if (usermetaBuilder_ == null) { if (!other.usermeta_.isEmpty()) { if (usermeta_.isEmpty()) { usermeta_ = other.usermeta_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureUsermetaIsMutable(); usermeta_.addAll(other.usermeta_); } onChanged(); } } else { if (!other.usermeta_.isEmpty()) { if (usermetaBuilder_.isEmpty()) { usermetaBuilder_.dispose(); usermetaBuilder_ = null; usermeta_ = other.usermeta_; bitField0_ = (bitField0_ & ~0x00000100); usermetaBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getUsermetaFieldBuilder() : null; } else { usermetaBuilder_.addAllMessages(other.usermeta_); } } } if (indexesBuilder_ == null) { if (!other.indexes_.isEmpty()) { if (indexes_.isEmpty()) { indexes_ = other.indexes_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureIndexesIsMutable(); indexes_.addAll(other.indexes_); } onChanged(); } } else { if (!other.indexes_.isEmpty()) { if (indexesBuilder_.isEmpty()) { indexesBuilder_.dispose(); indexesBuilder_ = null; indexes_ = other.indexes_; bitField0_ = (bitField0_ & ~0x00000200); indexesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getIndexesFieldBuilder() : null; } else { indexesBuilder_.addAllMessages(other.indexes_); } } } if (other.hasDeleted()) { setDeleted(other.getDeleted()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasValue()) { return false; } for (int i = 0; i < getUsermetaCount(); i++) { if (!getUsermeta(i).isInitialized()) { return false; } } for (int i = 0; i < getIndexesCount(); i++) { if (!getIndexes(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbContent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbContent) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * required bytes value = 1; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * required bytes value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } private com.google.protobuf.ByteString contentType_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes content_type = 2; * *
       * the media type/format
       * 
*/ public boolean hasContentType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes content_type = 2; * *
       * the media type/format
       * 
*/ public com.google.protobuf.ByteString getContentType() { return contentType_; } /** * optional bytes content_type = 2; * *
       * the media type/format
       * 
*/ public Builder setContentType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; contentType_ = value; onChanged(); return this; } /** * optional bytes content_type = 2; * *
       * the media type/format
       * 
*/ public Builder clearContentType() { bitField0_ = (bitField0_ & ~0x00000002); contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } private com.google.protobuf.ByteString charset_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes charset = 3; */ public boolean hasCharset() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes charset = 3; */ public com.google.protobuf.ByteString getCharset() { return charset_; } /** * optional bytes charset = 3; */ public Builder setCharset(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; charset_ = value; onChanged(); return this; } /** * optional bytes charset = 3; */ public Builder clearCharset() { bitField0_ = (bitField0_ & ~0x00000004); charset_ = getDefaultInstance().getCharset(); onChanged(); return this; } private com.google.protobuf.ByteString contentEncoding_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes content_encoding = 4; */ public boolean hasContentEncoding() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes content_encoding = 4; */ public com.google.protobuf.ByteString getContentEncoding() { return contentEncoding_; } /** * optional bytes content_encoding = 4; */ public Builder setContentEncoding(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; contentEncoding_ = value; onChanged(); return this; } /** * optional bytes content_encoding = 4; */ public Builder clearContentEncoding() { bitField0_ = (bitField0_ & ~0x00000008); contentEncoding_ = getDefaultInstance().getContentEncoding(); onChanged(); return this; } private com.google.protobuf.ByteString vtag_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes vtag = 5; */ public boolean hasVtag() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bytes vtag = 5; */ public com.google.protobuf.ByteString getVtag() { return vtag_; } /** * optional bytes vtag = 5; */ public Builder setVtag(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; vtag_ = value; onChanged(); return this; } /** * optional bytes vtag = 5; */ public Builder clearVtag() { bitField0_ = (bitField0_ & ~0x00000010); vtag_ = getDefaultInstance().getVtag(); onChanged(); return this; } private java.util.List links_ = java.util.Collections.emptyList(); private void ensureLinksIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { links_ = new java.util.ArrayList(links_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbLink, com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder, com.basho.riak.protobuf.RiakKvPB.RpbLinkOrBuilder> linksBuilder_; /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public java.util.List getLinksList() { if (linksBuilder_ == null) { return java.util.Collections.unmodifiableList(links_); } else { return linksBuilder_.getMessageList(); } } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public int getLinksCount() { if (linksBuilder_ == null) { return links_.size(); } else { return linksBuilder_.getCount(); } } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public com.basho.riak.protobuf.RiakKvPB.RpbLink getLinks(int index) { if (linksBuilder_ == null) { return links_.get(index); } else { return linksBuilder_.getMessage(index); } } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public Builder setLinks( int index, com.basho.riak.protobuf.RiakKvPB.RpbLink value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinksIsMutable(); links_.set(index, value); onChanged(); } else { linksBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public Builder setLinks( int index, com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.set(index, builderForValue.build()); onChanged(); } else { linksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public Builder addLinks(com.basho.riak.protobuf.RiakKvPB.RpbLink value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinksIsMutable(); links_.add(value); onChanged(); } else { linksBuilder_.addMessage(value); } return this; } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public Builder addLinks( int index, com.basho.riak.protobuf.RiakKvPB.RpbLink value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinksIsMutable(); links_.add(index, value); onChanged(); } else { linksBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public Builder addLinks( com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(builderForValue.build()); onChanged(); } else { linksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public Builder addLinks( int index, com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(index, builderForValue.build()); onChanged(); } else { linksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public Builder addAllLinks( java.lang.Iterable values) { if (linksBuilder_ == null) { ensureLinksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, links_); onChanged(); } else { linksBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public Builder clearLinks() { if (linksBuilder_ == null) { links_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { linksBuilder_.clear(); } return this; } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public Builder removeLinks(int index) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.remove(index); onChanged(); } else { linksBuilder_.remove(index); } return this; } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder getLinksBuilder( int index) { return getLinksFieldBuilder().getBuilder(index); } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public com.basho.riak.protobuf.RiakKvPB.RpbLinkOrBuilder getLinksOrBuilder( int index) { if (linksBuilder_ == null) { return links_.get(index); } else { return linksBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public java.util.List getLinksOrBuilderList() { if (linksBuilder_ != null) { return linksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(links_); } } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder addLinksBuilder() { return getLinksFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakKvPB.RpbLink.getDefaultInstance()); } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder addLinksBuilder( int index) { return getLinksFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakKvPB.RpbLink.getDefaultInstance()); } /** * repeated .RpbLink links = 6; * *
       * links to other resources
       * 
*/ public java.util.List getLinksBuilderList() { return getLinksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbLink, com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder, com.basho.riak.protobuf.RiakKvPB.RpbLinkOrBuilder> getLinksFieldBuilder() { if (linksBuilder_ == null) { linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbLink, com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder, com.basho.riak.protobuf.RiakKvPB.RpbLinkOrBuilder>( links_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); links_ = null; } return linksBuilder_; } private int lastMod_ ; /** * optional uint32 last_mod = 7; */ public boolean hasLastMod() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 last_mod = 7; */ public int getLastMod() { return lastMod_; } /** * optional uint32 last_mod = 7; */ public Builder setLastMod(int value) { bitField0_ |= 0x00000040; lastMod_ = value; onChanged(); return this; } /** * optional uint32 last_mod = 7; */ public Builder clearLastMod() { bitField0_ = (bitField0_ & ~0x00000040); lastMod_ = 0; onChanged(); return this; } private int lastModUsecs_ ; /** * optional uint32 last_mod_usecs = 8; */ public boolean hasLastModUsecs() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 last_mod_usecs = 8; */ public int getLastModUsecs() { return lastModUsecs_; } /** * optional uint32 last_mod_usecs = 8; */ public Builder setLastModUsecs(int value) { bitField0_ |= 0x00000080; lastModUsecs_ = value; onChanged(); return this; } /** * optional uint32 last_mod_usecs = 8; */ public Builder clearLastModUsecs() { bitField0_ = (bitField0_ & ~0x00000080); lastModUsecs_ = 0; onChanged(); return this; } private java.util.List usermeta_ = java.util.Collections.emptyList(); private void ensureUsermetaIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { usermeta_ = new java.util.ArrayList(usermeta_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakPB.RpbPair, com.basho.riak.protobuf.RiakPB.RpbPair.Builder, com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder> usermetaBuilder_; /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public java.util.List getUsermetaList() { if (usermetaBuilder_ == null) { return java.util.Collections.unmodifiableList(usermeta_); } else { return usermetaBuilder_.getMessageList(); } } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public int getUsermetaCount() { if (usermetaBuilder_ == null) { return usermeta_.size(); } else { return usermetaBuilder_.getCount(); } } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair getUsermeta(int index) { if (usermetaBuilder_ == null) { return usermeta_.get(index); } else { return usermetaBuilder_.getMessage(index); } } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public Builder setUsermeta( int index, com.basho.riak.protobuf.RiakPB.RpbPair value) { if (usermetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsermetaIsMutable(); usermeta_.set(index, value); onChanged(); } else { usermetaBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public Builder setUsermeta( int index, com.basho.riak.protobuf.RiakPB.RpbPair.Builder builderForValue) { if (usermetaBuilder_ == null) { ensureUsermetaIsMutable(); usermeta_.set(index, builderForValue.build()); onChanged(); } else { usermetaBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public Builder addUsermeta(com.basho.riak.protobuf.RiakPB.RpbPair value) { if (usermetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsermetaIsMutable(); usermeta_.add(value); onChanged(); } else { usermetaBuilder_.addMessage(value); } return this; } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public Builder addUsermeta( int index, com.basho.riak.protobuf.RiakPB.RpbPair value) { if (usermetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsermetaIsMutable(); usermeta_.add(index, value); onChanged(); } else { usermetaBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public Builder addUsermeta( com.basho.riak.protobuf.RiakPB.RpbPair.Builder builderForValue) { if (usermetaBuilder_ == null) { ensureUsermetaIsMutable(); usermeta_.add(builderForValue.build()); onChanged(); } else { usermetaBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public Builder addUsermeta( int index, com.basho.riak.protobuf.RiakPB.RpbPair.Builder builderForValue) { if (usermetaBuilder_ == null) { ensureUsermetaIsMutable(); usermeta_.add(index, builderForValue.build()); onChanged(); } else { usermetaBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public Builder addAllUsermeta( java.lang.Iterable values) { if (usermetaBuilder_ == null) { ensureUsermetaIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, usermeta_); onChanged(); } else { usermetaBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public Builder clearUsermeta() { if (usermetaBuilder_ == null) { usermeta_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { usermetaBuilder_.clear(); } return this; } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public Builder removeUsermeta(int index) { if (usermetaBuilder_ == null) { ensureUsermetaIsMutable(); usermeta_.remove(index); onChanged(); } else { usermetaBuilder_.remove(index); } return this; } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair.Builder getUsermetaBuilder( int index) { return getUsermetaFieldBuilder().getBuilder(index); } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder getUsermetaOrBuilder( int index) { if (usermetaBuilder_ == null) { return usermeta_.get(index); } else { return usermetaBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public java.util.List getUsermetaOrBuilderList() { if (usermetaBuilder_ != null) { return usermetaBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(usermeta_); } } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair.Builder addUsermetaBuilder() { return getUsermetaFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakPB.RpbPair.getDefaultInstance()); } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair.Builder addUsermetaBuilder( int index) { return getUsermetaFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakPB.RpbPair.getDefaultInstance()); } /** * repeated .RpbPair usermeta = 9; * *
       * user metadata stored with the object
       * 
*/ public java.util.List getUsermetaBuilderList() { return getUsermetaFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakPB.RpbPair, com.basho.riak.protobuf.RiakPB.RpbPair.Builder, com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder> getUsermetaFieldBuilder() { if (usermetaBuilder_ == null) { usermetaBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakPB.RpbPair, com.basho.riak.protobuf.RiakPB.RpbPair.Builder, com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder>( usermeta_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); usermeta_ = null; } return usermetaBuilder_; } private java.util.List indexes_ = java.util.Collections.emptyList(); private void ensureIndexesIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { indexes_ = new java.util.ArrayList(indexes_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakPB.RpbPair, com.basho.riak.protobuf.RiakPB.RpbPair.Builder, com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder> indexesBuilder_; /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public java.util.List getIndexesList() { if (indexesBuilder_ == null) { return java.util.Collections.unmodifiableList(indexes_); } else { return indexesBuilder_.getMessageList(); } } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public int getIndexesCount() { if (indexesBuilder_ == null) { return indexes_.size(); } else { return indexesBuilder_.getCount(); } } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair getIndexes(int index) { if (indexesBuilder_ == null) { return indexes_.get(index); } else { return indexesBuilder_.getMessage(index); } } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public Builder setIndexes( int index, com.basho.riak.protobuf.RiakPB.RpbPair value) { if (indexesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexesIsMutable(); indexes_.set(index, value); onChanged(); } else { indexesBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public Builder setIndexes( int index, com.basho.riak.protobuf.RiakPB.RpbPair.Builder builderForValue) { if (indexesBuilder_ == null) { ensureIndexesIsMutable(); indexes_.set(index, builderForValue.build()); onChanged(); } else { indexesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public Builder addIndexes(com.basho.riak.protobuf.RiakPB.RpbPair value) { if (indexesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexesIsMutable(); indexes_.add(value); onChanged(); } else { indexesBuilder_.addMessage(value); } return this; } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public Builder addIndexes( int index, com.basho.riak.protobuf.RiakPB.RpbPair value) { if (indexesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexesIsMutable(); indexes_.add(index, value); onChanged(); } else { indexesBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public Builder addIndexes( com.basho.riak.protobuf.RiakPB.RpbPair.Builder builderForValue) { if (indexesBuilder_ == null) { ensureIndexesIsMutable(); indexes_.add(builderForValue.build()); onChanged(); } else { indexesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public Builder addIndexes( int index, com.basho.riak.protobuf.RiakPB.RpbPair.Builder builderForValue) { if (indexesBuilder_ == null) { ensureIndexesIsMutable(); indexes_.add(index, builderForValue.build()); onChanged(); } else { indexesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public Builder addAllIndexes( java.lang.Iterable values) { if (indexesBuilder_ == null) { ensureIndexesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, indexes_); onChanged(); } else { indexesBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public Builder clearIndexes() { if (indexesBuilder_ == null) { indexes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { indexesBuilder_.clear(); } return this; } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public Builder removeIndexes(int index) { if (indexesBuilder_ == null) { ensureIndexesIsMutable(); indexes_.remove(index); onChanged(); } else { indexesBuilder_.remove(index); } return this; } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair.Builder getIndexesBuilder( int index) { return getIndexesFieldBuilder().getBuilder(index); } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder getIndexesOrBuilder( int index) { if (indexesBuilder_ == null) { return indexes_.get(index); } else { return indexesBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public java.util.List getIndexesOrBuilderList() { if (indexesBuilder_ != null) { return indexesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(indexes_); } } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair.Builder addIndexesBuilder() { return getIndexesFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakPB.RpbPair.getDefaultInstance()); } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public com.basho.riak.protobuf.RiakPB.RpbPair.Builder addIndexesBuilder( int index) { return getIndexesFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakPB.RpbPair.getDefaultInstance()); } /** * repeated .RpbPair indexes = 10; * *
       * user metadata stored with the object
       * 
*/ public java.util.List getIndexesBuilderList() { return getIndexesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakPB.RpbPair, com.basho.riak.protobuf.RiakPB.RpbPair.Builder, com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder> getIndexesFieldBuilder() { if (indexesBuilder_ == null) { indexesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakPB.RpbPair, com.basho.riak.protobuf.RiakPB.RpbPair.Builder, com.basho.riak.protobuf.RiakPB.RpbPairOrBuilder>( indexes_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); indexes_ = null; } return indexesBuilder_; } private boolean deleted_ ; /** * optional bool deleted = 11; */ public boolean hasDeleted() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bool deleted = 11; */ public boolean getDeleted() { return deleted_; } /** * optional bool deleted = 11; */ public Builder setDeleted(boolean value) { bitField0_ |= 0x00000400; deleted_ = value; onChanged(); return this; } /** * optional bool deleted = 11; */ public Builder clearDeleted() { bitField0_ = (bitField0_ & ~0x00000400); deleted_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbContent) } static { defaultInstance = new RpbContent(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbContent) } public interface RpbLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbLink) com.google.protobuf.MessageOrBuilder { /** * optional bytes bucket = 1; */ boolean hasBucket(); /** * optional bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * optional bytes key = 2; */ boolean hasKey(); /** * optional bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * optional bytes tag = 3; */ boolean hasTag(); /** * optional bytes tag = 3; */ com.google.protobuf.ByteString getTag(); } /** * Protobuf type {@code RpbLink} * *
   * Link metadata
   * 
*/ public static final class RpbLink extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbLink) RpbLinkOrBuilder { // Use RpbLink.newBuilder() to construct. private RpbLink(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbLink(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbLink defaultInstance; public static RpbLink getDefaultInstance() { return defaultInstance; } public RpbLink getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbLink( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; tag_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbLink_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbLink_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbLink.class, com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbLink parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbLink(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * optional bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * optional bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int TAG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString tag_; /** * optional bytes tag = 3; */ public boolean hasTag() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes tag = 3; */ public com.google.protobuf.ByteString getTag() { return tag_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; key_ = com.google.protobuf.ByteString.EMPTY; tag_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, tag_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, tag_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbLink parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbLink prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbLink} * *
     * Link metadata
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbLink) com.basho.riak.protobuf.RiakKvPB.RpbLinkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbLink_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbLink_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbLink.class, com.basho.riak.protobuf.RiakKvPB.RpbLink.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbLink.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); tag_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbLink_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbLink getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbLink.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbLink build() { com.basho.riak.protobuf.RiakKvPB.RpbLink result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbLink buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbLink result = new com.basho.riak.protobuf.RiakKvPB.RpbLink(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.tag_ = tag_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbLink) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbLink)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbLink other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbLink.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasTag()) { setTag(other.getTag()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbLink parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbLink) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * optional bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * optional bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * optional bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * optional bytes key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString tag_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes tag = 3; */ public boolean hasTag() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes tag = 3; */ public com.google.protobuf.ByteString getTag() { return tag_; } /** * optional bytes tag = 3; */ public Builder setTag(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tag_ = value; onChanged(); return this; } /** * optional bytes tag = 3; */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000004); tag_ = getDefaultInstance().getTag(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbLink) } static { defaultInstance = new RpbLink(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbLink) } public interface RpbCounterUpdateReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbCounterUpdateReq) com.google.protobuf.MessageOrBuilder { /** * required bytes bucket = 1; */ boolean hasBucket(); /** * required bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * required bytes key = 2; */ boolean hasKey(); /** * required bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * required sint64 amount = 3; */ boolean hasAmount(); /** * required sint64 amount = 3; */ long getAmount(); /** * optional uint32 w = 4; */ boolean hasW(); /** * optional uint32 w = 4; */ int getW(); /** * optional uint32 dw = 5; */ boolean hasDw(); /** * optional uint32 dw = 5; */ int getDw(); /** * optional uint32 pw = 6; */ boolean hasPw(); /** * optional uint32 pw = 6; */ int getPw(); /** * optional bool returnvalue = 7; */ boolean hasReturnvalue(); /** * optional bool returnvalue = 7; */ boolean getReturnvalue(); } /** * Protobuf type {@code RpbCounterUpdateReq} * *
   * Counter update request
   * 
*/ public static final class RpbCounterUpdateReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbCounterUpdateReq) RpbCounterUpdateReqOrBuilder { // Use RpbCounterUpdateReq.newBuilder() to construct. private RpbCounterUpdateReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbCounterUpdateReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbCounterUpdateReq defaultInstance; public static RpbCounterUpdateReq getDefaultInstance() { return defaultInstance; } public RpbCounterUpdateReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbCounterUpdateReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; amount_ = input.readSInt64(); break; } case 32: { bitField0_ |= 0x00000008; w_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; dw_ = input.readUInt32(); break; } case 48: { bitField0_ |= 0x00000020; pw_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000040; returnvalue_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq.class, com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbCounterUpdateReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbCounterUpdateReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int AMOUNT_FIELD_NUMBER = 3; private long amount_; /** * required sint64 amount = 3; */ public boolean hasAmount() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint64 amount = 3; */ public long getAmount() { return amount_; } public static final int W_FIELD_NUMBER = 4; private int w_; /** * optional uint32 w = 4; */ public boolean hasW() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 w = 4; */ public int getW() { return w_; } public static final int DW_FIELD_NUMBER = 5; private int dw_; /** * optional uint32 dw = 5; */ public boolean hasDw() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 dw = 5; */ public int getDw() { return dw_; } public static final int PW_FIELD_NUMBER = 6; private int pw_; /** * optional uint32 pw = 6; */ public boolean hasPw() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 pw = 6; */ public int getPw() { return pw_; } public static final int RETURNVALUE_FIELD_NUMBER = 7; private boolean returnvalue_; /** * optional bool returnvalue = 7; */ public boolean hasReturnvalue() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool returnvalue = 7; */ public boolean getReturnvalue() { return returnvalue_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; key_ = com.google.protobuf.ByteString.EMPTY; amount_ = 0L; w_ = 0; dw_ = 0; pw_ = 0; returnvalue_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } if (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!hasAmount()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeSInt64(3, amount_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, w_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, dw_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, pw_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, returnvalue_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(3, amount_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, w_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, dw_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, pw_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, returnvalue_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbCounterUpdateReq} * *
     * Counter update request
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbCounterUpdateReq) com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq.class, com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); amount_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); w_ = 0; bitField0_ = (bitField0_ & ~0x00000008); dw_ = 0; bitField0_ = (bitField0_ & ~0x00000010); pw_ = 0; bitField0_ = (bitField0_ & ~0x00000020); returnvalue_ = false; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq build() { com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq result = new com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.amount_ = amount_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.w_ = w_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.dw_ = dw_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.pw_ = pw_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.returnvalue_ = returnvalue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasAmount()) { setAmount(other.getAmount()); } if (other.hasW()) { setW(other.getW()); } if (other.hasDw()) { setDw(other.getDw()); } if (other.hasPw()) { setPw(other.getPw()); } if (other.hasReturnvalue()) { setReturnvalue(other.getReturnvalue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } if (!hasKey()) { return false; } if (!hasAmount()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * required bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * required bytes key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } private long amount_ ; /** * required sint64 amount = 3; */ public boolean hasAmount() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint64 amount = 3; */ public long getAmount() { return amount_; } /** * required sint64 amount = 3; */ public Builder setAmount(long value) { bitField0_ |= 0x00000004; amount_ = value; onChanged(); return this; } /** * required sint64 amount = 3; */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000004); amount_ = 0L; onChanged(); return this; } private int w_ ; /** * optional uint32 w = 4; */ public boolean hasW() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 w = 4; */ public int getW() { return w_; } /** * optional uint32 w = 4; */ public Builder setW(int value) { bitField0_ |= 0x00000008; w_ = value; onChanged(); return this; } /** * optional uint32 w = 4; */ public Builder clearW() { bitField0_ = (bitField0_ & ~0x00000008); w_ = 0; onChanged(); return this; } private int dw_ ; /** * optional uint32 dw = 5; */ public boolean hasDw() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 dw = 5; */ public int getDw() { return dw_; } /** * optional uint32 dw = 5; */ public Builder setDw(int value) { bitField0_ |= 0x00000010; dw_ = value; onChanged(); return this; } /** * optional uint32 dw = 5; */ public Builder clearDw() { bitField0_ = (bitField0_ & ~0x00000010); dw_ = 0; onChanged(); return this; } private int pw_ ; /** * optional uint32 pw = 6; */ public boolean hasPw() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 pw = 6; */ public int getPw() { return pw_; } /** * optional uint32 pw = 6; */ public Builder setPw(int value) { bitField0_ |= 0x00000020; pw_ = value; onChanged(); return this; } /** * optional uint32 pw = 6; */ public Builder clearPw() { bitField0_ = (bitField0_ & ~0x00000020); pw_ = 0; onChanged(); return this; } private boolean returnvalue_ ; /** * optional bool returnvalue = 7; */ public boolean hasReturnvalue() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool returnvalue = 7; */ public boolean getReturnvalue() { return returnvalue_; } /** * optional bool returnvalue = 7; */ public Builder setReturnvalue(boolean value) { bitField0_ |= 0x00000040; returnvalue_ = value; onChanged(); return this; } /** * optional bool returnvalue = 7; */ public Builder clearReturnvalue() { bitField0_ = (bitField0_ & ~0x00000040); returnvalue_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbCounterUpdateReq) } static { defaultInstance = new RpbCounterUpdateReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbCounterUpdateReq) } public interface RpbCounterUpdateRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbCounterUpdateResp) com.google.protobuf.MessageOrBuilder { /** * optional sint64 value = 1; */ boolean hasValue(); /** * optional sint64 value = 1; */ long getValue(); } /** * Protobuf type {@code RpbCounterUpdateResp} * *
   * Counter update response? No message | error response
   * 
*/ public static final class RpbCounterUpdateResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbCounterUpdateResp) RpbCounterUpdateRespOrBuilder { // Use RpbCounterUpdateResp.newBuilder() to construct. private RpbCounterUpdateResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbCounterUpdateResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbCounterUpdateResp defaultInstance; public static RpbCounterUpdateResp getDefaultInstance() { return defaultInstance; } public RpbCounterUpdateResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbCounterUpdateResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; value_ = input.readSInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp.class, com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbCounterUpdateResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbCounterUpdateResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private long value_; /** * optional sint64 value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional sint64 value = 1; */ public long getValue() { return value_; } private void initFields() { value_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeSInt64(1, value_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, value_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbCounterUpdateResp} * *
     * Counter update response? No message | error response
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbCounterUpdateResp) com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp.class, com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); value_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterUpdateResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp build() { com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp result = new com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbCounterUpdateResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long value_ ; /** * optional sint64 value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional sint64 value = 1; */ public long getValue() { return value_; } /** * optional sint64 value = 1; */ public Builder setValue(long value) { bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * optional sint64 value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbCounterUpdateResp) } static { defaultInstance = new RpbCounterUpdateResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbCounterUpdateResp) } public interface RpbCounterGetReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbCounterGetReq) com.google.protobuf.MessageOrBuilder { /** * required bytes bucket = 1; */ boolean hasBucket(); /** * required bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * required bytes key = 2; */ boolean hasKey(); /** * required bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * optional uint32 r = 3; */ boolean hasR(); /** * optional uint32 r = 3; */ int getR(); /** * optional uint32 pr = 4; */ boolean hasPr(); /** * optional uint32 pr = 4; */ int getPr(); /** * optional bool basic_quorum = 5; */ boolean hasBasicQuorum(); /** * optional bool basic_quorum = 5; */ boolean getBasicQuorum(); /** * optional bool notfound_ok = 6; */ boolean hasNotfoundOk(); /** * optional bool notfound_ok = 6; */ boolean getNotfoundOk(); } /** * Protobuf type {@code RpbCounterGetReq} * *
   * counter value
   * 
*/ public static final class RpbCounterGetReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbCounterGetReq) RpbCounterGetReqOrBuilder { // Use RpbCounterGetReq.newBuilder() to construct. private RpbCounterGetReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbCounterGetReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbCounterGetReq defaultInstance; public static RpbCounterGetReq getDefaultInstance() { return defaultInstance; } public RpbCounterGetReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbCounterGetReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; r_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000008; pr_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; basicQuorum_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000020; notfoundOk_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq.class, com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbCounterGetReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbCounterGetReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int R_FIELD_NUMBER = 3; private int r_; /** * optional uint32 r = 3; */ public boolean hasR() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 r = 3; */ public int getR() { return r_; } public static final int PR_FIELD_NUMBER = 4; private int pr_; /** * optional uint32 pr = 4; */ public boolean hasPr() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 pr = 4; */ public int getPr() { return pr_; } public static final int BASIC_QUORUM_FIELD_NUMBER = 5; private boolean basicQuorum_; /** * optional bool basic_quorum = 5; */ public boolean hasBasicQuorum() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bool basic_quorum = 5; */ public boolean getBasicQuorum() { return basicQuorum_; } public static final int NOTFOUND_OK_FIELD_NUMBER = 6; private boolean notfoundOk_; /** * optional bool notfound_ok = 6; */ public boolean hasNotfoundOk() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool notfound_ok = 6; */ public boolean getNotfoundOk() { return notfoundOk_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; key_ = com.google.protobuf.ByteString.EMPTY; r_ = 0; pr_ = 0; basicQuorum_ = false; notfoundOk_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } if (!hasKey()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, r_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, pr_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, basicQuorum_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, notfoundOk_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, r_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, pr_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, basicQuorum_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, notfoundOk_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbCounterGetReq} * *
     * counter value
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbCounterGetReq) com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq.class, com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); r_ = 0; bitField0_ = (bitField0_ & ~0x00000004); pr_ = 0; bitField0_ = (bitField0_ & ~0x00000008); basicQuorum_ = false; bitField0_ = (bitField0_ & ~0x00000010); notfoundOk_ = false; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq build() { com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq result = new com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.r_ = r_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.pr_ = pr_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.basicQuorum_ = basicQuorum_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.notfoundOk_ = notfoundOk_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasR()) { setR(other.getR()); } if (other.hasPr()) { setPr(other.getPr()); } if (other.hasBasicQuorum()) { setBasicQuorum(other.getBasicQuorum()); } if (other.hasNotfoundOk()) { setNotfoundOk(other.getNotfoundOk()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } if (!hasKey()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbCounterGetReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * required bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * required bytes key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } private int r_ ; /** * optional uint32 r = 3; */ public boolean hasR() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 r = 3; */ public int getR() { return r_; } /** * optional uint32 r = 3; */ public Builder setR(int value) { bitField0_ |= 0x00000004; r_ = value; onChanged(); return this; } /** * optional uint32 r = 3; */ public Builder clearR() { bitField0_ = (bitField0_ & ~0x00000004); r_ = 0; onChanged(); return this; } private int pr_ ; /** * optional uint32 pr = 4; */ public boolean hasPr() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 pr = 4; */ public int getPr() { return pr_; } /** * optional uint32 pr = 4; */ public Builder setPr(int value) { bitField0_ |= 0x00000008; pr_ = value; onChanged(); return this; } /** * optional uint32 pr = 4; */ public Builder clearPr() { bitField0_ = (bitField0_ & ~0x00000008); pr_ = 0; onChanged(); return this; } private boolean basicQuorum_ ; /** * optional bool basic_quorum = 5; */ public boolean hasBasicQuorum() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bool basic_quorum = 5; */ public boolean getBasicQuorum() { return basicQuorum_; } /** * optional bool basic_quorum = 5; */ public Builder setBasicQuorum(boolean value) { bitField0_ |= 0x00000010; basicQuorum_ = value; onChanged(); return this; } /** * optional bool basic_quorum = 5; */ public Builder clearBasicQuorum() { bitField0_ = (bitField0_ & ~0x00000010); basicQuorum_ = false; onChanged(); return this; } private boolean notfoundOk_ ; /** * optional bool notfound_ok = 6; */ public boolean hasNotfoundOk() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool notfound_ok = 6; */ public boolean getNotfoundOk() { return notfoundOk_; } /** * optional bool notfound_ok = 6; */ public Builder setNotfoundOk(boolean value) { bitField0_ |= 0x00000020; notfoundOk_ = value; onChanged(); return this; } /** * optional bool notfound_ok = 6; */ public Builder clearNotfoundOk() { bitField0_ = (bitField0_ & ~0x00000020); notfoundOk_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbCounterGetReq) } static { defaultInstance = new RpbCounterGetReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbCounterGetReq) } public interface RpbCounterGetRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbCounterGetResp) com.google.protobuf.MessageOrBuilder { /** * optional sint64 value = 1; */ boolean hasValue(); /** * optional sint64 value = 1; */ long getValue(); } /** * Protobuf type {@code RpbCounterGetResp} * *
   * Counter value response
   * 
*/ public static final class RpbCounterGetResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbCounterGetResp) RpbCounterGetRespOrBuilder { // Use RpbCounterGetResp.newBuilder() to construct. private RpbCounterGetResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbCounterGetResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbCounterGetResp defaultInstance; public static RpbCounterGetResp getDefaultInstance() { return defaultInstance; } public RpbCounterGetResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbCounterGetResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; value_ = input.readSInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp.class, com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbCounterGetResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbCounterGetResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private long value_; /** * optional sint64 value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional sint64 value = 1; */ public long getValue() { return value_; } private void initFields() { value_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeSInt64(1, value_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, value_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbCounterGetResp} * *
     * Counter value response
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbCounterGetResp) com.basho.riak.protobuf.RiakKvPB.RpbCounterGetRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp.class, com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); value_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCounterGetResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp build() { com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp result = new com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbCounterGetResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long value_ ; /** * optional sint64 value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional sint64 value = 1; */ public long getValue() { return value_; } /** * optional sint64 value = 1; */ public Builder setValue(long value) { bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * optional sint64 value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbCounterGetResp) } static { defaultInstance = new RpbCounterGetResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbCounterGetResp) } public interface RpbGetBucketKeyPreflistReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbGetBucketKeyPreflistReq) com.google.protobuf.MessageOrBuilder { /** * required bytes bucket = 1; */ boolean hasBucket(); /** * required bytes bucket = 1; */ com.google.protobuf.ByteString getBucket(); /** * required bytes key = 2; */ boolean hasKey(); /** * required bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * optional bytes type = 3; */ boolean hasType(); /** * optional bytes type = 3; */ com.google.protobuf.ByteString getType(); } /** * Protobuf type {@code RpbGetBucketKeyPreflistReq} * *
   * Get bucket-key preflist request
   * 
*/ public static final class RpbGetBucketKeyPreflistReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbGetBucketKeyPreflistReq) RpbGetBucketKeyPreflistReqOrBuilder { // Use RpbGetBucketKeyPreflistReq.newBuilder() to construct. private RpbGetBucketKeyPreflistReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbGetBucketKeyPreflistReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbGetBucketKeyPreflistReq defaultInstance; public static RpbGetBucketKeyPreflistReq getDefaultInstance() { return defaultInstance; } public RpbGetBucketKeyPreflistReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbGetBucketKeyPreflistReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; bucket_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; type_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq.class, com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbGetBucketKeyPreflistReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbGetBucketKeyPreflistReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int TYPE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString type_; /** * optional bytes type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes type = 3; */ public com.google.protobuf.ByteString getType() { return type_; } private void initFields() { bucket_ = com.google.protobuf.ByteString.EMPTY; key_ = com.google.protobuf.ByteString.EMPTY; type_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } if (!hasKey()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, type_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bucket_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, type_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbGetBucketKeyPreflistReq} * *
     * Get bucket-key preflist request
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbGetBucketKeyPreflistReq) com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq.class, com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); key_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); type_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq build() { com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq result = new com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq.getDefaultInstance()) return this; if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasKey()) { setKey(other.getKey()); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } if (!hasKey()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 1; */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes bucket = 1; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 1; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 1; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000001); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * required bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * required bytes key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString type_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes type = 3; */ public com.google.protobuf.ByteString getType() { return type_; } /** * optional bytes type = 3; */ public Builder setType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * optional bytes type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = getDefaultInstance().getType(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbGetBucketKeyPreflistReq) } static { defaultInstance = new RpbGetBucketKeyPreflistReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbGetBucketKeyPreflistReq) } public interface RpbGetBucketKeyPreflistRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbGetBucketKeyPreflistResp) com.google.protobuf.MessageOrBuilder { /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ java.util.List getPreflistList(); /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem getPreflist(int index); /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ int getPreflistCount(); /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ java.util.List getPreflistOrBuilderList(); /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItemOrBuilder getPreflistOrBuilder( int index); } /** * Protobuf type {@code RpbGetBucketKeyPreflistResp} * *
   * Get bucket-key preflist response
   * 
*/ public static final class RpbGetBucketKeyPreflistResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbGetBucketKeyPreflistResp) RpbGetBucketKeyPreflistRespOrBuilder { // Use RpbGetBucketKeyPreflistResp.newBuilder() to construct. private RpbGetBucketKeyPreflistResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbGetBucketKeyPreflistResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbGetBucketKeyPreflistResp defaultInstance; public static RpbGetBucketKeyPreflistResp getDefaultInstance() { return defaultInstance; } public RpbGetBucketKeyPreflistResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbGetBucketKeyPreflistResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { preflist_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } preflist_.add(input.readMessage(com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { preflist_ = java.util.Collections.unmodifiableList(preflist_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp.class, com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbGetBucketKeyPreflistResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbGetBucketKeyPreflistResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int PREFLIST_FIELD_NUMBER = 1; private java.util.List preflist_; /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public java.util.List getPreflistList() { return preflist_; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public java.util.List getPreflistOrBuilderList() { return preflist_; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public int getPreflistCount() { return preflist_.size(); } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem getPreflist(int index) { return preflist_.get(index); } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItemOrBuilder getPreflistOrBuilder( int index) { return preflist_.get(index); } private void initFields() { preflist_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getPreflistCount(); i++) { if (!getPreflist(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < preflist_.size(); i++) { output.writeMessage(1, preflist_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < preflist_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, preflist_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbGetBucketKeyPreflistResp} * *
     * Get bucket-key preflist response
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbGetBucketKeyPreflistResp) com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp.class, com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPreflistFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (preflistBuilder_ == null) { preflist_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { preflistBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbGetBucketKeyPreflistResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp build() { com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp result = new com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp(this); int from_bitField0_ = bitField0_; if (preflistBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { preflist_ = java.util.Collections.unmodifiableList(preflist_); bitField0_ = (bitField0_ & ~0x00000001); } result.preflist_ = preflist_; } else { result.preflist_ = preflistBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp.getDefaultInstance()) return this; if (preflistBuilder_ == null) { if (!other.preflist_.isEmpty()) { if (preflist_.isEmpty()) { preflist_ = other.preflist_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePreflistIsMutable(); preflist_.addAll(other.preflist_); } onChanged(); } } else { if (!other.preflist_.isEmpty()) { if (preflistBuilder_.isEmpty()) { preflistBuilder_.dispose(); preflistBuilder_ = null; preflist_ = other.preflist_; bitField0_ = (bitField0_ & ~0x00000001); preflistBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPreflistFieldBuilder() : null; } else { preflistBuilder_.addAllMessages(other.preflist_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getPreflistCount(); i++) { if (!getPreflist(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbGetBucketKeyPreflistResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List preflist_ = java.util.Collections.emptyList(); private void ensurePreflistIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { preflist_ = new java.util.ArrayList(preflist_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItemOrBuilder> preflistBuilder_; /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public java.util.List getPreflistList() { if (preflistBuilder_ == null) { return java.util.Collections.unmodifiableList(preflist_); } else { return preflistBuilder_.getMessageList(); } } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public int getPreflistCount() { if (preflistBuilder_ == null) { return preflist_.size(); } else { return preflistBuilder_.getCount(); } } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem getPreflist(int index) { if (preflistBuilder_ == null) { return preflist_.get(index); } else { return preflistBuilder_.getMessage(index); } } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public Builder setPreflist( int index, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem value) { if (preflistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreflistIsMutable(); preflist_.set(index, value); onChanged(); } else { preflistBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public Builder setPreflist( int index, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder builderForValue) { if (preflistBuilder_ == null) { ensurePreflistIsMutable(); preflist_.set(index, builderForValue.build()); onChanged(); } else { preflistBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public Builder addPreflist(com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem value) { if (preflistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreflistIsMutable(); preflist_.add(value); onChanged(); } else { preflistBuilder_.addMessage(value); } return this; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public Builder addPreflist( int index, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem value) { if (preflistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreflistIsMutable(); preflist_.add(index, value); onChanged(); } else { preflistBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public Builder addPreflist( com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder builderForValue) { if (preflistBuilder_ == null) { ensurePreflistIsMutable(); preflist_.add(builderForValue.build()); onChanged(); } else { preflistBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public Builder addPreflist( int index, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder builderForValue) { if (preflistBuilder_ == null) { ensurePreflistIsMutable(); preflist_.add(index, builderForValue.build()); onChanged(); } else { preflistBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public Builder addAllPreflist( java.lang.Iterable values) { if (preflistBuilder_ == null) { ensurePreflistIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, preflist_); onChanged(); } else { preflistBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public Builder clearPreflist() { if (preflistBuilder_ == null) { preflist_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { preflistBuilder_.clear(); } return this; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public Builder removePreflist(int index) { if (preflistBuilder_ == null) { ensurePreflistIsMutable(); preflist_.remove(index); onChanged(); } else { preflistBuilder_.remove(index); } return this; } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder getPreflistBuilder( int index) { return getPreflistFieldBuilder().getBuilder(index); } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItemOrBuilder getPreflistOrBuilder( int index) { if (preflistBuilder_ == null) { return preflist_.get(index); } else { return preflistBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public java.util.List getPreflistOrBuilderList() { if (preflistBuilder_ != null) { return preflistBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(preflist_); } } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder addPreflistBuilder() { return getPreflistFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.getDefaultInstance()); } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder addPreflistBuilder( int index) { return getPreflistFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.getDefaultInstance()); } /** * repeated .RpbBucketKeyPreflistItem preflist = 1; */ public java.util.List getPreflistBuilderList() { return getPreflistFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItemOrBuilder> getPreflistFieldBuilder() { if (preflistBuilder_ == null) { preflistBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItemOrBuilder>( preflist_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); preflist_ = null; } return preflistBuilder_; } // @@protoc_insertion_point(builder_scope:RpbGetBucketKeyPreflistResp) } static { defaultInstance = new RpbGetBucketKeyPreflistResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbGetBucketKeyPreflistResp) } public interface RpbBucketKeyPreflistItemOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbBucketKeyPreflistItem) com.google.protobuf.MessageOrBuilder { /** * required int64 partition = 1; */ boolean hasPartition(); /** * required int64 partition = 1; */ long getPartition(); /** * required bytes node = 2; */ boolean hasNode(); /** * required bytes node = 2; */ com.google.protobuf.ByteString getNode(); /** * required bool primary = 3; */ boolean hasPrimary(); /** * required bool primary = 3; */ boolean getPrimary(); } /** * Protobuf type {@code RpbBucketKeyPreflistItem} * *
   * Preflist item
   * 
*/ public static final class RpbBucketKeyPreflistItem extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbBucketKeyPreflistItem) RpbBucketKeyPreflistItemOrBuilder { // Use RpbBucketKeyPreflistItem.newBuilder() to construct. private RpbBucketKeyPreflistItem(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbBucketKeyPreflistItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbBucketKeyPreflistItem defaultInstance; public static RpbBucketKeyPreflistItem getDefaultInstance() { return defaultInstance; } public RpbBucketKeyPreflistItem getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbBucketKeyPreflistItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; partition_ = input.readInt64(); break; } case 18: { bitField0_ |= 0x00000002; node_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; primary_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbBucketKeyPreflistItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbBucketKeyPreflistItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.class, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbBucketKeyPreflistItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbBucketKeyPreflistItem(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int PARTITION_FIELD_NUMBER = 1; private long partition_; /** * required int64 partition = 1; */ public boolean hasPartition() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 partition = 1; */ public long getPartition() { return partition_; } public static final int NODE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString node_; /** * required bytes node = 2; */ public boolean hasNode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes node = 2; */ public com.google.protobuf.ByteString getNode() { return node_; } public static final int PRIMARY_FIELD_NUMBER = 3; private boolean primary_; /** * required bool primary = 3; */ public boolean hasPrimary() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required bool primary = 3; */ public boolean getPrimary() { return primary_; } private void initFields() { partition_ = 0L; node_ = com.google.protobuf.ByteString.EMPTY; primary_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPartition()) { memoizedIsInitialized = 0; return false; } if (!hasNode()) { memoizedIsInitialized = 0; return false; } if (!hasPrimary()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, partition_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, node_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, primary_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partition_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, node_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, primary_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbBucketKeyPreflistItem} * *
     * Preflist item
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbBucketKeyPreflistItem) com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbBucketKeyPreflistItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbBucketKeyPreflistItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.class, com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); partition_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); node_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); primary_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbBucketKeyPreflistItem_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem build() { com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem result = new com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.partition_ = partition_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.node_ = node_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.primary_ = primary_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem.getDefaultInstance()) return this; if (other.hasPartition()) { setPartition(other.getPartition()); } if (other.hasNode()) { setNode(other.getNode()); } if (other.hasPrimary()) { setPrimary(other.getPrimary()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasPartition()) { return false; } if (!hasNode()) { return false; } if (!hasPrimary()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbBucketKeyPreflistItem) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long partition_ ; /** * required int64 partition = 1; */ public boolean hasPartition() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 partition = 1; */ public long getPartition() { return partition_; } /** * required int64 partition = 1; */ public Builder setPartition(long value) { bitField0_ |= 0x00000001; partition_ = value; onChanged(); return this; } /** * required int64 partition = 1; */ public Builder clearPartition() { bitField0_ = (bitField0_ & ~0x00000001); partition_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString node_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes node = 2; */ public boolean hasNode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes node = 2; */ public com.google.protobuf.ByteString getNode() { return node_; } /** * required bytes node = 2; */ public Builder setNode(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; node_ = value; onChanged(); return this; } /** * required bytes node = 2; */ public Builder clearNode() { bitField0_ = (bitField0_ & ~0x00000002); node_ = getDefaultInstance().getNode(); onChanged(); return this; } private boolean primary_ ; /** * required bool primary = 3; */ public boolean hasPrimary() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required bool primary = 3; */ public boolean getPrimary() { return primary_; } /** * required bool primary = 3; */ public Builder setPrimary(boolean value) { bitField0_ |= 0x00000004; primary_ = value; onChanged(); return this; } /** * required bool primary = 3; */ public Builder clearPrimary() { bitField0_ = (bitField0_ & ~0x00000004); primary_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbBucketKeyPreflistItem) } static { defaultInstance = new RpbBucketKeyPreflistItem(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbBucketKeyPreflistItem) } public interface RpbCoverageReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbCoverageReq) com.google.protobuf.MessageOrBuilder { /** * optional bytes type = 1; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ boolean hasType(); /** * optional bytes type = 1; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ com.google.protobuf.ByteString getType(); /** * required bytes bucket = 2; */ boolean hasBucket(); /** * required bytes bucket = 2; */ com.google.protobuf.ByteString getBucket(); /** * optional uint32 min_partitions = 3; * *
     * If undefined, we build a normal coverage plan. If <ring_size, we build a coverage plan with exactly ring_size entries, anything larger will have a power of 2 entries covering keyspaces smaller than a partition
     * 
*/ boolean hasMinPartitions(); /** * optional uint32 min_partitions = 3; * *
     * If undefined, we build a normal coverage plan. If <ring_size, we build a coverage plan with exactly ring_size entries, anything larger will have a power of 2 entries covering keyspaces smaller than a partition
     * 
*/ int getMinPartitions(); /** * optional bytes replace_cover = 4; * *
     * For failure recovery
     * 
*/ boolean hasReplaceCover(); /** * optional bytes replace_cover = 4; * *
     * For failure recovery
     * 
*/ com.google.protobuf.ByteString getReplaceCover(); /** * repeated bytes unavailable_cover = 5; * *
     * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
     * 
*/ java.util.List getUnavailableCoverList(); /** * repeated bytes unavailable_cover = 5; * *
     * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
     * 
*/ int getUnavailableCoverCount(); /** * repeated bytes unavailable_cover = 5; * *
     * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
     * 
*/ com.google.protobuf.ByteString getUnavailableCover(int index); } /** * Protobuf type {@code RpbCoverageReq} * *
   * Request a segmented coverage plan for the specified bucket
   * 
*/ public static final class RpbCoverageReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbCoverageReq) RpbCoverageReqOrBuilder { // Use RpbCoverageReq.newBuilder() to construct. private RpbCoverageReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbCoverageReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbCoverageReq defaultInstance; public static RpbCoverageReq getDefaultInstance() { return defaultInstance; } public RpbCoverageReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbCoverageReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; type_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; bucket_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; minPartitions_ = input.readUInt32(); break; } case 34: { bitField0_ |= 0x00000008; replaceCover_ = input.readBytes(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { unavailableCover_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } unavailableCover_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { unavailableCover_ = java.util.Collections.unmodifiableList(unavailableCover_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq.class, com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbCoverageReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbCoverageReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString type_; /** * optional bytes type = 1; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes type = 1; * *
     * Bucket type, if not set we assume the 'default' type
     * 
*/ public com.google.protobuf.ByteString getType() { return type_; } public static final int BUCKET_FIELD_NUMBER = 2; private com.google.protobuf.ByteString bucket_; /** * required bytes bucket = 2; */ public boolean hasBucket() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes bucket = 2; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } public static final int MIN_PARTITIONS_FIELD_NUMBER = 3; private int minPartitions_; /** * optional uint32 min_partitions = 3; * *
     * If undefined, we build a normal coverage plan. If <ring_size, we build a coverage plan with exactly ring_size entries, anything larger will have a power of 2 entries covering keyspaces smaller than a partition
     * 
*/ public boolean hasMinPartitions() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 min_partitions = 3; * *
     * If undefined, we build a normal coverage plan. If <ring_size, we build a coverage plan with exactly ring_size entries, anything larger will have a power of 2 entries covering keyspaces smaller than a partition
     * 
*/ public int getMinPartitions() { return minPartitions_; } public static final int REPLACE_COVER_FIELD_NUMBER = 4; private com.google.protobuf.ByteString replaceCover_; /** * optional bytes replace_cover = 4; * *
     * For failure recovery
     * 
*/ public boolean hasReplaceCover() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes replace_cover = 4; * *
     * For failure recovery
     * 
*/ public com.google.protobuf.ByteString getReplaceCover() { return replaceCover_; } public static final int UNAVAILABLE_COVER_FIELD_NUMBER = 5; private java.util.List unavailableCover_; /** * repeated bytes unavailable_cover = 5; * *
     * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
     * 
*/ public java.util.List getUnavailableCoverList() { return unavailableCover_; } /** * repeated bytes unavailable_cover = 5; * *
     * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
     * 
*/ public int getUnavailableCoverCount() { return unavailableCover_.size(); } /** * repeated bytes unavailable_cover = 5; * *
     * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
     * 
*/ public com.google.protobuf.ByteString getUnavailableCover(int index) { return unavailableCover_.get(index); } private void initFields() { type_ = com.google.protobuf.ByteString.EMPTY; bucket_ = com.google.protobuf.ByteString.EMPTY; minPartitions_ = 0; replaceCover_ = com.google.protobuf.ByteString.EMPTY; unavailableCover_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBucket()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, bucket_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, minPartitions_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, replaceCover_); } for (int i = 0; i < unavailableCover_.size(); i++) { output.writeBytes(5, unavailableCover_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, bucket_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, minPartitions_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, replaceCover_); } { int dataSize = 0; for (int i = 0; i < unavailableCover_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(unavailableCover_.get(i)); } size += dataSize; size += 1 * getUnavailableCoverList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbCoverageReq} * *
     * Request a segmented coverage plan for the specified bucket
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbCoverageReq) com.basho.riak.protobuf.RiakKvPB.RpbCoverageReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq.class, com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); bucket_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); minPartitions_ = 0; bitField0_ = (bitField0_ & ~0x00000004); replaceCover_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); unavailableCover_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageReq_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq build() { com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq result = new com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.bucket_ = bucket_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.minPartitions_ = minPartitions_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.replaceCover_ = replaceCover_; if (((bitField0_ & 0x00000010) == 0x00000010)) { unavailableCover_ = java.util.Collections.unmodifiableList(unavailableCover_); bitField0_ = (bitField0_ & ~0x00000010); } result.unavailableCover_ = unavailableCover_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasBucket()) { setBucket(other.getBucket()); } if (other.hasMinPartitions()) { setMinPartitions(other.getMinPartitions()); } if (other.hasReplaceCover()) { setReplaceCover(other.getReplaceCover()); } if (!other.unavailableCover_.isEmpty()) { if (unavailableCover_.isEmpty()) { unavailableCover_ = other.unavailableCover_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureUnavailableCoverIsMutable(); unavailableCover_.addAll(other.unavailableCover_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBucket()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbCoverageReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString type_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes type = 1; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes type = 1; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public com.google.protobuf.ByteString getType() { return type_; } /** * optional bytes type = 1; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder setType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional bytes type = 1; * *
       * Bucket type, if not set we assume the 'default' type
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes bucket = 2; */ public boolean hasBucket() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes bucket = 2; */ public com.google.protobuf.ByteString getBucket() { return bucket_; } /** * required bytes bucket = 2; */ public Builder setBucket(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; bucket_ = value; onChanged(); return this; } /** * required bytes bucket = 2; */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000002); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } private int minPartitions_ ; /** * optional uint32 min_partitions = 3; * *
       * If undefined, we build a normal coverage plan. If <ring_size, we build a coverage plan with exactly ring_size entries, anything larger will have a power of 2 entries covering keyspaces smaller than a partition
       * 
*/ public boolean hasMinPartitions() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 min_partitions = 3; * *
       * If undefined, we build a normal coverage plan. If <ring_size, we build a coverage plan with exactly ring_size entries, anything larger will have a power of 2 entries covering keyspaces smaller than a partition
       * 
*/ public int getMinPartitions() { return minPartitions_; } /** * optional uint32 min_partitions = 3; * *
       * If undefined, we build a normal coverage plan. If <ring_size, we build a coverage plan with exactly ring_size entries, anything larger will have a power of 2 entries covering keyspaces smaller than a partition
       * 
*/ public Builder setMinPartitions(int value) { bitField0_ |= 0x00000004; minPartitions_ = value; onChanged(); return this; } /** * optional uint32 min_partitions = 3; * *
       * If undefined, we build a normal coverage plan. If <ring_size, we build a coverage plan with exactly ring_size entries, anything larger will have a power of 2 entries covering keyspaces smaller than a partition
       * 
*/ public Builder clearMinPartitions() { bitField0_ = (bitField0_ & ~0x00000004); minPartitions_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString replaceCover_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes replace_cover = 4; * *
       * For failure recovery
       * 
*/ public boolean hasReplaceCover() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes replace_cover = 4; * *
       * For failure recovery
       * 
*/ public com.google.protobuf.ByteString getReplaceCover() { return replaceCover_; } /** * optional bytes replace_cover = 4; * *
       * For failure recovery
       * 
*/ public Builder setReplaceCover(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; replaceCover_ = value; onChanged(); return this; } /** * optional bytes replace_cover = 4; * *
       * For failure recovery
       * 
*/ public Builder clearReplaceCover() { bitField0_ = (bitField0_ & ~0x00000008); replaceCover_ = getDefaultInstance().getReplaceCover(); onChanged(); return this; } private java.util.List unavailableCover_ = java.util.Collections.emptyList(); private void ensureUnavailableCoverIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { unavailableCover_ = new java.util.ArrayList(unavailableCover_); bitField0_ |= 0x00000010; } } /** * repeated bytes unavailable_cover = 5; * *
       * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
       * 
*/ public java.util.List getUnavailableCoverList() { return java.util.Collections.unmodifiableList(unavailableCover_); } /** * repeated bytes unavailable_cover = 5; * *
       * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
       * 
*/ public int getUnavailableCoverCount() { return unavailableCover_.size(); } /** * repeated bytes unavailable_cover = 5; * *
       * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
       * 
*/ public com.google.protobuf.ByteString getUnavailableCover(int index) { return unavailableCover_.get(index); } /** * repeated bytes unavailable_cover = 5; * *
       * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
       * 
*/ public Builder setUnavailableCover( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureUnavailableCoverIsMutable(); unavailableCover_.set(index, value); onChanged(); return this; } /** * repeated bytes unavailable_cover = 5; * *
       * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
       * 
*/ public Builder addUnavailableCover(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureUnavailableCoverIsMutable(); unavailableCover_.add(value); onChanged(); return this; } /** * repeated bytes unavailable_cover = 5; * *
       * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
       * 
*/ public Builder addAllUnavailableCover( java.lang.Iterable values) { ensureUnavailableCoverIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unavailableCover_); onChanged(); return this; } /** * repeated bytes unavailable_cover = 5; * *
       * Other coverage contexts that have failed to assist Riak in deciding what nodes to avoid
       * 
*/ public Builder clearUnavailableCover() { unavailableCover_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbCoverageReq) } static { defaultInstance = new RpbCoverageReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbCoverageReq) } public interface RpbCoverageRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbCoverageResp) com.google.protobuf.MessageOrBuilder { /** * repeated .RpbCoverageEntry entries = 1; */ java.util.List getEntriesList(); /** * repeated .RpbCoverageEntry entries = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry getEntries(int index); /** * repeated .RpbCoverageEntry entries = 1; */ int getEntriesCount(); /** * repeated .RpbCoverageEntry entries = 1; */ java.util.List getEntriesOrBuilderList(); /** * repeated .RpbCoverageEntry entries = 1; */ com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntryOrBuilder getEntriesOrBuilder( int index); } /** * Protobuf type {@code RpbCoverageResp} * *
   * Segmented coverage plan response
   * 
*/ public static final class RpbCoverageResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbCoverageResp) RpbCoverageRespOrBuilder { // Use RpbCoverageResp.newBuilder() to construct. private RpbCoverageResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbCoverageResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbCoverageResp defaultInstance; public static RpbCoverageResp getDefaultInstance() { return defaultInstance; } public RpbCoverageResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbCoverageResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { entries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entries_.add(input.readMessage(com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { entries_ = java.util.Collections.unmodifiableList(entries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp.class, com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbCoverageResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbCoverageResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** * repeated .RpbCoverageEntry entries = 1; */ public java.util.List getEntriesList() { return entries_; } /** * repeated .RpbCoverageEntry entries = 1; */ public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .RpbCoverageEntry entries = 1; */ public int getEntriesCount() { return entries_.size(); } /** * repeated .RpbCoverageEntry entries = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry getEntries(int index) { return entries_.get(index); } /** * repeated .RpbCoverageEntry entries = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } private void initFields() { entries_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getEntriesCount(); i++) { if (!getEntries(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entries_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbCoverageResp} * *
     * Segmented coverage plan response
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbCoverageResp) com.basho.riak.protobuf.RiakKvPB.RpbCoverageRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp.class, com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entriesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageResp_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp build() { com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp result = new com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp(this); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp.getDefaultInstance()) return this; if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getEntriesCount(); i++) { if (!getEntries(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbCoverageResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntryOrBuilder> entriesBuilder_; /** * repeated .RpbCoverageEntry entries = 1; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** * repeated .RpbCoverageEntry entries = 1; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .RpbCoverageEntry entries = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .RpbCoverageEntry entries = 1; */ public Builder setEntries( int index, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbCoverageEntry entries = 1; */ public Builder setEntries( int index, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbCoverageEntry entries = 1; */ public Builder addEntries(com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** * repeated .RpbCoverageEntry entries = 1; */ public Builder addEntries( int index, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbCoverageEntry entries = 1; */ public Builder addEntries( com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbCoverageEntry entries = 1; */ public Builder addEntries( int index, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbCoverageEntry entries = 1; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbCoverageEntry entries = 1; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** * repeated .RpbCoverageEntry entries = 1; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** * repeated .RpbCoverageEntry entries = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .RpbCoverageEntry entries = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbCoverageEntry entries = 1; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** * repeated .RpbCoverageEntry entries = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.getDefaultInstance()); } /** * repeated .RpbCoverageEntry entries = 1; */ public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.getDefaultInstance()); } /** * repeated .RpbCoverageEntry entries = 1; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } // @@protoc_insertion_point(builder_scope:RpbCoverageResp) } static { defaultInstance = new RpbCoverageResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbCoverageResp) } public interface RpbCoverageEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbCoverageEntry) com.google.protobuf.MessageOrBuilder { /** * required bytes ip = 1; */ boolean hasIp(); /** * required bytes ip = 1; */ com.google.protobuf.ByteString getIp(); /** * required uint32 port = 2; */ boolean hasPort(); /** * required uint32 port = 2; */ int getPort(); /** * optional bytes keyspace_desc = 3; * *
     * Some human readable description of the keyspace covered
     * 
*/ boolean hasKeyspaceDesc(); /** * optional bytes keyspace_desc = 3; * *
     * Some human readable description of the keyspace covered
     * 
*/ com.google.protobuf.ByteString getKeyspaceDesc(); /** * required bytes cover_context = 4; * *
     * Opaque context to pass into 2I query.
     * 
*/ boolean hasCoverContext(); /** * required bytes cover_context = 4; * *
     * Opaque context to pass into 2I query.
     * 
*/ com.google.protobuf.ByteString getCoverContext(); } /** * Protobuf type {@code RpbCoverageEntry} * *
   * Segment of a coverage plan
   * 
*/ public static final class RpbCoverageEntry extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbCoverageEntry) RpbCoverageEntryOrBuilder { // Use RpbCoverageEntry.newBuilder() to construct. private RpbCoverageEntry(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbCoverageEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbCoverageEntry defaultInstance; public static RpbCoverageEntry getDefaultInstance() { return defaultInstance; } public RpbCoverageEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbCoverageEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; ip_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; port_ = input.readUInt32(); break; } case 26: { bitField0_ |= 0x00000004; keyspaceDesc_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; coverContext_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.class, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbCoverageEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbCoverageEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int IP_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ip_; /** * required bytes ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes ip = 1; */ public com.google.protobuf.ByteString getIp() { return ip_; } public static final int PORT_FIELD_NUMBER = 2; private int port_; /** * required uint32 port = 2; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 port = 2; */ public int getPort() { return port_; } public static final int KEYSPACE_DESC_FIELD_NUMBER = 3; private com.google.protobuf.ByteString keyspaceDesc_; /** * optional bytes keyspace_desc = 3; * *
     * Some human readable description of the keyspace covered
     * 
*/ public boolean hasKeyspaceDesc() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes keyspace_desc = 3; * *
     * Some human readable description of the keyspace covered
     * 
*/ public com.google.protobuf.ByteString getKeyspaceDesc() { return keyspaceDesc_; } public static final int COVER_CONTEXT_FIELD_NUMBER = 4; private com.google.protobuf.ByteString coverContext_; /** * required bytes cover_context = 4; * *
     * Opaque context to pass into 2I query.
     * 
*/ public boolean hasCoverContext() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required bytes cover_context = 4; * *
     * Opaque context to pass into 2I query.
     * 
*/ public com.google.protobuf.ByteString getCoverContext() { return coverContext_; } private void initFields() { ip_ = com.google.protobuf.ByteString.EMPTY; port_ = 0; keyspaceDesc_ = com.google.protobuf.ByteString.EMPTY; coverContext_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasIp()) { memoizedIsInitialized = 0; return false; } if (!hasPort()) { memoizedIsInitialized = 0; return false; } if (!hasCoverContext()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, ip_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, port_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, keyspaceDesc_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, coverContext_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ip_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, port_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, keyspaceDesc_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, coverContext_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code RpbCoverageEntry} * *
     * Segment of a coverage plan
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbCoverageEntry) com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.class, com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.Builder.class); } // Construct using com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); ip_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); port_ = 0; bitField0_ = (bitField0_ & ~0x00000002); keyspaceDesc_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); coverContext_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakKvPB.internal_static_RpbCoverageEntry_descriptor; } public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.getDefaultInstance(); } public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry build() { com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry buildPartial() { com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry result = new com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ip_ = ip_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.port_ = port_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.keyspaceDesc_ = keyspaceDesc_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.coverContext_ = coverContext_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry) { return mergeFrom((com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry other) { if (other == com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry.getDefaultInstance()) return this; if (other.hasIp()) { setIp(other.getIp()); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasKeyspaceDesc()) { setKeyspaceDesc(other.getKeyspaceDesc()); } if (other.hasCoverContext()) { setCoverContext(other.getCoverContext()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasIp()) { return false; } if (!hasPort()) { return false; } if (!hasCoverContext()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakKvPB.RpbCoverageEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString ip_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes ip = 1; */ public com.google.protobuf.ByteString getIp() { return ip_; } /** * required bytes ip = 1; */ public Builder setIp(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } /** * required bytes ip = 1; */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000001); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } private int port_ ; /** * required uint32 port = 2; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 port = 2; */ public int getPort() { return port_; } /** * required uint32 port = 2; */ public Builder setPort(int value) { bitField0_ |= 0x00000002; port_ = value; onChanged(); return this; } /** * required uint32 port = 2; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000002); port_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString keyspaceDesc_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes keyspace_desc = 3; * *
       * Some human readable description of the keyspace covered
       * 
*/ public boolean hasKeyspaceDesc() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes keyspace_desc = 3; * *
       * Some human readable description of the keyspace covered
       * 
*/ public com.google.protobuf.ByteString getKeyspaceDesc() { return keyspaceDesc_; } /** * optional bytes keyspace_desc = 3; * *
       * Some human readable description of the keyspace covered
       * 
*/ public Builder setKeyspaceDesc(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; keyspaceDesc_ = value; onChanged(); return this; } /** * optional bytes keyspace_desc = 3; * *
       * Some human readable description of the keyspace covered
       * 
*/ public Builder clearKeyspaceDesc() { bitField0_ = (bitField0_ & ~0x00000004); keyspaceDesc_ = getDefaultInstance().getKeyspaceDesc(); onChanged(); return this; } private com.google.protobuf.ByteString coverContext_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes cover_context = 4; * *
       * Opaque context to pass into 2I query.
       * 
*/ public boolean hasCoverContext() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required bytes cover_context = 4; * *
       * Opaque context to pass into 2I query.
       * 
*/ public com.google.protobuf.ByteString getCoverContext() { return coverContext_; } /** * required bytes cover_context = 4; * *
       * Opaque context to pass into 2I query.
       * 
*/ public Builder setCoverContext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; coverContext_ = value; onChanged(); return this; } /** * required bytes cover_context = 4; * *
       * Opaque context to pass into 2I query.
       * 
*/ public Builder clearCoverContext() { bitField0_ = (bitField0_ & ~0x00000008); coverContext_ = getDefaultInstance().getCoverContext(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbCoverageEntry) } static { defaultInstance = new RpbCoverageEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbCoverageEntry) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetClientIdResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetClientIdResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbSetClientIdReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbSetClientIdReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbPutReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbPutReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbPutResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbPutResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbDelReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbDelReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbListBucketsReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbListBucketsReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbListBucketsResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbListBucketsResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbListKeysReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbListKeysReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbListKeysResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbListKeysResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbMapRedReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbMapRedReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbMapRedResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbMapRedResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbIndexReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbIndexReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbIndexResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbIndexResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbIndexBodyResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbIndexBodyResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbCSBucketReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbCSBucketReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbCSBucketResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbCSBucketResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbIndexObject_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbIndexObject_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbContent_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbContent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbLink_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbLink_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbCounterUpdateReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbCounterUpdateReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbCounterUpdateResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbCounterUpdateResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbCounterGetReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbCounterGetReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbCounterGetResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbCounterGetResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetBucketKeyPreflistReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetBucketKeyPreflistReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetBucketKeyPreflistResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetBucketKeyPreflistResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbBucketKeyPreflistItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbBucketKeyPreflistItem_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbCoverageReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbCoverageReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbCoverageResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbCoverageResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbCoverageEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbCoverageEntry_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\rriak_kv.proto\032\nriak.proto\"\'\n\022RpbGetCli" + "entIdResp\022\021\n\tclient_id\030\001 \002(\014\"&\n\021RpbSetCl" + "ientIdReq\022\021\n\tclient_id\030\001 \002(\014\"\351\001\n\tRpbGetR" + "eq\022\016\n\006bucket\030\001 \002(\014\022\013\n\003key\030\002 \002(\014\022\t\n\001r\030\003 \001" + "(\r\022\n\n\002pr\030\004 \001(\r\022\024\n\014basic_quorum\030\005 \001(\010\022\023\n\013" + "notfound_ok\030\006 \001(\010\022\023\n\013if_modified\030\007 \001(\014\022\014" + "\n\004head\030\010 \001(\010\022\025\n\rdeletedvclock\030\t \001(\010\022\017\n\007t" + "imeout\030\n \001(\r\022\025\n\rsloppy_quorum\030\013 \001(\010\022\r\n\005n" + "_val\030\014 \001(\r\022\014\n\004type\030\r \001(\014\"M\n\nRpbGetResp\022\034" + "\n\007content\030\001 \003(\0132\013.RpbContent\022\016\n\006vclock\030\002", " \001(\014\022\021\n\tunchanged\030\003 \001(\010\"\246\002\n\tRpbPutReq\022\016\n" + "\006bucket\030\001 \002(\014\022\013\n\003key\030\002 \001(\014\022\016\n\006vclock\030\003 \001" + "(\014\022\034\n\007content\030\004 \002(\0132\013.RpbContent\022\t\n\001w\030\005 " + "\001(\r\022\n\n\002dw\030\006 \001(\r\022\023\n\013return_body\030\007 \001(\010\022\n\n\002" + "pw\030\010 \001(\r\022\027\n\017if_not_modified\030\t \001(\010\022\025\n\rif_" + "none_match\030\n \001(\010\022\023\n\013return_head\030\013 \001(\010\022\017\n" + "\007timeout\030\014 \001(\r\022\014\n\004asis\030\r \001(\010\022\025\n\rsloppy_q" + "uorum\030\016 \001(\010\022\r\n\005n_val\030\017 \001(\r\022\014\n\004type\030\020 \001(\014" + "\"G\n\nRpbPutResp\022\034\n\007content\030\001 \003(\0132\013.RpbCon" + "tent\022\016\n\006vclock\030\002 \001(\014\022\013\n\003key\030\003 \001(\014\"\303\001\n\tRp", "bDelReq\022\016\n\006bucket\030\001 \002(\014\022\013\n\003key\030\002 \002(\014\022\n\n\002" + "rw\030\003 \001(\r\022\016\n\006vclock\030\004 \001(\014\022\t\n\001r\030\005 \001(\r\022\t\n\001w" + "\030\006 \001(\r\022\n\n\002pr\030\007 \001(\r\022\n\n\002pw\030\010 \001(\r\022\n\n\002dw\030\t \001" + "(\r\022\017\n\007timeout\030\n \001(\r\022\025\n\rsloppy_quorum\030\013 \001" + "(\010\022\r\n\005n_val\030\014 \001(\r\022\014\n\004type\030\r \001(\014\"B\n\021RpbLi" + "stBucketsReq\022\017\n\007timeout\030\001 \001(\r\022\016\n\006stream\030" + "\002 \001(\010\022\014\n\004type\030\003 \001(\014\"3\n\022RpbListBucketsRes" + "p\022\017\n\007buckets\030\001 \003(\014\022\014\n\004done\030\002 \001(\010\"?\n\016RpbL" + "istKeysReq\022\016\n\006bucket\030\001 \002(\014\022\017\n\007timeout\030\002 " + "\001(\r\022\014\n\004type\030\003 \001(\014\"-\n\017RpbListKeysResp\022\014\n\004", "keys\030\001 \003(\014\022\014\n\004done\030\002 \001(\010\"5\n\014RpbMapRedReq" + "\022\017\n\007request\030\001 \002(\014\022\024\n\014content_type\030\002 \002(\014\"" + ">\n\rRpbMapRedResp\022\r\n\005phase\030\001 \001(\r\022\020\n\010respo" + "nse\030\002 \001(\014\022\014\n\004done\030\003 \001(\010\"\371\002\n\013RpbIndexReq\022" + "\016\n\006bucket\030\001 \002(\014\022\r\n\005index\030\002 \002(\014\022*\n\005qtype\030" + "\003 \002(\0162\033.RpbIndexReq.IndexQueryType\022\013\n\003ke" + "y\030\004 \001(\014\022\021\n\trange_min\030\005 \001(\014\022\021\n\trange_max\030" + "\006 \001(\014\022\024\n\014return_terms\030\007 \001(\010\022\016\n\006stream\030\010 " + "\001(\010\022\023\n\013max_results\030\t \001(\r\022\024\n\014continuation" + "\030\n \001(\014\022\017\n\007timeout\030\013 \001(\r\022\014\n\004type\030\014 \001(\014\022\022\n", "\nterm_regex\030\r \001(\014\022\027\n\017pagination_sort\030\016 \001" + "(\010\022\025\n\rcover_context\030\017 \001(\014\022\023\n\013return_body" + "\030\020 \001(\010\"#\n\016IndexQueryType\022\006\n\002eq\020\000\022\t\n\005rang" + "e\020\001\"[\n\014RpbIndexResp\022\014\n\004keys\030\001 \003(\014\022\031\n\007res" + "ults\030\002 \003(\0132\010.RpbPair\022\024\n\014continuation\030\003 \001" + "(\014\022\014\n\004done\030\004 \001(\010\"X\n\020RpbIndexBodyResp\022 \n\007" + "objects\030\001 \003(\0132\017.RpbIndexObject\022\024\n\014contin" + "uation\030\002 \001(\014\022\014\n\004done\030\003 \001(\010\"\330\001\n\016RpbCSBuck" + "etReq\022\016\n\006bucket\030\001 \002(\014\022\021\n\tstart_key\030\002 \002(\014" + "\022\017\n\007end_key\030\003 \001(\014\022\030\n\nstart_incl\030\004 \001(\010:\004t", "rue\022\027\n\010end_incl\030\005 \001(\010:\005false\022\024\n\014continua" + "tion\030\006 \001(\014\022\023\n\013max_results\030\007 \001(\r\022\017\n\007timeo" + "ut\030\010 \001(\r\022\014\n\004type\030\t \001(\014\022\025\n\rcover_context\030" + "\n \001(\014\"W\n\017RpbCSBucketResp\022 \n\007objects\030\001 \003(" + "\0132\017.RpbIndexObject\022\024\n\014continuation\030\002 \001(\014" + "\022\014\n\004done\030\003 \001(\010\":\n\016RpbIndexObject\022\013\n\003key\030" + "\001 \002(\014\022\033\n\006object\030\002 \002(\0132\013.RpbGetResp\"\365\001\n\nR" + "pbContent\022\r\n\005value\030\001 \002(\014\022\024\n\014content_type" + "\030\002 \001(\014\022\017\n\007charset\030\003 \001(\014\022\030\n\020content_encod" + "ing\030\004 \001(\014\022\014\n\004vtag\030\005 \001(\014\022\027\n\005links\030\006 \003(\0132\010", ".RpbLink\022\020\n\010last_mod\030\007 \001(\r\022\026\n\016last_mod_u" + "secs\030\010 \001(\r\022\032\n\010usermeta\030\t \003(\0132\010.RpbPair\022\031" + "\n\007indexes\030\n \003(\0132\010.RpbPair\022\017\n\007deleted\030\013 \001" + "(\010\"3\n\007RpbLink\022\016\n\006bucket\030\001 \001(\014\022\013\n\003key\030\002 \001" + "(\014\022\013\n\003tag\030\003 \001(\014\"z\n\023RpbCounterUpdateReq\022\016" + "\n\006bucket\030\001 \002(\014\022\013\n\003key\030\002 \002(\014\022\016\n\006amount\030\003 " + "\002(\022\022\t\n\001w\030\004 \001(\r\022\n\n\002dw\030\005 \001(\r\022\n\n\002pw\030\006 \001(\r\022\023" + "\n\013returnvalue\030\007 \001(\010\"%\n\024RpbCounterUpdateR" + "esp\022\r\n\005value\030\001 \001(\022\"q\n\020RpbCounterGetReq\022\016" + "\n\006bucket\030\001 \002(\014\022\013\n\003key\030\002 \002(\014\022\t\n\001r\030\003 \001(\r\022\n", "\n\002pr\030\004 \001(\r\022\024\n\014basic_quorum\030\005 \001(\010\022\023\n\013notf" + "ound_ok\030\006 \001(\010\"\"\n\021RpbCounterGetResp\022\r\n\005va" + "lue\030\001 \001(\022\"G\n\032RpbGetBucketKeyPreflistReq\022" + "\016\n\006bucket\030\001 \002(\014\022\013\n\003key\030\002 \002(\014\022\014\n\004type\030\003 \001" + "(\014\"J\n\033RpbGetBucketKeyPreflistResp\022+\n\010pre" + "flist\030\001 \003(\0132\031.RpbBucketKeyPreflistItem\"L" + "\n\030RpbBucketKeyPreflistItem\022\021\n\tpartition\030" + "\001 \002(\003\022\014\n\004node\030\002 \002(\014\022\017\n\007primary\030\003 \002(\010\"x\n\016" + "RpbCoverageReq\022\014\n\004type\030\001 \001(\014\022\016\n\006bucket\030\002" + " \002(\014\022\026\n\016min_partitions\030\003 \001(\r\022\025\n\rreplace_", "cover\030\004 \001(\014\022\031\n\021unavailable_cover\030\005 \003(\014\"5" + "\n\017RpbCoverageResp\022\"\n\007entries\030\001 \003(\0132\021.Rpb" + "CoverageEntry\"Z\n\020RpbCoverageEntry\022\n\n\002ip\030" + "\001 \002(\014\022\014\n\004port\030\002 \002(\r\022\025\n\rkeyspace_desc\030\003 \001" + "(\014\022\025\n\rcover_context\030\004 \002(\014B#\n\027com.basho.r" + "iak.protobufB\010RiakKvPB" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.basho.riak.protobuf.RiakPB.getDescriptor(), }, assigner); internal_static_RpbGetClientIdResp_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_RpbGetClientIdResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbGetClientIdResp_descriptor, new java.lang.String[] { "ClientId", }); internal_static_RpbSetClientIdReq_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_RpbSetClientIdReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbSetClientIdReq_descriptor, new java.lang.String[] { "ClientId", }); internal_static_RpbGetReq_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_RpbGetReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbGetReq_descriptor, new java.lang.String[] { "Bucket", "Key", "R", "Pr", "BasicQuorum", "NotfoundOk", "IfModified", "Head", "Deletedvclock", "Timeout", "SloppyQuorum", "NVal", "Type", }); internal_static_RpbGetResp_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_RpbGetResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbGetResp_descriptor, new java.lang.String[] { "Content", "Vclock", "Unchanged", }); internal_static_RpbPutReq_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_RpbPutReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbPutReq_descriptor, new java.lang.String[] { "Bucket", "Key", "Vclock", "Content", "W", "Dw", "ReturnBody", "Pw", "IfNotModified", "IfNoneMatch", "ReturnHead", "Timeout", "Asis", "SloppyQuorum", "NVal", "Type", }); internal_static_RpbPutResp_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_RpbPutResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbPutResp_descriptor, new java.lang.String[] { "Content", "Vclock", "Key", }); internal_static_RpbDelReq_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_RpbDelReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbDelReq_descriptor, new java.lang.String[] { "Bucket", "Key", "Rw", "Vclock", "R", "W", "Pr", "Pw", "Dw", "Timeout", "SloppyQuorum", "NVal", "Type", }); internal_static_RpbListBucketsReq_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_RpbListBucketsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbListBucketsReq_descriptor, new java.lang.String[] { "Timeout", "Stream", "Type", }); internal_static_RpbListBucketsResp_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_RpbListBucketsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbListBucketsResp_descriptor, new java.lang.String[] { "Buckets", "Done", }); internal_static_RpbListKeysReq_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_RpbListKeysReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbListKeysReq_descriptor, new java.lang.String[] { "Bucket", "Timeout", "Type", }); internal_static_RpbListKeysResp_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_RpbListKeysResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbListKeysResp_descriptor, new java.lang.String[] { "Keys", "Done", }); internal_static_RpbMapRedReq_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_RpbMapRedReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbMapRedReq_descriptor, new java.lang.String[] { "Request", "ContentType", }); internal_static_RpbMapRedResp_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_RpbMapRedResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbMapRedResp_descriptor, new java.lang.String[] { "Phase", "Response", "Done", }); internal_static_RpbIndexReq_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_RpbIndexReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbIndexReq_descriptor, new java.lang.String[] { "Bucket", "Index", "Qtype", "Key", "RangeMin", "RangeMax", "ReturnTerms", "Stream", "MaxResults", "Continuation", "Timeout", "Type", "TermRegex", "PaginationSort", "CoverContext", "ReturnBody", }); internal_static_RpbIndexResp_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_RpbIndexResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbIndexResp_descriptor, new java.lang.String[] { "Keys", "Results", "Continuation", "Done", }); internal_static_RpbIndexBodyResp_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_RpbIndexBodyResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbIndexBodyResp_descriptor, new java.lang.String[] { "Objects", "Continuation", "Done", }); internal_static_RpbCSBucketReq_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_RpbCSBucketReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbCSBucketReq_descriptor, new java.lang.String[] { "Bucket", "StartKey", "EndKey", "StartIncl", "EndIncl", "Continuation", "MaxResults", "Timeout", "Type", "CoverContext", }); internal_static_RpbCSBucketResp_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_RpbCSBucketResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbCSBucketResp_descriptor, new java.lang.String[] { "Objects", "Continuation", "Done", }); internal_static_RpbIndexObject_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_RpbIndexObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbIndexObject_descriptor, new java.lang.String[] { "Key", "Object", }); internal_static_RpbContent_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_RpbContent_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbContent_descriptor, new java.lang.String[] { "Value", "ContentType", "Charset", "ContentEncoding", "Vtag", "Links", "LastMod", "LastModUsecs", "Usermeta", "Indexes", "Deleted", }); internal_static_RpbLink_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_RpbLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbLink_descriptor, new java.lang.String[] { "Bucket", "Key", "Tag", }); internal_static_RpbCounterUpdateReq_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_RpbCounterUpdateReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbCounterUpdateReq_descriptor, new java.lang.String[] { "Bucket", "Key", "Amount", "W", "Dw", "Pw", "Returnvalue", }); internal_static_RpbCounterUpdateResp_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_RpbCounterUpdateResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbCounterUpdateResp_descriptor, new java.lang.String[] { "Value", }); internal_static_RpbCounterGetReq_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_RpbCounterGetReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbCounterGetReq_descriptor, new java.lang.String[] { "Bucket", "Key", "R", "Pr", "BasicQuorum", "NotfoundOk", }); internal_static_RpbCounterGetResp_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_RpbCounterGetResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbCounterGetResp_descriptor, new java.lang.String[] { "Value", }); internal_static_RpbGetBucketKeyPreflistReq_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_RpbGetBucketKeyPreflistReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbGetBucketKeyPreflistReq_descriptor, new java.lang.String[] { "Bucket", "Key", "Type", }); internal_static_RpbGetBucketKeyPreflistResp_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_RpbGetBucketKeyPreflistResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbGetBucketKeyPreflistResp_descriptor, new java.lang.String[] { "Preflist", }); internal_static_RpbBucketKeyPreflistItem_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_RpbBucketKeyPreflistItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbBucketKeyPreflistItem_descriptor, new java.lang.String[] { "Partition", "Node", "Primary", }); internal_static_RpbCoverageReq_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_RpbCoverageReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbCoverageReq_descriptor, new java.lang.String[] { "Type", "Bucket", "MinPartitions", "ReplaceCover", "UnavailableCover", }); internal_static_RpbCoverageResp_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_RpbCoverageResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbCoverageResp_descriptor, new java.lang.String[] { "Entries", }); internal_static_RpbCoverageEntry_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_RpbCoverageEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbCoverageEntry_descriptor, new java.lang.String[] { "Ip", "Port", "KeyspaceDesc", "CoverContext", }); com.basho.riak.protobuf.RiakPB.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy