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

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

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

package com.basho.riak.protobuf;

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

    /**
     * required bytes name = 1;
     *
     * 
     * Index name
     * 
*/ boolean hasName(); /** * required bytes name = 1; * *
     * Index name
     * 
*/ com.google.protobuf.ByteString getName(); /** * optional bytes schema = 2; * *
     * Schema name
     * 
*/ boolean hasSchema(); /** * optional bytes schema = 2; * *
     * Schema name
     * 
*/ com.google.protobuf.ByteString getSchema(); /** * optional uint32 n_val = 3; * *
     * N value
     * 
*/ boolean hasNVal(); /** * optional uint32 n_val = 3; * *
     * N value
     * 
*/ int getNVal(); } /** * Protobuf type {@code RpbYokozunaIndex} */ public static final class RpbYokozunaIndex extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbYokozunaIndex) RpbYokozunaIndexOrBuilder { // Use RpbYokozunaIndex.newBuilder() to construct. private RpbYokozunaIndex(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbYokozunaIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbYokozunaIndex defaultInstance; public static RpbYokozunaIndex getDefaultInstance() { return defaultInstance; } public RpbYokozunaIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbYokozunaIndex( 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; name_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; schema_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; nVal_ = input.readUInt32(); 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.RiakYokozunaPB.internal_static_RpbYokozunaIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbYokozunaIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbYokozunaIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString name_; /** * required bytes name = 1; * *
     * Index name
     * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes name = 1; * *
     * Index name
     * 
*/ public com.google.protobuf.ByteString getName() { return name_; } public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString schema_; /** * optional bytes schema = 2; * *
     * Schema name
     * 
*/ public boolean hasSchema() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes schema = 2; * *
     * Schema name
     * 
*/ public com.google.protobuf.ByteString getSchema() { return schema_; } public static final int N_VAL_FIELD_NUMBER = 3; private int nVal_; /** * optional uint32 n_val = 3; * *
     * N value
     * 
*/ public boolean hasNVal() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 n_val = 3; * *
     * N value
     * 
*/ public int getNVal() { return nVal_; } private void initFields() { name_ = com.google.protobuf.ByteString.EMPTY; schema_ = com.google.protobuf.ByteString.EMPTY; nVal_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { 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, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, schema_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, nVal_); } 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, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, schema_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, nVal_); } 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.RiakYokozunaPB.RpbYokozunaIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex 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.RiakYokozunaPB.RpbYokozunaIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex 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.RiakYokozunaPB.RpbYokozunaIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex 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.RiakYokozunaPB.RpbYokozunaIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex 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.RiakYokozunaPB.RpbYokozunaIndex 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 RpbYokozunaIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbYokozunaIndex) com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder.class); } // Construct using com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.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(); name_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); schema_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); nVal_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndex_descriptor; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.getDefaultInstance(); } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex build() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex buildPartial() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex result = new com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.schema_ = schema_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.nVal_ = nVal_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex) { return mergeFrom((com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex other) { if (other == com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.getDefaultInstance()) return this; if (other.hasName()) { setName(other.getName()); } if (other.hasSchema()) { setSchema(other.getSchema()); } if (other.hasNVal()) { setNVal(other.getNVal()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { 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.RiakYokozunaPB.RpbYokozunaIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes name = 1; * *
       * Index name
       * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes name = 1; * *
       * Index name
       * 
*/ public com.google.protobuf.ByteString getName() { return name_; } /** * required bytes name = 1; * *
       * Index name
       * 
*/ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required bytes name = 1; * *
       * Index name
       * 
*/ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } private com.google.protobuf.ByteString schema_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes schema = 2; * *
       * Schema name
       * 
*/ public boolean hasSchema() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes schema = 2; * *
       * Schema name
       * 
*/ public com.google.protobuf.ByteString getSchema() { return schema_; } /** * optional bytes schema = 2; * *
       * Schema name
       * 
*/ public Builder setSchema(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schema_ = value; onChanged(); return this; } /** * optional bytes schema = 2; * *
       * Schema name
       * 
*/ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000002); schema_ = getDefaultInstance().getSchema(); onChanged(); return this; } private int nVal_ ; /** * optional uint32 n_val = 3; * *
       * N value
       * 
*/ public boolean hasNVal() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 n_val = 3; * *
       * N value
       * 
