diff --git a/com.pilosa.client/pom.xml b/com.pilosa.client/pom.xml index 5579ffe..3e0fe31 100644 --- a/com.pilosa.client/pom.xml +++ b/com.pilosa.client/pom.xml @@ -286,7 +286,6 @@ protobuf-java 3.6.1 - com.pilosa roaring diff --git a/com.pilosa.client/src/integration-test/java/integrationtest/PilosaClientIT.java b/com.pilosa.client/src/integration-test/java/integrationtest/PilosaClientIT.java index 9344a0b..f7d7d3c 100644 --- a/com.pilosa.client/src/integration-test/java/integrationtest/PilosaClientIT.java +++ b/com.pilosa.client/src/integration-test/java/integrationtest/PilosaClientIT.java @@ -636,6 +636,37 @@ public void importRowKeyColumnIDTest() throws IOException { } } + @Test + public void fastImportRowKeyColumnIDTest() throws IOException { + try (PilosaClient client = this.getClient()) { + LineDeserializer deserializer = new RowKeyColumnIDDeserializer(); + RecordIterator iterator = csvRecordIterator("row_key-column_id.csv", deserializer); + FieldOptions fieldOptions = FieldOptions.builder() + .setKeys(true) + .build(); + Field field = this.index.field("importfield-rowkey-colid", fieldOptions); + client.ensureField(field); + ImportOptions importOptions = ImportOptions.builder() + .setRoaring(true) + .setTranslateKeys(true) + .build(); + client.importField(field, iterator, importOptions); + PqlBatchQuery bq = index.batchQuery( + field.row("one"), + field.row("five"), + field.row("three") + ); + QueryResponse response = client.query(bq); + + List target = Arrays.asList(10L, 20L, 41L); + List results = response.getResults(); + for (int i = 0; i < results.size(); i++) { + RowResult br = results.get(i).getRow(); + assertEquals(target.get(i), br.getColumns().get(0)); + } + } + } + @Test public void importRowKeyColumnKeyTest() throws IOException { try (PilosaClient client = this.getClient()) { @@ -834,7 +865,6 @@ public void importTestWithBatch() throws IOException { Field field = this.index.field("importfield"); client.ensureField(field); ImportOptions options = ImportOptions.builder(). - setStrategy(ImportOptions.Strategy.BATCH). setBatchSize(3). setThreadCount(1). build(); @@ -917,8 +947,6 @@ public void run() { ImportOptions options = ImportOptions.builder() .setBatchSize(100000) .setThreadCount(2) - .setStrategy(ImportOptions.Strategy.TIMEOUT) - .setTimeoutMs(5) .build(); client.importField(field, iterator, options, statusQueue); monitorThread.interrupt(); @@ -942,7 +970,6 @@ public void run() { this.client.ensureField(field); ImportOptions options = ImportOptions.builder() - .setStrategy(ImportOptions.Strategy.BATCH) .setBatchSize(500) .setThreadCount(1) .build(); @@ -989,7 +1016,6 @@ public void run() { this.client.ensureField(field); ImportOptions options = ImportOptions.builder() - .setStrategy(ImportOptions.Strategy.BATCH) .setBatchSize(1_000) .setThreadCount(1) .build(); @@ -1037,7 +1063,6 @@ public void getEmptySchemaTest() throws IOException { @Test public void syncSchemaTest() throws IOException { Index index = null; - try (PilosaClient client = this.getClient()) { Schema schema = client.readSchema(); IndexOptions indexOptions = IndexOptions.builder() @@ -1065,8 +1090,6 @@ public void syncSchemaTest() throws IOException { Index index4 = schema4.index("index11", indexOptions); client.syncSchema(schema4); assertEquals(index, index4); - - } finally { try (PilosaClient client = this.getClient()) { if (index != null) { @@ -1195,6 +1218,25 @@ public void warningResponseTest() throws IOException, InterruptedException { } } + @Test + public void translateRowKeysTest() throws IOException { + try (PilosaClient client = getClient()) { + FieldOptions options = FieldOptions.builder() + .setKeys(true) + .build(); + Field field = this.index.field("translate-rowkey-field", options); + client.syncSchema(this.schema); + client.query(this.index.batchQuery( + field.set("key1", 10), + field.set("key2", 1000) + )); + + List rowIDs = client.translateKeys(field, Arrays.asList("key1", "key2")); + List target = Arrays.asList(1L, 2L); + assertEquals(target, rowIDs); + } + } + @Test(expected = PilosaException.class) public void importFailNot200() throws IOException { HttpServer server = runImportFailsHttpServer(); @@ -1642,10 +1684,6 @@ private PilosaClient getClient() { String bindAddress = getBindAddress(); Cluster cluster = Cluster.withHost(URI.address(bindAddress)); ClientOptions.Builder optionsBuilder = ClientOptions.builder(); - long shardWidth = getShardWidth(); - if (shardWidth > 0) { - optionsBuilder.setShardWidth(shardWidth); - } return new InsecurePilosaClientIT(cluster, optionsBuilder.build()); } @@ -1653,10 +1691,6 @@ private PilosaClient getClientManualAddress() { String bindAddress = getBindAddress(); ClientOptions.Builder optionsBuilder = ClientOptions.builder() .setManualServerAddress(true); - long shardWidth = getShardWidth(); - if (shardWidth > 0) { - optionsBuilder.setShardWidth(shardWidth); - } return new InsecurePilosaClientIT(bindAddress, optionsBuilder.build()); } @@ -1668,11 +1702,6 @@ private String getBindAddress() { return bindAddress; } - private boolean isLegacyModeOff() { - String legacyModeOffStr = System.getenv("LEGACY_MODE_OFF"); - return legacyModeOffStr != null && legacyModeOffStr.equals("true"); - } - private long getShardWidth() { String shardWidthStr = System.getenv("SHARD_WIDTH"); return (shardWidthStr == null) ? 0 : Long.parseLong(shardWidthStr); diff --git a/com.pilosa.client/src/internal/public.proto b/com.pilosa.client/src/internal/public.proto index a2aa01a..1600093 100644 --- a/com.pilosa.client/src/internal/public.proto +++ b/com.pilosa.client/src/internal/public.proto @@ -25,7 +25,7 @@ message Pair { message FieldRow{ string Field = 1; uint64 RowID = 2; - string RowKey = 3; + string RowKey = 3; } message GroupCount{ diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/ClientOptions.java b/com.pilosa.client/src/main/java/com/pilosa/client/ClientOptions.java index 3a243a0..bba472f 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/ClientOptions.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/ClientOptions.java @@ -121,11 +121,6 @@ public Builder setSslContext(SSLContext sslContext) { return this; } - public Builder setShardWidth(long shardWidth) { - this.shardWidth = shardWidth; - return this; - } - public Builder setManualServerAddress(boolean manualServerAddress) { this.manualServerAddress = manualServerAddress; return this; @@ -138,7 +133,7 @@ public Builder setManualServerAddress(boolean manualServerAddress) { public ClientOptions build() { return new ClientOptions(this.socketTimeout, this.connectTimeout, this.retryCount, this.connectionPoolSizePerRoute, this.connectionPoolTotalSize, - this.sslContext, this.shardWidth, this.manualServerAddress); + this.sslContext, this.manualServerAddress); } private int socketTimeout = 300000; @@ -185,17 +180,13 @@ public SSLContext getSslContext() { return this.sslContext; } - public long getShardWidth() { - return this.shardWidth; - } - public boolean isManualServerAddress() { return this.manualServerAddress; } private ClientOptions(final int socketTimeout, final int connectTimeout, final int retryCount, final int connectionPoolSizePerRoute, final int connectionPoolTotalSize, - final SSLContext sslContext, final long shardWidth, + final SSLContext sslContext, final boolean manualServerAddress) { this.socketTimeout = socketTimeout; this.connectTimeout = connectTimeout; @@ -203,7 +194,6 @@ private ClientOptions(final int socketTimeout, final int connectTimeout, final i this.connectionPoolSizePerRoute = connectionPoolSizePerRoute; this.connectionPoolTotalSize = connectionPoolTotalSize; this.sslContext = sslContext; - this.shardWidth = shardWidth; this.manualServerAddress = manualServerAddress; } @@ -213,6 +203,5 @@ private ClientOptions(final int socketTimeout, final int connectTimeout, final i private final int connectionPoolSizePerRoute; private final int connectionPoolTotalSize; private final SSLContext sslContext; - private final long shardWidth; private final boolean manualServerAddress; } diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/FieldRow.java b/com.pilosa.client/src/main/java/com/pilosa/client/FieldRow.java index 00a0eac..a715b7f 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/FieldRow.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/FieldRow.java @@ -41,6 +41,7 @@ public final class FieldRow { public static FieldRow create(String fieldName, long rowID) { return new FieldRow(fieldName, rowID, ""); } + public static FieldRow create(String fieldName, String rowKey) { return new FieldRow(fieldName, 0, rowKey); } diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/ImportOptions.java b/com.pilosa.client/src/main/java/com/pilosa/client/ImportOptions.java index e60b8ff..cd2886d 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/ImportOptions.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/ImportOptions.java @@ -47,9 +47,12 @@ private Builder() { } public ImportOptions build() { - return new ImportOptions(this.threadCount, - this.timeoutMs, this.batchSize, this.strategy, - this.roaring, this.clear); + return new ImportOptions( + this.threadCount, + this.batchSize, + this.roaring, + this.clear, + this.translateKeys); } public Builder setThreadCount(int threadCount) { @@ -57,21 +60,11 @@ public Builder setThreadCount(int threadCount) { return this; } - public Builder setTimeoutMs(long timeoutMs) { - this.timeoutMs = timeoutMs; - return this; - } - public Builder setBatchSize(int batchSize) { this.batchSize = batchSize; return this; } - public Builder setStrategy(Strategy strategy) { - this.strategy = (strategy == Strategy.DEFAULT) ? Strategy.BATCH : strategy; - return this; - } - public Builder setRoaring(boolean roaring) { this.roaring = roaring; return this; @@ -82,26 +75,28 @@ public Builder setClear(boolean clear) { return this; } + public Builder setTranslateKeys(boolean translateKeys) { + this.translateKeys = translateKeys; + return this; + } + private int threadCount = 1; - private long timeoutMs = 100; private int batchSize = 100000; - private Strategy strategy = Strategy.BATCH; private boolean roaring = false; private boolean clear = false; + private boolean translateKeys = false; } private ImportOptions(int threadCount, - long timeoutMs, int batchSize, - Strategy strategy, boolean roaring, - boolean clear) { + boolean clear, + boolean translateKeys) { this.threadCount = threadCount; - this.timeoutMs = timeoutMs; this.batchSize = batchSize; - this.strategy = strategy; this.roaring = roaring; this.clear = clear; + this.translateKeys = translateKeys; } public static Builder builder() { @@ -112,18 +107,10 @@ public int getThreadCount() { return this.threadCount; } - public long getTimeoutMs() { - return this.timeoutMs; - } - public int getBatchSize() { return this.batchSize; } - public Strategy getStrategy() { - return this.strategy; - } - public long getShardWidth() { return ClientOptions.DEFAULT_SHARD_WIDTH; } @@ -136,10 +123,13 @@ public boolean isClear() { return this.clear; } + public boolean isTranslateKeys() { + return this.translateKeys; + } + final private int threadCount; - final private long timeoutMs; final private int batchSize; - final private Strategy strategy; final private boolean roaring; final private boolean clear; + final private boolean translateKeys; } diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/ImportRequest.java b/com.pilosa.client/src/main/java/com/pilosa/client/ImportRequest.java index 132ab85..c059c77 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/ImportRequest.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/ImportRequest.java @@ -41,23 +41,24 @@ import static com.pilosa.client.PilosaClient.PQL_VERSION; class ImportRequest { - ImportRequest(final String path, final byte[] payload, final String contentType) { + ImportRequest(final String path, final byte[] payload, final String contentType, final boolean roaring) { this.path = path; this.payload = payload; this.contentType = contentType; + this.roaring = roaring; } static ImportRequest createCSVImport(final Field field, final byte[] payload, boolean clear) { String clearStr = clear ? "?clear=true" : ""; String path = String.format("/index/%s/field/%s/import%s", field.getIndex().getName(), field.getName(), clearStr); - return new ImportRequest(path, payload, "application/x-protobuf"); + return new ImportRequest(path, payload, "application/x-protobuf", false); } static ImportRequest createRoaringImport(final Field field, long shard, final byte[] payload, boolean clear) { String clearStr = clear ? "?clear=true" : ""; String path = String.format("/index/%s/field/%s/import-roaring/%d%s", field.getIndex().getName(), field.getName(), shard, clearStr); - return new ImportRequest(path, payload, "application/x-protobuf"); + return new ImportRequest(path, payload, "application/x-protobuf", true); } String getPath() { @@ -76,7 +77,12 @@ Header[] getHeaders() { }; } + public boolean isRoaring() { + return this.roaring; + } + protected final String path; protected final String contentType; protected final byte[] payload; + protected final boolean roaring; } diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/Internal.java b/com.pilosa.client/src/main/java/com/pilosa/client/Internal.java index 65925bb..6322ed1 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/Internal.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/Internal.java @@ -1,3 +1,37 @@ +/* + * Copyright 2017 Pilosa Corp. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + */ + // Generated by the protocol buffer compiler. DO NOT EDIT! // source: com.pilosa.client/src/internal/public.proto @@ -15,7 +49,7 @@ public static void registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface RowOrBuilder extends - // @@protoc_insertion_point(interface_extends:internal.Row) + // @@protoc_insertion_point(interface_extends:internal.Row) com.google.protobuf.MessageOrBuilder { /** @@ -53,7 +87,7 @@ public interface RowOrBuilder extends /** * repeated .internal.Attr Attrs = 2; */ - java.util.List + java.util.List getAttrsList(); /** * repeated .internal.Attr Attrs = 2; @@ -66,7 +100,7 @@ public interface RowOrBuilder extends /** * repeated .internal.Attr Attrs = 2; */ - java.util.List + java.util.List getAttrsOrBuilderList(); /** * repeated .internal.Attr Attrs = 2; @@ -79,7 +113,7 @@ com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( */ public static final class Row extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:internal.Row) + // @@protoc_insertion_point(message_implements:internal.Row) RowOrBuilder { private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. @@ -185,13 +219,13 @@ private Row( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_Row_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_Row_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Row.class, com.pilosa.client.Internal.Row.Builder.class); } @@ -259,7 +293,7 @@ public java.util.List getAttrsList() { /** * repeated .internal.Attr Attrs = 2; */ - public java.util.List + public java.util.List getAttrsOrBuilderList() { return attrs_; } @@ -491,17 +525,17 @@ protected Builder newBuilderForType( */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:internal.Row) + // @@protoc_insertion_point(builder_implements:internal.Row) com.pilosa.client.Internal.RowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_Row_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_Row_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Row.class, com.pilosa.client.Internal.Row.Builder.class); } @@ -541,7 +575,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_Row_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Row_descriptor; } @java.lang.Override @@ -667,7 +701,7 @@ public Builder mergeFrom(com.pilosa.client.Internal.Row other) { attrsBuilder_ = null; attrs_ = other.attrs_; bitField0_ = (bitField0_ & ~0x00000004); - attrsBuilder_ = + attrsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttrsFieldBuilder() : null; } else { @@ -1060,7 +1094,7 @@ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( /** * repeated .internal.Attr Attrs = 2; */ - public java.util.List + public java.util.List getAttrsOrBuilderList() { if (attrsBuilder_ != null) { return attrsBuilder_.getMessageOrBuilderList(); @@ -1086,12 +1120,12 @@ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder( /** * repeated .internal.Attr Attrs = 2; */ - public java.util.List + public java.util.List getAttrsBuilderList() { return getAttrsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.pilosa.client.Internal.Attr, com.pilosa.client.Internal.Attr.Builder, com.pilosa.client.Internal.AttrOrBuilder> + com.pilosa.client.Internal.Attr, com.pilosa.client.Internal.Attr.Builder, com.pilosa.client.Internal.AttrOrBuilder> getAttrsFieldBuilder() { if (attrsBuilder_ == null) { attrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< @@ -1117,10 +1151,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:internal.Row) + // @@protoc_insertion_point(builder_scope:internal.Row) } - // @@protoc_insertion_point(class_scope:internal.Row) + // @@protoc_insertion_point(class_scope:internal.Row) private static final com.pilosa.client.Internal.Row DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.Row(); @@ -1158,7 +1192,7 @@ public com.pilosa.client.Internal.Row getDefaultInstanceForType() { } public interface RowIdentifiersOrBuilder extends - // @@protoc_insertion_point(interface_extends:internal.RowIdentifiers) + // @@protoc_insertion_point(interface_extends:internal.RowIdentifiers) com.google.protobuf.MessageOrBuilder { /** @@ -1198,7 +1232,7 @@ public interface RowIdentifiersOrBuilder extends */ public static final class RowIdentifiers extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:internal.RowIdentifiers) + // @@protoc_insertion_point(message_implements:internal.RowIdentifiers) RowIdentifiersOrBuilder { private static final long serialVersionUID = 0L; // Use RowIdentifiers.newBuilder() to construct. @@ -1291,13 +1325,13 @@ private RowIdentifiers( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_descriptor; + return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.RowIdentifiers.class, com.pilosa.client.Internal.RowIdentifiers.Builder.class); } @@ -1549,17 +1583,17 @@ protected Builder newBuilderForType( */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:internal.RowIdentifiers) + // @@protoc_insertion_point(builder_implements:internal.RowIdentifiers) com.pilosa.client.Internal.RowIdentifiersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_descriptor; + return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.RowIdentifiers.class, com.pilosa.client.Internal.RowIdentifiers.Builder.class); } @@ -1592,7 +1626,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_descriptor; + return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_descriptor; } @java.lang.Override @@ -1893,10 +1927,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:internal.RowIdentifiers) + // @@protoc_insertion_point(builder_scope:internal.RowIdentifiers) } - // @@protoc_insertion_point(class_scope:internal.RowIdentifiers) + // @@protoc_insertion_point(class_scope:internal.RowIdentifiers) private static final com.pilosa.client.Internal.RowIdentifiers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.RowIdentifiers(); @@ -1934,7 +1968,7 @@ public com.pilosa.client.Internal.RowIdentifiers getDefaultInstanceForType() { } public interface PairOrBuilder extends - // @@protoc_insertion_point(interface_extends:internal.Pair) + // @@protoc_insertion_point(interface_extends:internal.Pair) com.google.protobuf.MessageOrBuilder { /** @@ -1962,7 +1996,7 @@ public interface PairOrBuilder extends */ public static final class Pair extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:internal.Pair) + // @@protoc_insertion_point(message_implements:internal.Pair) PairOrBuilder { private static final long serialVersionUID = 0L; // Use Pair.newBuilder() to construct. @@ -2036,13 +2070,13 @@ private Pair( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_Pair_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Pair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_Pair_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_Pair_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Pair.class, com.pilosa.client.Internal.Pair.Builder.class); } @@ -2066,7 +2100,7 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; @@ -2080,7 +2114,7 @@ public java.lang.String getKey() { getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; @@ -2283,17 +2317,17 @@ protected Builder newBuilderForType( */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:internal.Pair) + // @@protoc_insertion_point(builder_implements:internal.Pair) com.pilosa.client.Internal.PairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_Pair_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Pair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_Pair_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_Pair_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Pair.class, com.pilosa.client.Internal.Pair.Builder.class); } @@ -2328,7 +2362,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_Pair_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Pair_descriptor; } @java.lang.Override @@ -2449,7 +2483,7 @@ public long getID() { * uint64 ID = 1; */ public Builder setID(long value) { - + iD_ = value; onChanged(); return this; @@ -2458,7 +2492,7 @@ public Builder setID(long value) { * uint64 ID = 1; */ public Builder clearID() { - + iD_ = 0L; onChanged(); return this; @@ -2487,7 +2521,7 @@ public java.lang.String getKey() { getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; @@ -2504,7 +2538,7 @@ public Builder setKey( if (value == null) { throw new NullPointerException(); } - + key_ = value; onChanged(); return this; @@ -2513,7 +2547,7 @@ public Builder setKey( * string Key = 3; */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; @@ -2527,7 +2561,7 @@ public Builder setKeyBytes( throw new NullPointerException(); } checkByteStringIsUtf8(value); - + key_ = value; onChanged(); return this; @@ -2544,7 +2578,7 @@ public long getCount() { * uint64 Count = 2; */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; @@ -2553,7 +2587,7 @@ public Builder setCount(long value) { * uint64 Count = 2; */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; @@ -2571,10 +2605,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:internal.Pair) + // @@protoc_insertion_point(builder_scope:internal.Pair) } - // @@protoc_insertion_point(class_scope:internal.Pair) + // @@protoc_insertion_point(class_scope:internal.Pair) private static final com.pilosa.client.Internal.Pair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.Pair(); @@ -2612,7 +2646,7 @@ public com.pilosa.client.Internal.Pair getDefaultInstanceForType() { } public interface FieldRowOrBuilder extends - // @@protoc_insertion_point(interface_extends:internal.FieldRow) + // @@protoc_insertion_point(interface_extends:internal.FieldRow) com.google.protobuf.MessageOrBuilder { /** @@ -2630,22 +2664,23 @@ public interface FieldRowOrBuilder extends */ long getRowID(); - /** - * string RowKey = 3; - */ - java.lang.String getRowKey(); - /** - * string RowKey = 3; - */ - com.google.protobuf.ByteString - getRowKeyBytes(); + /** + * string RowKey = 3; + */ + java.lang.String getRowKey(); + + /** + * string RowKey = 3; + */ + com.google.protobuf.ByteString + getRowKeyBytes(); } /** * Protobuf type {@code internal.FieldRow} */ public static final class FieldRow extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:internal.FieldRow) + // @@protoc_insertion_point(message_implements:internal.FieldRow) FieldRowOrBuilder { private static final long serialVersionUID = 0L; // Use FieldRow.newBuilder() to construct. @@ -2654,8 +2689,8 @@ private FieldRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private FieldRow() { field_ = ""; - rowID_ = 0L; - rowKey_ = ""; + rowID_ = 0L; + rowKey_ = ""; } @java.lang.Override @@ -2688,17 +2723,17 @@ private FieldRow( field_ = s; break; } - case 16: { + case 16: { - rowID_ = input.readUInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + rowID_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - rowKey_ = s; - break; - } + rowKey_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -2720,13 +2755,13 @@ private FieldRow( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_FieldRow_descriptor; + return com.pilosa.client.Internal.internal_static_internal_FieldRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_FieldRow_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_FieldRow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.FieldRow.class, com.pilosa.client.Internal.FieldRow.Builder.class); } @@ -2741,7 +2776,7 @@ public java.lang.String getField() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); field_ = s; @@ -2755,7 +2790,7 @@ public java.lang.String getField() { getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field_ = b; @@ -2774,39 +2809,41 @@ public long getRowID() { return rowID_; } - public static final int ROWKEY_FIELD_NUMBER = 3; - private volatile java.lang.Object rowKey_; - /** - * string RowKey = 3; - */ - public java.lang.String getRowKey() { - java.lang.Object ref = rowKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rowKey_ = s; - return s; + public static final int ROWKEY_FIELD_NUMBER = 3; + private volatile java.lang.Object rowKey_; + + /** + * string RowKey = 3; + */ + public java.lang.String getRowKey() { + java.lang.Object ref = rowKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rowKey_ = s; + return s; + } } - } - /** - * string RowKey = 3; - */ - public com.google.protobuf.ByteString - getRowKeyBytes() { - java.lang.Object ref = rowKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rowKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + /** + * string RowKey = 3; + */ + public com.google.protobuf.ByteString + getRowKeyBytes() { + java.lang.Object ref = rowKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rowKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2828,9 +2865,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (rowID_ != 0L) { output.writeUInt64(2, rowID_); } - if (!getRowKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rowKey_); - } + if (!getRowKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rowKey_); + } unknownFields.writeTo(output); } @@ -2847,9 +2884,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, rowID_); } - if (!getRowKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rowKey_); - } + if (!getRowKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rowKey_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2869,9 +2906,9 @@ public boolean equals(final java.lang.Object obj) { result = result && getField() .equals(other.getField()); result = result && (getRowID() - == other.getRowID()); - result = result && getRowKey() - .equals(other.getRowKey()); + == other.getRowID()); + result = result && getRowKey() + .equals(other.getRowKey()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -2887,9 +2924,9 @@ public int hashCode() { hash = (53 * hash) + getField().hashCode(); hash = (37 * hash) + ROWID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRowID()); - hash = (37 * hash) + ROWKEY_FIELD_NUMBER; - hash = (53 * hash) + getRowKey().hashCode(); + getRowID()); + hash = (37 * hash) + ROWKEY_FIELD_NUMBER; + hash = (53 * hash) + getRowKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2990,17 +3027,17 @@ protected Builder newBuilderForType( */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:internal.FieldRow) + // @@protoc_insertion_point(builder_implements:internal.FieldRow) com.pilosa.client.Internal.FieldRowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_FieldRow_descriptor; + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_FieldRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_FieldRow_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_FieldRow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.FieldRow.class, com.pilosa.client.Internal.FieldRow.Builder.class); } @@ -3025,7 +3062,7 @@ public Builder clear() { super.clear(); field_ = ""; - rowID_ = 0L; + rowID_ = 0L; rowKey_ = ""; @@ -3034,8 +3071,8 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_FieldRow_descriptor; + getDescriptorForType() { + return com.pilosa.client.Internal.internal_static_internal_FieldRow_descriptor; } @java.lang.Override @@ -3056,8 +3093,8 @@ public com.pilosa.client.Internal.FieldRow build() { public com.pilosa.client.Internal.FieldRow buildPartial() { com.pilosa.client.Internal.FieldRow result = new com.pilosa.client.Internal.FieldRow(this); result.field_ = field_; - result.rowID_ = rowID_; - result.rowKey_ = rowKey_; + result.rowID_ = rowID_; + result.rowKey_ = rowKey_; onBuilt(); return result; } @@ -3113,10 +3150,10 @@ public Builder mergeFrom(com.pilosa.client.Internal.FieldRow other) { if (other.getRowID() != 0L) { setRowID(other.getRowID()); } - if (!other.getRowKey().isEmpty()) { - rowKey_ = other.rowKey_; - onChanged(); - } + if (!other.getRowKey().isEmpty()) { + rowKey_ = other.rowKey_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3169,7 +3206,7 @@ public java.lang.String getField() { getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field_ = b; @@ -3186,7 +3223,7 @@ public Builder setField( if (value == null) { throw new NullPointerException(); } - + field_ = value; onChanged(); return this; @@ -3195,7 +3232,7 @@ public Builder setField( * string Field = 1; */ public Builder clearField() { - + field_ = getDefaultInstance().getField(); onChanged(); return this; @@ -3209,7 +3246,7 @@ public Builder setFieldBytes( throw new NullPointerException(); } checkByteStringIsUtf8(value); - + field_ = value; onChanged(); return this; @@ -3226,7 +3263,7 @@ public long getRowID() { * uint64 RowID = 2; */ public Builder setRowID(long value) { - + rowID_ = value; onChanged(); return this; @@ -3235,80 +3272,85 @@ public Builder setRowID(long value) { * uint64 RowID = 2; */ public Builder clearRowID() { - + rowID_ = 0L; onChanged(); - return this; + return this; } - private java.lang.Object rowKey_ = ""; - /** - * string RowKey = 3; - */ - public java.lang.String getRowKey() { - java.lang.Object ref = rowKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rowKey_ = s; - return s; - } else { - return (java.lang.String) ref; + private java.lang.Object rowKey_ = ""; + + /** + * string RowKey = 3; + */ + public java.lang.String getRowKey() { + java.lang.Object ref = rowKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rowKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - } - /** - * string RowKey = 3; - */ - public com.google.protobuf.ByteString - getRowKeyBytes() { - java.lang.Object ref = rowKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rowKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + /** + * string RowKey = 3; + */ + public com.google.protobuf.ByteString + getRowKeyBytes() { + java.lang.Object ref = rowKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rowKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string RowKey = 3; + */ + public Builder setRowKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rowKey_ = value; + onChanged(); + return this; + } + + /** + * string RowKey = 3; + */ + public Builder clearRowKey() { + + rowKey_ = getDefaultInstance().getRowKey(); + onChanged(); + return this; + } + + /** + * string RowKey = 3; + */ + public Builder setRowKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rowKey_ = value; + onChanged(); + return this; } - } - /** - * string RowKey = 3; - */ - public Builder setRowKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rowKey_ = value; - onChanged(); - return this; - } - /** - * string RowKey = 3; - */ - public Builder clearRowKey() { - - rowKey_ = getDefaultInstance().getRowKey(); - onChanged(); - return this; - } - /** - * string RowKey = 3; - */ - public Builder setRowKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rowKey_ = value; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3318,11 +3360,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.FieldRow) + // @@protoc_insertion_point(builder_scope:internal.FieldRow) } // @@protoc_insertion_point(class_scope:internal.FieldRow) @@ -3357,19 +3399,19 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.FieldRow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface GroupCountOrBuilder extends + public interface GroupCountOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.GroupCount) com.google.protobuf.MessageOrBuilder { /** * repeated .internal.FieldRow Group = 1; */ - java.util.List + java.util.List getGroupList(); /** * repeated .internal.FieldRow Group = 1; @@ -3382,7 +3424,7 @@ public interface GroupCountOrBuilder extends /** * repeated .internal.FieldRow Group = 1; */ - java.util.List + java.util.List getGroupOrBuilderList(); /** * repeated .internal.FieldRow Group = 1; @@ -3399,7 +3441,7 @@ com.pilosa.client.Internal.FieldRowOrBuilder getGroupOrBuilder( * Protobuf type {@code internal.GroupCount} */ public static final class GroupCount extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:internal.GroupCount) GroupCountOrBuilder { private static final long serialVersionUID = 0L; @@ -3472,15 +3514,16 @@ private GroupCount( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_GroupCount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_GroupCount_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_GroupCount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.GroupCount.class, com.pilosa.client.Internal.GroupCount.Builder.class); } @@ -3497,7 +3540,7 @@ public java.util.List getGroupList() { /** * repeated .internal.FieldRow Group = 1; */ - public java.util.List + public java.util.List getGroupOrBuilderList() { return group_; } @@ -3704,18 +3747,18 @@ protected Builder newBuilderForType( * Protobuf type {@code internal.GroupCount} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:internal.GroupCount) com.pilosa.client.Internal.GroupCountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_GroupCount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_GroupCount_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_GroupCount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.GroupCount.class, com.pilosa.client.Internal.GroupCount.Builder.class); } @@ -3752,7 +3795,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return com.pilosa.client.Internal.internal_static_internal_GroupCount_descriptor; } @@ -3852,7 +3895,7 @@ public Builder mergeFrom(com.pilosa.client.Internal.GroupCount other) { groupBuilder_ = null; group_ = other.group_; bitField0_ = (bitField0_ & ~0x00000001); - groupBuilder_ = + groupBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroupFieldBuilder() : null; } else { @@ -4088,7 +4131,7 @@ public com.pilosa.client.Internal.FieldRowOrBuilder getGroupOrBuilder( /** * repeated .internal.FieldRow Group = 1; */ - public java.util.List + public java.util.List getGroupOrBuilderList() { if (groupBuilder_ != null) { return groupBuilder_.getMessageOrBuilderList(); @@ -4114,12 +4157,12 @@ public com.pilosa.client.Internal.FieldRow.Builder addGroupBuilder( /** * repeated .internal.FieldRow Group = 1; */ - public java.util.List + public java.util.List getGroupBuilderList() { return getGroupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.pilosa.client.Internal.FieldRow, com.pilosa.client.Internal.FieldRow.Builder, com.pilosa.client.Internal.FieldRowOrBuilder> + com.pilosa.client.Internal.FieldRow, com.pilosa.client.Internal.FieldRow.Builder, com.pilosa.client.Internal.FieldRowOrBuilder> getGroupFieldBuilder() { if (groupBuilder_ == null) { groupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< @@ -4144,7 +4187,7 @@ public long getCount() { * uint64 Count = 2; */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; @@ -4153,7 +4196,7 @@ public Builder setCount(long value) { * uint64 Count = 2; */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; @@ -4167,11 +4210,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.GroupCount) + // @@protoc_insertion_point(builder_scope:internal.GroupCount) } // @@protoc_insertion_point(class_scope:internal.GroupCount) @@ -4206,12 +4249,12 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.GroupCount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface ValCountOrBuilder extends + public interface ValCountOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.ValCount) com.google.protobuf.MessageOrBuilder { @@ -4228,8 +4271,8 @@ public interface ValCountOrBuilder extends /** * Protobuf type {@code internal.ValCount} */ - public static final class ValCount extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ValCount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:internal.ValCount) ValCountOrBuilder { private static final long serialVersionUID = 0L; @@ -4295,15 +4338,16 @@ private ValCount( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_ValCount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_ValCount_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_ValCount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ValCount.class, com.pilosa.client.Internal.ValCount.Builder.class); } @@ -4499,18 +4543,18 @@ protected Builder newBuilderForType( * Protobuf type {@code internal.ValCount} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:internal.ValCount) com.pilosa.client.Internal.ValCountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_ValCount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_ValCount_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_ValCount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ValCount.class, com.pilosa.client.Internal.ValCount.Builder.class); } @@ -4542,7 +4586,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return com.pilosa.client.Internal.internal_static_internal_ValCount_descriptor; } @@ -4659,7 +4703,7 @@ public long getVal() { * int64 Val = 1; */ public Builder setVal(long value) { - + val_ = value; onChanged(); return this; @@ -4668,7 +4712,7 @@ public Builder setVal(long value) { * int64 Val = 1; */ public Builder clearVal() { - + val_ = 0L; onChanged(); return this; @@ -4685,7 +4729,7 @@ public long getCount() { * int64 Count = 2; */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; @@ -4694,7 +4738,7 @@ public Builder setCount(long value) { * int64 Count = 2; */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; @@ -4708,11 +4752,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.ValCount) + // @@protoc_insertion_point(builder_scope:internal.ValCount) } // @@protoc_insertion_point(class_scope:internal.ValCount) @@ -4747,12 +4791,12 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.ValCount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface ColumnAttrSetOrBuilder extends + public interface ColumnAttrSetOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.ColumnAttrSet) com.google.protobuf.MessageOrBuilder { @@ -4774,7 +4818,7 @@ public interface ColumnAttrSetOrBuilder extends /** * repeated .internal.Attr Attrs = 2; */ - java.util.List + java.util.List getAttrsList(); /** * repeated .internal.Attr Attrs = 2; @@ -4787,7 +4831,7 @@ public interface ColumnAttrSetOrBuilder extends /** * repeated .internal.Attr Attrs = 2; */ - java.util.List + java.util.List getAttrsOrBuilderList(); /** * repeated .internal.Attr Attrs = 2; @@ -4799,7 +4843,7 @@ com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( * Protobuf type {@code internal.ColumnAttrSet} */ public static final class ColumnAttrSet extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:internal.ColumnAttrSet) ColumnAttrSetOrBuilder { private static final long serialVersionUID = 0L; @@ -4879,15 +4923,16 @@ private ColumnAttrSet( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ColumnAttrSet.class, com.pilosa.client.Internal.ColumnAttrSet.Builder.class); } @@ -4912,7 +4957,7 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; @@ -4926,7 +4971,7 @@ public java.lang.String getKey() { getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; @@ -4947,7 +4992,7 @@ public java.util.List getAttrsList() { /** * repeated .internal.Attr Attrs = 2; */ - public java.util.List + public java.util.List getAttrsOrBuilderList() { return attrs_; } @@ -5155,18 +5200,18 @@ protected Builder newBuilderForType( * Protobuf type {@code internal.ColumnAttrSet} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:internal.ColumnAttrSet) com.pilosa.client.Internal.ColumnAttrSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ColumnAttrSet.class, com.pilosa.client.Internal.ColumnAttrSet.Builder.class); } @@ -5205,8 +5250,8 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_descriptor; + getDescriptorForType() { + return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_descriptor; } @java.lang.Override @@ -5313,7 +5358,7 @@ public Builder mergeFrom(com.pilosa.client.Internal.ColumnAttrSet other) { attrsBuilder_ = null; attrs_ = other.attrs_; bitField0_ = (bitField0_ & ~0x00000004); - attrsBuilder_ = + attrsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttrsFieldBuilder() : null; } else { @@ -5362,7 +5407,7 @@ public long getID() { * uint64 ID = 1; */ public Builder setID(long value) { - + iD_ = value; onChanged(); return this; @@ -5371,7 +5416,7 @@ public Builder setID(long value) { * uint64 ID = 1; */ public Builder clearID() { - + iD_ = 0L; onChanged(); return this; @@ -5400,7 +5445,7 @@ public java.lang.String getKey() { getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; @@ -5417,7 +5462,7 @@ public Builder setKey( if (value == null) { throw new NullPointerException(); } - + key_ = value; onChanged(); return this; @@ -5426,7 +5471,7 @@ public Builder setKey( * string Key = 3; */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; @@ -5440,7 +5485,7 @@ public Builder setKeyBytes( throw new NullPointerException(); } checkByteStringIsUtf8(value); - + key_ = value; onChanged(); return this; @@ -5641,7 +5686,7 @@ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( /** * repeated .internal.Attr Attrs = 2; */ - public java.util.List + public java.util.List getAttrsOrBuilderList() { if (attrsBuilder_ != null) { return attrsBuilder_.getMessageOrBuilderList(); @@ -5667,12 +5712,12 @@ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder( /** * repeated .internal.Attr Attrs = 2; */ - public java.util.List + public java.util.List getAttrsBuilderList() { return getAttrsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.pilosa.client.Internal.Attr, com.pilosa.client.Internal.Attr.Builder, com.pilosa.client.Internal.AttrOrBuilder> + com.pilosa.client.Internal.Attr, com.pilosa.client.Internal.Attr.Builder, com.pilosa.client.Internal.AttrOrBuilder> getAttrsFieldBuilder() { if (attrsBuilder_ == null) { attrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< @@ -5694,11 +5739,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.ColumnAttrSet) + // @@protoc_insertion_point(builder_scope:internal.ColumnAttrSet) } // @@protoc_insertion_point(class_scope:internal.ColumnAttrSet) @@ -5733,12 +5778,12 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.ColumnAttrSet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface AttrOrBuilder extends + public interface AttrOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.Attr) com.google.protobuf.MessageOrBuilder { @@ -5785,8 +5830,8 @@ public interface AttrOrBuilder extends /** * Protobuf type {@code internal.Attr} */ - public static final class Attr extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Attr extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:internal.Attr) AttrOrBuilder { private static final long serialVersionUID = 0L; @@ -5878,14 +5923,15 @@ private Attr( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_Attr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return com.pilosa.client.Internal.internal_static_internal_Attr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Attr.class, com.pilosa.client.Internal.Attr.Builder.class); @@ -5901,7 +5947,7 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; @@ -5915,7 +5961,7 @@ public java.lang.String getKey() { getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; @@ -5944,7 +5990,7 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stringValue_ = s; @@ -5958,7 +6004,7 @@ public java.lang.String getStringValue() { getStringValueBytes() { java.lang.Object ref = stringValue_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringValue_ = b; @@ -6214,17 +6260,17 @@ protected Builder newBuilderForType( * Protobuf type {@code internal.Attr} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:internal.Attr) com.pilosa.client.Internal.AttrOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_Attr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return com.pilosa.client.Internal.internal_static_internal_Attr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Attr.class, com.pilosa.client.Internal.Attr.Builder.class); @@ -6265,7 +6311,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return com.pilosa.client.Internal.internal_static_internal_Attr_descriptor; } @@ -6412,7 +6458,7 @@ public java.lang.String getKey() { getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; @@ -6429,7 +6475,7 @@ public Builder setKey( if (value == null) { throw new NullPointerException(); } - + key_ = value; onChanged(); return this; @@ -6438,7 +6484,7 @@ public Builder setKey( * string Key = 1; */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; @@ -6452,7 +6498,7 @@ public Builder setKeyBytes( throw new NullPointerException(); } checkByteStringIsUtf8(value); - + key_ = value; onChanged(); return this; @@ -6469,7 +6515,7 @@ public long getType() { * uint64 Type = 2; */ public Builder setType(long value) { - + type_ = value; onChanged(); return this; @@ -6478,7 +6524,7 @@ public Builder setType(long value) { * uint64 Type = 2; */ public Builder clearType() { - + type_ = 0L; onChanged(); return this; @@ -6507,7 +6553,7 @@ public java.lang.String getStringValue() { getStringValueBytes() { java.lang.Object ref = stringValue_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringValue_ = b; @@ -6524,7 +6570,7 @@ public Builder setStringValue( if (value == null) { throw new NullPointerException(); } - + stringValue_ = value; onChanged(); return this; @@ -6533,7 +6579,7 @@ public Builder setStringValue( * string StringValue = 3; */ public Builder clearStringValue() { - + stringValue_ = getDefaultInstance().getStringValue(); onChanged(); return this; @@ -6547,7 +6593,7 @@ public Builder setStringValueBytes( throw new NullPointerException(); } checkByteStringIsUtf8(value); - + stringValue_ = value; onChanged(); return this; @@ -6564,7 +6610,7 @@ public long getIntValue() { * int64 IntValue = 4; */ public Builder setIntValue(long value) { - + intValue_ = value; onChanged(); return this; @@ -6573,7 +6619,7 @@ public Builder setIntValue(long value) { * int64 IntValue = 4; */ public Builder clearIntValue() { - + intValue_ = 0L; onChanged(); return this; @@ -6590,7 +6636,7 @@ public boolean getBoolValue() { * bool BoolValue = 5; */ public Builder setBoolValue(boolean value) { - + boolValue_ = value; onChanged(); return this; @@ -6599,7 +6645,7 @@ public Builder setBoolValue(boolean value) { * bool BoolValue = 5; */ public Builder clearBoolValue() { - + boolValue_ = false; onChanged(); return this; @@ -6616,7 +6662,7 @@ public double getFloatValue() { * double FloatValue = 6; */ public Builder setFloatValue(double value) { - + floatValue_ = value; onChanged(); return this; @@ -6625,7 +6671,7 @@ public Builder setFloatValue(double value) { * double FloatValue = 6; */ public Builder clearFloatValue() { - + floatValue_ = 0D; onChanged(); return this; @@ -6639,11 +6685,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.Attr) + // @@protoc_insertion_point(builder_scope:internal.Attr) } // @@protoc_insertion_point(class_scope:internal.Attr) @@ -6678,19 +6724,19 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.Attr getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface AttrMapOrBuilder extends + public interface AttrMapOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.AttrMap) com.google.protobuf.MessageOrBuilder { /** * repeated .internal.Attr Attrs = 1; */ - java.util.List + java.util.List getAttrsList(); /** * repeated .internal.Attr Attrs = 1; @@ -6703,7 +6749,7 @@ public interface AttrMapOrBuilder extends /** * repeated .internal.Attr Attrs = 1; */ - java.util.List + java.util.List getAttrsOrBuilderList(); /** * repeated .internal.Attr Attrs = 1; @@ -6714,8 +6760,8 @@ com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( /** * Protobuf type {@code internal.AttrMap} */ - public static final class AttrMap extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AttrMap extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:internal.AttrMap) AttrMapOrBuilder { private static final long serialVersionUID = 0L; @@ -6782,14 +6828,15 @@ private AttrMap( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_AttrMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { + internalGetFieldAccessorTable() { return com.pilosa.client.Internal.internal_static_internal_AttrMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.AttrMap.class, com.pilosa.client.Internal.AttrMap.Builder.class); @@ -6806,7 +6853,7 @@ public java.util.List getAttrsList() { /** * repeated .internal.Attr Attrs = 1; */ - public java.util.List + public java.util.List getAttrsOrBuilderList() { return attrs_; } @@ -6992,18 +7039,18 @@ protected Builder newBuilderForType( * Protobuf type {@code internal.AttrMap} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:internal.AttrMap) com.pilosa.client.Internal.AttrMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_AttrMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_AttrMap_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_AttrMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.AttrMap.class, com.pilosa.client.Internal.AttrMap.Builder.class); } @@ -7038,7 +7085,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return com.pilosa.client.Internal.internal_static_internal_AttrMap_descriptor; } @@ -7135,7 +7182,7 @@ public Builder mergeFrom(com.pilosa.client.Internal.AttrMap other) { attrsBuilder_ = null; attrs_ = other.attrs_; bitField0_ = (bitField0_ & ~0x00000001); - attrsBuilder_ = + attrsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttrsFieldBuilder() : null; } else { @@ -7368,7 +7415,7 @@ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( /** * repeated .internal.Attr Attrs = 1; */ - public java.util.List + public java.util.List getAttrsOrBuilderList() { if (attrsBuilder_ != null) { return attrsBuilder_.getMessageOrBuilderList(); @@ -7394,12 +7441,12 @@ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder( /** * repeated .internal.Attr Attrs = 1; */ - public java.util.List + public java.util.List getAttrsBuilderList() { return getAttrsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.pilosa.client.Internal.Attr, com.pilosa.client.Internal.Attr.Builder, com.pilosa.client.Internal.AttrOrBuilder> + com.pilosa.client.Internal.Attr, com.pilosa.client.Internal.Attr.Builder, com.pilosa.client.Internal.AttrOrBuilder> getAttrsFieldBuilder() { if (attrsBuilder_ == null) { attrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< @@ -7421,11 +7468,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.AttrMap) + // @@protoc_insertion_point(builder_scope:internal.AttrMap) } // @@protoc_insertion_point(class_scope:internal.AttrMap) @@ -7460,12 +7507,12 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.AttrMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface QueryRequestOrBuilder extends + public interface QueryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.QueryRequest) com.google.protobuf.MessageOrBuilder { @@ -7516,7 +7563,7 @@ public interface QueryRequestOrBuilder extends * Protobuf type {@code internal.QueryRequest} */ public static final class QueryRequest extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:internal.QueryRequest) QueryRequestOrBuilder { private static final long serialVersionUID = 0L; @@ -7626,15 +7673,16 @@ private QueryRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_QueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_QueryRequest_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_QueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryRequest.class, com.pilosa.client.Internal.QueryRequest.Builder.class); } @@ -7650,7 +7698,7 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; @@ -7664,7 +7712,7 @@ public java.lang.String getQuery() { getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; @@ -7968,18 +8016,18 @@ protected Builder newBuilderForType( * Protobuf type {@code internal.QueryRequest} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:internal.QueryRequest) com.pilosa.client.Internal.QueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_QueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_QueryRequest_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_QueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryRequest.class, com.pilosa.client.Internal.QueryRequest.Builder.class); } @@ -8019,7 +8067,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return com.pilosa.client.Internal.internal_static_internal_QueryRequest_descriptor; } @@ -8180,7 +8228,7 @@ public java.lang.String getQuery() { getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; @@ -8197,7 +8245,7 @@ public Builder setQuery( if (value == null) { throw new NullPointerException(); } - + query_ = value; onChanged(); return this; @@ -8206,7 +8254,7 @@ public Builder setQuery( * string Query = 1; */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; @@ -8220,7 +8268,7 @@ public Builder setQueryBytes( throw new NullPointerException(); } checkByteStringIsUtf8(value); - + query_ = value; onChanged(); return this; @@ -8303,7 +8351,7 @@ public boolean getColumnAttrs() { * bool ColumnAttrs = 3; */ public Builder setColumnAttrs(boolean value) { - + columnAttrs_ = value; onChanged(); return this; @@ -8312,7 +8360,7 @@ public Builder setColumnAttrs(boolean value) { * bool ColumnAttrs = 3; */ public Builder clearColumnAttrs() { - + columnAttrs_ = false; onChanged(); return this; @@ -8329,7 +8377,7 @@ public boolean getRemote() { * bool Remote = 5; */ public Builder setRemote(boolean value) { - + remote_ = value; onChanged(); return this; @@ -8338,7 +8386,7 @@ public Builder setRemote(boolean value) { * bool Remote = 5; */ public Builder clearRemote() { - + remote_ = false; onChanged(); return this; @@ -8355,7 +8403,7 @@ public boolean getExcludeRowAttrs() { * bool ExcludeRowAttrs = 6; */ public Builder setExcludeRowAttrs(boolean value) { - + excludeRowAttrs_ = value; onChanged(); return this; @@ -8364,7 +8412,7 @@ public Builder setExcludeRowAttrs(boolean value) { * bool ExcludeRowAttrs = 6; */ public Builder clearExcludeRowAttrs() { - + excludeRowAttrs_ = false; onChanged(); return this; @@ -8381,7 +8429,7 @@ public boolean getExcludeColumns() { * bool ExcludeColumns = 7; */ public Builder setExcludeColumns(boolean value) { - + excludeColumns_ = value; onChanged(); return this; @@ -8390,7 +8438,7 @@ public Builder setExcludeColumns(boolean value) { * bool ExcludeColumns = 7; */ public Builder clearExcludeColumns() { - + excludeColumns_ = false; onChanged(); return this; @@ -8404,11 +8452,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.QueryRequest) + // @@protoc_insertion_point(builder_scope:internal.QueryRequest) } // @@protoc_insertion_point(class_scope:internal.QueryRequest) @@ -8443,12 +8491,12 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.QueryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface QueryResponseOrBuilder extends + public interface QueryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.QueryResponse) com.google.protobuf.MessageOrBuilder { @@ -8465,7 +8513,7 @@ public interface QueryResponseOrBuilder extends /** * repeated .internal.QueryResult Results = 2; */ - java.util.List + java.util.List getResultsList(); /** * repeated .internal.QueryResult Results = 2; @@ -8478,7 +8526,7 @@ public interface QueryResponseOrBuilder extends /** * repeated .internal.QueryResult Results = 2; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** * repeated .internal.QueryResult Results = 2; @@ -8489,7 +8537,7 @@ com.pilosa.client.Internal.QueryResultOrBuilder getResultsOrBuilder( /** * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ - java.util.List + java.util.List getColumnAttrSetsList(); /** * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; @@ -8502,7 +8550,7 @@ com.pilosa.client.Internal.QueryResultOrBuilder getResultsOrBuilder( /** * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ - java.util.List + java.util.List getColumnAttrSetsOrBuilderList(); /** * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; @@ -8514,7 +8562,7 @@ com.pilosa.client.Internal.ColumnAttrSetOrBuilder getColumnAttrSetsOrBuilder( * Protobuf type {@code internal.QueryResponse} */ public static final class QueryResponse extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:internal.QueryResponse) QueryResponseOrBuilder { private static final long serialVersionUID = 0L; @@ -8601,15 +8649,16 @@ private QueryResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_QueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_QueryResponse_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_QueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryResponse.class, com.pilosa.client.Internal.QueryResponse.Builder.class); } @@ -8625,7 +8674,7 @@ public java.lang.String getErr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); err_ = s; @@ -8639,7 +8688,7 @@ public java.lang.String getErr() { getErrBytes() { java.lang.Object ref = err_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); err_ = b; @@ -8660,7 +8709,7 @@ public java.util.List getResultsList() { /** * repeated .internal.QueryResult Results = 2; */ - public java.util.List + public java.util.List getResultsOrBuilderList() { return results_; } @@ -8695,7 +8744,7 @@ public java.util.List getColumnAttrSet /** * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ - public java.util.List + public java.util.List getColumnAttrSetsOrBuilderList() { return columnAttrSets_; } @@ -8904,18 +8953,18 @@ protected Builder newBuilderForType( * Protobuf type {@code internal.QueryResponse} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:internal.QueryResponse) com.pilosa.client.Internal.QueryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_QueryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_QueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_QueryResponse_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_QueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryResponse.class, com.pilosa.client.Internal.QueryResponse.Builder.class); } @@ -8959,8 +9008,8 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_QueryResponse_descriptor; + getDescriptorForType() { + return com.pilosa.client.Internal.internal_static_internal_QueryResponse_descriptor; } @java.lang.Override @@ -9072,7 +9121,7 @@ public Builder mergeFrom(com.pilosa.client.Internal.QueryResponse other) { resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000002); - resultsBuilder_ = + resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; } else { @@ -9098,7 +9147,7 @@ public Builder mergeFrom(com.pilosa.client.Internal.QueryResponse other) { columnAttrSetsBuilder_ = null; columnAttrSets_ = other.columnAttrSets_; bitField0_ = (bitField0_ & ~0x00000004); - columnAttrSetsBuilder_ = + columnAttrSetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getColumnAttrSetsFieldBuilder() : null; } else { @@ -9159,7 +9208,7 @@ public java.lang.String getErr() { getErrBytes() { java.lang.Object ref = err_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); err_ = b; @@ -9176,7 +9225,7 @@ public Builder setErr( if (value == null) { throw new NullPointerException(); } - + err_ = value; onChanged(); return this; @@ -9185,7 +9234,7 @@ public Builder setErr( * string Err = 1; */ public Builder clearErr() { - + err_ = getDefaultInstance().getErr(); onChanged(); return this; @@ -9199,7 +9248,7 @@ public Builder setErrBytes( throw new NullPointerException(); } checkByteStringIsUtf8(value); - + err_ = value; onChanged(); return this; @@ -9400,7 +9449,7 @@ public com.pilosa.client.Internal.QueryResultOrBuilder getResultsOrBuilder( /** * repeated .internal.QueryResult Results = 2; */ - public java.util.List + public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); @@ -9426,12 +9475,12 @@ public com.pilosa.client.Internal.QueryResult.Builder addResultsBuilder( /** * repeated .internal.QueryResult Results = 2; */ - public java.util.List + public java.util.List getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.pilosa.client.Internal.QueryResult, com.pilosa.client.Internal.QueryResult.Builder, com.pilosa.client.Internal.QueryResultOrBuilder> + com.pilosa.client.Internal.QueryResult, com.pilosa.client.Internal.QueryResult.Builder, com.pilosa.client.Internal.QueryResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< @@ -9640,7 +9689,7 @@ public com.pilosa.client.Internal.ColumnAttrSetOrBuilder getColumnAttrSetsOrBuil /** * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ - public java.util.List + public java.util.List getColumnAttrSetsOrBuilderList() { if (columnAttrSetsBuilder_ != null) { return columnAttrSetsBuilder_.getMessageOrBuilderList(); @@ -9666,12 +9715,12 @@ public com.pilosa.client.Internal.ColumnAttrSet.Builder addColumnAttrSetsBuilder /** * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ - public java.util.List + public java.util.List getColumnAttrSetsBuilderList() { return getColumnAttrSetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.pilosa.client.Internal.ColumnAttrSet, com.pilosa.client.Internal.ColumnAttrSet.Builder, com.pilosa.client.Internal.ColumnAttrSetOrBuilder> + com.pilosa.client.Internal.ColumnAttrSet, com.pilosa.client.Internal.ColumnAttrSet.Builder, com.pilosa.client.Internal.ColumnAttrSetOrBuilder> getColumnAttrSetsFieldBuilder() { if (columnAttrSetsBuilder_ == null) { columnAttrSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< @@ -9693,11 +9742,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.QueryResponse) + // @@protoc_insertion_point(builder_scope:internal.QueryResponse) } // @@protoc_insertion_point(class_scope:internal.QueryResponse) @@ -9732,12 +9781,12 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.QueryResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface QueryResultOrBuilder extends + public interface QueryResultOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.QueryResult) com.google.protobuf.MessageOrBuilder { @@ -9767,7 +9816,7 @@ public interface QueryResultOrBuilder extends /** * repeated .internal.Pair Pairs = 3; */ - java.util.List + java.util.List getPairsList(); /** * repeated .internal.Pair Pairs = 3; @@ -9780,7 +9829,7 @@ public interface QueryResultOrBuilder extends /** * repeated .internal.Pair Pairs = 3; */ - java.util.List + java.util.List getPairsOrBuilderList(); /** * repeated .internal.Pair Pairs = 3; @@ -9822,7 +9871,7 @@ com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( /** * repeated .internal.GroupCount GroupCounts = 8; */ - java.util.List + java.util.List getGroupCountsList(); /** * repeated .internal.GroupCount GroupCounts = 8; @@ -9835,7 +9884,7 @@ com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( /** * repeated .internal.GroupCount GroupCounts = 8; */ - java.util.List + java.util.List getGroupCountsOrBuilderList(); /** * repeated .internal.GroupCount GroupCounts = 8; @@ -9860,7 +9909,7 @@ com.pilosa.client.Internal.GroupCountOrBuilder getGroupCountsOrBuilder( * Protobuf type {@code internal.QueryResult} */ public static final class QueryResult extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:internal.QueryResult) QueryResultOrBuilder { private static final long serialVersionUID = 0L; @@ -10022,15 +10071,16 @@ private QueryResult( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_QueryResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_QueryResult_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryResult.class, com.pilosa.client.Internal.QueryResult.Builder.class); } @@ -10086,7 +10136,7 @@ public java.util.List getPairsList() { /** * repeated .internal.Pair Pairs = 3; */ - public java.util.List + public java.util.List getPairsOrBuilderList() { return pairs_; } @@ -10174,7 +10224,7 @@ public java.util.List getGroupCountsList( /** * repeated .internal.GroupCount GroupCounts = 8; */ - public java.util.List + public java.util.List getGroupCountsOrBuilderList() { return groupCounts_; } @@ -10505,18 +10555,18 @@ protected Builder newBuilderForType( * Protobuf type {@code internal.QueryResult} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:internal.QueryResult) com.pilosa.client.Internal.QueryResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_QueryResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_QueryResult_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryResult.class, com.pilosa.client.Internal.QueryResult.Builder.class); } @@ -10584,7 +10634,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + getDescriptorForType() { return com.pilosa.client.Internal.internal_static_internal_QueryResult_descriptor; } @@ -10724,7 +10774,7 @@ public Builder mergeFrom(com.pilosa.client.Internal.QueryResult other) { pairsBuilder_ = null; pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000008); - pairsBuilder_ = + pairsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPairsFieldBuilder() : null; } else { @@ -10766,7 +10816,7 @@ public Builder mergeFrom(com.pilosa.client.Internal.QueryResult other) { groupCountsBuilder_ = null; groupCounts_ = other.groupCounts_; bitField0_ = (bitField0_ & ~0x00000080); - groupCountsBuilder_ = + groupCountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroupCountsFieldBuilder() : null; } else { @@ -10818,7 +10868,7 @@ public int getType() { * uint32 Type = 6; */ public Builder setType(int value) { - + type_ = value; onChanged(); return this; @@ -10827,7 +10877,7 @@ public Builder setType(int value) { * uint32 Type = 6; */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -10918,7 +10968,7 @@ public Builder clearRow() { * .internal.Row Row = 1; */ public com.pilosa.client.Internal.Row.Builder getRowBuilder() { - + onChanged(); return getRowFieldBuilder().getBuilder(); } @@ -10937,7 +10987,7 @@ public com.pilosa.client.Internal.RowOrBuilder getRowOrBuilder() { * .internal.Row Row = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.pilosa.client.Internal.Row, com.pilosa.client.Internal.Row.Builder, com.pilosa.client.Internal.RowOrBuilder> + com.pilosa.client.Internal.Row, com.pilosa.client.Internal.Row.Builder, com.pilosa.client.Internal.RowOrBuilder> getRowFieldBuilder() { if (rowBuilder_ == null) { rowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< @@ -10961,7 +11011,7 @@ public long getN() { * uint64 N = 2; */ public Builder setN(long value) { - + n_ = value; onChanged(); return this; @@ -10970,7 +11020,7 @@ public Builder setN(long value) { * uint64 N = 2; */ public Builder clearN() { - + n_ = 0L; onChanged(); return this; @@ -11171,7 +11221,7 @@ public com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( /** * repeated .internal.Pair Pairs = 3; */ - public java.util.List + public java.util.List getPairsOrBuilderList() { if (pairsBuilder_ != null) { return pairsBuilder_.getMessageOrBuilderList(); @@ -11197,12 +11247,12 @@ public com.pilosa.client.Internal.Pair.Builder addPairsBuilder( /** * repeated .internal.Pair Pairs = 3; */ - public java.util.List + public java.util.List getPairsBuilderList() { return getPairsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.pilosa.client.Internal.Pair, com.pilosa.client.Internal.Pair.Builder, com.pilosa.client.Internal.PairOrBuilder> + com.pilosa.client.Internal.Pair, com.pilosa.client.Internal.Pair.Builder, com.pilosa.client.Internal.PairOrBuilder> getPairsFieldBuilder() { if (pairsBuilder_ == null) { pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< @@ -11227,7 +11277,7 @@ public boolean getChanged() { * bool Changed = 4; */ public Builder setChanged(boolean value) { - + changed_ = value; onChanged(); return this; @@ -11236,7 +11286,7 @@ public Builder setChanged(boolean value) { * bool Changed = 4; */ public Builder clearChanged() { - + changed_ = false; onChanged(); return this; @@ -11327,7 +11377,7 @@ public Builder clearValCount() { * .internal.ValCount ValCount = 5; */ public com.pilosa.client.Internal.ValCount.Builder getValCountBuilder() { - + onChanged(); return getValCountFieldBuilder().getBuilder(); } @@ -11346,7 +11396,7 @@ public com.pilosa.client.Internal.ValCountOrBuilder getValCountOrBuilder() { * .internal.ValCount ValCount = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.pilosa.client.Internal.ValCount, com.pilosa.client.Internal.ValCount.Builder, com.pilosa.client.Internal.ValCountOrBuilder> + com.pilosa.client.Internal.ValCount, com.pilosa.client.Internal.ValCount.Builder, com.pilosa.client.Internal.ValCountOrBuilder> getValCountFieldBuilder() { if (valCountBuilder_ == null) { valCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< @@ -11620,7 +11670,7 @@ public com.pilosa.client.Internal.GroupCountOrBuilder getGroupCountsOrBuilder( /** * repeated .internal.GroupCount GroupCounts = 8; */ - public java.util.List + public java.util.List getGroupCountsOrBuilderList() { if (groupCountsBuilder_ != null) { return groupCountsBuilder_.getMessageOrBuilderList(); @@ -11646,12 +11696,12 @@ public com.pilosa.client.Internal.GroupCount.Builder addGroupCountsBuilder( /** * repeated .internal.GroupCount GroupCounts = 8; */ - public java.util.List + public java.util.List getGroupCountsBuilderList() { return getGroupCountsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.pilosa.client.Internal.GroupCount, com.pilosa.client.Internal.GroupCount.Builder, com.pilosa.client.Internal.GroupCountOrBuilder> + com.pilosa.client.Internal.GroupCount, com.pilosa.client.Internal.GroupCount.Builder, com.pilosa.client.Internal.GroupCountOrBuilder> getGroupCountsFieldBuilder() { if (groupCountsBuilder_ == null) { groupCountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< @@ -11750,7 +11800,7 @@ public Builder clearRowIdentifiers() { * .internal.RowIdentifiers RowIdentifiers = 9; */ public com.pilosa.client.Internal.RowIdentifiers.Builder getRowIdentifiersBuilder() { - + onChanged(); return getRowIdentifiersFieldBuilder().getBuilder(); } @@ -11769,7 +11819,7 @@ public com.pilosa.client.Internal.RowIdentifiersOrBuilder getRowIdentifiersOrBui * .internal.RowIdentifiers RowIdentifiers = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.pilosa.client.Internal.RowIdentifiers, com.pilosa.client.Internal.RowIdentifiers.Builder, com.pilosa.client.Internal.RowIdentifiersOrBuilder> + com.pilosa.client.Internal.RowIdentifiers, com.pilosa.client.Internal.RowIdentifiers.Builder, com.pilosa.client.Internal.RowIdentifiersOrBuilder> getRowIdentifiersFieldBuilder() { if (rowIdentifiersBuilder_ == null) { rowIdentifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< @@ -11790,11 +11840,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.QueryResult) + // @@protoc_insertion_point(builder_scope:internal.QueryResult) } // @@protoc_insertion_point(class_scope:internal.QueryResult) @@ -11829,12 +11879,12 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.QueryResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface ImportRequestOrBuilder extends + public interface ImportRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.ImportRequest) com.google.protobuf.MessageOrBuilder { @@ -11944,7 +11994,7 @@ public interface ImportRequestOrBuilder extends * Protobuf type {@code internal.ImportRequest} */ public static final class ImportRequest extends - com.google.protobuf.GeneratedMessageV3 implements + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:internal.ImportRequest) ImportRequestOrBuilder { private static final long serialVersionUID = 0L; @@ -12119,15 +12169,16 @@ private ImportRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.pilosa.client.Internal.internal_static_internal_ImportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_ImportRequest_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_ImportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ImportRequest.class, com.pilosa.client.Internal.ImportRequest.Builder.class); } @@ -12143,7 +12194,7 @@ public java.lang.String getIndex() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; @@ -12157,7 +12208,7 @@ public java.lang.String getIndex() { getIndexBytes() { java.lang.Object ref = index_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); index_ = b; @@ -12177,7 +12228,7 @@ public java.lang.String getField() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); field_ = s; @@ -12191,7 +12242,7 @@ public java.lang.String getField() { getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field_ = b; @@ -12634,18 +12685,18 @@ protected Builder newBuilderForType( * Protobuf type {@code internal.ImportRequest} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:internal.ImportRequest) com.pilosa.client.Internal.ImportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_ImportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_ImportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_ImportRequest_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_ImportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ImportRequest.class, com.pilosa.client.Internal.ImportRequest.Builder.class); } @@ -12689,8 +12740,8 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_ImportRequest_descriptor; + getDescriptorForType() { + return com.pilosa.client.Internal.internal_static_internal_ImportRequest_descriptor; } @java.lang.Override @@ -12903,7 +12954,7 @@ public java.lang.String getIndex() { getIndexBytes() { java.lang.Object ref = index_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); index_ = b; @@ -12920,7 +12971,7 @@ public Builder setIndex( if (value == null) { throw new NullPointerException(); } - + index_ = value; onChanged(); return this; @@ -12929,7 +12980,7 @@ public Builder setIndex( * string Index = 1; */ public Builder clearIndex() { - + index_ = getDefaultInstance().getIndex(); onChanged(); return this; @@ -12943,7 +12994,7 @@ public Builder setIndexBytes( throw new NullPointerException(); } checkByteStringIsUtf8(value); - + index_ = value; onChanged(); return this; @@ -12972,7 +13023,7 @@ public java.lang.String getField() { getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field_ = b; @@ -12989,7 +13040,7 @@ public Builder setField( if (value == null) { throw new NullPointerException(); } - + field_ = value; onChanged(); return this; @@ -12998,7 +13049,7 @@ public Builder setField( * string Field = 2; */ public Builder clearField() { - + field_ = getDefaultInstance().getField(); onChanged(); return this; @@ -13012,7 +13063,7 @@ public Builder setFieldBytes( throw new NullPointerException(); } checkByteStringIsUtf8(value); - + field_ = value; onChanged(); return this; @@ -13029,7 +13080,7 @@ public long getShard() { * uint64 Shard = 3; */ public Builder setShard(long value) { - + shard_ = value; onChanged(); return this; @@ -13038,7 +13089,7 @@ public Builder setShard(long value) { * uint64 Shard = 3; */ public Builder clearShard() { - + shard_ = 0L; onChanged(); return this; @@ -13438,11 +13489,11 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:internal.ImportRequest) + // @@protoc_insertion_point(builder_scope:internal.ImportRequest) } // @@protoc_insertion_point(class_scope:internal.ImportRequest) @@ -13477,12 +13528,12 @@ public com.google.protobuf.Parser getParserForType() { @java.lang.Override public com.pilosa.client.Internal.ImportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } - public interface ImportValueRequestOrBuilder extends + public interface ImportValueRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:internal.ImportValueRequest) com.google.protobuf.MessageOrBuilder { @@ -13555,2665 +13606,2866 @@ public interface ImportValueRequestOrBuilder extends * repeated int64 Values = 6; */ long getValues(int index); - } - /** - * Protobuf type {@code internal.ImportValueRequest} - */ - public static final class ImportValueRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:internal.ImportValueRequest) - ImportValueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ImportValueRequest.newBuilder() to construct. - private ImportValueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportValueRequest() { - index_ = ""; - field_ = ""; - shard_ = 0L; - columnIDs_ = java.util.Collections.emptyList(); - columnKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - values_ = java.util.Collections.emptyList(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ImportValueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + /** + * Protobuf type {@code internal.ImportValueRequest} + */ + public static final class ImportValueRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:internal.ImportValueRequest) + ImportValueRequestOrBuilder { + private static final long serialVersionUID = 0L; - index_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + // Use ImportValueRequest.newBuilder() to construct. + private ImportValueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - field_ = s; - break; - } - case 24: { + private ImportValueRequest() { + index_ = ""; + field_ = ""; + shard_ = 0L; + columnIDs_ = java.util.Collections.emptyList(); + columnKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + values_ = java.util.Collections.emptyList(); + } - shard_ = input.readUInt64(); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - columnIDs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - columnIDs_.add(input.readUInt64()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { - columnIDs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - columnIDs_.add(input.readUInt64()); - } - input.popLimit(limit); - break; - } - case 48: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - values_.add(input.readInt64()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - while (input.getBytesUntilLimit() > 0) { - values_.add(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - columnKeys_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - columnKeys_.add(s); - break; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + + private ImportValueRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + index_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + field_ = s; + break; + } + case 24: { + + shard_ = input.readUInt64(); + break; + } + case 40: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + columnIDs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + columnIDs_.add(input.readUInt64()); + break; + } + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { + columnIDs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + while (input.getBytesUntilLimit() > 0) { + columnIDs_.add(input.readUInt64()); + } + input.popLimit(limit); + break; + } + case 48: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + values_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + values_.add(input.readInt64()); + break; + } + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { + values_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + while (input.getBytesUntilLimit() > 0) { + values_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + columnKeys_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + columnKeys_.add(s); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + columnIDs_ = java.util.Collections.unmodifiableList(columnIDs_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + values_ = java.util.Collections.unmodifiableList(values_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + columnKeys_ = columnKeys_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pilosa.client.Internal.ImportValueRequest.class, com.pilosa.client.Internal.ImportValueRequest.Builder.class); + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private volatile java.lang.Object index_; + + /** + * string Index = 1; + */ + public java.lang.String getIndex() { + java.lang.Object ref = index_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + index_ = s; + return s; } - } } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - columnIDs_ = java.util.Collections.unmodifiableList(columnIDs_); + /** + * string Index = 1; + */ + public com.google.protobuf.ByteString + getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + index_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - values_ = java.util.Collections.unmodifiableList(values_); - } - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - columnKeys_ = columnKeys_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pilosa.client.Internal.ImportValueRequest.class, com.pilosa.client.Internal.ImportValueRequest.Builder.class); } - private int bitField0_; - public static final int INDEX_FIELD_NUMBER = 1; - private volatile java.lang.Object index_; - /** - * string Index = 1; - */ - public java.lang.String getIndex() { - java.lang.Object ref = index_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - index_ = s; - return s; - } - } - /** - * string Index = 1; - */ - public com.google.protobuf.ByteString - getIndexBytes() { - java.lang.Object ref = index_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - index_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int FIELD_FIELD_NUMBER = 2; + private volatile java.lang.Object field_; - public static final int FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object field_; - /** - * string Field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - field_ = s; - return s; - } + /** + * string Field = 2; + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } } /** * string Field = 2; */ public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int SHARD_FIELD_NUMBER = 3; - private long shard_; - /** - * uint64 Shard = 3; - */ - public long getShard() { - return shard_; - } + public static final int SHARD_FIELD_NUMBER = 3; + private long shard_; - public static final int COLUMNIDS_FIELD_NUMBER = 5; - private java.util.List columnIDs_; + /** + * uint64 Shard = 3; + */ + public long getShard() { + return shard_; + } + + public static final int COLUMNIDS_FIELD_NUMBER = 5; + private java.util.List columnIDs_; /** * repeated uint64 ColumnIDs = 5; */ public java.util.List - getColumnIDsList() { - return columnIDs_; - } - /** - * repeated uint64 ColumnIDs = 5; - */ - public int getColumnIDsCount() { - return columnIDs_.size(); - } - /** - * repeated uint64 ColumnIDs = 5; - */ - public long getColumnIDs(int index) { - return columnIDs_.get(index); + getColumnIDsList() { + return columnIDs_; } - private int columnIDsMemoizedSerializedSize = -1; - public static final int COLUMNKEYS_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList columnKeys_; + /** + * repeated uint64 ColumnIDs = 5; + */ + public int getColumnIDsCount() { + return columnIDs_.size(); + } + + /** + * repeated uint64 ColumnIDs = 5; + */ + public long getColumnIDs(int index) { + return columnIDs_.get(index); + } + + private int columnIDsMemoizedSerializedSize = -1; + + public static final int COLUMNKEYS_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList columnKeys_; /** * repeated string ColumnKeys = 7; */ public com.google.protobuf.ProtocolStringList - getColumnKeysList() { - return columnKeys_; - } - /** - * repeated string ColumnKeys = 7; - */ - public int getColumnKeysCount() { - return columnKeys_.size(); - } - /** - * repeated string ColumnKeys = 7; - */ - public java.lang.String getColumnKeys(int index) { - return columnKeys_.get(index); + getColumnKeysList() { + return columnKeys_; } - /** - * repeated string ColumnKeys = 7; - */ - public com.google.protobuf.ByteString + + /** + * repeated string ColumnKeys = 7; + */ + public int getColumnKeysCount() { + return columnKeys_.size(); + } + + /** + * repeated string ColumnKeys = 7; + */ + public java.lang.String getColumnKeys(int index) { + return columnKeys_.get(index); + } + + /** + * repeated string ColumnKeys = 7; + */ + public com.google.protobuf.ByteString getColumnKeysBytes(int index) { - return columnKeys_.getByteString(index); - } + return columnKeys_.getByteString(index); + } - public static final int VALUES_FIELD_NUMBER = 6; - private java.util.List values_; - /** - * repeated int64 Values = 6; - */ - public java.util.List + public static final int VALUES_FIELD_NUMBER = 6; + private java.util.List values_; + + /** + * repeated int64 Values = 6; + */ + public java.util.List getValuesList() { - return values_; - } - /** - * repeated int64 Values = 6; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated int64 Values = 6; - */ - public long getValues(int index) { - return values_.get(index); - } - private int valuesMemoizedSerializedSize = -1; + return values_; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated int64 Values = 6; + */ + public int getValuesCount() { + return values_.size(); + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated int64 Values = 6; + */ + public long getValues(int index) { + return values_.get(index); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!getIndexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, index_); - } - if (!getFieldBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); - } - if (shard_ != 0L) { - output.writeUInt64(3, shard_); - } - if (getColumnIDsList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(columnIDsMemoizedSerializedSize); - } - for (int i = 0; i < columnIDs_.size(); i++) { - output.writeUInt64NoTag(columnIDs_.get(i)); - } - if (getValuesList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(valuesMemoizedSerializedSize); - } - for (int i = 0; i < values_.size(); i++) { - output.writeInt64NoTag(values_.get(i)); - } - for (int i = 0; i < columnKeys_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, columnKeys_.getRaw(i)); - } - unknownFields.writeTo(output); - } + private int valuesMemoizedSerializedSize = -1; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private byte memoizedIsInitialized = -1; - size = 0; - if (!getIndexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, index_); - } - if (!getFieldBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); - } - if (shard_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, shard_); - } - { - int dataSize = 0; - for (int i = 0; i < columnIDs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(columnIDs_.get(i)); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - size += dataSize; - if (!getColumnIDsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!getIndexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, index_); + } + if (!getFieldBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); + } + if (shard_ != 0L) { + output.writeUInt64(3, shard_); + } + if (getColumnIDsList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(columnIDsMemoizedSerializedSize); + } + for (int i = 0; i < columnIDs_.size(); i++) { + output.writeUInt64NoTag(columnIDs_.get(i)); + } + if (getValuesList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(valuesMemoizedSerializedSize); + } + for (int i = 0; i < values_.size(); i++) { + output.writeInt64NoTag(values_.get(i)); + } + for (int i = 0; i < columnKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, columnKeys_.getRaw(i)); + } + unknownFields.writeTo(output); } - columnIDsMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(values_.get(i)); + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIndexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, index_); + } + if (!getFieldBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); + } + if (shard_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, shard_); + } + { + int dataSize = 0; + for (int i = 0; i < columnIDs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(columnIDs_.get(i)); + } + size += dataSize; + if (!getColumnIDsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + columnIDsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(values_.get(i)); + } + size += dataSize; + if (!getValuesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valuesMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < columnKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(columnKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getColumnKeysList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } - size += dataSize; - if (!getValuesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pilosa.client.Internal.ImportValueRequest)) { + return super.equals(obj); + } + com.pilosa.client.Internal.ImportValueRequest other = (com.pilosa.client.Internal.ImportValueRequest) obj; + + boolean result = true; + result = result && getIndex() + .equals(other.getIndex()); + result = result && getField() + .equals(other.getField()); + result = result && (getShard() + == other.getShard()); + result = result && getColumnIDsList() + .equals(other.getColumnIDsList()); + result = result && getColumnKeysList() + .equals(other.getColumnKeysList()); + result = result && getValuesList() + .equals(other.getValuesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (37 * hash) + SHARD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getShard()); + if (getColumnIDsCount() > 0) { + hash = (37 * hash) + COLUMNIDS_FIELD_NUMBER; + hash = (53 * hash) + getColumnIDsList().hashCode(); + } + if (getColumnKeysCount() > 0) { + hash = (37 * hash) + COLUMNKEYS_FIELD_NUMBER; + hash = (53 * hash) + getColumnKeysList().hashCode(); + } + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - valuesMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < columnKeys_.size(); i++) { - dataSize += computeStringSizeNoTag(columnKeys_.getRaw(i)); + + public static com.pilosa.client.Internal.ImportValueRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - size += dataSize; - size += 1 * getColumnKeysList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.pilosa.client.Internal.ImportValueRequest)) { - return super.equals(obj); - } - com.pilosa.client.Internal.ImportValueRequest other = (com.pilosa.client.Internal.ImportValueRequest) obj; - - boolean result = true; - result = result && getIndex() - .equals(other.getIndex()); - result = result && getField() - .equals(other.getField()); - result = result && (getShard() - == other.getShard()); - result = result && getColumnIDsList() - .equals(other.getColumnIDsList()); - result = result && getColumnKeysList() - .equals(other.getColumnKeysList()); - result = result && getValuesList() - .equals(other.getValuesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex().hashCode(); - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - hash = (37 * hash) + SHARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getShard()); - if (getColumnIDsCount() > 0) { - hash = (37 * hash) + COLUMNIDS_FIELD_NUMBER; - hash = (53 * hash) + getColumnIDsList().hashCode(); - } - if (getColumnKeysCount() > 0) { - hash = (37 * hash) + COLUMNKEYS_FIELD_NUMBER; - hash = (53 * hash) + getColumnKeysList().hashCode(); - } - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pilosa.client.Internal.ImportValueRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pilosa.client.Internal.ImportValueRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pilosa.client.Internal.ImportValueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pilosa.client.Internal.ImportValueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pilosa.client.Internal.ImportValueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pilosa.client.Internal.ImportValueRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pilosa.client.Internal.ImportValueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pilosa.client.Internal.ImportValueRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.pilosa.client.Internal.ImportValueRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pilosa.client.Internal.ImportValueRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.pilosa.client.Internal.ImportValueRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pilosa.client.Internal.ImportValueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.pilosa.client.Internal.ImportValueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static com.pilosa.client.Internal.ImportValueRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code internal.ImportValueRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:internal.ImportValueRequest) - com.pilosa.client.Internal.ImportValueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_descriptor; - } + public static com.pilosa.client.Internal.ImportValueRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pilosa.client.Internal.ImportValueRequest.class, com.pilosa.client.Internal.ImportValueRequest.Builder.class); - } + public static com.pilosa.client.Internal.ImportValueRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // Construct using com.pilosa.client.Internal.ImportValueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static com.pilosa.client.Internal.ImportValueRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + public static com.pilosa.client.Internal.ImportValueRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = ""; - field_ = ""; + public static com.pilosa.client.Internal.ImportValueRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } - shard_ = 0L; + public static com.pilosa.client.Internal.ImportValueRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - columnIDs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - columnKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } + public static com.pilosa.client.Internal.ImportValueRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_descriptor; - } + public static com.pilosa.client.Internal.ImportValueRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.pilosa.client.Internal.ImportValueRequest getDefaultInstanceForType() { - return com.pilosa.client.Internal.ImportValueRequest.getDefaultInstance(); - } + public static com.pilosa.client.Internal.ImportValueRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.pilosa.client.Internal.ImportValueRequest build() { - com.pilosa.client.Internal.ImportValueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public static com.pilosa.client.Internal.ImportValueRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - return result; - } - @java.lang.Override - public com.pilosa.client.Internal.ImportValueRequest buildPartial() { - com.pilosa.client.Internal.ImportValueRequest result = new com.pilosa.client.Internal.ImportValueRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.index_ = index_; - result.field_ = field_; - result.shard_ = shard_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - columnIDs_ = java.util.Collections.unmodifiableList(columnIDs_); - bitField0_ = (bitField0_ & ~0x00000008); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - result.columnIDs_ = columnIDs_; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - columnKeys_ = columnKeys_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - result.columnKeys_ = columnKeys_; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000020); + + public static Builder newBuilder(com.pilosa.client.Internal.ImportValueRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - result.values_ = values_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.pilosa.client.Internal.ImportValueRequest) { - return mergeFrom((com.pilosa.client.Internal.ImportValueRequest)other); - } else { - super.mergeFrom(other); - return this; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - } - public Builder mergeFrom(com.pilosa.client.Internal.ImportValueRequest other) { - if (other == com.pilosa.client.Internal.ImportValueRequest.getDefaultInstance()) return this; - if (!other.getIndex().isEmpty()) { - index_ = other.index_; - onChanged(); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - if (!other.getField().isEmpty()) { - field_ = other.field_; - onChanged(); - } - if (other.getShard() != 0L) { - setShard(other.getShard()); - } - if (!other.columnIDs_.isEmpty()) { - if (columnIDs_.isEmpty()) { - columnIDs_ = other.columnIDs_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureColumnIDsIsMutable(); - columnIDs_.addAll(other.columnIDs_); - } - onChanged(); - } - if (!other.columnKeys_.isEmpty()) { - if (columnKeys_.isEmpty()) { - columnKeys_ = other.columnKeys_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureColumnKeysIsMutable(); - columnKeys_.addAll(other.columnKeys_); - } - onChanged(); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * Protobuf type {@code internal.ImportValueRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:internal.ImportValueRequest) + com.pilosa.client.Internal.ImportValueRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_descriptor; + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pilosa.client.Internal.ImportValueRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pilosa.client.Internal.ImportValueRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pilosa.client.Internal.ImportValueRequest.class, com.pilosa.client.Internal.ImportValueRequest.Builder.class); + } - private java.lang.Object index_ = ""; - /** - * string Index = 1; - */ - public java.lang.String getIndex() { - java.lang.Object ref = index_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - index_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string Index = 1; - */ - public com.google.protobuf.ByteString - getIndexBytes() { - java.lang.Object ref = index_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - index_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string Index = 1; - */ - public Builder setIndex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - index_ = value; - onChanged(); - return this; - } - /** - * string Index = 1; - */ - public Builder clearIndex() { - - index_ = getDefaultInstance().getIndex(); - onChanged(); - return this; - } - /** - * string Index = 1; - */ - public Builder setIndexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - index_ = value; - onChanged(); - return this; - } + // Construct using com.pilosa.client.Internal.ImportValueRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private java.lang.Object field_ = ""; - /** - * string Field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - field_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string Field = 2; - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string Field = 2; - */ - public Builder setField( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - field_ = value; - onChanged(); - return this; - } - /** - * string Field = 2; - */ - public Builder clearField() { - - field_ = getDefaultInstance().getField(); - onChanged(); - return this; - } - /** - * string Field = 2; - */ - public Builder setFieldBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - field_ = value; - onChanged(); - return this; - } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private long shard_ ; - /** - * uint64 Shard = 3; - */ - public long getShard() { - return shard_; - } - /** - * uint64 Shard = 3; - */ - public Builder setShard(long value) { - - shard_ = value; - onChanged(); - return this; - } - /** - * uint64 Shard = 3; - */ - public Builder clearShard() { - - shard_ = 0L; - onChanged(); - return this; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } - private java.util.List columnIDs_ = java.util.Collections.emptyList(); - private void ensureColumnIDsIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - columnIDs_ = new java.util.ArrayList(columnIDs_); - bitField0_ |= 0x00000008; - } - } - /** - * repeated uint64 ColumnIDs = 5; - */ - public java.util.List - getColumnIDsList() { - return java.util.Collections.unmodifiableList(columnIDs_); - } - /** - * repeated uint64 ColumnIDs = 5; - */ - public int getColumnIDsCount() { - return columnIDs_.size(); - } - /** - * repeated uint64 ColumnIDs = 5; - */ - public long getColumnIDs(int index) { - return columnIDs_.get(index); - } - /** - * repeated uint64 ColumnIDs = 5; - */ - public Builder setColumnIDs( - int index, long value) { - ensureColumnIDsIsMutable(); - columnIDs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated uint64 ColumnIDs = 5; - */ - public Builder addColumnIDs(long value) { - ensureColumnIDsIsMutable(); - columnIDs_.add(value); - onChanged(); - return this; - } - /** - * repeated uint64 ColumnIDs = 5; - */ - public Builder addAllColumnIDs( - java.lang.Iterable values) { - ensureColumnIDsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columnIDs_); - onChanged(); - return this; - } - /** - * repeated uint64 ColumnIDs = 5; - */ - public Builder clearColumnIDs() { - columnIDs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } + @java.lang.Override + public Builder clear() { + super.clear(); + index_ = ""; + + field_ = ""; + + shard_ = 0L; + + columnIDs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + columnKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pilosa.client.Internal.internal_static_internal_ImportValueRequest_descriptor; + } + + @java.lang.Override + public com.pilosa.client.Internal.ImportValueRequest getDefaultInstanceForType() { + return com.pilosa.client.Internal.ImportValueRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.pilosa.client.Internal.ImportValueRequest build() { + com.pilosa.client.Internal.ImportValueRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pilosa.client.Internal.ImportValueRequest buildPartial() { + com.pilosa.client.Internal.ImportValueRequest result = new com.pilosa.client.Internal.ImportValueRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.index_ = index_; + result.field_ = field_; + result.shard_ = shard_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + columnIDs_ = java.util.Collections.unmodifiableList(columnIDs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.columnIDs_ = columnIDs_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + columnKeys_ = columnKeys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.columnKeys_ = columnKeys_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.values_ = values_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - private com.google.protobuf.LazyStringList columnKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureColumnKeysIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - columnKeys_ = new com.google.protobuf.LazyStringArrayList(columnKeys_); - bitField0_ |= 0x00000010; - } - } - /** - * repeated string ColumnKeys = 7; - */ - public com.google.protobuf.ProtocolStringList - getColumnKeysList() { - return columnKeys_.getUnmodifiableView(); - } - /** - * repeated string ColumnKeys = 7; - */ - public int getColumnKeysCount() { - return columnKeys_.size(); - } - /** - * repeated string ColumnKeys = 7; - */ - public java.lang.String getColumnKeys(int index) { - return columnKeys_.get(index); - } - /** - * repeated string ColumnKeys = 7; - */ - public com.google.protobuf.ByteString - getColumnKeysBytes(int index) { - return columnKeys_.getByteString(index); - } - /** - * repeated string ColumnKeys = 7; - */ - public Builder setColumnKeys( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnKeysIsMutable(); - columnKeys_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string ColumnKeys = 7; - */ - public Builder addColumnKeys( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnKeysIsMutable(); - columnKeys_.add(value); - onChanged(); - return this; - } - /** - * repeated string ColumnKeys = 7; - */ - public Builder addAllColumnKeys( - java.lang.Iterable values) { - ensureColumnKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columnKeys_); - onChanged(); - return this; - } - /** - * repeated string ColumnKeys = 7; - */ - public Builder clearColumnKeys() { - columnKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * repeated string ColumnKeys = 7; - */ - public Builder addColumnKeysBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureColumnKeysIsMutable(); - columnKeys_.add(value); - onChanged(); - return this; - } + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } - private java.util.List values_ = java.util.Collections.emptyList(); - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - values_ = new java.util.ArrayList(values_); - bitField0_ |= 0x00000020; - } - } - /** - * repeated int64 Values = 6; - */ - public java.util.List - getValuesList() { - return java.util.Collections.unmodifiableList(values_); - } - /** - * repeated int64 Values = 6; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated int64 Values = 6; - */ - public long getValues(int index) { - return values_.get(index); - } - /** - * repeated int64 Values = 6; - */ - public Builder setValues( - int index, long value) { - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int64 Values = 6; - */ - public Builder addValues(long value) { - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * repeated int64 Values = 6; - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - * repeated int64 Values = 6; - */ - public Builder clearValues() { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - // @@protoc_insertion_point(builder_scope:internal.ImportValueRequest) - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - // @@protoc_insertion_point(class_scope:internal.ImportValueRequest) - private static final com.pilosa.client.Internal.ImportValueRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pilosa.client.Internal.ImportValueRequest(); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - public static com.pilosa.client.Internal.ImportValueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pilosa.client.Internal.ImportValueRequest) { + return mergeFrom((com.pilosa.client.Internal.ImportValueRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportValueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportValueRequest(input, extensionRegistry); - } - }; + public Builder mergeFrom(com.pilosa.client.Internal.ImportValueRequest other) { + if (other == com.pilosa.client.Internal.ImportValueRequest.getDefaultInstance()) return this; + if (!other.getIndex().isEmpty()) { + index_ = other.index_; + onChanged(); + } + if (!other.getField().isEmpty()) { + field_ = other.field_; + onChanged(); + } + if (other.getShard() != 0L) { + setShard(other.getShard()); + } + if (!other.columnIDs_.isEmpty()) { + if (columnIDs_.isEmpty()) { + columnIDs_ = other.columnIDs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureColumnIDsIsMutable(); + columnIDs_.addAll(other.columnIDs_); + } + onChanged(); + } + if (!other.columnKeys_.isEmpty()) { + if (columnKeys_.isEmpty()) { + columnKeys_ = other.columnKeys_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureColumnKeysIsMutable(); + columnKeys_.addAll(other.columnKeys_); + } + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pilosa.client.Internal.ImportValueRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pilosa.client.Internal.ImportValueRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public com.pilosa.client.Internal.ImportValueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private int bitField0_; + + private java.lang.Object index_ = ""; + + /** + * string Index = 1; + */ + public java.lang.String getIndex() { + java.lang.Object ref = index_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + index_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - } + /** + * string Index = 1; + */ + public com.google.protobuf.ByteString + getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + index_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface TranslateKeysRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:internal.TranslateKeysRequest) - com.google.protobuf.MessageOrBuilder { + /** + * string Index = 1; + */ + public Builder setIndex( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + index_ = value; + onChanged(); + return this; + } - /** - * string Index = 1; - */ - java.lang.String getIndex(); - /** - * string Index = 1; - */ - com.google.protobuf.ByteString - getIndexBytes(); + /** + * string Index = 1; + */ + public Builder clearIndex() { - /** - * string Field = 2; - */ - java.lang.String getField(); - /** - * string Field = 2; - */ - com.google.protobuf.ByteString - getFieldBytes(); + index_ = getDefaultInstance().getIndex(); + onChanged(); + return this; + } - /** - * repeated string Keys = 3; - */ - java.util.List - getKeysList(); - /** - * repeated string Keys = 3; - */ - int getKeysCount(); - /** - * repeated string Keys = 3; - */ - java.lang.String getKeys(int index); - /** - * repeated string Keys = 3; - */ - com.google.protobuf.ByteString - getKeysBytes(int index); - } - /** - * Protobuf type {@code internal.TranslateKeysRequest} - */ - public static final class TranslateKeysRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:internal.TranslateKeysRequest) - TranslateKeysRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TranslateKeysRequest.newBuilder() to construct. - private TranslateKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TranslateKeysRequest() { - index_ = ""; - field_ = ""; - keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + /** + * string Index = 1; + */ + public Builder setIndexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + index_ = value; + onChanged(); + return this; + } + + private java.lang.Object field_ = ""; + + /** + * string Field = 2; + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string Field = 2; + */ + public com.google.protobuf.ByteString + getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string Field = 2; + */ + public Builder setField( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + field_ = value; + onChanged(); + return this; + } + + /** + * string Field = 2; + */ + public Builder clearField() { + + field_ = getDefaultInstance().getField(); + onChanged(); + return this; + } + + /** + * string Field = 2; + */ + public Builder setFieldBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + field_ = value; + onChanged(); + return this; + } + + private long shard_; + + /** + * uint64 Shard = 3; + */ + public long getShard() { + return shard_; + } + + /** + * uint64 Shard = 3; + */ + public Builder setShard(long value) { + + shard_ = value; + onChanged(); + return this; + } + + /** + * uint64 Shard = 3; + */ + public Builder clearShard() { + + shard_ = 0L; + onChanged(); + return this; + } + + private java.util.List columnIDs_ = java.util.Collections.emptyList(); + + private void ensureColumnIDsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + columnIDs_ = new java.util.ArrayList(columnIDs_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated uint64 ColumnIDs = 5; + */ + public java.util.List + getColumnIDsList() { + return java.util.Collections.unmodifiableList(columnIDs_); + } + + /** + * repeated uint64 ColumnIDs = 5; + */ + public int getColumnIDsCount() { + return columnIDs_.size(); + } + + /** + * repeated uint64 ColumnIDs = 5; + */ + public long getColumnIDs(int index) { + return columnIDs_.get(index); + } + + /** + * repeated uint64 ColumnIDs = 5; + */ + public Builder setColumnIDs( + int index, long value) { + ensureColumnIDsIsMutable(); + columnIDs_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated uint64 ColumnIDs = 5; + */ + public Builder addColumnIDs(long value) { + ensureColumnIDsIsMutable(); + columnIDs_.add(value); + onChanged(); + return this; + } + + /** + * repeated uint64 ColumnIDs = 5; + */ + public Builder addAllColumnIDs( + java.lang.Iterable values) { + ensureColumnIDsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columnIDs_); + onChanged(); + return this; + } + + /** + * repeated uint64 ColumnIDs = 5; + */ + public Builder clearColumnIDs() { + columnIDs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList columnKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureColumnKeysIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + columnKeys_ = new com.google.protobuf.LazyStringArrayList(columnKeys_); + bitField0_ |= 0x00000010; + } + } + + /** + * repeated string ColumnKeys = 7; + */ + public com.google.protobuf.ProtocolStringList + getColumnKeysList() { + return columnKeys_.getUnmodifiableView(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TranslateKeysRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + /** + * repeated string ColumnKeys = 7; + */ + public int getColumnKeysCount() { + return columnKeys_.size(); + } - index_ = s; - break; + /** + * repeated string ColumnKeys = 7; + */ + public java.lang.String getColumnKeys(int index) { + return columnKeys_.get(index); } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - field_ = s; - break; + /** + * repeated string ColumnKeys = 7; + */ + public com.google.protobuf.ByteString + getColumnKeysBytes(int index) { + return columnKeys_.getByteString(index); } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - keys_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - keys_.add(s); - break; + + /** + * repeated string ColumnKeys = 7; + */ + public Builder setColumnKeys( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnKeysIsMutable(); + columnKeys_.set(index, value); + onChanged(); + return this; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + /** + * repeated string ColumnKeys = 7; + */ + public Builder addColumnKeys( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnKeysIsMutable(); + columnKeys_.add(value); + onChanged(); + return this; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - keys_ = keys_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pilosa.client.Internal.TranslateKeysRequest.class, com.pilosa.client.Internal.TranslateKeysRequest.Builder.class); - } + /** + * repeated string ColumnKeys = 7; + */ + public Builder addAllColumnKeys( + java.lang.Iterable values) { + ensureColumnKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columnKeys_); + onChanged(); + return this; + } - private int bitField0_; - public static final int INDEX_FIELD_NUMBER = 1; - private volatile java.lang.Object index_; - /** - * string Index = 1; - */ - public java.lang.String getIndex() { - java.lang.Object ref = index_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - index_ = s; - return s; - } - } - /** - * string Index = 1; - */ - public com.google.protobuf.ByteString - getIndexBytes() { - java.lang.Object ref = index_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - index_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated string ColumnKeys = 7; + */ + public Builder clearColumnKeys() { + columnKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } - public static final int FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object field_; - /** - * string Field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - field_ = s; - return s; - } - } - /** - * string Field = 2; - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * repeated string ColumnKeys = 7; + */ + public Builder addColumnKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureColumnKeysIsMutable(); + columnKeys_.add(value); + onChanged(); + return this; + } - public static final int KEYS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList keys_; - /** - * repeated string Keys = 3; - */ - public com.google.protobuf.ProtocolStringList - getKeysList() { - return keys_; - } - /** - * repeated string Keys = 3; - */ - public int getKeysCount() { - return keys_.size(); - } - /** - * repeated string Keys = 3; - */ - public java.lang.String getKeys(int index) { - return keys_.get(index); - } - /** - * repeated string Keys = 3; - */ - public com.google.protobuf.ByteString - getKeysBytes(int index) { - return keys_.getByteString(index); - } + private java.util.List values_ = java.util.Collections.emptyList(); - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000020; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + * repeated int64 Values = 6; + */ + public java.util.List + getValuesList() { + return java.util.Collections.unmodifiableList(values_); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIndexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, index_); - } - if (!getFieldBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); - } - for (int i = 0; i < keys_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keys_.getRaw(i)); - } - unknownFields.writeTo(output); - } + /** + * repeated int64 Values = 6; + */ + public int getValuesCount() { + return values_.size(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * repeated int64 Values = 6; + */ + public long getValues(int index) { + return values_.get(index); + } - size = 0; - if (!getIndexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, index_); - } - if (!getFieldBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); - } - { - int dataSize = 0; - for (int i = 0; i < keys_.size(); i++) { - dataSize += computeStringSizeNoTag(keys_.getRaw(i)); + /** + * repeated int64 Values = 6; + */ + public Builder setValues( + int index, long value) { + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated int64 Values = 6; + */ + public Builder addValues(long value) { + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + + /** + * repeated int64 Values = 6; + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + return this; + } + + /** + * repeated int64 Values = 6; + */ + public Builder clearValues() { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:internal.ImportValueRequest) } - size += dataSize; - size += 1 * getKeysList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.pilosa.client.Internal.TranslateKeysRequest)) { - return super.equals(obj); - } - com.pilosa.client.Internal.TranslateKeysRequest other = (com.pilosa.client.Internal.TranslateKeysRequest) obj; + // @@protoc_insertion_point(class_scope:internal.ImportValueRequest) + private static final com.pilosa.client.Internal.ImportValueRequest DEFAULT_INSTANCE; - boolean result = true; - result = result && getIndex() - .equals(other.getIndex()); - result = result && getField() - .equals(other.getField()); - result = result && getKeysList() - .equals(other.getKeysList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + static { + DEFAULT_INSTANCE = new com.pilosa.client.Internal.ImportValueRequest(); + } + + public static com.pilosa.client.Internal.ImportValueRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportValueRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportValueRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pilosa.client.Internal.ImportValueRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex().hashCode(); - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - if (getKeysCount() > 0) { - hash = (37 * hash) + KEYS_FIELD_NUMBER; - hash = (53 * hash) + getKeysList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public interface TranslateKeysRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:internal.TranslateKeysRequest) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.pilosa.client.Internal.TranslateKeysRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * string Index = 1; + */ + java.lang.String getIndex(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * string Index = 1; + */ + com.google.protobuf.ByteString + getIndexBytes(); + + /** + * string Field = 2; + */ + java.lang.String getField(); + + /** + * string Field = 2; + */ + com.google.protobuf.ByteString + getFieldBytes(); + + /** + * repeated string Keys = 3; + */ + java.util.List + getKeysList(); + + /** + * repeated string Keys = 3; + */ + int getKeysCount(); + + /** + * repeated string Keys = 3; + */ + java.lang.String getKeys(int index); + + /** + * repeated string Keys = 3; + */ + com.google.protobuf.ByteString + getKeysBytes(int index); } + /** * Protobuf type {@code internal.TranslateKeysRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:internal.TranslateKeysRequest) - com.pilosa.client.Internal.TranslateKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_descriptor; - } + public static final class TranslateKeysRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:internal.TranslateKeysRequest) + TranslateKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pilosa.client.Internal.TranslateKeysRequest.class, com.pilosa.client.Internal.TranslateKeysRequest.Builder.class); - } + // Use TranslateKeysRequest.newBuilder() to construct. + private TranslateKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - // Construct using com.pilosa.client.Internal.TranslateKeysRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private TranslateKeysRequest() { + index_ = ""; + field_ = ""; + keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = ""; - field_ = ""; + private TranslateKeysRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + index_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + field_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + keys_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + keys_.add(s); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + keys_ = keys_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_descriptor; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pilosa.client.Internal.TranslateKeysRequest.class, com.pilosa.client.Internal.TranslateKeysRequest.Builder.class); + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private volatile java.lang.Object index_; + + /** + * string Index = 1; + */ + public java.lang.String getIndex() { + java.lang.Object ref = index_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + index_ = s; + return s; + } + } - @java.lang.Override - public com.pilosa.client.Internal.TranslateKeysRequest getDefaultInstanceForType() { - return com.pilosa.client.Internal.TranslateKeysRequest.getDefaultInstance(); - } + /** + * string Index = 1; + */ + public com.google.protobuf.ByteString + getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + index_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.pilosa.client.Internal.TranslateKeysRequest build() { - com.pilosa.client.Internal.TranslateKeysRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public static final int FIELD_FIELD_NUMBER = 2; + private volatile java.lang.Object field_; + + /** + * string Field = 2; + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } } - return result; - } - @java.lang.Override - public com.pilosa.client.Internal.TranslateKeysRequest buildPartial() { - com.pilosa.client.Internal.TranslateKeysRequest result = new com.pilosa.client.Internal.TranslateKeysRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.index_ = index_; - result.field_ = field_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - keys_ = keys_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + /** + * string Field = 2; + */ + public com.google.protobuf.ByteString + getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - result.keys_ = keys_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.pilosa.client.Internal.TranslateKeysRequest) { - return mergeFrom((com.pilosa.client.Internal.TranslateKeysRequest)other); - } else { - super.mergeFrom(other); - return this; + public static final int KEYS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList keys_; + + /** + * repeated string Keys = 3; + */ + public com.google.protobuf.ProtocolStringList + getKeysList() { + return keys_; } - } - public Builder mergeFrom(com.pilosa.client.Internal.TranslateKeysRequest other) { - if (other == com.pilosa.client.Internal.TranslateKeysRequest.getDefaultInstance()) return this; - if (!other.getIndex().isEmpty()) { - index_ = other.index_; - onChanged(); + /** + * repeated string Keys = 3; + */ + public int getKeysCount() { + return keys_.size(); } - if (!other.getField().isEmpty()) { - field_ = other.field_; - onChanged(); + + /** + * repeated string Keys = 3; + */ + public java.lang.String getKeys(int index) { + return keys_.get(index); } - if (!other.keys_.isEmpty()) { - if (keys_.isEmpty()) { - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureKeysIsMutable(); - keys_.addAll(other.keys_); - } - onChanged(); + + /** + * repeated string Keys = 3; + */ + public com.google.protobuf.ByteString + getKeysBytes(int index) { + return keys_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIndexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, index_); + } + if (!getFieldBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); + } + for (int i = 0; i < keys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keys_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIndexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, index_); + } + if (!getFieldBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); + } + { + int dataSize = 0; + for (int i = 0; i < keys_.size(); i++) { + dataSize += computeStringSizeNoTag(keys_.getRaw(i)); + } + size += dataSize; + size += 1 * getKeysList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pilosa.client.Internal.TranslateKeysRequest)) { + return super.equals(obj); + } + com.pilosa.client.Internal.TranslateKeysRequest other = (com.pilosa.client.Internal.TranslateKeysRequest) obj; + + boolean result = true; + result = result && getIndex() + .equals(other.getIndex()); + result = result && getField() + .equals(other.getField()); + result = result && getKeysList() + .equals(other.getKeysList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + if (getKeysCount() > 0) { + hash = (37 * hash) + KEYS_FIELD_NUMBER; + hash = (53 * hash) + getKeysList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pilosa.client.Internal.TranslateKeysRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pilosa.client.Internal.TranslateKeysRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - return this; - } - private int bitField0_; - private java.lang.Object index_ = ""; - /** - * string Index = 1; - */ - public java.lang.String getIndex() { - java.lang.Object ref = index_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - index_ = s; - return s; - } else { - return (java.lang.String) ref; + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - } - /** - * string Index = 1; - */ - public com.google.protobuf.ByteString - getIndexBytes() { - java.lang.Object ref = index_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - index_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - } - /** - * string Index = 1; - */ - public Builder setIndex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - index_ = value; - onChanged(); - return this; - } - /** - * string Index = 1; - */ - public Builder clearIndex() { - - index_ = getDefaultInstance().getIndex(); - onChanged(); - return this; - } - /** - * string Index = 1; - */ - public Builder setIndexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - index_ = value; - onChanged(); - return this; - } - private java.lang.Object field_ = ""; - /** - * string Field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - field_ = s; - return s; - } else { - return (java.lang.String) ref; + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - } - /** - * string Field = 2; - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - } - /** - * string Field = 2; - */ - public Builder setField( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - field_ = value; - onChanged(); - return this; - } - /** - * string Field = 2; - */ - public Builder clearField() { - - field_ = getDefaultInstance().getField(); - onChanged(); - return this; - } - /** - * string Field = 2; - */ - public Builder setFieldBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - field_ = value; - onChanged(); - return this; - } - private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureKeysIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - keys_ = new com.google.protobuf.LazyStringArrayList(keys_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string Keys = 3; - */ - public com.google.protobuf.ProtocolStringList - getKeysList() { - return keys_.getUnmodifiableView(); - } - /** - * repeated string Keys = 3; - */ - public int getKeysCount() { - return keys_.size(); - } - /** - * repeated string Keys = 3; - */ - public java.lang.String getKeys(int index) { - return keys_.get(index); - } - /** - * repeated string Keys = 3; - */ - public com.google.protobuf.ByteString - getKeysBytes(int index) { - return keys_.getByteString(index); - } - /** - * repeated string Keys = 3; - */ - public Builder setKeys( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string Keys = 3; - */ - public Builder addKeys( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(value); - onChanged(); - return this; - } - /** - * repeated string Keys = 3; - */ - public Builder addAllKeys( - java.lang.Iterable values) { - ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keys_); - onChanged(); - return this; - } - /** - * repeated string Keys = 3; - */ - public Builder clearKeys() { - keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string Keys = 3; - */ - public Builder addKeysBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureKeysIsMutable(); - keys_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.pilosa.client.Internal.TranslateKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public static com.pilosa.client.Internal.TranslateKeysRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(builder_scope:internal.TranslateKeysRequest) - } + public static com.pilosa.client.Internal.TranslateKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:internal.TranslateKeysRequest) - private static final com.pilosa.client.Internal.TranslateKeysRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pilosa.client.Internal.TranslateKeysRequest(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static com.pilosa.client.Internal.TranslateKeysRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslateKeysRequest(input, extensionRegistry); - } - }; + public static Builder newBuilder(com.pilosa.client.Internal.TranslateKeysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public com.pilosa.client.Internal.TranslateKeysRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * Protobuf type {@code internal.TranslateKeysRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:internal.TranslateKeysRequest) + com.pilosa.client.Internal.TranslateKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pilosa.client.Internal.TranslateKeysRequest.class, com.pilosa.client.Internal.TranslateKeysRequest.Builder.class); + } - public interface TranslateKeysResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:internal.TranslateKeysResponse) - com.google.protobuf.MessageOrBuilder { + // Construct using com.pilosa.client.Internal.TranslateKeysRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * repeated uint64 IDs = 3; - */ - java.util.List getIDsList(); - /** - * repeated uint64 IDs = 3; - */ - int getIDsCount(); - /** - * repeated uint64 IDs = 3; - */ - long getIDs(int index); - } - /** - * Protobuf type {@code internal.TranslateKeysResponse} - */ - public static final class TranslateKeysResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:internal.TranslateKeysResponse) - TranslateKeysResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TranslateKeysResponse.newBuilder() to construct. - private TranslateKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TranslateKeysResponse() { - iDs_ = java.util.Collections.emptyList(); - } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TranslateKeysResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - case 24: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - iDs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - iDs_.add(input.readUInt64()); - break; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - iDs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - iDs_.add(input.readUInt64()); - } - input.popLimit(limit); - break; + + @java.lang.Override + public Builder clear() { + super.clear(); + index_ = ""; + + field_ = ""; + + keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysRequest_descriptor; } - } + + @java.lang.Override + public com.pilosa.client.Internal.TranslateKeysRequest getDefaultInstanceForType() { + return com.pilosa.client.Internal.TranslateKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.pilosa.client.Internal.TranslateKeysRequest build() { + com.pilosa.client.Internal.TranslateKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pilosa.client.Internal.TranslateKeysRequest buildPartial() { + com.pilosa.client.Internal.TranslateKeysRequest result = new com.pilosa.client.Internal.TranslateKeysRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.index_ = index_; + result.field_ = field_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + keys_ = keys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.keys_ = keys_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pilosa.client.Internal.TranslateKeysRequest) { + return mergeFrom((com.pilosa.client.Internal.TranslateKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.pilosa.client.Internal.TranslateKeysRequest other) { + if (other == com.pilosa.client.Internal.TranslateKeysRequest.getDefaultInstance()) return this; + if (!other.getIndex().isEmpty()) { + index_ = other.index_; + onChanged(); + } + if (!other.getField().isEmpty()) { + field_ = other.field_; + onChanged(); + } + if (!other.keys_.isEmpty()) { + if (keys_.isEmpty()) { + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureKeysIsMutable(); + keys_.addAll(other.keys_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pilosa.client.Internal.TranslateKeysRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pilosa.client.Internal.TranslateKeysRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object index_ = ""; + + /** + * string Index = 1; + */ + public java.lang.String getIndex() { + java.lang.Object ref = index_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + index_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string Index = 1; + */ + public com.google.protobuf.ByteString + getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + index_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string Index = 1; + */ + public Builder setIndex( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + index_ = value; + onChanged(); + return this; + } + + /** + * string Index = 1; + */ + public Builder clearIndex() { + + index_ = getDefaultInstance().getIndex(); + onChanged(); + return this; + } + + /** + * string Index = 1; + */ + public Builder setIndexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + index_ = value; + onChanged(); + return this; + } + + private java.lang.Object field_ = ""; + + /** + * string Field = 2; + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string Field = 2; + */ + public com.google.protobuf.ByteString + getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string Field = 2; + */ + public Builder setField( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + field_ = value; + onChanged(); + return this; + } + + /** + * string Field = 2; + */ + public Builder clearField() { + + field_ = getDefaultInstance().getField(); + onChanged(); + return this; + } + + /** + * string Field = 2; + */ + public Builder setFieldBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + field_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureKeysIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + keys_ = new com.google.protobuf.LazyStringArrayList(keys_); + bitField0_ |= 0x00000004; + } + } + + /** + * repeated string Keys = 3; + */ + public com.google.protobuf.ProtocolStringList + getKeysList() { + return keys_.getUnmodifiableView(); + } + + /** + * repeated string Keys = 3; + */ + public int getKeysCount() { + return keys_.size(); + } + + /** + * repeated string Keys = 3; + */ + public java.lang.String getKeys(int index) { + return keys_.get(index); + } + + /** + * repeated string Keys = 3; + */ + public com.google.protobuf.ByteString + getKeysBytes(int index) { + return keys_.getByteString(index); + } + + /** + * repeated string Keys = 3; + */ + public Builder setKeys( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string Keys = 3; + */ + public Builder addKeys( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(value); + onChanged(); + return this; + } + + /** + * repeated string Keys = 3; + */ + public Builder addAllKeys( + java.lang.Iterable values) { + ensureKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keys_); + onChanged(); + return this; + } + + /** + * repeated string Keys = 3; + */ + public Builder clearKeys() { + keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * repeated string Keys = 3; + */ + public Builder addKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKeysIsMutable(); + keys_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:internal.TranslateKeysRequest) } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - iDs_ = java.util.Collections.unmodifiableList(iDs_); + + // @@protoc_insertion_point(class_scope:internal.TranslateKeysRequest) + private static final com.pilosa.client.Internal.TranslateKeysRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.pilosa.client.Internal.TranslateKeysRequest(); } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_descriptor; + + public static com.pilosa.client.Internal.TranslateKeysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslateKeysRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.pilosa.client.Internal.TranslateKeysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pilosa.client.Internal.TranslateKeysResponse.class, com.pilosa.client.Internal.TranslateKeysResponse.Builder.class); + public interface TranslateKeysResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:internal.TranslateKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated uint64 IDs = 3; + */ + java.util.List getIDsList(); + + /** + * repeated uint64 IDs = 3; + */ + int getIDsCount(); + + /** + * repeated uint64 IDs = 3; + */ + long getIDs(int index); } - public static final int IDS_FIELD_NUMBER = 3; - private java.util.List iDs_; /** - * repeated uint64 IDs = 3; + * Protobuf type {@code internal.TranslateKeysResponse} */ - public java.util.List + public static final class TranslateKeysResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:internal.TranslateKeysResponse) + TranslateKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TranslateKeysResponse.newBuilder() to construct. + private TranslateKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TranslateKeysResponse() { + iDs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + + private TranslateKeysResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + case 24: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + iDs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + iDs_.add(input.readUInt64()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { + iDs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + iDs_.add(input.readUInt64()); + } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + iDs_ = java.util.Collections.unmodifiableList(iDs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pilosa.client.Internal.TranslateKeysResponse.class, com.pilosa.client.Internal.TranslateKeysResponse.Builder.class); + } + + public static final int IDS_FIELD_NUMBER = 3; + private java.util.List iDs_; + + /** + * repeated uint64 IDs = 3; + */ + public java.util.List getIDsList() { - return iDs_; - } - /** - * repeated uint64 IDs = 3; - */ - public int getIDsCount() { - return iDs_.size(); - } - /** - * repeated uint64 IDs = 3; - */ - public long getIDs(int index) { - return iDs_.get(index); - } - private int iDsMemoizedSerializedSize = -1; + return iDs_; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * repeated uint64 IDs = 3; + */ + public int getIDsCount() { + return iDs_.size(); + } + + /** + * repeated uint64 IDs = 3; + */ + public long getIDs(int index) { + return iDs_.get(index); + } + + private int iDsMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getIDsList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(iDsMemoizedSerializedSize); + } + for (int i = 0; i < iDs_.size(); i++) { + output.writeUInt64NoTag(iDs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < iDs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(iDs_.get(i)); + } + size += dataSize; + if (!getIDsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + iDsMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.pilosa.client.Internal.TranslateKeysResponse)) { + return super.equals(obj); + } + com.pilosa.client.Internal.TranslateKeysResponse other = (com.pilosa.client.Internal.TranslateKeysResponse) obj; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getIDsList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(iDsMemoizedSerializedSize); - } - for (int i = 0; i < iDs_.size(); i++) { - output.writeUInt64NoTag(iDs_.get(i)); - } - unknownFields.writeTo(output); - } + boolean result = true; + result = result && getIDsList() + .equals(other.getIDsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIDsCount() > 0) { + hash = (37 * hash) + IDS_FIELD_NUMBER; + hash = (53 * hash) + getIDsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - size = 0; - { - int dataSize = 0; - for (int i = 0; i < iDs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(iDs_.get(i)); + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - size += dataSize; - if (!getIDsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - iDsMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.pilosa.client.Internal.TranslateKeysResponse)) { - return super.equals(obj); - } - com.pilosa.client.Internal.TranslateKeysResponse other = (com.pilosa.client.Internal.TranslateKeysResponse) obj; + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - boolean result = true; - result = result && getIDsList() - .equals(other.getIDsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getIDsCount() > 0) { - hash = (37 * hash) + IDS_FIELD_NUMBER; - hash = (53 * hash) + getIDsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.pilosa.client.Internal.TranslateKeysResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code internal.TranslateKeysResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:internal.TranslateKeysResponse) - com.pilosa.client.Internal.TranslateKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_descriptor; - } + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pilosa.client.Internal.TranslateKeysResponse.class, com.pilosa.client.Internal.TranslateKeysResponse.Builder.class); - } + public static com.pilosa.client.Internal.TranslateKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } - // Construct using com.pilosa.client.Internal.TranslateKeysResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static com.pilosa.client.Internal.TranslateKeysResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - } - @java.lang.Override - public Builder clear() { - super.clear(); - iDs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_descriptor; - } + public static com.pilosa.client.Internal.TranslateKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.pilosa.client.Internal.TranslateKeysResponse getDefaultInstanceForType() { - return com.pilosa.client.Internal.TranslateKeysResponse.getDefaultInstance(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public com.pilosa.client.Internal.TranslateKeysResponse build() { - com.pilosa.client.Internal.TranslateKeysResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - return result; - } - @java.lang.Override - public com.pilosa.client.Internal.TranslateKeysResponse buildPartial() { - com.pilosa.client.Internal.TranslateKeysResponse result = new com.pilosa.client.Internal.TranslateKeysResponse(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - iDs_ = java.util.Collections.unmodifiableList(iDs_); - bitField0_ = (bitField0_ & ~0x00000001); + public static Builder newBuilder(com.pilosa.client.Internal.TranslateKeysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - result.iDs_ = iDs_; - onBuilt(); - return result; - } - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.pilosa.client.Internal.TranslateKeysResponse) { - return mergeFrom((com.pilosa.client.Internal.TranslateKeysResponse)other); - } else { - super.mergeFrom(other); - return this; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - } - public Builder mergeFrom(com.pilosa.client.Internal.TranslateKeysResponse other) { - if (other == com.pilosa.client.Internal.TranslateKeysResponse.getDefaultInstance()) return this; - if (!other.iDs_.isEmpty()) { - if (iDs_.isEmpty()) { - iDs_ = other.iDs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIDsIsMutable(); - iDs_.addAll(other.iDs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * Protobuf type {@code internal.TranslateKeysResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:internal.TranslateKeysResponse) + com.pilosa.client.Internal.TranslateKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.pilosa.client.Internal.TranslateKeysResponse.class, com.pilosa.client.Internal.TranslateKeysResponse.Builder.class); + } + + // Construct using com.pilosa.client.Internal.TranslateKeysResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + iDs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_descriptor; + } + + @java.lang.Override + public com.pilosa.client.Internal.TranslateKeysResponse getDefaultInstanceForType() { + return com.pilosa.client.Internal.TranslateKeysResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.pilosa.client.Internal.TranslateKeysResponse build() { + com.pilosa.client.Internal.TranslateKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.pilosa.client.Internal.TranslateKeysResponse buildPartial() { + com.pilosa.client.Internal.TranslateKeysResponse result = new com.pilosa.client.Internal.TranslateKeysResponse(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + iDs_ = java.util.Collections.unmodifiableList(iDs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.iDs_ = iDs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pilosa.client.Internal.TranslateKeysResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pilosa.client.Internal.TranslateKeysResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - private java.util.List iDs_ = java.util.Collections.emptyList(); - private void ensureIDsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - iDs_ = new java.util.ArrayList(iDs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated uint64 IDs = 3; - */ - public java.util.List - getIDsList() { - return java.util.Collections.unmodifiableList(iDs_); - } - /** - * repeated uint64 IDs = 3; - */ - public int getIDsCount() { - return iDs_.size(); - } - /** - * repeated uint64 IDs = 3; - */ - public long getIDs(int index) { - return iDs_.get(index); - } - /** - * repeated uint64 IDs = 3; - */ - public Builder setIDs( - int index, long value) { - ensureIDsIsMutable(); - iDs_.set(index, value); - onChanged(); - return this; - } - /** - * repeated uint64 IDs = 3; - */ - public Builder addIDs(long value) { - ensureIDsIsMutable(); - iDs_.add(value); - onChanged(); - return this; - } - /** - * repeated uint64 IDs = 3; - */ - public Builder addAllIDs( - java.lang.Iterable values) { - ensureIDsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, iDs_); - onChanged(); - return this; - } - /** - * repeated uint64 IDs = 3; - */ - public Builder clearIDs() { - iDs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.pilosa.client.Internal.TranslateKeysResponse) { + return mergeFrom((com.pilosa.client.Internal.TranslateKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(com.pilosa.client.Internal.TranslateKeysResponse other) { + if (other == com.pilosa.client.Internal.TranslateKeysResponse.getDefaultInstance()) return this; + if (!other.iDs_.isEmpty()) { + if (iDs_.isEmpty()) { + iDs_ = other.iDs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIDsIsMutable(); + iDs_.addAll(other.iDs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - // @@protoc_insertion_point(builder_scope:internal.TranslateKeysResponse) - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - // @@protoc_insertion_point(class_scope:internal.TranslateKeysResponse) - private static final com.pilosa.client.Internal.TranslateKeysResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pilosa.client.Internal.TranslateKeysResponse(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.pilosa.client.Internal.TranslateKeysResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.pilosa.client.Internal.TranslateKeysResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static com.pilosa.client.Internal.TranslateKeysResponse getDefaultInstance() { - return DEFAULT_INSTANCE; + private int bitField0_; + + private java.util.List iDs_ = java.util.Collections.emptyList(); + + private void ensureIDsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + iDs_ = new java.util.ArrayList(iDs_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated uint64 IDs = 3; + */ + public java.util.List + getIDsList() { + return java.util.Collections.unmodifiableList(iDs_); + } + + /** + * repeated uint64 IDs = 3; + */ + public int getIDsCount() { + return iDs_.size(); + } + + /** + * repeated uint64 IDs = 3; + */ + public long getIDs(int index) { + return iDs_.get(index); + } + + /** + * repeated uint64 IDs = 3; + */ + public Builder setIDs( + int index, long value) { + ensureIDsIsMutable(); + iDs_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated uint64 IDs = 3; + */ + public Builder addIDs(long value) { + ensureIDsIsMutable(); + iDs_.add(value); + onChanged(); + return this; + } + + /** + * repeated uint64 IDs = 3; + */ + public Builder addAllIDs( + java.lang.Iterable values) { + ensureIDsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, iDs_); + onChanged(); + return this; + } + + /** + * repeated uint64 IDs = 3; + */ + public Builder clearIDs() { + iDs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:internal.TranslateKeysResponse) + } + + // @@protoc_insertion_point(class_scope:internal.TranslateKeysResponse) + private static final com.pilosa.client.Internal.TranslateKeysResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.pilosa.client.Internal.TranslateKeysResponse(); + } + + public static com.pilosa.client.Internal.TranslateKeysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override + @java.lang.Override public TranslateKeysResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -16283,13 +16535,13 @@ private ImportRoaringRequestView( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { + this(); + if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -16351,7 +16603,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; @@ -16365,7 +16617,7 @@ public java.lang.String getName() { getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; @@ -16513,24 +16765,24 @@ public static com.pilosa.client.Internal.ImportRoaringRequestView parseDelimited java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.pilosa.client.Internal.ImportRoaringRequestView parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pilosa.client.Internal.ImportRoaringRequestView parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -16727,7 +16979,7 @@ public java.lang.String getName() { getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; @@ -16744,7 +16996,7 @@ public Builder setName( if (value == null) { throw new NullPointerException(); } - + name_ = value; onChanged(); return this; @@ -16753,21 +17005,22 @@ public Builder setName( * string Name = 1; */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); - return this; + return this; } - /** - * string Name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + + /** + * string Name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - + name_ = value; onChanged(); return this; @@ -16787,7 +17040,7 @@ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - + data_ = value; onChanged(); return this; @@ -16796,7 +17049,7 @@ public Builder setData(com.google.protobuf.ByteString value) { * bytes Data = 2; */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; @@ -16814,27 +17067,27 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:internal.ImportRoaringRequestView) + // @@protoc_insertion_point(builder_scope:internal.ImportRoaringRequestView) } - // @@protoc_insertion_point(class_scope:internal.ImportRoaringRequestView) + // @@protoc_insertion_point(class_scope:internal.ImportRoaringRequestView) private static final com.pilosa.client.Internal.ImportRoaringRequestView DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.ImportRoaringRequestView(); } - public static com.pilosa.client.Internal.ImportRoaringRequestView getDefaultInstance() { + public static com.pilosa.client.Internal.ImportRoaringRequestView getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportRoaringRequestView parsePartialFrom( + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportRoaringRequestView parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportRoaringRequestView(input, extensionRegistry); + return new ImportRoaringRequestView(input, extensionRegistry); } }; @@ -16844,11 +17097,11 @@ public static com.google.protobuf.Parser parser() { @java.lang.Override public com.google.protobuf.Parser getParserForType() { - return PARSER; + return PARSER; } - @java.lang.Override - public com.pilosa.client.Internal.ImportRoaringRequestView getDefaultInstanceForType() { + @java.lang.Override + public com.pilosa.client.Internal.ImportRoaringRequestView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -16866,7 +17119,7 @@ public interface ImportRoaringRequestOrBuilder extends /** * repeated .internal.ImportRoaringRequestView views = 2; */ - java.util.List + java.util.List getViewsList(); /** * repeated .internal.ImportRoaringRequestView views = 2; @@ -16879,7 +17132,7 @@ public interface ImportRoaringRequestOrBuilder extends /** * repeated .internal.ImportRoaringRequestView views = 2; */ - java.util.List + java.util.List getViewsOrBuilderList(); /** * repeated .internal.ImportRoaringRequestView views = 2; @@ -16923,19 +17176,19 @@ private ImportRoaringRequest( try { boolean done = false; while (!done) { - int tag = input.readTag(); + int tag = input.readTag(); switch (tag) { - case 0: - done = true; - break; + case 0: + done = true; + break; case 8: { clear_ = input.readBool(); break; } case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - views_ = new java.util.ArrayList(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + views_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } views_.add( @@ -16952,10 +17205,10 @@ private ImportRoaringRequest( } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); + throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { views_ = java.util.Collections.unmodifiableList(views_); @@ -16971,8 +17224,8 @@ private ImportRoaringRequest( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_fieldAccessorTable + internalGetFieldAccessorTable() { + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ImportRoaringRequest.class, com.pilosa.client.Internal.ImportRoaringRequest.Builder.class); } @@ -16998,7 +17251,7 @@ public java.util.List getVi /** * repeated .internal.ImportRoaringRequestView views = 2; */ - public java.util.List + public java.util.List getViewsOrBuilderList() { return views_; } @@ -17154,22 +17407,22 @@ public static com.pilosa.client.Internal.ImportRoaringRequest parseDelimitedFrom public static com.pilosa.client.Internal.ImportRoaringRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.pilosa.client.Internal.ImportRoaringRequest parseFrom( - com.google.protobuf.CodedInputStream input) + com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pilosa.client.Internal.ImportRoaringRequest parseFrom( - com.google.protobuf.CodedInputStream input, + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override @@ -17201,10 +17454,10 @@ public static final class Builder extends com.pilosa.client.Internal.ImportRoaringRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_descriptor; } - @java.lang.Override + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_fieldAccessorTable @@ -17347,7 +17600,7 @@ public Builder mergeFrom(com.pilosa.client.Internal.ImportRoaringRequest other) viewsBuilder_ = null; views_ = other.views_; bitField0_ = (bitField0_ & ~0x00000002); - viewsBuilder_ = + viewsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getViewsFieldBuilder() : null; } else { @@ -17385,27 +17638,29 @@ public Builder mergeFrom( } private int bitField0_; - private boolean clear_ ; - /** - * bool Clear = 1; - */ - public boolean getClear() { + private boolean clear_; + + /** + * bool Clear = 1; + */ + public boolean getClear() { return clear_; } /** * bool Clear = 1; */ public Builder setClear(boolean value) { - + clear_ = value; onChanged(); return this; } - /** - * bool Clear = 1; + + /** + * bool Clear = 1; */ public Builder clearClear() { - + clear_ = false; onChanged(); return this; @@ -17414,8 +17669,8 @@ public Builder clearClear() { private java.util.List views_ = java.util.Collections.emptyList(); private void ensureViewsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - views_ = new java.util.ArrayList(views_); + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + views_ = new java.util.ArrayList(views_); bitField0_ |= 0x00000002; } } @@ -17423,9 +17678,9 @@ private void ensureViewsIsMutable() { private com.google.protobuf.RepeatedFieldBuilderV3< com.pilosa.client.Internal.ImportRoaringRequestView, com.pilosa.client.Internal.ImportRoaringRequestView.Builder, com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder> viewsBuilder_; - /** - * repeated .internal.ImportRoaringRequestView views = 2; - */ + /** + * repeated .internal.ImportRoaringRequestView views = 2; + */ public java.util.List getViewsList() { if (viewsBuilder_ == null) { return java.util.Collections.unmodifiableList(views_); @@ -17437,10 +17692,10 @@ public java.util.List getVi * repeated .internal.ImportRoaringRequestView views = 2; */ public int getViewsCount() { - if (viewsBuilder_ == null) { - return views_.size(); - } else { - return viewsBuilder_.getCount(); + if (viewsBuilder_ == null) { + return views_.size(); + } else { + return viewsBuilder_.getCount(); } } /** @@ -17468,10 +17723,11 @@ public Builder setViews( } else { viewsBuilder_.setMessage(index, value); } - return this; + return this; } - /** - * repeated .internal.ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder setViews( int index, com.pilosa.client.Internal.ImportRoaringRequestView.Builder builderForValue) { @@ -17484,9 +17740,10 @@ public Builder setViews( } return this; } - /** - * repeated .internal.ImportRoaringRequestView views = 2; - */ + + /** + * repeated .internal.ImportRoaringRequestView views = 2; + */ public Builder addViews(com.pilosa.client.Internal.ImportRoaringRequestView value) { if (viewsBuilder_ == null) { if (value == null) { @@ -17498,10 +17755,11 @@ public Builder addViews(com.pilosa.client.Internal.ImportRoaringRequestView valu } else { viewsBuilder_.addMessage(value); } - return this; + return this; } - /** - * repeated .internal.ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder addViews( int index, com.pilosa.client.Internal.ImportRoaringRequestView value) { @@ -17525,9 +17783,9 @@ public Builder addViews( if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.add(builderForValue.build()); - onChanged(); + onChanged(); } else { - viewsBuilder_.addMessage(builderForValue.build()); + viewsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -17536,17 +17794,18 @@ public Builder addViews( */ public Builder addViews( int index, com.pilosa.client.Internal.ImportRoaringRequestView.Builder builderForValue) { - if (viewsBuilder_ == null) { - ensureViewsIsMutable(); - views_.add(index, builderForValue.build()); + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.add(index, builderForValue.build()); onChanged(); } else { viewsBuilder_.addMessage(index, builderForValue.build()); } return this; } - /** - * repeated .internal.ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder addAllViews( java.lang.Iterable values) { @@ -17554,9 +17813,9 @@ public Builder addAllViews( ensureViewsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, views_); - onChanged(); + onChanged(); } else { - viewsBuilder_.addAllMessages(values); + viewsBuilder_.addAllMessages(values); } return this; } @@ -17582,19 +17841,21 @@ public Builder removeViews(int index) { views_.remove(index); onChanged(); } else { - viewsBuilder_.remove(index); + viewsBuilder_.remove(index); } - return this; + return this; } - /** + + /** * repeated .internal.ImportRoaringRequestView views = 2; */ public com.pilosa.client.Internal.ImportRoaringRequestView.Builder getViewsBuilder( int index) { return getViewsFieldBuilder().getBuilder(index); } - /** - * repeated .internal.ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder getViewsOrBuilder( int index) { @@ -17606,7 +17867,7 @@ public com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder getViewsOrBu /** * repeated .internal.ImportRoaringRequestView views = 2; */ - public java.util.List + public java.util.List getViewsOrBuilderList() { if (viewsBuilder_ != null) { return viewsBuilder_.getMessageOrBuilderList(); @@ -17632,12 +17893,12 @@ public com.pilosa.client.Internal.ImportRoaringRequestView.Builder addViewsBuild /** * repeated .internal.ImportRoaringRequestView views = 2; */ - public java.util.List + public java.util.List getViewsBuilderList() { return getViewsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.pilosa.client.Internal.ImportRoaringRequestView, com.pilosa.client.Internal.ImportRoaringRequestView.Builder, com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder> + com.pilosa.client.Internal.ImportRoaringRequestView, com.pilosa.client.Internal.ImportRoaringRequestView.Builder, com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder> getViewsFieldBuilder() { if (viewsBuilder_ == null) { viewsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< @@ -17659,291 +17920,293 @@ public final Builder setUnknownFields( @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:internal.ImportRoaringRequest) } - // @@protoc_insertion_point(class_scope:internal.ImportRoaringRequest) + // @@protoc_insertion_point(class_scope:internal.ImportRoaringRequest) private static final com.pilosa.client.Internal.ImportRoaringRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.ImportRoaringRequest(); } - public static com.pilosa.client.Internal.ImportRoaringRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static com.pilosa.client.Internal.ImportRoaringRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImportRoaringRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + throws com.google.protobuf.InvalidProtocolBufferException { return new ImportRoaringRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public com.pilosa.client.Internal.ImportRoaringRequest getDefaultInstanceForType() { + @java.lang.Override + public com.pilosa.client.Internal.ImportRoaringRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private static final com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_Row_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_internal_Row_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_RowIdentifiers_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_internal_RowIdentifiers_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_Pair_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_internal_Pair_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_FieldRow_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_internal_FieldRow_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_GroupCount_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_internal_GroupCount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_ValCount_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_internal_ValCount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_ColumnAttrSet_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_internal_ColumnAttrSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_Attr_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_Attr_fieldAccessorTable; + internal_static_internal_Attr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_AttrMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_AttrMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_internal_QueryRequest_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_QueryRequest_fieldAccessorTable; + internal_static_internal_AttrMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_internal_QueryResponse_descriptor; - private static final + internal_static_internal_QueryRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_QueryResponse_fieldAccessorTable; + internal_static_internal_QueryRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_internal_QueryResult_descriptor; - private static final + internal_static_internal_QueryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_internal_QueryResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_internal_QueryResult_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_QueryResult_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_internal_ImportRequest_descriptor; - private static final + internal_static_internal_QueryResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_internal_ImportRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_internal_ImportRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_internal_ImportValueRequest_descriptor; - private static final + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_ImportValueRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_internal_TranslateKeysRequest_descriptor; - private static final + internal_static_internal_ImportValueRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_internal_TranslateKeysRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_TranslateKeysRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_internal_TranslateKeysResponse_descriptor; - private static final + internal_static_internal_TranslateKeysRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_internal_TranslateKeysResponse_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_TranslateKeysResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_internal_ImportRoaringRequestView_descriptor; - private static final + internal_static_internal_TranslateKeysResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_internal_ImportRoaringRequestView_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_ImportRoaringRequestView_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_internal_ImportRoaringRequest_descriptor; - private static final + internal_static_internal_ImportRoaringRequestView_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_internal_ImportRoaringRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_internal_ImportRoaringRequest_fieldAccessorTable; + internal_static_internal_ImportRoaringRequest_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+com.pilosa.client/src/internal/public." + - "proto\022\010internal\"C\n\003Row\022\017\n\007Columns\030\001 \003(\004\022" + - "\014\n\004Keys\030\003 \003(\t\022\035\n\005Attrs\030\002 \003(\0132\016.internal." + - "Attr\",\n\016RowIdentifiers\022\014\n\004Rows\030\001 \003(\004\022\014\n\004" + - "Keys\030\002 \003(\t\".\n\004Pair\022\n\n\002ID\030\001 \001(\004\022\013\n\003Key\030\003 " + - "\001(\t\022\r\n\005Count\030\002 \001(\004\"8\n\010FieldRow\022\r\n\005Field\030" + - "\001 \001(\t\022\r\n\005RowID\030\002 \001(\004\022\016\n\006RowKey\030\003 \001(\t\">\n\n" + - "GroupCount\022!\n\005Group\030\001 \003(\0132\022.internal.Fie" + - "ldRow\022\r\n\005Count\030\002 \001(\004\"&\n\010ValCount\022\013\n\003Val\030" + - "\001 \001(\003\022\r\n\005Count\030\002 \001(\003\"G\n\rColumnAttrSet\022\n\n" + - "\002ID\030\001 \001(\004\022\013\n\003Key\030\003 \001(\t\022\035\n\005Attrs\030\002 \003(\0132\016." + - "internal.Attr\"o\n\004Attr\022\013\n\003Key\030\001 \001(\t\022\014\n\004Ty" + - "pe\030\002 \001(\004\022\023\n\013StringValue\030\003 \001(\t\022\020\n\010IntValu" + - "e\030\004 \001(\003\022\021\n\tBoolValue\030\005 \001(\010\022\022\n\nFloatValue" + - "\030\006 \001(\001\"(\n\007AttrMap\022\035\n\005Attrs\030\001 \003(\0132\016.inter" + - "nal.Attr\"\203\001\n\014QueryRequest\022\r\n\005Query\030\001 \001(\t" + - "\022\016\n\006Shards\030\002 \003(\004\022\023\n\013ColumnAttrs\030\003 \001(\010\022\016\n" + - "\006Remote\030\005 \001(\010\022\027\n\017ExcludeRowAttrs\030\006 \001(\010\022\026" + - "\n\016ExcludeColumns\030\007 \001(\010\"u\n\rQueryResponse\022" + - "\013\n\003Err\030\001 \001(\t\022&\n\007Results\030\002 \003(\0132\025.internal" + - ".QueryResult\022/\n\016ColumnAttrSets\030\003 \003(\0132\027.i" + - "nternal.ColumnAttrSet\"\205\002\n\013QueryResult\022\014\n" + - "\004Type\030\006 \001(\r\022\032\n\003Row\030\001 \001(\0132\r.internal.Row\022" + - "\t\n\001N\030\002 \001(\004\022\035\n\005Pairs\030\003 \003(\0132\016.internal.Pai" + - "r\022\017\n\007Changed\030\004 \001(\010\022$\n\010ValCount\030\005 \001(\0132\022.i" + - "nternal.ValCount\022\016\n\006RowIDs\030\007 \003(\004\022)\n\013Grou" + - "pCounts\030\010 \003(\0132\024.internal.GroupCount\0220\n\016R" + - "owIdentifiers\030\t \001(\0132\030.internal.RowIdenti" + - "fiers\"\230\001\n\rImportRequest\022\r\n\005Index\030\001 \001(\t\022\r" + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+com.pilosa.client/src/internal/public." + + "proto\022\010internal\"C\n\003Row\022\017\n\007Columns\030\001 \003(\004\022" + + "\014\n\004Keys\030\003 \003(\t\022\035\n\005Attrs\030\002 \003(\0132\016.internal." + + "Attr\",\n\016RowIdentifiers\022\014\n\004Rows\030\001 \003(\004\022\014\n\004" + + "Keys\030\002 \003(\t\".\n\004Pair\022\n\n\002ID\030\001 \001(\004\022\013\n\003Key\030\003 " + + "\001(\t\022\r\n\005Count\030\002 \001(\004\"8\n\010FieldRow\022\r\n\005Field\030" + + "\001 \001(\t\022\r\n\005RowID\030\002 \001(\004\022\016\n\006RowKey\030\003 \001(\t\">\n\n" + + "GroupCount\022!\n\005Group\030\001 \003(\0132\022.internal.Fie" + + "ldRow\022\r\n\005Count\030\002 \001(\004\"&\n\010ValCount\022\013\n\003Val\030" + + "\001 \001(\003\022\r\n\005Count\030\002 \001(\003\"G\n\rColumnAttrSet\022\n\n" + + "\002ID\030\001 \001(\004\022\013\n\003Key\030\003 \001(\t\022\035\n\005Attrs\030\002 \003(\0132\016." + + "internal.Attr\"o\n\004Attr\022\013\n\003Key\030\001 \001(\t\022\014\n\004Ty" + + "pe\030\002 \001(\004\022\023\n\013StringValue\030\003 \001(\t\022\020\n\010IntValu" + + "e\030\004 \001(\003\022\021\n\tBoolValue\030\005 \001(\010\022\022\n\nFloatValue" + + "\030\006 \001(\001\"(\n\007AttrMap\022\035\n\005Attrs\030\001 \003(\0132\016.inter" + + "nal.Attr\"\203\001\n\014QueryRequest\022\r\n\005Query\030\001 \001(\t" + + "\022\016\n\006Shards\030\002 \003(\004\022\023\n\013ColumnAttrs\030\003 \001(\010\022\016\n" + + "\006Remote\030\005 \001(\010\022\027\n\017ExcludeRowAttrs\030\006 \001(\010\022\026" + + "\n\016ExcludeColumns\030\007 \001(\010\"u\n\rQueryResponse\022" + + "\013\n\003Err\030\001 \001(\t\022&\n\007Results\030\002 \003(\0132\025.internal" + + ".QueryResult\022/\n\016ColumnAttrSets\030\003 \003(\0132\027.i" + + "nternal.ColumnAttrSet\"\205\002\n\013QueryResult\022\014\n" + + "\004Type\030\006 \001(\r\022\032\n\003Row\030\001 \001(\0132\r.internal.Row\022" + + "\t\n\001N\030\002 \001(\004\022\035\n\005Pairs\030\003 \003(\0132\016.internal.Pai" + + "r\022\017\n\007Changed\030\004 \001(\010\022$\n\010ValCount\030\005 \001(\0132\022.i" + + "nternal.ValCount\022\016\n\006RowIDs\030\007 \003(\004\022)\n\013Grou" + + "pCounts\030\010 \003(\0132\024.internal.GroupCount\0220\n\016R" + + "owIdentifiers\030\t \001(\0132\030.internal.RowIdenti" + + "fiers\"\230\001\n\rImportRequest\022\r\n\005Index\030\001 \001(\t\022\r" + "\n\005Field\030\002 \001(\t\022\r\n\005Shard\030\003 \001(\004\022\016\n\006RowIDs\030\004" + " \003(\004\022\021\n\tColumnIDs\030\005 \003(\004\022\017\n\007RowKeys\030\007 \003(\t" + "\022\022\n\nColumnKeys\030\010 \003(\t\022\022\n\nTimestamps\030\006 \003(\003" + "\"x\n\022ImportValueRequest\022\r\n\005Index\030\001 \001(\t\022\r\n" + "\005Field\030\002 \001(\t\022\r\n\005Shard\030\003 \001(\004\022\021\n\tColumnIDs" + - "\030\005 \003(\004\022\022\n\nColumnKeys\030\007 \003(\t\022\016\n\006Values\030\006 \003" + + "\030\005 \003(\004\022\022\n\nColumnKeys\030\007 \003(\t\022\016\n\006Values\030\006 \003" + "(\003\"B\n\024TranslateKeysRequest\022\r\n\005Index\030\001 \001(" + - "\t\022\r\n\005Field\030\002 \001(\t\022\014\n\004Keys\030\003 \003(\t\"$\n\025Transl" + + "\t\022\r\n\005Field\030\002 \001(\t\022\014\n\004Keys\030\003 \003(\t\"$\n\025Transl" + "ateKeysResponse\022\013\n\003IDs\030\003 \003(\004\"6\n\030ImportRo" + - "aringRequestView\022\014\n\004Name\030\001 \001(\t\022\014\n\004Data\030\002" + - " \001(\014\"X\n\024ImportRoaringRequest\022\r\n\005Clear\030\001 " + - "\001(\010\0221\n\005views\030\002 \003(\0132\".internal.ImportRoar" + - "ingRequestViewB\035\n\021com.pilosa.clientB\010Int" + - "ernalb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( + "aringRequestView\022\014\n\004Name\030\001 \001(\t\022\014\n\004Data\030\002" + + " \001(\014\"X\n\024ImportRoaringRequest\022\r\n\005Clear\030\001 " + + "\001(\010\0221\n\005views\030\002 \003(\0132\".internal.ImportRoar" + + "ingRequestViewB\035\n\021com.pilosa.clientB\010Int" + + "ernalb\006proto3" + }; + 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; + descriptor = root; return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_internal_Row_descriptor = + new com.google.protobuf.Descriptors.FileDescriptor[]{ + }, assigner); + internal_static_internal_Row_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_internal_Row_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_internal_Row_descriptor, - new java.lang.String[] { "Columns", "Keys", "Attrs", }); - internal_static_internal_RowIdentifiers_descriptor = + new java.lang.String[]{"Columns", "Keys", "Attrs",}); + internal_static_internal_RowIdentifiers_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_internal_RowIdentifiers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_internal_RowIdentifiers_descriptor, - new java.lang.String[] { "Rows", "Keys", }); + new java.lang.String[] { "Rows", "Keys", }); internal_static_internal_Pair_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(2); internal_static_internal_Pair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_internal_Pair_descriptor, - new java.lang.String[] { "ID", "Key", "Count", }); - internal_static_internal_FieldRow_descriptor = - getDescriptor().getMessageTypes().get(3); + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_internal_Pair_descriptor, + new java.lang.String[]{"ID", "Key", "Count",}); + internal_static_internal_FieldRow_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_internal_FieldRow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_internal_FieldRow_descriptor, - new java.lang.String[] { "Field", "RowID", "RowKey", }); - internal_static_internal_GroupCount_descriptor = + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_internal_FieldRow_descriptor, + new java.lang.String[]{"Field", "RowID", "RowKey",}); + internal_static_internal_GroupCount_descriptor = getDescriptor().getMessageTypes().get(4); - internal_static_internal_GroupCount_fieldAccessorTable = new + internal_static_internal_GroupCount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_internal_GroupCount_descriptor, - new java.lang.String[] { "Group", "Count", }); - internal_static_internal_ValCount_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_internal_ValCount_fieldAccessorTable = new + new java.lang.String[]{"Group", "Count",}); + internal_static_internal_ValCount_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_internal_ValCount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_internal_ValCount_descriptor, - new java.lang.String[] { "Val", "Count", }); + new java.lang.String[]{"Val", "Count",}); internal_static_internal_ColumnAttrSet_descriptor = getDescriptor().getMessageTypes().get(6); - internal_static_internal_ColumnAttrSet_fieldAccessorTable = new + internal_static_internal_ColumnAttrSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_internal_ColumnAttrSet_descriptor, - new java.lang.String[] { "ID", "Key", "Attrs", }); - internal_static_internal_Attr_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_internal_Attr_fieldAccessorTable = new + internal_static_internal_ColumnAttrSet_descriptor, + new java.lang.String[]{"ID", "Key", "Attrs",}); + internal_static_internal_Attr_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_internal_Attr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_internal_Attr_descriptor, + internal_static_internal_Attr_descriptor, new java.lang.String[] { "Key", "Type", "StringValue", "IntValue", "BoolValue", "FloatValue", }); - internal_static_internal_AttrMap_descriptor = + internal_static_internal_AttrMap_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_internal_AttrMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_internal_AttrMap_descriptor, - new java.lang.String[] { "Attrs", }); - internal_static_internal_QueryRequest_descriptor = + new java.lang.String[]{"Attrs",}); + internal_static_internal_QueryRequest_descriptor = getDescriptor().getMessageTypes().get(9); - internal_static_internal_QueryRequest_fieldAccessorTable = new + internal_static_internal_QueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_internal_QueryRequest_descriptor, - new java.lang.String[] { "Query", "Shards", "ColumnAttrs", "Remote", "ExcludeRowAttrs", "ExcludeColumns", }); - internal_static_internal_QueryResponse_descriptor = + internal_static_internal_QueryRequest_descriptor, + new java.lang.String[] { "Query", "Shards", "ColumnAttrs", "Remote", "ExcludeRowAttrs", "ExcludeColumns",}); + internal_static_internal_QueryResponse_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_internal_QueryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_internal_QueryResponse_descriptor, - new java.lang.String[] { "Err", "Results", "ColumnAttrSets", }); - internal_static_internal_QueryResult_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_internal_QueryResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_internal_QueryResult_descriptor, - new java.lang.String[] { "Type", "Row", "N", "Pairs", "Changed", "ValCount", "RowIDs", "GroupCounts", "RowIdentifiers", }); - internal_static_internal_ImportRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_internal_ImportRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_internal_ImportRequest_descriptor, - new java.lang.String[] { "Index", "Field", "Shard", "RowIDs", "ColumnIDs", "RowKeys", "ColumnKeys", "Timestamps", }); - internal_static_internal_ImportValueRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_internal_ImportValueRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_internal_ImportValueRequest_descriptor, - new java.lang.String[] { "Index", "Field", "Shard", "ColumnIDs", "ColumnKeys", "Values", }); + internal_static_internal_QueryResponse_descriptor, + new java.lang.String[] { "Err", "Results", "ColumnAttrSets", }); + internal_static_internal_QueryResult_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_internal_QueryResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_internal_QueryResult_descriptor, + new java.lang.String[]{"Type", "Row", "N", "Pairs", "Changed", "ValCount", "RowIDs", "GroupCounts", "RowIdentifiers",}); + internal_static_internal_ImportRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_internal_ImportRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_internal_ImportRequest_descriptor, + new java.lang.String[]{"Index", "Field", "Shard", "RowIDs", "ColumnIDs", "RowKeys", "ColumnKeys", "Timestamps",}); + internal_static_internal_ImportValueRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_internal_ImportValueRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_internal_ImportValueRequest_descriptor, + new java.lang.String[] { "Index", "Field", "Shard", "ColumnIDs", "ColumnKeys", "Values", }); internal_static_internal_TranslateKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(14); internal_static_internal_TranslateKeysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_internal_TranslateKeysRequest_descriptor, diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/PilosaClient.java b/com.pilosa.client/src/main/java/com/pilosa/client/PilosaClient.java index 7c0c8e1..d34ce1a 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/PilosaClient.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/PilosaClient.java @@ -650,13 +650,20 @@ private QueryResponse queryPath(QueryRequest request) { } void importColumns(ShardRecords records) { + importColumns(records, null); + } + + void importColumns(ShardRecords records, Map rowKeyToColumnIDMap) { String indexName = records.getIndexName(); List nodes; + // should we attempt to convert keys to IDs? + boolean success = records.attemptTranslateKeys(this, rowKeyToColumnIDMap, null); + // TODO: log success ImportRequest importRequest = records.toImportRequest(); if (this.options.isManualServerAddress()) { importNode(this.manualServerAddress, importRequest); } else { - if (records.isIndexKeys() || records.isFieldKeys()) { + if (importRequest.isRoaring() || records.isIndexKeys() || records.isFieldKeys()) { nodes = new ArrayList<>(); IFragmentNode node = fetchCoordinatorNode(); nodes.add(node); @@ -742,6 +749,36 @@ void importNode(String hostUri, ImportRequest request) { } } + public List translateKeys(Field field, List keys) { + Internal.TranslateKeysRequest.Builder requestBuilder = Internal.TranslateKeysRequest.newBuilder() + .addAllKeys(keys) + .setIndex(field.getIndex().getName()); + // Setting the field indicates this is a row key translation request + if (field.getOptions().isKeys()) { + requestBuilder.setField(field.getName()); + } + Internal.TranslateKeysRequest request = requestBuilder.build(); + ByteArrayEntity data = new ByteArrayEntity(request.toByteArray()); + CloseableHttpResponse response = clientExecute( + "POST", + "/internal/translate/keys", + data, + protobufHeaders, + "Error while translating keys", + ReturnClientResponse.ERROR_CHECKED_RESPONSE, + true); + HttpEntity entity = response.getEntity(); + if (entity != null) { + try (InputStream src = response.getEntity().getContent()) { + Internal.TranslateKeysResponse keysResponse = Internal.TranslateKeysResponse.parseFrom(src); + return keysResponse.getIDsList(); + } catch (IOException e) { + e.printStackTrace(); + } + } + throw new PilosaException("Server returned empty response"); + } + private String readStream(InputStream stream) throws IOException { ByteArrayOutputStream result = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; @@ -977,15 +1014,16 @@ class BitImportWorker implements Runnable { this.queue = queue; this.statusQueue = statusQueue; this.options = options; + if (this.options.isTranslateKeys()) { + this.rowKeyToIDMap = new HashMap<>(); + } } @Override public void run() { final long shardWidth = this.options.getShardWidth(); - final ImportOptions.Strategy strategy = this.options.getStrategy(); - final long timeout = this.options.getTimeoutMs(); int batchCountDown = this.options.getBatchSize(); - long tic = System.currentTimeMillis(); + Map shardGroup = new HashMap<>(); while (!Thread.currentThread().isInterrupted()) { try { @@ -1005,26 +1043,21 @@ public void run() { } shardRecords.add(record); batchCountDown -= 1; - if (strategy.equals(ImportOptions.Strategy.BATCH) && batchCountDown == 0) { - for (Map.Entry entry : this.shardGroup.entrySet()) { + if (batchCountDown == 1) { + for (Map.Entry entry : shardGroup.entrySet()) { shardRecords = entry.getValue(); if (shardRecords.size() > 0) { importRecords(entry.getValue()); } } batchCountDown = this.options.getBatchSize(); - tic = System.currentTimeMillis(); - } else if (strategy.equals(ImportOptions.Strategy.TIMEOUT) && (System.currentTimeMillis() - tic) > timeout) { - importRecords(shardGroup.get(largestShard())); - batchCountDown = this.options.getBatchSize(); - tic = System.currentTimeMillis(); } } catch (InterruptedException e) { break; } } // The thread is shutting down, import remaining columns in the batch - for (Map.Entry entry : this.shardGroup.entrySet()) { + for (Map.Entry entry : shardGroup.entrySet()) { ShardRecords records = entry.getValue(); if (records.size() > 0) { try { @@ -1036,30 +1069,16 @@ public void run() { } } - private long largestShard() { - long largestCount = 0; - long largestShard = -1; - for (Map.Entry entry : this.shardGroup.entrySet()) { - ShardRecords records = entry.getValue(); - int shardBitCount = records.size(); - if (shardBitCount > largestCount) { - largestCount = shardBitCount; - largestShard = entry.getKey(); - } - } - return largestShard; - } - private void importRecords(ShardRecords records) throws InterruptedException { long tic = System.currentTimeMillis(); - this.client.importColumns(records); + this.client.importColumns(records, this.rowKeyToIDMap); if (this.statusQueue != null) { long tac = System.currentTimeMillis(); ImportStatusUpdate statusUpdate = new ImportStatusUpdate(Thread.currentThread().getId(), records.getShard(), records.size(), tac - tic); this.statusQueue.offer(statusUpdate, 1, TimeUnit.SECONDS); } - records.clear(); + records.reset(); } private final PilosaClient client; @@ -1067,5 +1086,7 @@ private void importRecords(ShardRecords records) throws InterruptedException { private final BlockingQueue queue; private final BlockingQueue statusQueue; private final ImportOptions options; - private Map shardGroup = new HashMap<>(); +// private Map shardGroup = new HashMap<>(); + private Map rowKeyToIDMap; + } diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/RowIdentifiersResult.java b/com.pilosa.client/src/main/java/com/pilosa/client/RowIdentifiersResult.java index a56d64f..23d5565 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/RowIdentifiersResult.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/RowIdentifiersResult.java @@ -122,12 +122,13 @@ static RowIdentifiersResult fromInternal(Internal.QueryResult q) { } static { - defaultResult = new RowIdentifiersResult(null, null);; + defaultResult = new RowIdentifiersResult(null, null); + ; } private RowIdentifiersResult(List rowIDs, List rowKeys) { - this.rowIDs = (rowIDs == null)? new ArrayList(0) : rowIDs; - this.rowKeys = (rowKeys == null)? new ArrayList(0) : rowKeys; + this.rowIDs = (rowIDs == null) ? new ArrayList(0) : rowIDs; + this.rowKeys = (rowKeys == null) ? new ArrayList(0) : rowKeys; } private final static RowIdentifiersResult defaultResult; diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/ShardColumns.java b/com.pilosa.client/src/main/java/com/pilosa/client/ShardColumns.java index 338b2fe..cfc737e 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/ShardColumns.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/ShardColumns.java @@ -60,12 +60,12 @@ public String getIndexName() { @Override public boolean isIndexKeys() { - return this.field.getIndex().getOptions().isKeys(); + return this._isIndexKeys; } @Override public boolean isFieldKeys() { - return this.field.getOptions().isKeys(); + return this._isFieldKeys; } @Override @@ -81,8 +81,48 @@ public int size() { } @Override - public void clear() { + public void reset() { this.columns.clear(); + this._isIndexKeys = field.getIndex().getOptions().isKeys(); + this._isFieldKeys = field.getOptions().isKeys(); + } + + @Override + public boolean attemptTranslateKeys(PilosaClient client, + Map rowKeyToIDMap, + Map columnKeyToIDMap) { + if (!isFieldKeys() || isIndexKeys()) { + // Key translation is only supported for rowKeyColumnID data at the moment + return false; + } + if (rowKeyToIDMap == null) { + // We require an initial RowKey -> RowID map + return false; + } + List missingKeys = new ArrayList<>(); + for (Column column : this.columns) { + if (!rowKeyToIDMap.containsKey(column.getRowKey())) { + missingKeys.add(column.getRowKey()); + } + } + // if there are missing keys in the cache, translate them + if (missingKeys.size() > 0) { + List ids = client.translateKeys(this.field, missingKeys); + for (int i = 0; i < ids.size(); i++) { + rowKeyToIDMap.put(missingKeys.get(i), ids.get(i)); + } + } + // we can now exchange keys with IDs + for (int i = 0; i < this.columns.size(); i++) { + Column oldCol = this.columns.get(i); + long rowID = rowKeyToIDMap.get(oldCol.getRowKey()); + this.columns.set(i, Column.create(rowID, oldCol.getColumnID())); + } + + // the columns in this batch are RowIDColumnID type now + this._isFieldKeys = false; + + return true; } @Override @@ -160,6 +200,8 @@ ImportRequest toRoaringImportRequest() { ShardColumns(final Field field, long shard, long shardWidth, boolean roaring, boolean clear) { this.field = field; + this._isIndexKeys = field.getIndex().getOptions().isKeys(); + this._isFieldKeys = field.getOptions().isKeys(); this.shard = shard; this.shardWidth = shardWidth; this.columns = new ArrayList<>(); @@ -232,4 +274,6 @@ private String viewByTimeUnit(long timestamp, char c) { private boolean sorted = false; private final boolean roaring; private final boolean clear_; + private boolean _isIndexKeys; + private boolean _isFieldKeys; } diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/ShardFieldValues.java b/com.pilosa.client/src/main/java/com/pilosa/client/ShardFieldValues.java index bed19a6..f6ecf01 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/ShardFieldValues.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/ShardFieldValues.java @@ -40,6 +40,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.Map; public class ShardFieldValues implements ShardRecords { public static ShardFieldValues create(final Field field, final long shard, ImportOptions options) { @@ -79,10 +80,17 @@ public void add(Record record) { } @Override - public void clear() { + public void reset() { this.fieldValues.clear(); } + @Override + public boolean attemptTranslateKeys(PilosaClient client, + Map rowKeyToIDMap, + Map columnKeyToIDMap) { + return false; + } + @Override public ImportRequest toImportRequest() { if (!this.sorted) { diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/ShardRecords.java b/com.pilosa.client/src/main/java/com/pilosa/client/ShardRecords.java index 7a7af8f..4e9c09c 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/ShardRecords.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/ShardRecords.java @@ -36,6 +36,8 @@ import com.pilosa.client.orm.Record; +import java.util.Map; + public interface ShardRecords { long getShard(); @@ -49,7 +51,11 @@ public interface ShardRecords { void add(Record record); - void clear(); + void reset(); + + boolean attemptTranslateKeys(PilosaClient client, + Map rowKeyToIDMap, + Map columnKeyToIDMap); ImportRequest toImportRequest(); } diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/orm/Field.java b/com.pilosa.client/src/main/java/com/pilosa/client/orm/Field.java index 34e11a1..aad663b 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/orm/Field.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/orm/Field.java @@ -128,13 +128,13 @@ public PqlRowQuery row(boolean rowBool) { * * @param rowID * @param fromTimestamp the start time (inclusive). Pass null for the default. - * @param toTimestamp the end time (exclusive). Pass null for the default. + * @param toTimestamp the end time (exclusive). Pass null for the default. * @return a PQL query * @see Row Query */ public PqlRowQuery row(long rowID, Date fromTimestamp, Date toTimestamp) { String text = String.format("Row(%s=%d%s)", this.name, rowID, - fmtTimestamps(fromTimestamp, toTimestamp)); + fmtTimestamps(fromTimestamp, toTimestamp)); return this.index.pqlRowQuery(String.format(text, this.name, rowID)); } @@ -148,13 +148,13 @@ public PqlRowQuery row(long rowID, Date fromTimestamp, Date toTimestamp) { * * @param rowKey * @param fromTimestamp the start time (inclusive). Pass null for the default. - * @param toTimestamp the end time (exclusive). Pass null for the default. + * @param toTimestamp the end time (exclusive). Pass null for the default. * @return a PQL query * @see Row Query */ public PqlRowQuery row(String rowKey, Date fromTimestamp, Date toTimestamp) { String text = String.format("Row(%s='%s'%s)", this.name, rowKey, - fmtTimestamps(fromTimestamp, toTimestamp)); + fmtTimestamps(fromTimestamp, toTimestamp)); return this.index.pqlRowQuery(String.format(text, this.name, rowKey)); } @@ -166,15 +166,15 @@ public PqlRowQuery row(String rowKey, Date fromTimestamp, Date toTimestamp) { * based on whether the row label or column label is given in the query. * It also retrieves any attributes set on that row or column. * - * @param rowBool true or false + * @param rowBool true or false * @param fromTimestamp the start time (inclusive). Pass null for the default. - * @param toTimestamp the end time (exclusive). Pass null for the default. + * @param toTimestamp the end time (exclusive). Pass null for the default. * @return a PQL query * @see Row Query */ public PqlRowQuery row(boolean rowBool, Date fromTimestamp, Date toTimestamp) { String text = String.format("Row(%s=%b%s)", this.name, rowBool, - fmtTimestamps(fromTimestamp, toTimestamp)); + fmtTimestamps(fromTimestamp, toTimestamp)); return this.index.pqlRowQuery(String.format(text, this.name, rowBool)); } @@ -1060,6 +1060,11 @@ public int hashCode() { .toHashCode(); } + @Override + public String toString() { + return String.format("%s(%s)", this.name, this.getOptions().toString()); + } + /** * Creates a field. * @@ -1084,15 +1089,15 @@ private static String fmtTimestamps(Date fromTimestamp, Date toTimestamp) { if (fromTimestamp == null && toTimestamp == null) { return ""; } else if (fromTimestamp == null) { - return String.format(",to=%sT%s", + return String.format(",to=%sT%s", fmtDate.format(toTimestamp), fmtTime.format(toTimestamp)); } else if (toTimestamp == null) { - return String.format(",from=%sT%s", + return String.format(",from=%sT%s", fmtDate.format(fromTimestamp), fmtTime.format(fromTimestamp)); } - return String.format(",from=%sT%s,to=%sT%s", + return String.format(",from=%sT%s,to=%sT%s", fmtDate.format(fromTimestamp), fmtTime.format(fromTimestamp), fmtDate.format(toTimestamp), fmtTime.format(toTimestamp)); } diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/orm/FieldOptions.java b/com.pilosa.client/src/main/java/com/pilosa/client/orm/FieldOptions.java index d2ee2d6..42f8a69 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/orm/FieldOptions.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/orm/FieldOptions.java @@ -253,7 +253,6 @@ Builder setMax(long max) { private long min = 0; private long max = 0; private boolean keys = false; - } /** @@ -267,7 +266,7 @@ public static FieldOptions withDefaults() { } public static FieldOptions fromMap(final Map map) { - String fieldTypeStr = (String)map.get("type"); + String fieldTypeStr = (String) map.get("type"); if (fieldTypeStr == null) { fieldTypeStr = FieldType.SET.toString(); } @@ -280,13 +279,13 @@ public static FieldOptions fromMap(final Map map) { case "type": continue; case "keys": - builder.setKeys((Boolean)entry.getValue()); + builder.setKeys((Boolean) entry.getValue()); continue; case "cacheType": if (!fieldType.equals(FieldType.SET) && !fieldType.equals(FieldType.MUTEX)) { throw new IllegalArgumentException("cacheType option is valid only for set and mutex fields"); } - CacheType cacheType = CacheType.fromString((String)value); + CacheType cacheType = CacheType.fromString((String) value); builder.setCacheType(cacheType); continue; case "cacheSize": @@ -299,7 +298,7 @@ public static FieldOptions fromMap(final Map map) { if (!fieldType.equals(FieldType.TIME)) { throw new IllegalArgumentException("timeQuantum option is valid only for time fields"); } - TimeQuantum timeQuantum = TimeQuantum.fromString((String)value); + TimeQuantum timeQuantum = TimeQuantum.fromString((String) value); builder.setTimeQuantum(timeQuantum); continue; case "min": @@ -384,6 +383,8 @@ public String toString() { options.put("timeQuantum", this.timeQuantum.toString()); } + options.put("keys", this.keys); + Map optionsRoot = new HashMap<>(1); optionsRoot.put("options", options); if (this.extra != null) { diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/orm/Index.java b/com.pilosa.client/src/main/java/com/pilosa/client/orm/Index.java index 9b32405..36852cb 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/orm/Index.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/orm/Index.java @@ -347,6 +347,18 @@ public int hashCode() { .toHashCode(); } + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append(String.format("%s[%s ", this.name, this.options.toString())); + for (Map.Entry entry : this.fields.entrySet()) { + builder.append(entry.getValue().toString()); + builder.append(' '); + } + builder.append("]"); + return builder.toString(); + } + PqlBaseQuery pqlQuery(String query, boolean hasKeys) { PqlBaseQuery q = new PqlBaseQuery(query, this); if (hasKeys) { diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/orm/IndexOptions.java b/com.pilosa.client/src/main/java/com/pilosa/client/orm/IndexOptions.java index 86f338c..446f9f1 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/orm/IndexOptions.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/orm/IndexOptions.java @@ -106,6 +106,7 @@ public Builder trackExistence(boolean enable) { * @param enable * @return IndexOptions builder */ + public Builder setTrackExistence(boolean enable) { this.trackExistence = enable; return this; @@ -140,10 +141,10 @@ public static IndexOptions fromMap(final Map map) { for (Map.Entry entry : map.entrySet()) { switch (entry.getKey()) { case "keys": - builder.setKeys((Boolean)(entry.getValue())); + builder.setKeys((Boolean) (entry.getValue())); break; case "trackExistence": - builder.setTrackExistence((Boolean)(entry.getValue())); + builder.setTrackExistence((Boolean) (entry.getValue())); break; default: throw new IllegalArgumentException(String.format("Unknown index option: '%s'", entry.getKey())); diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/orm/Schema.java b/com.pilosa.client/src/main/java/com/pilosa/client/orm/Schema.java index 5a35f3c..6a79c96 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/orm/Schema.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/orm/Schema.java @@ -147,5 +147,17 @@ public int hashCode() { .toHashCode(); } + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append("[ "); + for (Map.Entry entry : this.indexes.entrySet()) { + builder.append(entry.getValue().toString()); + builder.append(' '); + } + builder.append("]"); + return builder.toString(); + } + private Map indexes = new HashMap<>(); } diff --git a/com.pilosa.client/src/test/java/com/pilosa/client/ClientOptionsTest.java b/com.pilosa.client/src/test/java/com/pilosa/client/ClientOptionsTest.java index 6077fdc..9a5d121 100644 --- a/com.pilosa.client/src/test/java/com/pilosa/client/ClientOptionsTest.java +++ b/com.pilosa.client/src/test/java/com/pilosa/client/ClientOptionsTest.java @@ -66,7 +66,6 @@ public void testCreate() throws KeyManagementException, NoSuchAlgorithmException .setSocketTimeout(1000) .setRetryCount(5) .setSslContext(sslContext) - .setShardWidth(1024) .build(); assertEquals(2, options.getConnectionPoolSizePerRoute()); assertEquals(50, options.getConnectionPoolTotalSize()); @@ -74,6 +73,5 @@ public void testCreate() throws KeyManagementException, NoSuchAlgorithmException assertEquals(1000, options.getSocketTimeout()); assertEquals(5, options.getRetryCount()); assertEquals(sslContext, options.getSslContext()); - assertEquals(1024, options.getShardWidth()); } } diff --git a/com.pilosa.client/src/test/java/com/pilosa/client/FieldRowTest.java b/com.pilosa.client/src/test/java/com/pilosa/client/FieldRowTest.java index 98de5e0..5cb601f 100644 --- a/com.pilosa.client/src/test/java/com/pilosa/client/FieldRowTest.java +++ b/com.pilosa.client/src/test/java/com/pilosa/client/FieldRowTest.java @@ -37,9 +37,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.*; @Category(UnitTest.class) public class FieldRowTest { diff --git a/com.pilosa.client/src/test/java/com/pilosa/client/GroupCountTest.java b/com.pilosa.client/src/test/java/com/pilosa/client/GroupCountTest.java index a1941ff..bb02ec1 100644 --- a/com.pilosa.client/src/test/java/com/pilosa/client/GroupCountTest.java +++ b/com.pilosa.client/src/test/java/com/pilosa/client/GroupCountTest.java @@ -40,9 +40,7 @@ import java.util.Collections; import java.util.List; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.*; @Category(UnitTest.class) public class GroupCountTest { diff --git a/com.pilosa.client/src/test/java/com/pilosa/client/GroupCountsResultTest.java b/com.pilosa.client/src/test/java/com/pilosa/client/GroupCountsResultTest.java index 9796f47..37c7a5d 100644 --- a/com.pilosa.client/src/test/java/com/pilosa/client/GroupCountsResultTest.java +++ b/com.pilosa.client/src/test/java/com/pilosa/client/GroupCountsResultTest.java @@ -41,9 +41,7 @@ import java.util.Collections; import java.util.List; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.*; @Category(UnitTest.class) public class GroupCountsResultTest { diff --git a/com.pilosa.client/src/test/java/com/pilosa/client/orm/FieldOptionsTest.java b/com.pilosa.client/src/test/java/com/pilosa/client/orm/FieldOptionsTest.java index 7d119e8..c222327 100644 --- a/com.pilosa.client/src/test/java/com/pilosa/client/orm/FieldOptionsTest.java +++ b/com.pilosa.client/src/test/java/com/pilosa/client/orm/FieldOptionsTest.java @@ -89,7 +89,7 @@ public void testIntFieldOptions() { .fieldInt(-100, 500) .build(); compare(options, FieldType.INT, TimeQuantum.NONE, CacheType.DEFAULT, 0, -100, 500); - String target = "{\"options\":{\"type\":\"int\",\"min\":-100,\"max\":500}}"; + String target = "{\"options\":{\"keys\":false,\"type\":\"int\",\"min\":-100,\"max\":500}}"; assertArrayEquals(stringToSortedChars(target), stringToSortedChars(options.toString())); Map optionsMap = new HashMap<>(); @@ -97,7 +97,7 @@ public void testIntFieldOptions() { optionsMap.put("min", -100); optionsMap.put("max", 500); options = FieldOptions.fromMap(optionsMap); - target = "{\"options\":{\"type\":\"int\",\"min\":-100,\"max\":500}}"; + target = "{\"options\":{\"min\":-100,\"max\":500,\"keys\":false,\"type\":\"int\"}}"; assertArrayEquals(stringToSortedChars(target), stringToSortedChars(options.toString())); } @@ -107,14 +107,14 @@ public void testTimeFieldOptions() { .fieldTime(TimeQuantum.MONTH_DAY_HOUR) .build(); compare(options, FieldType.TIME, TimeQuantum.MONTH_DAY_HOUR, CacheType.DEFAULT, 0, 0, 0); - String target = "{\"options\":{\"type\":\"time\",\"timeQuantum\":\"MDH\"}}"; + String target = "{\"keys\":false,\"options\":{\"type\":\"time\",\"timeQuantum\":\"MDH\"}}"; assertArrayEquals(stringToSortedChars(target), stringToSortedChars(options.toString())); Map optionsMap = new HashMap<>(); optionsMap.put("type", "time"); optionsMap.put("timeQuantum", "YMDH"); options = FieldOptions.fromMap(optionsMap); - target = "{\"options\":{\"type\":\"time\",\"timeQuantum\":\"YMDH\"}}"; + target = "{\"options\":{\"type\":\"time\",\"timeQuantum\":\"YMDH\",\"keys\":false}}"; assertArrayEquals(stringToSortedChars(target), stringToSortedChars(options.toString())); } @@ -160,7 +160,7 @@ public void testBoolFieldOptions() { .fieldBool() .build(); compare(options, FieldType.BOOL, TimeQuantum.NONE, CacheType.DEFAULT, 0, 0, 0); - String target = "{\"options\":{\"type\":\"bool\"}}"; + String target = "{\"keys\":false,\"options\":{\"type\":\"bool\"}}"; assertArrayEquals(stringToSortedChars(target), stringToSortedChars(options.toString())); } diff --git a/com.pilosa.client/src/test/java/com/pilosa/client/orm/OrmTest.java b/com.pilosa.client/src/test/java/com/pilosa/client/orm/OrmTest.java index a96847d..623ba30 100644 --- a/com.pilosa.client/src/test/java/com/pilosa/client/orm/OrmTest.java +++ b/com.pilosa.client/src/test/java/com/pilosa/client/orm/OrmTest.java @@ -134,10 +134,10 @@ public void rowTest() { q = collabField.row("ten", start.getTime(), end.getTime()); assertEquals("Row(collaboration='ten',from=1970-01-01T00:00,to=2000-02-02T03:04)", - q.serialize().getQuery()); + q.serialize().getQuery()); q = collabField.row("ten", start.getTime(), null); assertEquals("Row(collaboration='ten',from=1970-01-01T00:00)", - q.serialize().getQuery()); + q.serialize().getQuery()); q = collabField.row("ten", null, end.getTime()); assertEquals("Row(collaboration='ten',to=2000-02-02T03:04)", q.serialize().getQuery()); @@ -147,10 +147,10 @@ public void rowTest() { q = collabField.row(10, start.getTime(), end.getTime()); assertEquals("Row(collaboration=10,from=1970-01-01T00:00,to=2000-02-02T03:04)", - q.serialize().getQuery()); + q.serialize().getQuery()); q = collabField.row(10, start.getTime(), null); assertEquals("Row(collaboration=10,from=1970-01-01T00:00)", - q.serialize().getQuery()); + q.serialize().getQuery()); q = collabField.row(10, null, end.getTime()); assertEquals("Row(collaboration=10,to=2000-02-02T03:04)", q.serialize().getQuery()); @@ -160,10 +160,10 @@ public void rowTest() { q = collabField.row(true, start.getTime(), end.getTime()); assertEquals("Row(collaboration=true,from=1970-01-01T00:00,to=2000-02-02T03:04)", - q.serialize().getQuery()); + q.serialize().getQuery()); q = collabField.row(true, start.getTime(), null); assertEquals("Row(collaboration=true,from=1970-01-01T00:00)", - q.serialize().getQuery()); + q.serialize().getQuery()); q = collabField.row(true, null, end.getTime()); assertEquals("Row(collaboration=true,to=2000-02-02T03:04)", q.serialize().getQuery());