*/ public int getNVal() { return nVal_; } /** * optional uint32 n_val = 3; * *
       * N value
       * 
*/ public Builder setNVal(int value) { bitField0_ |= 0x00000004; nVal_ = value; onChanged(); return this; } /** * optional uint32 n_val = 3; * *
       * N value
       * 
*/ public Builder clearNVal() { bitField0_ = (bitField0_ & ~0x00000004); nVal_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbYokozunaIndex) } static { defaultInstance = new RpbYokozunaIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbYokozunaIndex) } public interface RpbYokozunaIndexGetReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbYokozunaIndexGetReq) com.google.protobuf.MessageOrBuilder { /** * optional bytes name = 1; * *
     * Index name
     * 
*/ boolean hasName(); /** * optional bytes name = 1; * *
     * Index name
     * 
*/ com.google.protobuf.ByteString getName(); } /** * Protobuf type {@code RpbYokozunaIndexGetReq} * *
   * GET request - If a name is given, return matching index, else return all
   * 
*/ public static final class RpbYokozunaIndexGetReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbYokozunaIndexGetReq) RpbYokozunaIndexGetReqOrBuilder { // Use RpbYokozunaIndexGetReq.newBuilder() to construct. private RpbYokozunaIndexGetReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbYokozunaIndexGetReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbYokozunaIndexGetReq defaultInstance; public static RpbYokozunaIndexGetReq getDefaultInstance() { return defaultInstance; } public RpbYokozunaIndexGetReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbYokozunaIndexGetReq( 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; name_ = 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.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbYokozunaIndexGetReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbYokozunaIndexGetReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString name_; /** * optional bytes name = 1; * *
     * Index name
     * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes name = 1; * *
     * Index name
     * 
*/ public com.google.protobuf.ByteString getName() { return name_; } private void initFields() { name_ = 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, name_); } 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, name_); } 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.RiakYokozunaPB.RpbYokozunaIndexGetReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq 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.RiakYokozunaPB.RpbYokozunaIndexGetReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq 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.RiakYokozunaPB.RpbYokozunaIndexGetReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq 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.RiakYokozunaPB.RpbYokozunaIndexGetReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq 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.RiakYokozunaPB.RpbYokozunaIndexGetReq 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 RpbYokozunaIndexGetReq} * *
     * GET request - If a name is given, return matching index, else return all
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbYokozunaIndexGetReq) com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq.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(); name_ = 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.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetReq_descriptor; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq build() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq buildPartial() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq result = new com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq) { return mergeFrom((com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq other) { if (other == com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq.getDefaultInstance()) return this; if (other.hasName()) { setName(other.getName()); } 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.RiakYokozunaPB.RpbYokozunaIndexGetReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes name = 1; * *
       * Index name
       * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes name = 1; * *
       * Index name
       * 
*/ public com.google.protobuf.ByteString getName() { return name_; } /** * optional bytes name = 1; * *
       * Index name
       * 
*/ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * optional bytes name = 1; * *
       * Index name
       * 
*/ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbYokozunaIndexGetReq) } static { defaultInstance = new RpbYokozunaIndexGetReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbYokozunaIndexGetReq) } public interface RpbYokozunaIndexGetRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbYokozunaIndexGetResp) com.google.protobuf.MessageOrBuilder { /** * repeated .RpbYokozunaIndex index = 1; */ java.util.List getIndexList(); /** * repeated .RpbYokozunaIndex index = 1; */ com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex getIndex(int index); /** * repeated .RpbYokozunaIndex index = 1; */ int getIndexCount(); /** * repeated .RpbYokozunaIndex index = 1; */ java.util.List getIndexOrBuilderList(); /** * repeated .RpbYokozunaIndex index = 1; */ com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder getIndexOrBuilder( int index); } /** * Protobuf type {@code RpbYokozunaIndexGetResp} */ public static final class RpbYokozunaIndexGetResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbYokozunaIndexGetResp) RpbYokozunaIndexGetRespOrBuilder { // Use RpbYokozunaIndexGetResp.newBuilder() to construct. private RpbYokozunaIndexGetResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbYokozunaIndexGetResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbYokozunaIndexGetResp defaultInstance; public static RpbYokozunaIndexGetResp getDefaultInstance() { return defaultInstance; } public RpbYokozunaIndexGetResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbYokozunaIndexGetResp( 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)) { index_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } index_.add(input.readMessage(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.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)) { index_ = java.util.Collections.unmodifiableList(index_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbYokozunaIndexGetResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbYokozunaIndexGetResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int INDEX_FIELD_NUMBER = 1; private java.util.List index_; /** * repeated .RpbYokozunaIndex index = 1; */ public java.util.List getIndexList() { return index_; } /** * repeated .RpbYokozunaIndex index = 1; */ public java.util.List getIndexOrBuilderList() { return index_; } /** * repeated .RpbYokozunaIndex index = 1; */ public int getIndexCount() { return index_.size(); } /** * repeated .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex getIndex(int index) { return index_.get(index); } /** * repeated .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder getIndexOrBuilder( int index) { return index_.get(index); } private void initFields() { index_ = 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 < getIndexCount(); i++) { if (!getIndex(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 < index_.size(); i++) { output.writeMessage(1, index_.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 < index_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, index_.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.RiakYokozunaPB.RpbYokozunaIndexGetResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp 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.RiakYokozunaPB.RpbYokozunaIndexGetResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp 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.RiakYokozunaPB.RpbYokozunaIndexGetResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp 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.RiakYokozunaPB.RpbYokozunaIndexGetResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp 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.RiakYokozunaPB.RpbYokozunaIndexGetResp 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 RpbYokozunaIndexGetResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbYokozunaIndexGetResp) com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getIndexFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (indexBuilder_ == null) { index_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { indexBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexGetResp_descriptor; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp build() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp buildPartial() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp result = new com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp(this); int from_bitField0_ = bitField0_; if (indexBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { index_ = java.util.Collections.unmodifiableList(index_); bitField0_ = (bitField0_ & ~0x00000001); } result.index_ = index_; } else { result.index_ = indexBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp) { return mergeFrom((com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp other) { if (other == com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp.getDefaultInstance()) return this; if (indexBuilder_ == null) { if (!other.index_.isEmpty()) { if (index_.isEmpty()) { index_ = other.index_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIndexIsMutable(); index_.addAll(other.index_); } onChanged(); } } else { if (!other.index_.isEmpty()) { if (indexBuilder_.isEmpty()) { indexBuilder_.dispose(); indexBuilder_ = null; index_ = other.index_; bitField0_ = (bitField0_ & ~0x00000001); indexBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getIndexFieldBuilder() : null; } else { indexBuilder_.addAllMessages(other.index_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getIndexCount(); i++) { if (!getIndex(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.RiakYokozunaPB.RpbYokozunaIndexGetResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexGetResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List index_ = java.util.Collections.emptyList(); private void ensureIndexIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { index_ = new java.util.ArrayList(index_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder> indexBuilder_; /** * repeated .RpbYokozunaIndex index = 1; */ public java.util.List getIndexList() { if (indexBuilder_ == null) { return java.util.Collections.unmodifiableList(index_); } else { return indexBuilder_.getMessageList(); } } /** * repeated .RpbYokozunaIndex index = 1; */ public int getIndexCount() { if (indexBuilder_ == null) { return index_.size(); } else { return indexBuilder_.getCount(); } } /** * repeated .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex getIndex(int index) { if (indexBuilder_ == null) { return index_.get(index); } else { return indexBuilder_.getMessage(index); } } /** * repeated .RpbYokozunaIndex index = 1; */ public Builder setIndex( int index, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexIsMutable(); index_.set(index, value); onChanged(); } else { indexBuilder_.setMessage(index, value); } return this; } /** * repeated .RpbYokozunaIndex index = 1; */ public Builder setIndex( int index, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder builderForValue) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.set(index, builderForValue.build()); onChanged(); } else { indexBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbYokozunaIndex index = 1; */ public Builder addIndex(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexIsMutable(); index_.add(value); onChanged(); } else { indexBuilder_.addMessage(value); } return this; } /** * repeated .RpbYokozunaIndex index = 1; */ public Builder addIndex( int index, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexIsMutable(); index_.add(index, value); onChanged(); } else { indexBuilder_.addMessage(index, value); } return this; } /** * repeated .RpbYokozunaIndex index = 1; */ public Builder addIndex( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder builderForValue) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.add(builderForValue.build()); onChanged(); } else { indexBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .RpbYokozunaIndex index = 1; */ public Builder addIndex( int index, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder builderForValue) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.add(index, builderForValue.build()); onChanged(); } else { indexBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .RpbYokozunaIndex index = 1; */ public Builder addAllIndex( java.lang.Iterable values) { if (indexBuilder_ == null) { ensureIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, index_); onChanged(); } else { indexBuilder_.addAllMessages(values); } return this; } /** * repeated .RpbYokozunaIndex index = 1; */ public Builder clearIndex() { if (indexBuilder_ == null) { index_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { indexBuilder_.clear(); } return this; } /** * repeated .RpbYokozunaIndex index = 1; */ public Builder removeIndex(int index) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.remove(index); onChanged(); } else { indexBuilder_.remove(index); } return this; } /** * repeated .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder getIndexBuilder( int index) { return getIndexFieldBuilder().getBuilder(index); } /** * repeated .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder getIndexOrBuilder( int index) { if (indexBuilder_ == null) { return index_.get(index); } else { return indexBuilder_.getMessageOrBuilder(index); } } /** * repeated .RpbYokozunaIndex index = 1; */ public java.util.List getIndexOrBuilderList() { if (indexBuilder_ != null) { return indexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(index_); } } /** * repeated .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder addIndexBuilder() { return getIndexFieldBuilder().addBuilder( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.getDefaultInstance()); } /** * repeated .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder addIndexBuilder( int index) { return getIndexFieldBuilder().addBuilder( index, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.getDefaultInstance()); } /** * repeated .RpbYokozunaIndex index = 1; */ public java.util.List getIndexBuilderList() { return getIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder> getIndexFieldBuilder() { if (indexBuilder_ == null) { indexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder>( index_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); index_ = null; } return indexBuilder_; } // @@protoc_insertion_point(builder_scope:RpbYokozunaIndexGetResp) } static { defaultInstance = new RpbYokozunaIndexGetResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbYokozunaIndexGetResp) } public interface RpbYokozunaIndexPutReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbYokozunaIndexPutReq) com.google.protobuf.MessageOrBuilder { /** * required .RpbYokozunaIndex index = 1; */ boolean hasIndex(); /** * required .RpbYokozunaIndex index = 1; */ com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex getIndex(); /** * required .RpbYokozunaIndex index = 1; */ com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder getIndexOrBuilder(); /** * optional uint32 timeout = 2; * *
     * Timeout value
     * 
*/ boolean hasTimeout(); /** * optional uint32 timeout = 2; * *
     * Timeout value
     * 
*/ int getTimeout(); } /** * Protobuf type {@code RpbYokozunaIndexPutReq} * *
   * PUT request - Create a new index
   * 
*/ public static final class RpbYokozunaIndexPutReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbYokozunaIndexPutReq) RpbYokozunaIndexPutReqOrBuilder { // Use RpbYokozunaIndexPutReq.newBuilder() to construct. private RpbYokozunaIndexPutReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbYokozunaIndexPutReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbYokozunaIndexPutReq defaultInstance; public static RpbYokozunaIndexPutReq getDefaultInstance() { return defaultInstance; } public RpbYokozunaIndexPutReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbYokozunaIndexPutReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = index_.toBuilder(); } index_ = input.readMessage(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(index_); index_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; timeout_ = input.readUInt32(); 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.RiakYokozunaPB.internal_static_RpbYokozunaIndexPutReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexPutReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbYokozunaIndexPutReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbYokozunaIndexPutReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int INDEX_FIELD_NUMBER = 1; private com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex index_; /** * required .RpbYokozunaIndex index = 1; */ public boolean hasIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex getIndex() { return index_; } /** * required .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder getIndexOrBuilder() { return index_; } public static final int TIMEOUT_FIELD_NUMBER = 2; private int timeout_; /** * optional uint32 timeout = 2; * *
     * Timeout value
     * 
*/ public boolean hasTimeout() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 timeout = 2; * *
     * Timeout value
     * 
*/ public int getTimeout() { return timeout_; } private void initFields() { index_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.getDefaultInstance(); timeout_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasIndex()) { memoizedIsInitialized = 0; return false; } if (!getIndex().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.writeMessage(1, index_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, timeout_); } 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 .computeMessageSize(1, index_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, timeout_); } 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.RiakYokozunaPB.RpbYokozunaIndexPutReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq 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.RiakYokozunaPB.RpbYokozunaIndexPutReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq 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.RiakYokozunaPB.RpbYokozunaIndexPutReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq 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.RiakYokozunaPB.RpbYokozunaIndexPutReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq 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.RiakYokozunaPB.RpbYokozunaIndexPutReq 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 RpbYokozunaIndexPutReq} * *
     * PUT request - Create a new index
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbYokozunaIndexPutReq) com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexPutReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexPutReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getIndexFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (indexBuilder_ == null) { index_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.getDefaultInstance(); } else { indexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); timeout_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexPutReq_descriptor; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq build() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq buildPartial() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq result = new com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (indexBuilder_ == null) { result.index_ = index_; } else { result.index_ = indexBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.timeout_ = timeout_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq) { return mergeFrom((com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq other) { if (other == com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq.getDefaultInstance()) return this; if (other.hasIndex()) { mergeIndex(other.getIndex()); } if (other.hasTimeout()) { setTimeout(other.getTimeout()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasIndex()) { return false; } if (!getIndex().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.RiakYokozunaPB.RpbYokozunaIndexPutReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexPutReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex index_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder> indexBuilder_; /** * required .RpbYokozunaIndex index = 1; */ public boolean hasIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex getIndex() { if (indexBuilder_ == null) { return index_; } else { return indexBuilder_.getMessage(); } } /** * required .RpbYokozunaIndex index = 1; */ public Builder setIndex(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } index_ = value; onChanged(); } else { indexBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .RpbYokozunaIndex index = 1; */ public Builder setIndex( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder builderForValue) { if (indexBuilder_ == null) { index_ = builderForValue.build(); onChanged(); } else { indexBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .RpbYokozunaIndex index = 1; */ public Builder mergeIndex(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex value) { if (indexBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && index_ != com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.getDefaultInstance()) { index_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.newBuilder(index_).mergeFrom(value).buildPartial(); } else { index_ = value; } onChanged(); } else { indexBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .RpbYokozunaIndex index = 1; */ public Builder clearIndex() { if (indexBuilder_ == null) { index_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.getDefaultInstance(); onChanged(); } else { indexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder getIndexBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIndexFieldBuilder().getBuilder(); } /** * required .RpbYokozunaIndex index = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder getIndexOrBuilder() { if (indexBuilder_ != null) { return indexBuilder_.getMessageOrBuilder(); } else { return index_; } } /** * required .RpbYokozunaIndex index = 1; */ private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder> getIndexFieldBuilder() { if (indexBuilder_ == null) { indexBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndex.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexOrBuilder>( getIndex(), getParentForChildren(), isClean()); index_ = null; } return indexBuilder_; } private int timeout_ ; /** * optional uint32 timeout = 2; * *
       * Timeout value
       * 
*/ public boolean hasTimeout() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 timeout = 2; * *
       * Timeout value
       * 
*/ public int getTimeout() { return timeout_; } /** * optional uint32 timeout = 2; * *
       * Timeout value
       * 
*/ public Builder setTimeout(int value) { bitField0_ |= 0x00000002; timeout_ = value; onChanged(); return this; } /** * optional uint32 timeout = 2; * *
       * Timeout value
       * 
*/ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000002); timeout_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbYokozunaIndexPutReq) } static { defaultInstance = new RpbYokozunaIndexPutReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbYokozunaIndexPutReq) } public interface RpbYokozunaIndexDeleteReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbYokozunaIndexDeleteReq) com.google.protobuf.MessageOrBuilder { /** * required bytes name = 1; * *
     * Index name
     * 
*/ boolean hasName(); /** * required bytes name = 1; * *
     * Index name
     * 
*/ com.google.protobuf.ByteString getName(); } /** * Protobuf type {@code RpbYokozunaIndexDeleteReq} * *
   * DELETE request - Remove an index
   * 
*/ public static final class RpbYokozunaIndexDeleteReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbYokozunaIndexDeleteReq) RpbYokozunaIndexDeleteReqOrBuilder { // Use RpbYokozunaIndexDeleteReq.newBuilder() to construct. private RpbYokozunaIndexDeleteReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbYokozunaIndexDeleteReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbYokozunaIndexDeleteReq defaultInstance; public static RpbYokozunaIndexDeleteReq getDefaultInstance() { return defaultInstance; } public RpbYokozunaIndexDeleteReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbYokozunaIndexDeleteReq( 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; name_ = 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.RiakYokozunaPB.internal_static_RpbYokozunaIndexDeleteReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexDeleteReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbYokozunaIndexDeleteReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbYokozunaIndexDeleteReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString name_; /** * required bytes name = 1; * *
     * Index name
     * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes name = 1; * *
     * Index name
     * 
*/ public com.google.protobuf.ByteString getName() { return name_; } private void initFields() { name_ = 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 (!hasName()) { 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, name_); } 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, name_); } 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.RiakYokozunaPB.RpbYokozunaIndexDeleteReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq 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.RiakYokozunaPB.RpbYokozunaIndexDeleteReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq 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.RiakYokozunaPB.RpbYokozunaIndexDeleteReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq 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.RiakYokozunaPB.RpbYokozunaIndexDeleteReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq 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.RiakYokozunaPB.RpbYokozunaIndexDeleteReq 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 RpbYokozunaIndexDeleteReq} * *
     * DELETE request - Remove an index
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbYokozunaIndexDeleteReq) com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexDeleteReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaIndexDeleteReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq.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(); name_ = 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.RiakYokozunaPB.internal_static_RpbYokozunaIndexDeleteReq_descriptor; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq build() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq buildPartial() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq result = new com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq) { return mergeFrom((com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq other) { if (other == com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq.getDefaultInstance()) return this; if (other.hasName()) { setName(other.getName()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { 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.RiakYokozunaPB.RpbYokozunaIndexDeleteReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaIndexDeleteReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes name = 1; * *
       * Index name
       * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes name = 1; * *
       * Index name
       * 
*/ public com.google.protobuf.ByteString getName() { return name_; } /** * required bytes name = 1; * *
       * Index name
       * 
*/ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required bytes name = 1; * *
       * Index name
       * 
*/ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbYokozunaIndexDeleteReq) } static { defaultInstance = new RpbYokozunaIndexDeleteReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbYokozunaIndexDeleteReq) } public interface RpbYokozunaSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbYokozunaSchema) com.google.protobuf.MessageOrBuilder { /** * required bytes name = 1; * *
     * Index name
     * 
*/ boolean hasName(); /** * required bytes name = 1; * *
     * Index name
     * 
*/ com.google.protobuf.ByteString getName(); /** * optional bytes content = 2; * *
     * Schema data
     * 
*/ boolean hasContent(); /** * optional bytes content = 2; * *
     * Schema data
     * 
*/ com.google.protobuf.ByteString getContent(); } /** * Protobuf type {@code RpbYokozunaSchema} */ public static final class RpbYokozunaSchema extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbYokozunaSchema) RpbYokozunaSchemaOrBuilder { // Use RpbYokozunaSchema.newBuilder() to construct. private RpbYokozunaSchema(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbYokozunaSchema(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbYokozunaSchema defaultInstance; public static RpbYokozunaSchema getDefaultInstance() { return defaultInstance; } public RpbYokozunaSchema getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbYokozunaSchema( 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; name_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; content_ = 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.RiakYokozunaPB.internal_static_RpbYokozunaSchema_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbYokozunaSchema parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbYokozunaSchema(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString name_; /** * required bytes name = 1; * *
     * Index name
     * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes name = 1; * *
     * Index name
     * 
*/ public com.google.protobuf.ByteString getName() { return name_; } public static final int CONTENT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString content_; /** * optional bytes content = 2; * *
     * Schema data
     * 
*/ public boolean hasContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes content = 2; * *
     * Schema data
     * 
*/ public com.google.protobuf.ByteString getContent() { return content_; } private void initFields() { name_ = com.google.protobuf.ByteString.EMPTY; content_ = 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 (!hasName()) { 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, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, content_); } 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, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, content_); } 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.RiakYokozunaPB.RpbYokozunaSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema 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.RiakYokozunaPB.RpbYokozunaSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema 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.RiakYokozunaPB.RpbYokozunaSchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema 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.RiakYokozunaPB.RpbYokozunaSchema parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema 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.RiakYokozunaPB.RpbYokozunaSchema 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 RpbYokozunaSchema} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbYokozunaSchema) com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchema_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder.class); } // Construct using com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.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(); name_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); content_ = 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.RiakYokozunaPB.internal_static_RpbYokozunaSchema_descriptor; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance(); } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema build() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema buildPartial() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema result = new com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.content_ = content_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema) { return mergeFrom((com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema other) { if (other == com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance()) return this; if (other.hasName()) { setName(other.getName()); } if (other.hasContent()) { setContent(other.getContent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { 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.RiakYokozunaPB.RpbYokozunaSchema parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes name = 1; * *
       * Index name
       * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes name = 1; * *
       * Index name
       * 
*/ public com.google.protobuf.ByteString getName() { return name_; } /** * required bytes name = 1; * *
       * Index name
       * 
*/ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required bytes name = 1; * *
       * Index name
       * 
*/ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes content = 2; * *
       * Schema data
       * 
*/ public boolean hasContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes content = 2; * *
       * Schema data
       * 
*/ public com.google.protobuf.ByteString getContent() { return content_; } /** * optional bytes content = 2; * *
       * Schema data
       * 
*/ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; content_ = value; onChanged(); return this; } /** * optional bytes content = 2; * *
       * Schema data
       * 
*/ public Builder clearContent() { bitField0_ = (bitField0_ & ~0x00000002); content_ = getDefaultInstance().getContent(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbYokozunaSchema) } static { defaultInstance = new RpbYokozunaSchema(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbYokozunaSchema) } public interface RpbYokozunaSchemaPutReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbYokozunaSchemaPutReq) com.google.protobuf.MessageOrBuilder { /** * required .RpbYokozunaSchema schema = 1; */ boolean hasSchema(); /** * required .RpbYokozunaSchema schema = 1; */ com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema getSchema(); /** * required .RpbYokozunaSchema schema = 1; */ com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder getSchemaOrBuilder(); } /** * Protobuf type {@code RpbYokozunaSchemaPutReq} * *
   * PUT request - create or potentially update a new schema
   * 
*/ public static final class RpbYokozunaSchemaPutReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbYokozunaSchemaPutReq) RpbYokozunaSchemaPutReqOrBuilder { // Use RpbYokozunaSchemaPutReq.newBuilder() to construct. private RpbYokozunaSchemaPutReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbYokozunaSchemaPutReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbYokozunaSchemaPutReq defaultInstance; public static RpbYokozunaSchemaPutReq getDefaultInstance() { return defaultInstance; } public RpbYokozunaSchemaPutReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbYokozunaSchemaPutReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = schema_.toBuilder(); } schema_ = input.readMessage(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schema_); schema_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; 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.RiakYokozunaPB.internal_static_RpbYokozunaSchemaPutReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaPutReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbYokozunaSchemaPutReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbYokozunaSchemaPutReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int SCHEMA_FIELD_NUMBER = 1; private com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema schema_; /** * required .RpbYokozunaSchema schema = 1; */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema getSchema() { return schema_; } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder getSchemaOrBuilder() { return schema_; } private void initFields() { schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSchema()) { memoizedIsInitialized = 0; return false; } if (!getSchema().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.writeMessage(1, schema_); } 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 .computeMessageSize(1, schema_); } 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.RiakYokozunaPB.RpbYokozunaSchemaPutReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq 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.RiakYokozunaPB.RpbYokozunaSchemaPutReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq 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.RiakYokozunaPB.RpbYokozunaSchemaPutReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq 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.RiakYokozunaPB.RpbYokozunaSchemaPutReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq 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.RiakYokozunaPB.RpbYokozunaSchemaPutReq 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 RpbYokozunaSchemaPutReq} * *
     * PUT request - create or potentially update a new schema
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbYokozunaSchemaPutReq) com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaPutReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaPutReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (schemaBuilder_ == null) { schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance(); } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaPutReq_descriptor; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq build() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq buildPartial() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq result = new com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (schemaBuilder_ == null) { result.schema_ = schema_; } else { result.schema_ = schemaBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq) { return mergeFrom((com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq other) { if (other == com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq.getDefaultInstance()) return this; if (other.hasSchema()) { mergeSchema(other.getSchema()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasSchema()) { return false; } if (!getSchema().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.RiakYokozunaPB.RpbYokozunaSchemaPutReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaPutReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder> schemaBuilder_; /** * required .RpbYokozunaSchema schema = 1; */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema getSchema() { if (schemaBuilder_ == null) { return schema_; } else { return schemaBuilder_.getMessage(); } } /** * required .RpbYokozunaSchema schema = 1; */ public Builder setSchema(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; onChanged(); } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .RpbYokozunaSchema schema = 1; */ public Builder setSchema( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .RpbYokozunaSchema schema = 1; */ public Builder mergeSchema(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && schema_ != com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance()) { schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.newBuilder(schema_).mergeFrom(value).buildPartial(); } else { schema_ = value; } onChanged(); } else { schemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .RpbYokozunaSchema schema = 1; */ public Builder clearSchema() { if (schemaBuilder_ == null) { schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance(); onChanged(); } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder getSchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_; } } /** * required .RpbYokozunaSchema schema = 1; */ private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } // @@protoc_insertion_point(builder_scope:RpbYokozunaSchemaPutReq) } static { defaultInstance = new RpbYokozunaSchemaPutReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbYokozunaSchemaPutReq) } public interface RpbYokozunaSchemaGetReqOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbYokozunaSchemaGetReq) com.google.protobuf.MessageOrBuilder { /** * required bytes name = 1; * *
     * Schema name
     * 
*/ boolean hasName(); /** * required bytes name = 1; * *
     * Schema name
     * 
*/ com.google.protobuf.ByteString getName(); } /** * Protobuf type {@code RpbYokozunaSchemaGetReq} * *
   * GET request - Return matching schema by name
   * 
*/ public static final class RpbYokozunaSchemaGetReq extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbYokozunaSchemaGetReq) RpbYokozunaSchemaGetReqOrBuilder { // Use RpbYokozunaSchemaGetReq.newBuilder() to construct. private RpbYokozunaSchemaGetReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbYokozunaSchemaGetReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbYokozunaSchemaGetReq defaultInstance; public static RpbYokozunaSchemaGetReq getDefaultInstance() { return defaultInstance; } public RpbYokozunaSchemaGetReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbYokozunaSchemaGetReq( 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; name_ = 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.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbYokozunaSchemaGetReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbYokozunaSchemaGetReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString name_; /** * required bytes name = 1; * *
     * Schema name
     * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes name = 1; * *
     * Schema name
     * 
*/ public com.google.protobuf.ByteString getName() { return name_; } private void initFields() { name_ = 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 (!hasName()) { 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, name_); } 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, name_); } 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.RiakYokozunaPB.RpbYokozunaSchemaGetReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq 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.RiakYokozunaPB.RpbYokozunaSchemaGetReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq 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.RiakYokozunaPB.RpbYokozunaSchemaGetReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq 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.RiakYokozunaPB.RpbYokozunaSchemaGetReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq 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.RiakYokozunaPB.RpbYokozunaSchemaGetReq 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 RpbYokozunaSchemaGetReq} * *
     * GET request - Return matching schema by name
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbYokozunaSchemaGetReq) com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq.Builder.class); } // Construct using com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq.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(); name_ = 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.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetReq_descriptor; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq.getDefaultInstance(); } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq build() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq buildPartial() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq result = new com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq) { return mergeFrom((com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq other) { if (other == com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq.getDefaultInstance()) return this; if (other.hasName()) { setName(other.getName()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { 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.RiakYokozunaPB.RpbYokozunaSchemaGetReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes name = 1; * *
       * Schema name
       * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes name = 1; * *
       * Schema name
       * 
*/ public com.google.protobuf.ByteString getName() { return name_; } /** * required bytes name = 1; * *
       * Schema name
       * 
*/ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required bytes name = 1; * *
       * Schema name
       * 
*/ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RpbYokozunaSchemaGetReq) } static { defaultInstance = new RpbYokozunaSchemaGetReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbYokozunaSchemaGetReq) } public interface RpbYokozunaSchemaGetRespOrBuilder extends // @@protoc_insertion_point(interface_extends:RpbYokozunaSchemaGetResp) com.google.protobuf.MessageOrBuilder { /** * required .RpbYokozunaSchema schema = 1; */ boolean hasSchema(); /** * required .RpbYokozunaSchema schema = 1; */ com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema getSchema(); /** * required .RpbYokozunaSchema schema = 1; */ com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder getSchemaOrBuilder(); } /** * Protobuf type {@code RpbYokozunaSchemaGetResp} */ public static final class RpbYokozunaSchemaGetResp extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RpbYokozunaSchemaGetResp) RpbYokozunaSchemaGetRespOrBuilder { // Use RpbYokozunaSchemaGetResp.newBuilder() to construct. private RpbYokozunaSchemaGetResp(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpbYokozunaSchemaGetResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpbYokozunaSchemaGetResp defaultInstance; public static RpbYokozunaSchemaGetResp getDefaultInstance() { return defaultInstance; } public RpbYokozunaSchemaGetResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpbYokozunaSchemaGetResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = schema_.toBuilder(); } schema_ = input.readMessage(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schema_); schema_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; 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.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpbYokozunaSchemaGetResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpbYokozunaSchemaGetResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int SCHEMA_FIELD_NUMBER = 1; private com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema schema_; /** * required .RpbYokozunaSchema schema = 1; */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema getSchema() { return schema_; } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder getSchemaOrBuilder() { return schema_; } private void initFields() { schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSchema()) { memoizedIsInitialized = 0; return false; } if (!getSchema().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.writeMessage(1, schema_); } 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 .computeMessageSize(1, schema_); } 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.RiakYokozunaPB.RpbYokozunaSchemaGetResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp 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.RiakYokozunaPB.RpbYokozunaSchemaGetResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp 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.RiakYokozunaPB.RpbYokozunaSchemaGetResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp 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.RiakYokozunaPB.RpbYokozunaSchemaGetResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp 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.RiakYokozunaPB.RpbYokozunaSchemaGetResp 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 RpbYokozunaSchemaGetResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:RpbYokozunaSchemaGetResp) com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp.class, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp.Builder.class); } // Construct using com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (schemaBuilder_ == null) { schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance(); } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.basho.riak.protobuf.RiakYokozunaPB.internal_static_RpbYokozunaSchemaGetResp_descriptor; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp getDefaultInstanceForType() { return com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp.getDefaultInstance(); } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp build() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp buildPartial() { com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp result = new com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (schemaBuilder_ == null) { result.schema_ = schema_; } else { result.schema_ = schemaBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp) { return mergeFrom((com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp other) { if (other == com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp.getDefaultInstance()) return this; if (other.hasSchema()) { mergeSchema(other.getSchema()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasSchema()) { return false; } if (!getSchema().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.RiakYokozunaPB.RpbYokozunaSchemaGetResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaGetResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder> schemaBuilder_; /** * required .RpbYokozunaSchema schema = 1; */ public boolean hasSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema getSchema() { if (schemaBuilder_ == null) { return schema_; } else { return schemaBuilder_.getMessage(); } } /** * required .RpbYokozunaSchema schema = 1; */ public Builder setSchema(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; onChanged(); } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .RpbYokozunaSchema schema = 1; */ public Builder setSchema( com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .RpbYokozunaSchema schema = 1; */ public Builder mergeSchema(com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && schema_ != com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance()) { schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.newBuilder(schema_).mergeFrom(value).buildPartial(); } else { schema_ = value; } onChanged(); } else { schemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .RpbYokozunaSchema schema = 1; */ public Builder clearSchema() { if (schemaBuilder_ == null) { schema_ = com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.getDefaultInstance(); onChanged(); } else { schemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder getSchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** * required .RpbYokozunaSchema schema = 1; */ public com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_; } } /** * required .RpbYokozunaSchema schema = 1; */ private com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchema.Builder, com.basho.riak.protobuf.RiakYokozunaPB.RpbYokozunaSchemaOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } // @@protoc_insertion_point(builder_scope:RpbYokozunaSchemaGetResp) } static { defaultInstance = new RpbYokozunaSchemaGetResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RpbYokozunaSchemaGetResp) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbYokozunaIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbYokozunaIndex_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbYokozunaIndexGetReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbYokozunaIndexGetReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbYokozunaIndexGetResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbYokozunaIndexGetResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbYokozunaIndexPutReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbYokozunaIndexPutReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbYokozunaIndexDeleteReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbYokozunaIndexDeleteReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbYokozunaSchema_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbYokozunaSchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbYokozunaSchemaPutReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbYokozunaSchemaPutReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbYokozunaSchemaGetReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbYokozunaSchemaGetReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_RpbYokozunaSchemaGetResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbYokozunaSchemaGetResp_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\023riak_yokozuna.proto\"?\n\020RpbYokozunaInde" + "x\022\014\n\004name\030\001 \002(\014\022\016\n\006schema\030\002 \001(\014\022\r\n\005n_val" + "\030\003 \001(\r\"&\n\026RpbYokozunaIndexGetReq\022\014\n\004name" + "\030\001 \001(\014\";\n\027RpbYokozunaIndexGetResp\022 \n\005ind" + "ex\030\001 \003(\0132\021.RpbYokozunaIndex\"K\n\026RpbYokozu" + "naIndexPutReq\022 \n\005index\030\001 \002(\0132\021.RpbYokozu" + "naIndex\022\017\n\007timeout\030\002 \001(\r\")\n\031RpbYokozunaI" + "ndexDeleteReq\022\014\n\004name\030\001 \002(\014\"2\n\021RpbYokozu" + "naSchema\022\014\n\004name\030\001 \002(\014\022\017\n\007content\030\002 \001(\014\"" + "=\n\027RpbYokozunaSchemaPutReq\022\"\n\006schema\030\001 \002", "(\0132\022.RpbYokozunaSchema\"\'\n\027RpbYokozunaSch" + "emaGetReq\022\014\n\004name\030\001 \002(\014\">\n\030RpbYokozunaSc" + "hemaGetResp\022\"\n\006schema\030\001 \002(\0132\022.RpbYokozun" + "aSchemaB)\n\027com.basho.riak.protobufB\016Riak" + "YokozunaPB" }; 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[] { }, assigner); internal_static_RpbYokozunaIndex_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_RpbYokozunaIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbYokozunaIndex_descriptor, new java.lang.String[] { "Name", "Schema", "NVal", }); internal_static_RpbYokozunaIndexGetReq_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_RpbYokozunaIndexGetReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbYokozunaIndexGetReq_descriptor, new java.lang.String[] { "Name", }); internal_static_RpbYokozunaIndexGetResp_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_RpbYokozunaIndexGetResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbYokozunaIndexGetResp_descriptor, new java.lang.String[] { "Index", }); internal_static_RpbYokozunaIndexPutReq_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_RpbYokozunaIndexPutReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbYokozunaIndexPutReq_descriptor, new java.lang.String[] { "Index", "Timeout", }); internal_static_RpbYokozunaIndexDeleteReq_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_RpbYokozunaIndexDeleteReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbYokozunaIndexDeleteReq_descriptor, new java.lang.String[] { "Name", }); internal_static_RpbYokozunaSchema_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_RpbYokozunaSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbYokozunaSchema_descriptor, new java.lang.String[] { "Name", "Content", }); internal_static_RpbYokozunaSchemaPutReq_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_RpbYokozunaSchemaPutReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbYokozunaSchemaPutReq_descriptor, new java.lang.String[] { "Schema", }); internal_static_RpbYokozunaSchemaGetReq_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_RpbYokozunaSchemaGetReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbYokozunaSchemaGetReq_descriptor, new java.lang.String[] { "Name", }); internal_static_RpbYokozunaSchemaGetResp_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_RpbYokozunaSchemaGetResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RpbYokozunaSchemaGetResp_descriptor, new java.lang.String[] { "Schema", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy