From 7e16d5dbe66dc20e385093ee93a75d3c70a1c0d6 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Tue, 27 Nov 2018 17:06:53 +0300 Subject: [PATCH 1/5] implements client-side rowkey translation on import; some cleanup --- .../java/integrationtest/PilosaClientIT.java | 131 +- com.pilosa.client/src/internal/public.proto | 12 + .../java/com/pilosa/client/ClientOptions.java | 13 - .../java/com/pilosa/client/ImportOptions.java | 50 +- .../main/java/com/pilosa/client/Internal.java | 5483 +++++++++++------ .../java/com/pilosa/client/PilosaClient.java | 68 +- .../java/com/pilosa/client/ShardColumns.java | 46 +- .../com/pilosa/client/ShardFieldValues.java | 8 + .../java/com/pilosa/client/ShardRecords.java | 6 + .../com/pilosa/client/ClientOptionsTest.java | 2 - 10 files changed, 3847 insertions(+), 1972 deletions(-) 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 5d9c340..f542710 100644 --- a/com.pilosa.client/src/integration-test/java/integrationtest/PilosaClientIT.java +++ b/com.pilosa.client/src/integration-test/java/integrationtest/PilosaClientIT.java @@ -546,7 +546,7 @@ public void importRowKeyColumnIDTest() throws IOException { LineDeserializer deserializer = new RowKeyColumnIDDeserializer(); RecordIterator iterator = csvRecordIterator("row_key-column_id.csv", deserializer); FieldOptions fieldOptions = FieldOptions.builder() - .keys(true) + .setKeys(true) .build(); Field field = this.index.field("importfield-rowkey-colid", fieldOptions); client.ensureField(field); @@ -567,6 +567,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()) { @@ -644,7 +675,7 @@ public void importRoaringTest() throws IOException { @Test public void importRoaringTimeFieldTest() throws IOException { try (PilosaClient client = this.getClient()) { - RecordIterator iterator = StaticColumnIterator.columnsWithIDs(); + RecordIterator iterator = StaticColumnIteratorWithTimestamp.columnsWithIDs(); FieldOptions fieldOptions = FieldOptions.builder() .fieldTime(TimeQuantum.YEAR_MONTH_DAY_HOUR) .build(); @@ -736,14 +767,14 @@ public void importFieldValuesWithKeysTest() throws IOException { RecordIterator iterator = StaticColumnIterator.fieldValuesWithKeys(); FieldOptions options = FieldOptions.builder() .fieldInt(0, 100) - .keys(true) + .setKeys(true) .build(); Field field = this.keyIndex.field("importvaluefieldkeys", options); client.ensureField(field); client.importField(field, iterator); FieldOptions options2 = FieldOptions.builder() - .keys(true) + .setKeys(true) .build(); Field field2 = this.keyIndex.field("importvaluefieldkeys-set", options2); client.ensureField(field2); @@ -765,7 +796,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(); @@ -848,8 +878,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(); @@ -873,7 +901,6 @@ public void run() { this.client.ensureField(field); ImportOptions options = ImportOptions.builder() - .setStrategy(ImportOptions.Strategy.BATCH) .setBatchSize(500) .setThreadCount(1) .build(); @@ -920,7 +947,6 @@ public void run() { this.client.ensureField(field); ImportOptions options = ImportOptions.builder() - .setStrategy(ImportOptions.Strategy.BATCH) .setBatchSize(1_000) .setThreadCount(1) .build(); @@ -1109,6 +1135,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(); @@ -1556,9 +1601,6 @@ private PilosaClient getClient() { String bindAddress = getBindAddress(); Cluster cluster = Cluster.withHost(URI.address(bindAddress)); ClientOptions.Builder optionsBuilder = ClientOptions.builder(); - if (isLegacyModeOff()) { - optionsBuilder.setLegacyMode(false); - } long shardWidth = getShardWidth(); if (shardWidth > 0) { optionsBuilder.setShardWidth(shardWidth); @@ -1574,11 +1616,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); @@ -1617,6 +1654,66 @@ public static StaticColumnIterator fieldValuesWithKeys() { } private StaticColumnIterator(boolean keys, boolean intValues) { + this.records = new ArrayList<>(3); + if (keys) { + if (intValues) { + this.records.add(FieldValue.create("ten", 7)); + this.records.add(FieldValue.create("seven", 1)); + } else { + this.records.add(Column.create("ten", "five")); + this.records.add(Column.create("two", "three")); + this.records.add(Column.create("seven", "one")); + + } + } else { + if (intValues) { + this.records.add(FieldValue.create(10, 7)); + this.records.add(FieldValue.create(7, 1)); + } else { + this.records.add(Column.create(10, 5)); + this.records.add(Column.create(2, 3)); + this.records.add(Column.create(7, 1)); + } + } + } + + @Override + public boolean hasNext() { + return this.index < this.records.size(); + } + + @Override + public Record next() { + return this.records.get(index++); + } + + @Override + public void remove() { + // We have this just to avoid compilation problems on JDK 7 + } +} + +class StaticColumnIteratorWithTimestamp implements RecordIterator { + private List records; + private int index = 0; + + public static StaticColumnIteratorWithTimestamp columnsWithIDs() { + return new StaticColumnIteratorWithTimestamp(false, false); + } + + public static StaticColumnIteratorWithTimestamp columnsWithKeys() { + return new StaticColumnIteratorWithTimestamp(true, false); + } + + public static StaticColumnIteratorWithTimestamp fieldValuesWithIDs() { + return new StaticColumnIteratorWithTimestamp(false, true); + } + + public static StaticColumnIteratorWithTimestamp fieldValuesWithKeys() { + return new StaticColumnIteratorWithTimestamp(true, true); + } + + private StaticColumnIteratorWithTimestamp(boolean keys, boolean intValues) { this.records = new ArrayList<>(3); if (keys) { if (intValues) { diff --git a/com.pilosa.client/src/internal/public.proto b/com.pilosa.client/src/internal/public.proto index d07261d..a7143ff 100644 --- a/com.pilosa.client/src/internal/public.proto +++ b/com.pilosa.client/src/internal/public.proto @@ -1,5 +1,7 @@ syntax = "proto3"; +package internal; + option java_package = "com.pilosa.client"; option java_outer_classname = "Internal"; @@ -107,6 +109,16 @@ message ImportValueRequest { repeated int64 Values = 6; } +message TranslateKeysRequest { + string Index = 1; + string Field = 2; + repeated string Keys = 3; +} + +message TranslateKeysResponse { + repeated uint64 IDs = 3; +} + message ImportRoaringRequestView { string Name = 1; bytes Data = 2; 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 67df530..d520423 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,17 +121,6 @@ public Builder setSslContext(SSLContext sslContext) { return this; } - public Builder setSkipVersionCheck() { - this.skipVersionCheck = true; - return this; - } - - public Builder setLegacyMode(boolean enable) { - this.legacyMode = enable; - this.skipVersionCheck = true; - return this; - } - public Builder setImportThreadCount(int threadCount) { this.importThreadCount = threadCount; return this; @@ -158,8 +147,6 @@ public ClientOptions build() { private int connectionPoolSizePerRoute = 10; private int connectionPoolTotalSize = 100; private SSLContext sslContext = SSLContexts.createDefault(); - private boolean skipVersionCheck = false; - private boolean legacyMode = false; private int importThreadCount = Runtime.getRuntime().availableProcessors(); private long shardWidth = DEFAULT_SHARD_WIDTH; } 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/Internal.java b/com.pilosa.client/src/main/java/com/pilosa/client/Internal.java index 3fa3827..63240c0 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 @@ -15,7 +15,7 @@ public static void registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface RowOrBuilder extends - // @@protoc_insertion_point(interface_extends:Row) + // @@protoc_insertion_point(interface_extends:internal.Row) com.google.protobuf.MessageOrBuilder { /** @@ -51,35 +51,35 @@ public interface RowOrBuilder extends getKeysBytes(int index); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ java.util.List getAttrsList(); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ com.pilosa.client.Internal.Attr getAttrs(int index); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ int getAttrsCount(); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ java.util.List getAttrsOrBuilderList(); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( int index); } /** - * Protobuf type {@code Row} + * Protobuf type {@code internal.Row} */ public static final class Row extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Row) + // @@protoc_insertion_point(message_implements:internal.Row) RowOrBuilder { private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. @@ -185,13 +185,13 @@ private Row( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_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_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); } @@ -251,32 +251,32 @@ public java.lang.String getKeys(int index) { public static final int ATTRS_FIELD_NUMBER = 2; private java.util.List attrs_; /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsList() { return attrs_; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsOrBuilderList() { return attrs_; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public int getAttrsCount() { return attrs_.size(); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr getAttrs(int index) { return attrs_.get(index); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( int index) { @@ -487,21 +487,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code Row} + * Protobuf type {@code internal.Row} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements: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_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_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 +541,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_Row_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Row_descriptor; } @java.lang.Override @@ -878,7 +878,7 @@ private void ensureAttrsIsMutable() { com.pilosa.client.Internal.Attr, com.pilosa.client.Internal.Attr.Builder, com.pilosa.client.Internal.AttrOrBuilder> attrsBuilder_; /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsList() { if (attrsBuilder_ == null) { @@ -888,7 +888,7 @@ public java.util.List getAttrsList() { } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public int getAttrsCount() { if (attrsBuilder_ == null) { @@ -898,7 +898,7 @@ public int getAttrsCount() { } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr getAttrs(int index) { if (attrsBuilder_ == null) { @@ -908,7 +908,7 @@ public com.pilosa.client.Internal.Attr getAttrs(int index) { } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder setAttrs( int index, com.pilosa.client.Internal.Attr value) { @@ -925,7 +925,7 @@ public Builder setAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder setAttrs( int index, com.pilosa.client.Internal.Attr.Builder builderForValue) { @@ -939,7 +939,7 @@ public Builder setAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAttrs(com.pilosa.client.Internal.Attr value) { if (attrsBuilder_ == null) { @@ -955,7 +955,7 @@ public Builder addAttrs(com.pilosa.client.Internal.Attr value) { return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAttrs( int index, com.pilosa.client.Internal.Attr value) { @@ -972,7 +972,7 @@ public Builder addAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAttrs( com.pilosa.client.Internal.Attr.Builder builderForValue) { @@ -986,7 +986,7 @@ public Builder addAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAttrs( int index, com.pilosa.client.Internal.Attr.Builder builderForValue) { @@ -1000,7 +1000,7 @@ public Builder addAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAllAttrs( java.lang.Iterable values) { @@ -1015,7 +1015,7 @@ public Builder addAllAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder clearAttrs() { if (attrsBuilder_ == null) { @@ -1028,7 +1028,7 @@ public Builder clearAttrs() { return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder removeAttrs(int index) { if (attrsBuilder_ == null) { @@ -1041,14 +1041,14 @@ public Builder removeAttrs(int index) { return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr.Builder getAttrsBuilder( int index) { return getAttrsFieldBuilder().getBuilder(index); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( int index) { @@ -1058,7 +1058,7 @@ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsOrBuilderList() { @@ -1069,14 +1069,14 @@ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder() { return getAttrsFieldBuilder().addBuilder( com.pilosa.client.Internal.Attr.getDefaultInstance()); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder( int index) { @@ -1084,7 +1084,7 @@ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder( index, com.pilosa.client.Internal.Attr.getDefaultInstance()); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsBuilderList() { @@ -1117,10 +1117,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:Row) + // @@protoc_insertion_point(builder_scope:internal.Row) } - // @@protoc_insertion_point(class_scope: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 +1158,7 @@ public com.pilosa.client.Internal.Row getDefaultInstanceForType() { } public interface RowIdentifiersOrBuilder extends - // @@protoc_insertion_point(interface_extends:RowIdentifiers) + // @@protoc_insertion_point(interface_extends:internal.RowIdentifiers) com.google.protobuf.MessageOrBuilder { /** @@ -1194,11 +1194,11 @@ public interface RowIdentifiersOrBuilder extends getKeysBytes(int index); } /** - * Protobuf type {@code RowIdentifiers} + * Protobuf type {@code internal.RowIdentifiers} */ public static final class RowIdentifiers extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:RowIdentifiers) + // @@protoc_insertion_point(message_implements:internal.RowIdentifiers) RowIdentifiersOrBuilder { private static final long serialVersionUID = 0L; // Use RowIdentifiers.newBuilder() to construct. @@ -1291,13 +1291,13 @@ private RowIdentifiers( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_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_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); } @@ -1545,21 +1545,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code RowIdentifiers} + * Protobuf type {@code internal.RowIdentifiers} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements: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_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_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 +1592,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_RowIdentifiers_descriptor; + return com.pilosa.client.Internal.internal_static_internal_RowIdentifiers_descriptor; } @java.lang.Override @@ -1893,10 +1893,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:RowIdentifiers) + // @@protoc_insertion_point(builder_scope:internal.RowIdentifiers) } - // @@protoc_insertion_point(class_scope: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 +1934,7 @@ public com.pilosa.client.Internal.RowIdentifiers getDefaultInstanceForType() { } public interface PairOrBuilder extends - // @@protoc_insertion_point(interface_extends:Pair) + // @@protoc_insertion_point(interface_extends:internal.Pair) com.google.protobuf.MessageOrBuilder { /** @@ -1958,11 +1958,11 @@ public interface PairOrBuilder extends long getCount(); } /** - * Protobuf type {@code Pair} + * Protobuf type {@code internal.Pair} */ public static final class Pair extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Pair) + // @@protoc_insertion_point(message_implements:internal.Pair) PairOrBuilder { private static final long serialVersionUID = 0L; // Use Pair.newBuilder() to construct. @@ -2036,13 +2036,13 @@ private Pair( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_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_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); } @@ -2279,21 +2279,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code Pair} + * Protobuf type {@code internal.Pair} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements: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_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_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 +2328,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_Pair_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Pair_descriptor; } @java.lang.Override @@ -2571,10 +2571,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:Pair) + // @@protoc_insertion_point(builder_scope:internal.Pair) } - // @@protoc_insertion_point(class_scope: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 +2612,7 @@ public com.pilosa.client.Internal.Pair getDefaultInstanceForType() { } public interface FieldRowOrBuilder extends - // @@protoc_insertion_point(interface_extends:FieldRow) + // @@protoc_insertion_point(interface_extends:internal.FieldRow) com.google.protobuf.MessageOrBuilder { /** @@ -2631,11 +2631,11 @@ public interface FieldRowOrBuilder extends long getRowID(); } /** - * Protobuf type {@code FieldRow} + * Protobuf type {@code internal.FieldRow} */ public static final class FieldRow extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:FieldRow) + // @@protoc_insertion_point(message_implements:internal.FieldRow) FieldRowOrBuilder { private static final long serialVersionUID = 0L; // Use FieldRow.newBuilder() to construct. @@ -2703,13 +2703,13 @@ private FieldRow( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_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_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); } @@ -2925,21 +2925,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code FieldRow} + * Protobuf type {@code internal.FieldRow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements: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_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_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); } @@ -2972,7 +2972,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_FieldRow_descriptor; + return com.pilosa.client.Internal.internal_static_internal_FieldRow_descriptor; } @java.lang.Override @@ -3185,10 +3185,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:FieldRow) + // @@protoc_insertion_point(builder_scope:internal.FieldRow) } - // @@protoc_insertion_point(class_scope:FieldRow) + // @@protoc_insertion_point(class_scope:internal.FieldRow) private static final com.pilosa.client.Internal.FieldRow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.FieldRow(); @@ -3226,29 +3226,29 @@ public com.pilosa.client.Internal.FieldRow getDefaultInstanceForType() { } public interface GroupCountOrBuilder extends - // @@protoc_insertion_point(interface_extends:GroupCount) + // @@protoc_insertion_point(interface_extends:internal.GroupCount) com.google.protobuf.MessageOrBuilder { /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ java.util.List getGroupList(); /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ com.pilosa.client.Internal.FieldRow getGroup(int index); /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ int getGroupCount(); /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ java.util.List getGroupOrBuilderList(); /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ com.pilosa.client.Internal.FieldRowOrBuilder getGroupOrBuilder( int index); @@ -3259,11 +3259,11 @@ com.pilosa.client.Internal.FieldRowOrBuilder getGroupOrBuilder( long getCount(); } /** - * Protobuf type {@code GroupCount} + * Protobuf type {@code internal.GroupCount} */ public static final class GroupCount extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GroupCount) + // @@protoc_insertion_point(message_implements:internal.GroupCount) GroupCountOrBuilder { private static final long serialVersionUID = 0L; // Use GroupCount.newBuilder() to construct. @@ -3337,13 +3337,13 @@ private GroupCount( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_GroupCount_descriptor; + 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_GroupCount_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_GroupCount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.GroupCount.class, com.pilosa.client.Internal.GroupCount.Builder.class); } @@ -3352,32 +3352,32 @@ private GroupCount( public static final int GROUP_FIELD_NUMBER = 1; private java.util.List group_; /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public java.util.List getGroupList() { return group_; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public java.util.List getGroupOrBuilderList() { return group_; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public int getGroupCount() { return group_.size(); } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public com.pilosa.client.Internal.FieldRow getGroup(int index) { return group_.get(index); } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public com.pilosa.client.Internal.FieldRowOrBuilder getGroupOrBuilder( int index) { @@ -3564,21 +3564,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code GroupCount} + * Protobuf type {@code internal.GroupCount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GroupCount) + // @@protoc_insertion_point(builder_implements:internal.GroupCount) com.pilosa.client.Internal.GroupCountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_GroupCount_descriptor; + 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_GroupCount_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_GroupCount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.GroupCount.class, com.pilosa.client.Internal.GroupCount.Builder.class); } @@ -3616,7 +3616,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_GroupCount_descriptor; + return com.pilosa.client.Internal.internal_static_internal_GroupCount_descriptor; } @java.lang.Override @@ -3769,7 +3769,7 @@ private void ensureGroupIsMutable() { com.pilosa.client.Internal.FieldRow, com.pilosa.client.Internal.FieldRow.Builder, com.pilosa.client.Internal.FieldRowOrBuilder> groupBuilder_; /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public java.util.List getGroupList() { if (groupBuilder_ == null) { @@ -3779,7 +3779,7 @@ public java.util.List getGroupList() { } } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public int getGroupCount() { if (groupBuilder_ == null) { @@ -3789,7 +3789,7 @@ public int getGroupCount() { } } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public com.pilosa.client.Internal.FieldRow getGroup(int index) { if (groupBuilder_ == null) { @@ -3799,7 +3799,7 @@ public com.pilosa.client.Internal.FieldRow getGroup(int index) { } } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public Builder setGroup( int index, com.pilosa.client.Internal.FieldRow value) { @@ -3816,7 +3816,7 @@ public Builder setGroup( return this; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public Builder setGroup( int index, com.pilosa.client.Internal.FieldRow.Builder builderForValue) { @@ -3830,7 +3830,7 @@ public Builder setGroup( return this; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public Builder addGroup(com.pilosa.client.Internal.FieldRow value) { if (groupBuilder_ == null) { @@ -3846,7 +3846,7 @@ public Builder addGroup(com.pilosa.client.Internal.FieldRow value) { return this; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public Builder addGroup( int index, com.pilosa.client.Internal.FieldRow value) { @@ -3863,7 +3863,7 @@ public Builder addGroup( return this; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public Builder addGroup( com.pilosa.client.Internal.FieldRow.Builder builderForValue) { @@ -3877,7 +3877,7 @@ public Builder addGroup( return this; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public Builder addGroup( int index, com.pilosa.client.Internal.FieldRow.Builder builderForValue) { @@ -3891,7 +3891,7 @@ public Builder addGroup( return this; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public Builder addAllGroup( java.lang.Iterable values) { @@ -3906,7 +3906,7 @@ public Builder addAllGroup( return this; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public Builder clearGroup() { if (groupBuilder_ == null) { @@ -3919,7 +3919,7 @@ public Builder clearGroup() { return this; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public Builder removeGroup(int index) { if (groupBuilder_ == null) { @@ -3932,14 +3932,14 @@ public Builder removeGroup(int index) { return this; } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public com.pilosa.client.Internal.FieldRow.Builder getGroupBuilder( int index) { return getGroupFieldBuilder().getBuilder(index); } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public com.pilosa.client.Internal.FieldRowOrBuilder getGroupOrBuilder( int index) { @@ -3949,7 +3949,7 @@ public com.pilosa.client.Internal.FieldRowOrBuilder getGroupOrBuilder( } } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public java.util.List getGroupOrBuilderList() { @@ -3960,14 +3960,14 @@ public com.pilosa.client.Internal.FieldRowOrBuilder getGroupOrBuilder( } } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public com.pilosa.client.Internal.FieldRow.Builder addGroupBuilder() { return getGroupFieldBuilder().addBuilder( com.pilosa.client.Internal.FieldRow.getDefaultInstance()); } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public com.pilosa.client.Internal.FieldRow.Builder addGroupBuilder( int index) { @@ -3975,7 +3975,7 @@ public com.pilosa.client.Internal.FieldRow.Builder addGroupBuilder( index, com.pilosa.client.Internal.FieldRow.getDefaultInstance()); } /** - * repeated .FieldRow Group = 1; + * repeated .internal.FieldRow Group = 1; */ public java.util.List getGroupBuilderList() { @@ -4034,10 +4034,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:GroupCount) + // @@protoc_insertion_point(builder_scope:internal.GroupCount) } - // @@protoc_insertion_point(class_scope:GroupCount) + // @@protoc_insertion_point(class_scope:internal.GroupCount) private static final com.pilosa.client.Internal.GroupCount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.GroupCount(); @@ -4075,7 +4075,7 @@ public com.pilosa.client.Internal.GroupCount getDefaultInstanceForType() { } public interface ValCountOrBuilder extends - // @@protoc_insertion_point(interface_extends:ValCount) + // @@protoc_insertion_point(interface_extends:internal.ValCount) com.google.protobuf.MessageOrBuilder { /** @@ -4089,11 +4089,11 @@ public interface ValCountOrBuilder extends long getCount(); } /** - * Protobuf type {@code ValCount} + * Protobuf type {@code internal.ValCount} */ public static final class ValCount extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ValCount) + // @@protoc_insertion_point(message_implements:internal.ValCount) ValCountOrBuilder { private static final long serialVersionUID = 0L; // Use ValCount.newBuilder() to construct. @@ -4160,13 +4160,13 @@ private ValCount( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_ValCount_descriptor; + 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_ValCount_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ValCount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ValCount.class, com.pilosa.client.Internal.ValCount.Builder.class); } @@ -4359,21 +4359,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code ValCount} + * Protobuf type {@code internal.ValCount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ValCount) + // @@protoc_insertion_point(builder_implements:internal.ValCount) com.pilosa.client.Internal.ValCountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_ValCount_descriptor; + 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_ValCount_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ValCount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ValCount.class, com.pilosa.client.Internal.ValCount.Builder.class); } @@ -4406,7 +4406,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_ValCount_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ValCount_descriptor; } @java.lang.Override @@ -4575,10 +4575,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:ValCount) + // @@protoc_insertion_point(builder_scope:internal.ValCount) } - // @@protoc_insertion_point(class_scope:ValCount) + // @@protoc_insertion_point(class_scope:internal.ValCount) private static final com.pilosa.client.Internal.ValCount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.ValCount(); @@ -4616,7 +4616,7 @@ public com.pilosa.client.Internal.ValCount getDefaultInstanceForType() { } public interface BitOrBuilder extends - // @@protoc_insertion_point(interface_extends:Bit) + // @@protoc_insertion_point(interface_extends:internal.Bit) com.google.protobuf.MessageOrBuilder { /** @@ -4635,11 +4635,11 @@ public interface BitOrBuilder extends long getTimestamp(); } /** - * Protobuf type {@code Bit} + * Protobuf type {@code internal.Bit} */ public static final class Bit extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Bit) + // @@protoc_insertion_point(message_implements:internal.Bit) BitOrBuilder { private static final long serialVersionUID = 0L; // Use Bit.newBuilder() to construct. @@ -4712,13 +4712,13 @@ private Bit( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_Bit_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Bit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_Bit_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_Bit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Bit.class, com.pilosa.client.Internal.Bit.Builder.class); } @@ -4932,21 +4932,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code Bit} + * Protobuf type {@code internal.Bit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Bit) + // @@protoc_insertion_point(builder_implements:internal.Bit) com.pilosa.client.Internal.BitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_Bit_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Bit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_Bit_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_Bit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Bit.class, com.pilosa.client.Internal.Bit.Builder.class); } @@ -4981,7 +4981,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_Bit_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Bit_descriptor; } @java.lang.Override @@ -5180,10 +5180,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:Bit) + // @@protoc_insertion_point(builder_scope:internal.Bit) } - // @@protoc_insertion_point(class_scope:Bit) + // @@protoc_insertion_point(class_scope:internal.Bit) private static final com.pilosa.client.Internal.Bit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.Bit(); @@ -5221,7 +5221,7 @@ public com.pilosa.client.Internal.Bit getDefaultInstanceForType() { } public interface ColumnAttrSetOrBuilder extends - // @@protoc_insertion_point(interface_extends:ColumnAttrSet) + // @@protoc_insertion_point(interface_extends:internal.ColumnAttrSet) com.google.protobuf.MessageOrBuilder { /** @@ -5240,35 +5240,35 @@ public interface ColumnAttrSetOrBuilder extends getKeyBytes(); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ java.util.List getAttrsList(); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ com.pilosa.client.Internal.Attr getAttrs(int index); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ int getAttrsCount(); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ java.util.List getAttrsOrBuilderList(); /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( int index); } /** - * Protobuf type {@code ColumnAttrSet} + * Protobuf type {@code internal.ColumnAttrSet} */ public static final class ColumnAttrSet extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ColumnAttrSet) + // @@protoc_insertion_point(message_implements:internal.ColumnAttrSet) ColumnAttrSetOrBuilder { private static final long serialVersionUID = 0L; // Use ColumnAttrSet.newBuilder() to construct. @@ -5349,13 +5349,13 @@ private ColumnAttrSet( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_ColumnAttrSet_descriptor; + 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_ColumnAttrSet_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ColumnAttrSet.class, com.pilosa.client.Internal.ColumnAttrSet.Builder.class); } @@ -5407,32 +5407,32 @@ public java.lang.String getKey() { public static final int ATTRS_FIELD_NUMBER = 2; private java.util.List attrs_; /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsList() { return attrs_; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsOrBuilderList() { return attrs_; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public int getAttrsCount() { return attrs_.size(); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr getAttrs(int index) { return attrs_.get(index); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( int index) { @@ -5620,21 +5620,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code ColumnAttrSet} + * Protobuf type {@code internal.ColumnAttrSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ColumnAttrSet) + // @@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_ColumnAttrSet_descriptor; + 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_ColumnAttrSet_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ColumnAttrSet.class, com.pilosa.client.Internal.ColumnAttrSet.Builder.class); } @@ -5674,7 +5674,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_ColumnAttrSet_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ColumnAttrSet_descriptor; } @java.lang.Override @@ -5927,7 +5927,7 @@ private void ensureAttrsIsMutable() { com.pilosa.client.Internal.Attr, com.pilosa.client.Internal.Attr.Builder, com.pilosa.client.Internal.AttrOrBuilder> attrsBuilder_; /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsList() { if (attrsBuilder_ == null) { @@ -5937,7 +5937,7 @@ public java.util.List getAttrsList() { } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public int getAttrsCount() { if (attrsBuilder_ == null) { @@ -5947,7 +5947,7 @@ public int getAttrsCount() { } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr getAttrs(int index) { if (attrsBuilder_ == null) { @@ -5957,7 +5957,7 @@ public com.pilosa.client.Internal.Attr getAttrs(int index) { } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder setAttrs( int index, com.pilosa.client.Internal.Attr value) { @@ -5974,7 +5974,7 @@ public Builder setAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder setAttrs( int index, com.pilosa.client.Internal.Attr.Builder builderForValue) { @@ -5988,7 +5988,7 @@ public Builder setAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAttrs(com.pilosa.client.Internal.Attr value) { if (attrsBuilder_ == null) { @@ -6004,7 +6004,7 @@ public Builder addAttrs(com.pilosa.client.Internal.Attr value) { return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAttrs( int index, com.pilosa.client.Internal.Attr value) { @@ -6021,7 +6021,7 @@ public Builder addAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAttrs( com.pilosa.client.Internal.Attr.Builder builderForValue) { @@ -6035,7 +6035,7 @@ public Builder addAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAttrs( int index, com.pilosa.client.Internal.Attr.Builder builderForValue) { @@ -6049,7 +6049,7 @@ public Builder addAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder addAllAttrs( java.lang.Iterable values) { @@ -6064,7 +6064,7 @@ public Builder addAllAttrs( return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder clearAttrs() { if (attrsBuilder_ == null) { @@ -6077,7 +6077,7 @@ public Builder clearAttrs() { return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public Builder removeAttrs(int index) { if (attrsBuilder_ == null) { @@ -6090,14 +6090,14 @@ public Builder removeAttrs(int index) { return this; } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr.Builder getAttrsBuilder( int index) { return getAttrsFieldBuilder().getBuilder(index); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( int index) { @@ -6107,7 +6107,7 @@ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsOrBuilderList() { @@ -6118,14 +6118,14 @@ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( } } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder() { return getAttrsFieldBuilder().addBuilder( com.pilosa.client.Internal.Attr.getDefaultInstance()); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder( int index) { @@ -6133,7 +6133,7 @@ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder( index, com.pilosa.client.Internal.Attr.getDefaultInstance()); } /** - * repeated .Attr Attrs = 2; + * repeated .internal.Attr Attrs = 2; */ public java.util.List getAttrsBuilderList() { @@ -6166,10 +6166,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:ColumnAttrSet) + // @@protoc_insertion_point(builder_scope:internal.ColumnAttrSet) } - // @@protoc_insertion_point(class_scope:ColumnAttrSet) + // @@protoc_insertion_point(class_scope:internal.ColumnAttrSet) private static final com.pilosa.client.Internal.ColumnAttrSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.ColumnAttrSet(); @@ -6207,7 +6207,7 @@ public com.pilosa.client.Internal.ColumnAttrSet getDefaultInstanceForType() { } public interface AttrOrBuilder extends - // @@protoc_insertion_point(interface_extends:Attr) + // @@protoc_insertion_point(interface_extends:internal.Attr) com.google.protobuf.MessageOrBuilder { /** @@ -6251,11 +6251,11 @@ public interface AttrOrBuilder extends double getFloatValue(); } /** - * Protobuf type {@code Attr} + * Protobuf type {@code internal.Attr} */ public static final class Attr extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Attr) + // @@protoc_insertion_point(message_implements:internal.Attr) AttrOrBuilder { private static final long serialVersionUID = 0L; // Use Attr.newBuilder() to construct. @@ -6348,13 +6348,13 @@ private Attr( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_Attr_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Attr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_Attr_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_Attr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Attr.class, com.pilosa.client.Internal.Attr.Builder.class); } @@ -6679,21 +6679,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code Attr} + * Protobuf type {@code internal.Attr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Attr) + // @@protoc_insertion_point(builder_implements:internal.Attr) com.pilosa.client.Internal.AttrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_Attr_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Attr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_Attr_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_Attr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.Attr.class, com.pilosa.client.Internal.Attr.Builder.class); } @@ -6734,7 +6734,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_Attr_descriptor; + return com.pilosa.client.Internal.internal_static_internal_Attr_descriptor; } @java.lang.Override @@ -7111,10 +7111,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:Attr) + // @@protoc_insertion_point(builder_scope:internal.Attr) } - // @@protoc_insertion_point(class_scope:Attr) + // @@protoc_insertion_point(class_scope:internal.Attr) private static final com.pilosa.client.Internal.Attr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.Attr(); @@ -7152,39 +7152,39 @@ public com.pilosa.client.Internal.Attr getDefaultInstanceForType() { } public interface AttrMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:AttrMap) + // @@protoc_insertion_point(interface_extends:internal.AttrMap) com.google.protobuf.MessageOrBuilder { /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ java.util.List getAttrsList(); /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ com.pilosa.client.Internal.Attr getAttrs(int index); /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ int getAttrsCount(); /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ java.util.List getAttrsOrBuilderList(); /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( int index); } /** - * Protobuf type {@code AttrMap} + * Protobuf type {@code internal.AttrMap} */ public static final class AttrMap extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AttrMap) + // @@protoc_insertion_point(message_implements:internal.AttrMap) AttrMapOrBuilder { private static final long serialVersionUID = 0L; // Use AttrMap.newBuilder() to construct. @@ -7252,13 +7252,13 @@ private AttrMap( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_AttrMap_descriptor; + 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_AttrMap_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_AttrMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.AttrMap.class, com.pilosa.client.Internal.AttrMap.Builder.class); } @@ -7266,32 +7266,32 @@ private AttrMap( public static final int ATTRS_FIELD_NUMBER = 1; private java.util.List attrs_; /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public java.util.List getAttrsList() { return attrs_; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public java.util.List getAttrsOrBuilderList() { return attrs_; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public int getAttrsCount() { return attrs_.size(); } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public com.pilosa.client.Internal.Attr getAttrs(int index) { return attrs_.get(index); } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( int index) { @@ -7457,21 +7457,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code AttrMap} + * Protobuf type {@code internal.AttrMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AttrMap) + // @@protoc_insertion_point(builder_implements:internal.AttrMap) com.pilosa.client.Internal.AttrMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_AttrMap_descriptor; + 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_AttrMap_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_AttrMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.AttrMap.class, com.pilosa.client.Internal.AttrMap.Builder.class); } @@ -7507,7 +7507,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_AttrMap_descriptor; + return com.pilosa.client.Internal.internal_static_internal_AttrMap_descriptor; } @java.lang.Override @@ -7654,7 +7654,7 @@ private void ensureAttrsIsMutable() { com.pilosa.client.Internal.Attr, com.pilosa.client.Internal.Attr.Builder, com.pilosa.client.Internal.AttrOrBuilder> attrsBuilder_; /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public java.util.List getAttrsList() { if (attrsBuilder_ == null) { @@ -7664,7 +7664,7 @@ public java.util.List getAttrsList() { } } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public int getAttrsCount() { if (attrsBuilder_ == null) { @@ -7674,7 +7674,7 @@ public int getAttrsCount() { } } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public com.pilosa.client.Internal.Attr getAttrs(int index) { if (attrsBuilder_ == null) { @@ -7684,7 +7684,7 @@ public com.pilosa.client.Internal.Attr getAttrs(int index) { } } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public Builder setAttrs( int index, com.pilosa.client.Internal.Attr value) { @@ -7701,7 +7701,7 @@ public Builder setAttrs( return this; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public Builder setAttrs( int index, com.pilosa.client.Internal.Attr.Builder builderForValue) { @@ -7715,7 +7715,7 @@ public Builder setAttrs( return this; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public Builder addAttrs(com.pilosa.client.Internal.Attr value) { if (attrsBuilder_ == null) { @@ -7731,7 +7731,7 @@ public Builder addAttrs(com.pilosa.client.Internal.Attr value) { return this; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public Builder addAttrs( int index, com.pilosa.client.Internal.Attr value) { @@ -7748,7 +7748,7 @@ public Builder addAttrs( return this; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public Builder addAttrs( com.pilosa.client.Internal.Attr.Builder builderForValue) { @@ -7762,7 +7762,7 @@ public Builder addAttrs( return this; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public Builder addAttrs( int index, com.pilosa.client.Internal.Attr.Builder builderForValue) { @@ -7776,7 +7776,7 @@ public Builder addAttrs( return this; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public Builder addAllAttrs( java.lang.Iterable values) { @@ -7791,7 +7791,7 @@ public Builder addAllAttrs( return this; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public Builder clearAttrs() { if (attrsBuilder_ == null) { @@ -7804,7 +7804,7 @@ public Builder clearAttrs() { return this; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public Builder removeAttrs(int index) { if (attrsBuilder_ == null) { @@ -7817,14 +7817,14 @@ public Builder removeAttrs(int index) { return this; } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public com.pilosa.client.Internal.Attr.Builder getAttrsBuilder( int index) { return getAttrsFieldBuilder().getBuilder(index); } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( int index) { @@ -7834,7 +7834,7 @@ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( } } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public java.util.List getAttrsOrBuilderList() { @@ -7845,14 +7845,14 @@ public com.pilosa.client.Internal.AttrOrBuilder getAttrsOrBuilder( } } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder() { return getAttrsFieldBuilder().addBuilder( com.pilosa.client.Internal.Attr.getDefaultInstance()); } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder( int index) { @@ -7860,7 +7860,7 @@ public com.pilosa.client.Internal.Attr.Builder addAttrsBuilder( index, com.pilosa.client.Internal.Attr.getDefaultInstance()); } /** - * repeated .Attr Attrs = 1; + * repeated .internal.Attr Attrs = 1; */ public java.util.List getAttrsBuilderList() { @@ -7893,10 +7893,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:AttrMap) + // @@protoc_insertion_point(builder_scope:internal.AttrMap) } - // @@protoc_insertion_point(class_scope:AttrMap) + // @@protoc_insertion_point(class_scope:internal.AttrMap) private static final com.pilosa.client.Internal.AttrMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.AttrMap(); @@ -7934,7 +7934,7 @@ public com.pilosa.client.Internal.AttrMap getDefaultInstanceForType() { } public interface QueryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:QueryRequest) + // @@protoc_insertion_point(interface_extends:internal.QueryRequest) com.google.protobuf.MessageOrBuilder { /** @@ -7981,11 +7981,11 @@ public interface QueryRequestOrBuilder extends boolean getExcludeColumns(); } /** - * Protobuf type {@code QueryRequest} + * Protobuf type {@code internal.QueryRequest} */ public static final class QueryRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:QueryRequest) + // @@protoc_insertion_point(message_implements:internal.QueryRequest) QueryRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryRequest.newBuilder() to construct. @@ -8096,13 +8096,13 @@ private QueryRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_QueryRequest_descriptor; + 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_QueryRequest_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_QueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryRequest.class, com.pilosa.client.Internal.QueryRequest.Builder.class); } @@ -8433,21 +8433,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code QueryRequest} + * Protobuf type {@code internal.QueryRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:QueryRequest) + // @@protoc_insertion_point(builder_implements:internal.QueryRequest) com.pilosa.client.Internal.QueryRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_QueryRequest_descriptor; + 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_QueryRequest_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_QueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryRequest.class, com.pilosa.client.Internal.QueryRequest.Builder.class); } @@ -8488,7 +8488,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_QueryRequest_descriptor; + return com.pilosa.client.Internal.internal_static_internal_QueryRequest_descriptor; } @java.lang.Override @@ -8876,10 +8876,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:QueryRequest) + // @@protoc_insertion_point(builder_scope:internal.QueryRequest) } - // @@protoc_insertion_point(class_scope:QueryRequest) + // @@protoc_insertion_point(class_scope:internal.QueryRequest) private static final com.pilosa.client.Internal.QueryRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.QueryRequest(); @@ -8917,7 +8917,7 @@ public com.pilosa.client.Internal.QueryRequest getDefaultInstanceForType() { } public interface QueryResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:QueryResponse) + // @@protoc_insertion_point(interface_extends:internal.QueryResponse) com.google.protobuf.MessageOrBuilder { /** @@ -8931,59 +8931,59 @@ public interface QueryResponseOrBuilder extends getErrBytes(); /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ java.util.List getResultsList(); /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ com.pilosa.client.Internal.QueryResult getResults(int index); /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ int getResultsCount(); /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ java.util.List getResultsOrBuilderList(); /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ com.pilosa.client.Internal.QueryResultOrBuilder getResultsOrBuilder( int index); /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ java.util.List getColumnAttrSetsList(); /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ com.pilosa.client.Internal.ColumnAttrSet getColumnAttrSets(int index); /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ int getColumnAttrSetsCount(); /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ java.util.List getColumnAttrSetsOrBuilderList(); /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ com.pilosa.client.Internal.ColumnAttrSetOrBuilder getColumnAttrSetsOrBuilder( int index); } /** - * Protobuf type {@code QueryResponse} + * Protobuf type {@code internal.QueryResponse} */ public static final class QueryResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:QueryResponse) + // @@protoc_insertion_point(message_implements:internal.QueryResponse) QueryResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryResponse.newBuilder() to construct. @@ -9071,13 +9071,13 @@ private QueryResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_QueryResponse_descriptor; + 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_QueryResponse_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_QueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryResponse.class, com.pilosa.client.Internal.QueryResponse.Builder.class); } @@ -9120,32 +9120,32 @@ public java.lang.String getErr() { public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public java.util.List getResultsList() { return results_; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public java.util.List getResultsOrBuilderList() { return results_; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public int getResultsCount() { return results_.size(); } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public com.pilosa.client.Internal.QueryResult getResults(int index) { return results_.get(index); } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public com.pilosa.client.Internal.QueryResultOrBuilder getResultsOrBuilder( int index) { @@ -9155,32 +9155,32 @@ public com.pilosa.client.Internal.QueryResultOrBuilder getResultsOrBuilder( public static final int COLUMNATTRSETS_FIELD_NUMBER = 3; private java.util.List columnAttrSets_; /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public java.util.List getColumnAttrSetsList() { return columnAttrSets_; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public java.util.List getColumnAttrSetsOrBuilderList() { return columnAttrSets_; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public int getColumnAttrSetsCount() { return columnAttrSets_.size(); } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public com.pilosa.client.Internal.ColumnAttrSet getColumnAttrSets(int index) { return columnAttrSets_.get(index); } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public com.pilosa.client.Internal.ColumnAttrSetOrBuilder getColumnAttrSetsOrBuilder( int index) { @@ -9369,21 +9369,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code QueryResponse} + * Protobuf type {@code internal.QueryResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:QueryResponse) + // @@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_QueryResponse_descriptor; + 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_QueryResponse_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_QueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryResponse.class, com.pilosa.client.Internal.QueryResponse.Builder.class); } @@ -9428,7 +9428,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_QueryResponse_descriptor; + return com.pilosa.client.Internal.internal_static_internal_QueryResponse_descriptor; } @java.lang.Override @@ -9686,7 +9686,7 @@ private void ensureResultsIsMutable() { com.pilosa.client.Internal.QueryResult, com.pilosa.client.Internal.QueryResult.Builder, com.pilosa.client.Internal.QueryResultOrBuilder> resultsBuilder_; /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public java.util.List getResultsList() { if (resultsBuilder_ == null) { @@ -9696,7 +9696,7 @@ public java.util.List getResultsList() { } } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -9706,7 +9706,7 @@ public int getResultsCount() { } } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public com.pilosa.client.Internal.QueryResult getResults(int index) { if (resultsBuilder_ == null) { @@ -9716,7 +9716,7 @@ public com.pilosa.client.Internal.QueryResult getResults(int index) { } } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public Builder setResults( int index, com.pilosa.client.Internal.QueryResult value) { @@ -9733,7 +9733,7 @@ public Builder setResults( return this; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public Builder setResults( int index, com.pilosa.client.Internal.QueryResult.Builder builderForValue) { @@ -9747,7 +9747,7 @@ public Builder setResults( return this; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public Builder addResults(com.pilosa.client.Internal.QueryResult value) { if (resultsBuilder_ == null) { @@ -9763,7 +9763,7 @@ public Builder addResults(com.pilosa.client.Internal.QueryResult value) { return this; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public Builder addResults( int index, com.pilosa.client.Internal.QueryResult value) { @@ -9780,7 +9780,7 @@ public Builder addResults( return this; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public Builder addResults( com.pilosa.client.Internal.QueryResult.Builder builderForValue) { @@ -9794,7 +9794,7 @@ public Builder addResults( return this; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public Builder addResults( int index, com.pilosa.client.Internal.QueryResult.Builder builderForValue) { @@ -9808,7 +9808,7 @@ public Builder addResults( return this; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public Builder addAllResults( java.lang.Iterable values) { @@ -9823,7 +9823,7 @@ public Builder addAllResults( return this; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -9836,7 +9836,7 @@ public Builder clearResults() { return this; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -9849,14 +9849,14 @@ public Builder removeResults(int index) { return this; } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public com.pilosa.client.Internal.QueryResult.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public com.pilosa.client.Internal.QueryResultOrBuilder getResultsOrBuilder( int index) { @@ -9866,7 +9866,7 @@ public com.pilosa.client.Internal.QueryResultOrBuilder getResultsOrBuilder( } } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public java.util.List getResultsOrBuilderList() { @@ -9877,14 +9877,14 @@ public com.pilosa.client.Internal.QueryResultOrBuilder getResultsOrBuilder( } } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public com.pilosa.client.Internal.QueryResult.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( com.pilosa.client.Internal.QueryResult.getDefaultInstance()); } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public com.pilosa.client.Internal.QueryResult.Builder addResultsBuilder( int index) { @@ -9892,7 +9892,7 @@ public com.pilosa.client.Internal.QueryResult.Builder addResultsBuilder( index, com.pilosa.client.Internal.QueryResult.getDefaultInstance()); } /** - * repeated .QueryResult Results = 2; + * repeated .internal.QueryResult Results = 2; */ public java.util.List getResultsBuilderList() { @@ -9926,7 +9926,7 @@ private void ensureColumnAttrSetsIsMutable() { com.pilosa.client.Internal.ColumnAttrSet, com.pilosa.client.Internal.ColumnAttrSet.Builder, com.pilosa.client.Internal.ColumnAttrSetOrBuilder> columnAttrSetsBuilder_; /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public java.util.List getColumnAttrSetsList() { if (columnAttrSetsBuilder_ == null) { @@ -9936,7 +9936,7 @@ public java.util.List getColumnAttrSet } } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public int getColumnAttrSetsCount() { if (columnAttrSetsBuilder_ == null) { @@ -9946,7 +9946,7 @@ public int getColumnAttrSetsCount() { } } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public com.pilosa.client.Internal.ColumnAttrSet getColumnAttrSets(int index) { if (columnAttrSetsBuilder_ == null) { @@ -9956,7 +9956,7 @@ public com.pilosa.client.Internal.ColumnAttrSet getColumnAttrSets(int index) { } } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public Builder setColumnAttrSets( int index, com.pilosa.client.Internal.ColumnAttrSet value) { @@ -9973,7 +9973,7 @@ public Builder setColumnAttrSets( return this; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public Builder setColumnAttrSets( int index, com.pilosa.client.Internal.ColumnAttrSet.Builder builderForValue) { @@ -9987,7 +9987,7 @@ public Builder setColumnAttrSets( return this; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public Builder addColumnAttrSets(com.pilosa.client.Internal.ColumnAttrSet value) { if (columnAttrSetsBuilder_ == null) { @@ -10003,7 +10003,7 @@ public Builder addColumnAttrSets(com.pilosa.client.Internal.ColumnAttrSet value) return this; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public Builder addColumnAttrSets( int index, com.pilosa.client.Internal.ColumnAttrSet value) { @@ -10020,7 +10020,7 @@ public Builder addColumnAttrSets( return this; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public Builder addColumnAttrSets( com.pilosa.client.Internal.ColumnAttrSet.Builder builderForValue) { @@ -10034,7 +10034,7 @@ public Builder addColumnAttrSets( return this; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public Builder addColumnAttrSets( int index, com.pilosa.client.Internal.ColumnAttrSet.Builder builderForValue) { @@ -10048,7 +10048,7 @@ public Builder addColumnAttrSets( return this; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public Builder addAllColumnAttrSets( java.lang.Iterable values) { @@ -10063,7 +10063,7 @@ public Builder addAllColumnAttrSets( return this; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public Builder clearColumnAttrSets() { if (columnAttrSetsBuilder_ == null) { @@ -10076,7 +10076,7 @@ public Builder clearColumnAttrSets() { return this; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public Builder removeColumnAttrSets(int index) { if (columnAttrSetsBuilder_ == null) { @@ -10089,14 +10089,14 @@ public Builder removeColumnAttrSets(int index) { return this; } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public com.pilosa.client.Internal.ColumnAttrSet.Builder getColumnAttrSetsBuilder( int index) { return getColumnAttrSetsFieldBuilder().getBuilder(index); } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public com.pilosa.client.Internal.ColumnAttrSetOrBuilder getColumnAttrSetsOrBuilder( int index) { @@ -10106,7 +10106,7 @@ public com.pilosa.client.Internal.ColumnAttrSetOrBuilder getColumnAttrSetsOrBuil } } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public java.util.List getColumnAttrSetsOrBuilderList() { @@ -10117,14 +10117,14 @@ public com.pilosa.client.Internal.ColumnAttrSetOrBuilder getColumnAttrSetsOrBuil } } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public com.pilosa.client.Internal.ColumnAttrSet.Builder addColumnAttrSetsBuilder() { return getColumnAttrSetsFieldBuilder().addBuilder( com.pilosa.client.Internal.ColumnAttrSet.getDefaultInstance()); } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public com.pilosa.client.Internal.ColumnAttrSet.Builder addColumnAttrSetsBuilder( int index) { @@ -10132,7 +10132,7 @@ public com.pilosa.client.Internal.ColumnAttrSet.Builder addColumnAttrSetsBuilder index, com.pilosa.client.Internal.ColumnAttrSet.getDefaultInstance()); } /** - * repeated .ColumnAttrSet ColumnAttrSets = 3; + * repeated .internal.ColumnAttrSet ColumnAttrSets = 3; */ public java.util.List getColumnAttrSetsBuilderList() { @@ -10165,10 +10165,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:QueryResponse) + // @@protoc_insertion_point(builder_scope:internal.QueryResponse) } - // @@protoc_insertion_point(class_scope:QueryResponse) + // @@protoc_insertion_point(class_scope:internal.QueryResponse) private static final com.pilosa.client.Internal.QueryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.QueryResponse(); @@ -10206,7 +10206,7 @@ public com.pilosa.client.Internal.QueryResponse getDefaultInstanceForType() { } public interface QueryResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:QueryResult) + // @@protoc_insertion_point(interface_extends:internal.QueryResult) com.google.protobuf.MessageOrBuilder { /** @@ -10215,15 +10215,15 @@ public interface QueryResultOrBuilder extends int getType(); /** - * .Row Row = 1; + * .internal.Row Row = 1; */ boolean hasRow(); /** - * .Row Row = 1; + * .internal.Row Row = 1; */ com.pilosa.client.Internal.Row getRow(); /** - * .Row Row = 1; + * .internal.Row Row = 1; */ com.pilosa.client.Internal.RowOrBuilder getRowOrBuilder(); @@ -10233,25 +10233,25 @@ public interface QueryResultOrBuilder extends long getN(); /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ java.util.List getPairsList(); /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ com.pilosa.client.Internal.Pair getPairs(int index); /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ int getPairsCount(); /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ java.util.List getPairsOrBuilderList(); /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( int index); @@ -10262,15 +10262,15 @@ com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( boolean getChanged(); /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ boolean hasValCount(); /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ com.pilosa.client.Internal.ValCount getValCount(); /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ com.pilosa.client.Internal.ValCountOrBuilder getValCountOrBuilder(); @@ -10288,48 +10288,48 @@ com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( long getRowIDs(int index); /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ java.util.List getGroupCountsList(); /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ com.pilosa.client.Internal.GroupCount getGroupCounts(int index); /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ int getGroupCountsCount(); /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ java.util.List getGroupCountsOrBuilderList(); /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ com.pilosa.client.Internal.GroupCountOrBuilder getGroupCountsOrBuilder( int index); /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ boolean hasRowIdentifiers(); /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ com.pilosa.client.Internal.RowIdentifiers getRowIdentifiers(); /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ com.pilosa.client.Internal.RowIdentifiersOrBuilder getRowIdentifiersOrBuilder(); } /** - * Protobuf type {@code QueryResult} + * Protobuf type {@code internal.QueryResult} */ public static final class QueryResult extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:QueryResult) + // @@protoc_insertion_point(message_implements:internal.QueryResult) QueryResultOrBuilder { private static final long serialVersionUID = 0L; // Use QueryResult.newBuilder() to construct. @@ -10492,13 +10492,13 @@ private QueryResult( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_QueryResult_descriptor; + 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_QueryResult_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryResult.class, com.pilosa.client.Internal.QueryResult.Builder.class); } @@ -10516,19 +10516,19 @@ public int getType() { public static final int ROW_FIELD_NUMBER = 1; private com.pilosa.client.Internal.Row row_; /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public boolean hasRow() { return row_ != null; } /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public com.pilosa.client.Internal.Row getRow() { return row_ == null ? com.pilosa.client.Internal.Row.getDefaultInstance() : row_; } /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public com.pilosa.client.Internal.RowOrBuilder getRowOrBuilder() { return getRow(); @@ -10546,32 +10546,32 @@ public long getN() { public static final int PAIRS_FIELD_NUMBER = 3; private java.util.List pairs_; /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public java.util.List getPairsList() { return pairs_; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public java.util.List getPairsOrBuilderList() { return pairs_; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public int getPairsCount() { return pairs_.size(); } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public com.pilosa.client.Internal.Pair getPairs(int index) { return pairs_.get(index); } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( int index) { @@ -10590,19 +10590,19 @@ public boolean getChanged() { public static final int VALCOUNT_FIELD_NUMBER = 5; private com.pilosa.client.Internal.ValCount valCount_; /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public boolean hasValCount() { return valCount_ != null; } /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public com.pilosa.client.Internal.ValCount getValCount() { return valCount_ == null ? com.pilosa.client.Internal.ValCount.getDefaultInstance() : valCount_; } /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public com.pilosa.client.Internal.ValCountOrBuilder getValCountOrBuilder() { return getValCount(); @@ -10634,32 +10634,32 @@ public long getRowIDs(int index) { public static final int GROUPCOUNTS_FIELD_NUMBER = 8; private java.util.List groupCounts_; /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public java.util.List getGroupCountsList() { return groupCounts_; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public java.util.List getGroupCountsOrBuilderList() { return groupCounts_; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public int getGroupCountsCount() { return groupCounts_.size(); } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public com.pilosa.client.Internal.GroupCount getGroupCounts(int index) { return groupCounts_.get(index); } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public com.pilosa.client.Internal.GroupCountOrBuilder getGroupCountsOrBuilder( int index) { @@ -10669,19 +10669,19 @@ public com.pilosa.client.Internal.GroupCountOrBuilder getGroupCountsOrBuilder( public static final int ROWIDENTIFIERS_FIELD_NUMBER = 9; private com.pilosa.client.Internal.RowIdentifiers rowIdentifiers_; /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public boolean hasRowIdentifiers() { return rowIdentifiers_ != null; } /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public com.pilosa.client.Internal.RowIdentifiers getRowIdentifiers() { return rowIdentifiers_ == null ? com.pilosa.client.Internal.RowIdentifiers.getDefaultInstance() : rowIdentifiers_; } /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public com.pilosa.client.Internal.RowIdentifiersOrBuilder getRowIdentifiersOrBuilder() { return getRowIdentifiers(); @@ -10970,21 +10970,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code QueryResult} + * Protobuf type {@code internal.QueryResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:QueryResult) + // @@protoc_insertion_point(builder_implements:internal.QueryResult) com.pilosa.client.Internal.QueryResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_QueryResult_descriptor; + 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_QueryResult_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.QueryResult.class, com.pilosa.client.Internal.QueryResult.Builder.class); } @@ -11053,7 +11053,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_QueryResult_descriptor; + return com.pilosa.client.Internal.internal_static_internal_QueryResult_descriptor; } @java.lang.Override @@ -11305,13 +11305,13 @@ public Builder clearType() { private com.google.protobuf.SingleFieldBuilderV3< com.pilosa.client.Internal.Row, com.pilosa.client.Internal.Row.Builder, com.pilosa.client.Internal.RowOrBuilder> rowBuilder_; /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public boolean hasRow() { return rowBuilder_ != null || row_ != null; } /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public com.pilosa.client.Internal.Row getRow() { if (rowBuilder_ == null) { @@ -11321,7 +11321,7 @@ public com.pilosa.client.Internal.Row getRow() { } } /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public Builder setRow(com.pilosa.client.Internal.Row value) { if (rowBuilder_ == null) { @@ -11337,7 +11337,7 @@ public Builder setRow(com.pilosa.client.Internal.Row value) { return this; } /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public Builder setRow( com.pilosa.client.Internal.Row.Builder builderForValue) { @@ -11351,7 +11351,7 @@ public Builder setRow( return this; } /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public Builder mergeRow(com.pilosa.client.Internal.Row value) { if (rowBuilder_ == null) { @@ -11369,7 +11369,7 @@ public Builder mergeRow(com.pilosa.client.Internal.Row value) { return this; } /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public Builder clearRow() { if (rowBuilder_ == null) { @@ -11383,7 +11383,7 @@ public Builder clearRow() { return this; } /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public com.pilosa.client.Internal.Row.Builder getRowBuilder() { @@ -11391,7 +11391,7 @@ public com.pilosa.client.Internal.Row.Builder getRowBuilder() { return getRowFieldBuilder().getBuilder(); } /** - * .Row Row = 1; + * .internal.Row Row = 1; */ public com.pilosa.client.Internal.RowOrBuilder getRowOrBuilder() { if (rowBuilder_ != null) { @@ -11402,7 +11402,7 @@ public com.pilosa.client.Internal.RowOrBuilder getRowOrBuilder() { } } /** - * .Row Row = 1; + * .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> @@ -11457,7 +11457,7 @@ private void ensurePairsIsMutable() { com.pilosa.client.Internal.Pair, com.pilosa.client.Internal.Pair.Builder, com.pilosa.client.Internal.PairOrBuilder> pairsBuilder_; /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public java.util.List getPairsList() { if (pairsBuilder_ == null) { @@ -11467,7 +11467,7 @@ public java.util.List getPairsList() { } } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public int getPairsCount() { if (pairsBuilder_ == null) { @@ -11477,7 +11477,7 @@ public int getPairsCount() { } } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public com.pilosa.client.Internal.Pair getPairs(int index) { if (pairsBuilder_ == null) { @@ -11487,7 +11487,7 @@ public com.pilosa.client.Internal.Pair getPairs(int index) { } } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public Builder setPairs( int index, com.pilosa.client.Internal.Pair value) { @@ -11504,7 +11504,7 @@ public Builder setPairs( return this; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public Builder setPairs( int index, com.pilosa.client.Internal.Pair.Builder builderForValue) { @@ -11518,7 +11518,7 @@ public Builder setPairs( return this; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public Builder addPairs(com.pilosa.client.Internal.Pair value) { if (pairsBuilder_ == null) { @@ -11534,7 +11534,7 @@ public Builder addPairs(com.pilosa.client.Internal.Pair value) { return this; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public Builder addPairs( int index, com.pilosa.client.Internal.Pair value) { @@ -11551,7 +11551,7 @@ public Builder addPairs( return this; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public Builder addPairs( com.pilosa.client.Internal.Pair.Builder builderForValue) { @@ -11565,7 +11565,7 @@ public Builder addPairs( return this; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public Builder addPairs( int index, com.pilosa.client.Internal.Pair.Builder builderForValue) { @@ -11579,7 +11579,7 @@ public Builder addPairs( return this; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public Builder addAllPairs( java.lang.Iterable values) { @@ -11594,7 +11594,7 @@ public Builder addAllPairs( return this; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public Builder clearPairs() { if (pairsBuilder_ == null) { @@ -11607,7 +11607,7 @@ public Builder clearPairs() { return this; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public Builder removePairs(int index) { if (pairsBuilder_ == null) { @@ -11620,14 +11620,14 @@ public Builder removePairs(int index) { return this; } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public com.pilosa.client.Internal.Pair.Builder getPairsBuilder( int index) { return getPairsFieldBuilder().getBuilder(index); } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( int index) { @@ -11637,7 +11637,7 @@ public com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( } } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public java.util.List getPairsOrBuilderList() { @@ -11648,14 +11648,14 @@ public com.pilosa.client.Internal.PairOrBuilder getPairsOrBuilder( } } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public com.pilosa.client.Internal.Pair.Builder addPairsBuilder() { return getPairsFieldBuilder().addBuilder( com.pilosa.client.Internal.Pair.getDefaultInstance()); } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public com.pilosa.client.Internal.Pair.Builder addPairsBuilder( int index) { @@ -11663,7 +11663,7 @@ public com.pilosa.client.Internal.Pair.Builder addPairsBuilder( index, com.pilosa.client.Internal.Pair.getDefaultInstance()); } /** - * repeated .Pair Pairs = 3; + * repeated .internal.Pair Pairs = 3; */ public java.util.List getPairsBuilderList() { @@ -11714,13 +11714,13 @@ public Builder clearChanged() { private com.google.protobuf.SingleFieldBuilderV3< com.pilosa.client.Internal.ValCount, com.pilosa.client.Internal.ValCount.Builder, com.pilosa.client.Internal.ValCountOrBuilder> valCountBuilder_; /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public boolean hasValCount() { return valCountBuilder_ != null || valCount_ != null; } /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public com.pilosa.client.Internal.ValCount getValCount() { if (valCountBuilder_ == null) { @@ -11730,7 +11730,7 @@ public com.pilosa.client.Internal.ValCount getValCount() { } } /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public Builder setValCount(com.pilosa.client.Internal.ValCount value) { if (valCountBuilder_ == null) { @@ -11746,7 +11746,7 @@ public Builder setValCount(com.pilosa.client.Internal.ValCount value) { return this; } /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public Builder setValCount( com.pilosa.client.Internal.ValCount.Builder builderForValue) { @@ -11760,7 +11760,7 @@ public Builder setValCount( return this; } /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public Builder mergeValCount(com.pilosa.client.Internal.ValCount value) { if (valCountBuilder_ == null) { @@ -11778,7 +11778,7 @@ public Builder mergeValCount(com.pilosa.client.Internal.ValCount value) { return this; } /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public Builder clearValCount() { if (valCountBuilder_ == null) { @@ -11792,7 +11792,7 @@ public Builder clearValCount() { return this; } /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public com.pilosa.client.Internal.ValCount.Builder getValCountBuilder() { @@ -11800,7 +11800,7 @@ public com.pilosa.client.Internal.ValCount.Builder getValCountBuilder() { return getValCountFieldBuilder().getBuilder(); } /** - * .ValCount ValCount = 5; + * .internal.ValCount ValCount = 5; */ public com.pilosa.client.Internal.ValCountOrBuilder getValCountOrBuilder() { if (valCountBuilder_ != null) { @@ -11811,7 +11811,7 @@ public com.pilosa.client.Internal.ValCountOrBuilder getValCountOrBuilder() { } } /** - * .ValCount ValCount = 5; + * .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> @@ -11906,7 +11906,7 @@ private void ensureGroupCountsIsMutable() { com.pilosa.client.Internal.GroupCount, com.pilosa.client.Internal.GroupCount.Builder, com.pilosa.client.Internal.GroupCountOrBuilder> groupCountsBuilder_; /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public java.util.List getGroupCountsList() { if (groupCountsBuilder_ == null) { @@ -11916,7 +11916,7 @@ public java.util.List getGroupCountsList( } } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public int getGroupCountsCount() { if (groupCountsBuilder_ == null) { @@ -11926,7 +11926,7 @@ public int getGroupCountsCount() { } } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public com.pilosa.client.Internal.GroupCount getGroupCounts(int index) { if (groupCountsBuilder_ == null) { @@ -11936,7 +11936,7 @@ public com.pilosa.client.Internal.GroupCount getGroupCounts(int index) { } } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public Builder setGroupCounts( int index, com.pilosa.client.Internal.GroupCount value) { @@ -11953,7 +11953,7 @@ public Builder setGroupCounts( return this; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public Builder setGroupCounts( int index, com.pilosa.client.Internal.GroupCount.Builder builderForValue) { @@ -11967,7 +11967,7 @@ public Builder setGroupCounts( return this; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public Builder addGroupCounts(com.pilosa.client.Internal.GroupCount value) { if (groupCountsBuilder_ == null) { @@ -11983,7 +11983,7 @@ public Builder addGroupCounts(com.pilosa.client.Internal.GroupCount value) { return this; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public Builder addGroupCounts( int index, com.pilosa.client.Internal.GroupCount value) { @@ -12000,7 +12000,7 @@ public Builder addGroupCounts( return this; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public Builder addGroupCounts( com.pilosa.client.Internal.GroupCount.Builder builderForValue) { @@ -12014,7 +12014,7 @@ public Builder addGroupCounts( return this; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public Builder addGroupCounts( int index, com.pilosa.client.Internal.GroupCount.Builder builderForValue) { @@ -12028,7 +12028,7 @@ public Builder addGroupCounts( return this; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public Builder addAllGroupCounts( java.lang.Iterable values) { @@ -12043,7 +12043,7 @@ public Builder addAllGroupCounts( return this; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public Builder clearGroupCounts() { if (groupCountsBuilder_ == null) { @@ -12056,7 +12056,7 @@ public Builder clearGroupCounts() { return this; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public Builder removeGroupCounts(int index) { if (groupCountsBuilder_ == null) { @@ -12069,14 +12069,14 @@ public Builder removeGroupCounts(int index) { return this; } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public com.pilosa.client.Internal.GroupCount.Builder getGroupCountsBuilder( int index) { return getGroupCountsFieldBuilder().getBuilder(index); } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public com.pilosa.client.Internal.GroupCountOrBuilder getGroupCountsOrBuilder( int index) { @@ -12086,7 +12086,7 @@ public com.pilosa.client.Internal.GroupCountOrBuilder getGroupCountsOrBuilder( } } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public java.util.List getGroupCountsOrBuilderList() { @@ -12097,14 +12097,14 @@ public com.pilosa.client.Internal.GroupCountOrBuilder getGroupCountsOrBuilder( } } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public com.pilosa.client.Internal.GroupCount.Builder addGroupCountsBuilder() { return getGroupCountsFieldBuilder().addBuilder( com.pilosa.client.Internal.GroupCount.getDefaultInstance()); } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public com.pilosa.client.Internal.GroupCount.Builder addGroupCountsBuilder( int index) { @@ -12112,7 +12112,7 @@ public com.pilosa.client.Internal.GroupCount.Builder addGroupCountsBuilder( index, com.pilosa.client.Internal.GroupCount.getDefaultInstance()); } /** - * repeated .GroupCount GroupCounts = 8; + * repeated .internal.GroupCount GroupCounts = 8; */ public java.util.List getGroupCountsBuilderList() { @@ -12137,13 +12137,13 @@ public com.pilosa.client.Internal.GroupCount.Builder addGroupCountsBuilder( private com.google.protobuf.SingleFieldBuilderV3< com.pilosa.client.Internal.RowIdentifiers, com.pilosa.client.Internal.RowIdentifiers.Builder, com.pilosa.client.Internal.RowIdentifiersOrBuilder> rowIdentifiersBuilder_; /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public boolean hasRowIdentifiers() { return rowIdentifiersBuilder_ != null || rowIdentifiers_ != null; } /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public com.pilosa.client.Internal.RowIdentifiers getRowIdentifiers() { if (rowIdentifiersBuilder_ == null) { @@ -12153,7 +12153,7 @@ public com.pilosa.client.Internal.RowIdentifiers getRowIdentifiers() { } } /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public Builder setRowIdentifiers(com.pilosa.client.Internal.RowIdentifiers value) { if (rowIdentifiersBuilder_ == null) { @@ -12169,7 +12169,7 @@ public Builder setRowIdentifiers(com.pilosa.client.Internal.RowIdentifiers value return this; } /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public Builder setRowIdentifiers( com.pilosa.client.Internal.RowIdentifiers.Builder builderForValue) { @@ -12183,7 +12183,7 @@ public Builder setRowIdentifiers( return this; } /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public Builder mergeRowIdentifiers(com.pilosa.client.Internal.RowIdentifiers value) { if (rowIdentifiersBuilder_ == null) { @@ -12201,7 +12201,7 @@ public Builder mergeRowIdentifiers(com.pilosa.client.Internal.RowIdentifiers val return this; } /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public Builder clearRowIdentifiers() { if (rowIdentifiersBuilder_ == null) { @@ -12215,7 +12215,7 @@ public Builder clearRowIdentifiers() { return this; } /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public com.pilosa.client.Internal.RowIdentifiers.Builder getRowIdentifiersBuilder() { @@ -12223,7 +12223,7 @@ public com.pilosa.client.Internal.RowIdentifiers.Builder getRowIdentifiersBuilde return getRowIdentifiersFieldBuilder().getBuilder(); } /** - * .RowIdentifiers RowIdentifiers = 9; + * .internal.RowIdentifiers RowIdentifiers = 9; */ public com.pilosa.client.Internal.RowIdentifiersOrBuilder getRowIdentifiersOrBuilder() { if (rowIdentifiersBuilder_ != null) { @@ -12234,7 +12234,7 @@ public com.pilosa.client.Internal.RowIdentifiersOrBuilder getRowIdentifiersOrBui } } /** - * .RowIdentifiers RowIdentifiers = 9; + * .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> @@ -12262,10 +12262,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:QueryResult) + // @@protoc_insertion_point(builder_scope:internal.QueryResult) } - // @@protoc_insertion_point(class_scope:QueryResult) + // @@protoc_insertion_point(class_scope:internal.QueryResult) private static final com.pilosa.client.Internal.QueryResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.QueryResult(); @@ -12303,7 +12303,7 @@ public com.pilosa.client.Internal.QueryResult getDefaultInstanceForType() { } public interface ImportRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ImportRequest) + // @@protoc_insertion_point(interface_extends:internal.ImportRequest) com.google.protobuf.MessageOrBuilder { /** @@ -12409,11 +12409,11 @@ public interface ImportRequestOrBuilder extends long getTimestamps(int index); } /** - * Protobuf type {@code ImportRequest} + * Protobuf type {@code internal.ImportRequest} */ public static final class ImportRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ImportRequest) + // @@protoc_insertion_point(message_implements:internal.ImportRequest) ImportRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ImportRequest.newBuilder() to construct. @@ -12589,13 +12589,13 @@ private ImportRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_ImportRequest_descriptor; + 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_ImportRequest_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ImportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ImportRequest.class, com.pilosa.client.Internal.ImportRequest.Builder.class); } @@ -13099,21 +13099,21 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code ImportRequest} + * Protobuf type {@code internal.ImportRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ImportRequest) + // @@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_ImportRequest_descriptor; + 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_ImportRequest_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ImportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ImportRequest.class, com.pilosa.client.Internal.ImportRequest.Builder.class); } @@ -13158,7 +13158,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_ImportRequest_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ImportRequest_descriptor; } @java.lang.Override @@ -13910,10 +13910,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:ImportRequest) + // @@protoc_insertion_point(builder_scope:internal.ImportRequest) } - // @@protoc_insertion_point(class_scope:ImportRequest) + // @@protoc_insertion_point(class_scope:internal.ImportRequest) private static final com.pilosa.client.Internal.ImportRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pilosa.client.Internal.ImportRequest(); @@ -13951,7 +13951,7 @@ public com.pilosa.client.Internal.ImportRequest getDefaultInstanceForType() { } public interface ImportValueRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ImportValueRequest) + // @@protoc_insertion_point(interface_extends:internal.ImportValueRequest) com.google.protobuf.MessageOrBuilder { /** @@ -14024,1223 +14024,2894 @@ public interface ImportValueRequestOrBuilder extends */ long getValues(int index); } - /** - * Protobuf type {@code ImportValueRequest} - */ - public static final class ImportValueRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements: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; + @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(); } - 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; + 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(); } - case 48: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - values_.add(input.readInt64()); - break; + } + + 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; } - 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; + } + + /** + * 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; } - 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; + } + + 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; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + } + + /** + * 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; } - } } - } 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_); + + public static final int SHARD_FIELD_NUMBER = 3; + private long shard_; + + /** + * uint64 Shard = 3; + */ + public long getShard() { + return shard_; } - if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - values_ = java.util.Collections.unmodifiableList(values_); + + public static final int COLUMNIDS_FIELD_NUMBER = 5; + private java.util.List columnIDs_; + + /** + * repeated uint64 ColumnIDs = 5; + */ + public java.util.List + getColumnIDsList() { + return columnIDs_; } - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - columnKeys_ = columnKeys_.getUnmodifiableView(); + + /** + * repeated uint64 ColumnIDs = 5; + */ + public int getColumnIDsCount() { + return columnIDs_.size(); } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_ImportValueRequest_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_ImportValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pilosa.client.Internal.ImportValueRequest.class, com.pilosa.client.Internal.ImportValueRequest.Builder.class); - } + /** + * repeated uint64 ColumnIDs = 5; + */ + public long getColumnIDs(int index) { + return columnIDs_.get(index); + } - 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; - } - } + private int columnIDsMemoizedSerializedSize = -1; - 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; - } - } + public static final int COLUMNKEYS_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList columnKeys_; - public static final int SHARD_FIELD_NUMBER = 3; - private long shard_; - /** - * uint64 Shard = 3; - */ - public long getShard() { - return shard_; - } + /** + * repeated string ColumnKeys = 7; + */ + public com.google.protobuf.ProtocolStringList + getColumnKeysList() { + return columnKeys_; + } - 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); - } - private int columnIDsMemoizedSerializedSize = -1; + /** + * repeated string ColumnKeys = 7; + */ + public int getColumnKeysCount() { + return columnKeys_.size(); + } - 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); - } - /** - * repeated string ColumnKeys = 7; - */ - public com.google.protobuf.ByteString + /** + * 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; + 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); + } - 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; - } + 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 - 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( + 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( - 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); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ImportValueRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ImportValueRequest) - com.pilosa.client.Internal.ImportValueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pilosa.client.Internal.internal_static_ImportValueRequest_descriptor; - } + public static com.pilosa.client.Internal.ImportValueRequest parseFrom(byte[] 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_ImportValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pilosa.client.Internal.ImportValueRequest.class, com.pilosa.client.Internal.ImportValueRequest.Builder.class); - } + 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); + } - // Construct using com.pilosa.client.Internal.ImportValueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static com.pilosa.client.Internal.ImportValueRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } - 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( + 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 - public Builder clear() { - super.clear(); - index_ = ""; - field_ = ""; + public static com.pilosa.client.Internal.ImportValueRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } - shard_ = 0L; + 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); + } - 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 parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_ImportValueRequest_descriptor; - } + 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 com.pilosa.client.Internal.ImportValueRequest getDefaultInstanceForType() { - return com.pilosa.client.Internal.ImportValueRequest.getDefaultInstance(); - } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } - @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 Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - 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); + 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(); - } - 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(); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - 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 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(); + 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; + } + + @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; + } + } + + 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; + } + + @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.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_; + + 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 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(); + } + + /** + * 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; + } + + 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 final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:internal.ImportValueRequest) + } + + // @@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(); + } + + 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; + } + + } + + public interface TranslateKeysRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:internal.TranslateKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string Index = 1; + */ + java.lang.String getIndex(); + + /** + * 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 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; + } + + @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(); + + 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(); + } + } + + 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); + } + + 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_; + + /** + * 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; + } + } + + 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 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; + } + + 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); + } + + @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); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * 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); + } + + // Construct using com.pilosa.client.Internal.TranslateKeysRequest.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(); + index_ = ""; + + field_ = ""; + + keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @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) + } + + // @@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(); + } + + 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; + } + + } + + 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); + } + + /** + * 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(); + } + + @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; + + 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; + } + + @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; + + boolean result = true; + result = result && getIDsList() + .equals(other.getIDsList()); + 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(); + 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( + 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); + } - 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.TranslateKeysResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - } - /** - * 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.TranslateKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - } - /** - * 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; - } + 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 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; - } + 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); + } - 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; - } + 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 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); + } + + @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; + } - 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 + 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); + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + // Construct using com.pilosa.client.Internal.TranslateKeysResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(builder_scope:ImportValueRequest) - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } - // @@protoc_insertion_point(class_scope: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 clear() { + super.clear(); + iDs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - public static com.pilosa.client.Internal.ImportValueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.pilosa.client.Internal.internal_static_internal_TranslateKeysResponse_descriptor; + } - 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); - } - }; + @java.lang.Override + public com.pilosa.client.Internal.TranslateKeysResponse getDefaultInstanceForType() { + return com.pilosa.client.Internal.TranslateKeysResponse.getDefaultInstance(); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @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.google.protobuf.Parser getParserForType() { - return PARSER; - } + @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 com.pilosa.client.Internal.ImportValueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @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; + } + } + + 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 + 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.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_; + + 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 + public TranslateKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranslateKeysResponse(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.TranslateKeysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } public interface ImportRoaringRequestViewOrBuilder extends - // @@protoc_insertion_point(interface_extends:ImportRoaringRequestView) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(interface_extends:internal.ImportRoaringRequestView) + com.google.protobuf.MessageOrBuilder { /** * string Name = 1; @@ -15250,7 +16921,7 @@ public interface ImportRoaringRequestViewOrBuilder extends * string Name = 1; */ com.google.protobuf.ByteString - getNameBytes(); + getNameBytes(); /** * bytes Data = 2; @@ -15258,11 +16929,11 @@ public interface ImportRoaringRequestViewOrBuilder extends com.google.protobuf.ByteString getData(); } /** - * Protobuf type {@code ImportRoaringRequestView} + * Protobuf type {@code internal.ImportRoaringRequestView} */ public static final class ImportRoaringRequestView extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ImportRoaringRequestView) + // @@protoc_insertion_point(message_implements:internal.ImportRoaringRequestView) ImportRoaringRequestViewOrBuilder { private static final long serialVersionUID = 0L; // Use ImportRoaringRequestView.newBuilder() to construct. @@ -15321,22 +16992,23 @@ private ImportRoaringRequestView( } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( + throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequestView_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequestView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequestView_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequestView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ImportRoaringRequestView.class, com.pilosa.client.Internal.ImportRoaringRequestView.Builder.class); } @@ -15538,34 +17210,35 @@ public static Builder newBuilder() { public static Builder newBuilder(com.pilosa.client.Internal.ImportRoaringRequestView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override - public Builder toBuilder() { + + @java.lang.Override + public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code ImportRoaringRequestView} + * Protobuf type {@code internal.ImportRoaringRequestView} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ImportRoaringRequestView) + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:internal.ImportRoaringRequestView) com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequestView_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequestView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequestView_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequestView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ImportRoaringRequestView.class, com.pilosa.client.Internal.ImportRoaringRequestView.Builder.class); } @@ -15585,7 +17258,8 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override + + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -15598,7 +17272,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequestView_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequestView_descriptor; } @java.lang.Override @@ -15803,8 +17477,8 @@ public Builder clearData() { } @java.lang.Override public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override @@ -15814,10 +17488,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:ImportRoaringRequestView) + // @@protoc_insertion_point(builder_scope:internal.ImportRoaringRequestView) } - // @@protoc_insertion_point(class_scope: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(); @@ -15839,11 +17513,11 @@ public ImportRoaringRequestView parsePartialFrom( }; public static com.google.protobuf.Parser parser() { - return PARSER; + return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -15855,7 +17529,7 @@ public com.pilosa.client.Internal.ImportRoaringRequestView getDefaultInstanceFor } public interface ImportRoaringRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:ImportRoaringRequest) + // @@protoc_insertion_point(interface_extends:internal.ImportRoaringRequest) com.google.protobuf.MessageOrBuilder { /** @@ -15863,36 +17537,38 @@ public interface ImportRoaringRequestOrBuilder extends */ boolean getClear(); - /** - * repeated .ImportRoaringRequestView views = 2; - */ - java.util.List + /** + * repeated .internal.ImportRoaringRequestView views = 2; + */ + java.util.List getViewsList(); /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ com.pilosa.client.Internal.ImportRoaringRequestView getViews(int index); - /** - * repeated .ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ int getViewsCount(); /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ java.util.List getViewsOrBuilderList(); - /** - * repeated .ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder getViewsOrBuilder( int index); } /** - * Protobuf type {@code ImportRoaringRequest} + * Protobuf type {@code internal.ImportRoaringRequest} */ public static final class ImportRoaringRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ImportRoaringRequest) + // @@protoc_insertion_point(message_implements:internal.ImportRoaringRequest) ImportRoaringRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ImportRoaringRequest.newBuilder() to construct. @@ -15955,67 +17631,69 @@ private ImportRoaringRequest( 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)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { views_ = java.util.Collections.unmodifiableList(views_); } this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequest_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequest_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ImportRoaringRequest.class, com.pilosa.client.Internal.ImportRoaringRequest.Builder.class); } - private int bitField0_; - public static final int CLEAR_FIELD_NUMBER = 1; + private int bitField0_; + public static final int CLEAR_FIELD_NUMBER = 1; private boolean clear_; /** * bool Clear = 1; */ public boolean getClear() { - return clear_; + return clear_; } - public static final int VIEWS_FIELD_NUMBER = 2; + public static final int VIEWS_FIELD_NUMBER = 2; private java.util.List views_; /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public java.util.List getViewsList() { return views_; } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public java.util.List getViewsOrBuilderList() { return views_; } - /** - * repeated .ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public int getViewsCount() { return views_.size(); } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public com.pilosa.client.Internal.ImportRoaringRequestView getViews(int index) { return views_.get(index); } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder getViewsOrBuilder( int index) { @@ -16180,34 +17858,35 @@ public static Builder newBuilder() { public static Builder newBuilder(com.pilosa.client.Internal.ImportRoaringRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override - public Builder toBuilder() { + + @java.lang.Override + public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code ImportRoaringRequest} + * Protobuf type {@code internal.ImportRoaringRequest} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ImportRoaringRequest) + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:internal.ImportRoaringRequest) com.pilosa.client.Internal.ImportRoaringRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequest_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequest_fieldAccessorTable + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pilosa.client.Internal.ImportRoaringRequest.class, com.pilosa.client.Internal.ImportRoaringRequest.Builder.class); } @@ -16230,11 +17909,11 @@ private void maybeForceBuilderInitialization() { } @java.lang.Override public Builder clear() { - super.clear(); - clear_ = false; + super.clear(); + clear_ = false; - if (viewsBuilder_ == null) { - views_ = java.util.Collections.emptyList(); + if (viewsBuilder_ == null) { + views_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { viewsBuilder_.clear(); @@ -16245,7 +17924,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.pilosa.client.Internal.internal_static_ImportRoaringRequest_descriptor; + return com.pilosa.client.Internal.internal_static_internal_ImportRoaringRequest_descriptor; } @java.lang.Override @@ -16416,25 +18095,25 @@ public Builder clearClear() { private void ensureViewsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { views_ = new java.util.ArrayList(views_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.pilosa.client.Internal.ImportRoaringRequestView, com.pilosa.client.Internal.ImportRoaringRequestView.Builder, com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder> viewsBuilder_; - /** - * repeated .ImportRoaringRequestView views = 2; + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public java.util.List getViewsList() { if (viewsBuilder_ == null) { return java.util.Collections.unmodifiableList(views_); } else { - return viewsBuilder_.getMessageList(); + return viewsBuilder_.getMessageList(); } } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public int getViewsCount() { if (viewsBuilder_ == null) { @@ -16443,8 +18122,9 @@ public int getViewsCount() { return viewsBuilder_.getCount(); } } - /** - * repeated .ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public com.pilosa.client.Internal.ImportRoaringRequestView getViews(int index) { if (viewsBuilder_ == null) { @@ -16454,11 +18134,11 @@ public com.pilosa.client.Internal.ImportRoaringRequestView getViews(int index) { } } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder setViews( - int index, com.pilosa.client.Internal.ImportRoaringRequestView value) { - if (viewsBuilder_ == null) { + int index, com.pilosa.client.Internal.ImportRoaringRequestView value) { + if (viewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } @@ -16471,10 +18151,10 @@ public Builder setViews( return this; } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder setViews( - int index, com.pilosa.client.Internal.ImportRoaringRequestView.Builder builderForValue) { + int index, com.pilosa.client.Internal.ImportRoaringRequestView.Builder builderForValue) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.set(index, builderForValue.build()); @@ -16485,10 +18165,10 @@ public Builder setViews( return this; } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder addViews(com.pilosa.client.Internal.ImportRoaringRequestView value) { - if (viewsBuilder_ == null) { + if (viewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } @@ -16501,11 +18181,11 @@ public Builder addViews(com.pilosa.client.Internal.ImportRoaringRequestView valu return this; } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder addViews( - int index, com.pilosa.client.Internal.ImportRoaringRequestView value) { - if (viewsBuilder_ == null) { + int index, com.pilosa.client.Internal.ImportRoaringRequestView value) { + if (viewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } @@ -16518,10 +18198,10 @@ public Builder addViews( return this; } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder addViews( - com.pilosa.client.Internal.ImportRoaringRequestView.Builder builderForValue) { + com.pilosa.client.Internal.ImportRoaringRequestView.Builder builderForValue) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.add(builderForValue.build()); @@ -16532,10 +18212,10 @@ public Builder addViews( return this; } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder addViews( - int index, com.pilosa.client.Internal.ImportRoaringRequestView.Builder builderForValue) { + int index, com.pilosa.client.Internal.ImportRoaringRequestView.Builder builderForValue) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.add(index, builderForValue.build()); @@ -16546,7 +18226,7 @@ public Builder addViews( return this; } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder addAllViews( java.lang.Iterable values) { @@ -16560,8 +18240,9 @@ public Builder addAllViews( } return this; } - /** - * repeated .ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder clearViews() { if (viewsBuilder_ == null) { @@ -16571,30 +18252,32 @@ public Builder clearViews() { } else { viewsBuilder_.clear(); } - return this; + return this; } - /** - * repeated .ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public Builder removeViews(int index) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.remove(index); - onChanged(); + onChanged(); } else { - viewsBuilder_.remove(index); + viewsBuilder_.remove(index); } return this; } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public com.pilosa.client.Internal.ImportRoaringRequestView.Builder getViewsBuilder( int index) { return getViewsFieldBuilder().getBuilder(index); } - /** - * repeated .ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder getViewsOrBuilder( int index) { @@ -16604,7 +18287,7 @@ public com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder getViewsOrBu } } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public java.util.List getViewsOrBuilderList() { @@ -16614,15 +18297,17 @@ public com.pilosa.client.Internal.ImportRoaringRequestViewOrBuilder getViewsOrBu return java.util.Collections.unmodifiableList(views_); } } - /** - * repeated .ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public com.pilosa.client.Internal.ImportRoaringRequestView.Builder addViewsBuilder() { return getViewsFieldBuilder().addBuilder( com.pilosa.client.Internal.ImportRoaringRequestView.getDefaultInstance()); } - /** - * repeated .ImportRoaringRequestView views = 2; + + /** + * repeated .internal.ImportRoaringRequestView views = 2; */ public com.pilosa.client.Internal.ImportRoaringRequestView.Builder addViewsBuilder( int index) { @@ -16630,7 +18315,7 @@ public com.pilosa.client.Internal.ImportRoaringRequestView.Builder addViewsBuild index, com.pilosa.client.Internal.ImportRoaringRequestView.getDefaultInstance()); } /** - * repeated .ImportRoaringRequestView views = 2; + * repeated .internal.ImportRoaringRequestView views = 2; */ public java.util.List getViewsBuilderList() { @@ -16652,8 +18337,8 @@ public com.pilosa.client.Internal.ImportRoaringRequestView.Builder addViewsBuild } @java.lang.Override public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override @@ -16663,10 +18348,10 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:ImportRoaringRequest) + // @@protoc_insertion_point(builder_scope:internal.ImportRoaringRequest) } - // @@protoc_insertion_point(class_scope: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(); @@ -16688,267 +18373,297 @@ public ImportRoaringRequest parsePartialFrom( }; public static com.google.protobuf.Parser parser() { - return PARSER; + return PARSER; } - @java.lang.Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + return PARSER; + } - @java.lang.Override + @java.lang.Override public com.pilosa.client.Internal.ImportRoaringRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Row_descriptor; - private static final + internal_static_internal_Row_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Row_fieldAccessorTable; + internal_static_internal_Row_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_RowIdentifiers_descriptor; - private static final + internal_static_internal_RowIdentifiers_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_RowIdentifiers_fieldAccessorTable; + internal_static_internal_RowIdentifiers_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Pair_descriptor; - private static final + internal_static_internal_Pair_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Pair_fieldAccessorTable; + internal_static_internal_Pair_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_FieldRow_descriptor; - private static final + internal_static_internal_FieldRow_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_FieldRow_fieldAccessorTable; + internal_static_internal_FieldRow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GroupCount_descriptor; - private static final + internal_static_internal_GroupCount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GroupCount_fieldAccessorTable; + internal_static_internal_GroupCount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ValCount_descriptor; - private static final + internal_static_internal_ValCount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ValCount_fieldAccessorTable; + internal_static_internal_ValCount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Bit_descriptor; - private static final + internal_static_internal_Bit_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Bit_fieldAccessorTable; + internal_static_internal_Bit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ColumnAttrSet_descriptor; - private static final + internal_static_internal_ColumnAttrSet_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ColumnAttrSet_fieldAccessorTable; + internal_static_internal_ColumnAttrSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Attr_descriptor; - private static final + internal_static_internal_Attr_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Attr_fieldAccessorTable; + internal_static_internal_Attr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AttrMap_descriptor; - private static final + internal_static_internal_AttrMap_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AttrMap_fieldAccessorTable; + internal_static_internal_AttrMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_QueryRequest_descriptor; - private static final + internal_static_internal_QueryRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_QueryRequest_fieldAccessorTable; + internal_static_internal_QueryRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_QueryResponse_descriptor; - private static final + internal_static_internal_QueryResponse_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_QueryResponse_fieldAccessorTable; + internal_static_internal_QueryResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_QueryResult_descriptor; - private static final + internal_static_internal_QueryResult_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_QueryResult_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_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_ImportRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ImportValueRequest_descriptor; - private static final + internal_static_internal_ImportRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_internal_ImportValueRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ImportValueRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ImportRoaringRequestView_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_ImportRoaringRequestView_fieldAccessorTable; + 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 + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_internal_ImportRoaringRequestView_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ImportRoaringRequest_descriptor; + internal_static_internal_ImportRoaringRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_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\":\n\003Row\022\017\n\007Columns\030\001 \003(\004\022\014\n\004Keys\030\003 " + - "\003(\t\022\024\n\005Attrs\030\002 \003(\0132\005.Attr\",\n\016RowIdentifi" + - "ers\022\014\n\004Rows\030\001 \003(\004\022\014\n\004Keys\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\"" + - "(\n\010FieldRow\022\r\n\005Field\030\001 \001(\t\022\r\n\005RowID\030\002 \001(" + - "\004\"5\n\nGroupCount\022\030\n\005Group\030\001 \003(\0132\t.FieldRo" + - "w\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\"9\n\003Bit\022\r\n\005RowID\030\001 \001(\004\022\020" + - "\n\010ColumnID\030\002 \001(\004\022\021\n\tTimestamp\030\003 \001(\003\">\n\rC" + - "olumnAttrSet\022\n\n\002ID\030\001 \001(\004\022\013\n\003Key\030\003 \001(\t\022\024\n" + - "\005Attrs\030\002 \003(\0132\005.Attr\"o\n\004Attr\022\013\n\003Key\030\001 \001(\t" + - "\022\014\n\004Type\030\002 \001(\004\022\023\n\013StringValue\030\003 \001(\t\022\020\n\010I" + - "ntValue\030\004 \001(\003\022\021\n\tBoolValue\030\005 \001(\010\022\022\n\nFloa" + - "tValue\030\006 \001(\001\"\037\n\007AttrMap\022\024\n\005Attrs\030\001 \003(\0132\005" + - ".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\006Re" + - "mote\030\005 \001(\010\022\027\n\017ExcludeRowAttrs\030\006 \001(\010\022\026\n\016E" + - "xcludeColumns\030\007 \001(\010\"c\n\rQueryResponse\022\013\n\003" + - "Err\030\001 \001(\t\022\035\n\007Results\030\002 \003(\0132\014.QueryResult" + - "\022&\n\016ColumnAttrSets\030\003 \003(\0132\016.ColumnAttrSet" + - "\"\330\001\n\013QueryResult\022\014\n\004Type\030\006 \001(\r\022\021\n\003Row\030\001 " + - "\001(\0132\004.Row\022\t\n\001N\030\002 \001(\004\022\024\n\005Pairs\030\003 \003(\0132\005.Pa" + - "ir\022\017\n\007Changed\030\004 \001(\010\022\033\n\010ValCount\030\005 \001(\0132\t." + - "ValCount\022\016\n\006RowIDs\030\007 \003(\004\022 \n\013GroupCounts\030" + - "\010 \003(\0132\013.GroupCount\022\'\n\016RowIdentifiers\030\t \001" + - "(\0132\017.RowIdentifiers\"\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\nTi" + - "mestamps\030\006 \003(\003\"x\n\022ImportValueRequest\022\r\n\005" + - "Index\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(\003\"6\n\030ImportRoaringRequest" + - "View\022\014\n\004Name\030\001 \001(\t\022\014\n\004Data\030\002 \001(\014\"O\n\024Impo" + - "rtRoaringRequest\022\r\n\005Clear\030\001 \001(\010\022(\n\005views" + - "\030\002 \003(\0132\031.ImportRoaringRequestViewB\035\n\021com" + - ".pilosa.clientB\010Internalb\006proto3" + 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\"(\n\010FieldRow\022\r\n\005Field\030" + + "\001 \001(\t\022\r\n\005RowID\030\002 \001(\004\">\n\nGroupCount\022!\n\005Gr" + + "oup\030\001 \003(\0132\022.internal.FieldRow\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\"9\n\003Bit\022\r\n\005RowID\030\001 \001(\004\022\020\n\010ColumnID\030\002" + + " \001(\004\022\021\n\tTimestamp\030\003 \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(\013" + + "2\016.internal.Attr\"o\n\004Attr\022\013\n\003Key\030\001 \001(\t\022\014\n" + + "\004Type\030\002 \001(\004\022\023\n\013StringValue\030\003 \001(\t\022\020\n\010IntV" + + "alue\030\004 \001(\003\022\021\n\tBoolValue\030\005 \001(\010\022\022\n\nFloatVa" + + "lue\030\006 \001(\001\"(\n\007AttrMap\022\035\n\005Attrs\030\001 \003(\0132\016.in" + + "ternal.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\rQueryRespon" + + "se\022\013\n\003Err\030\001 \001(\t\022&\n\007Results\030\002 \003(\0132\025.inter" + + "nal.QueryResult\022/\n\016ColumnAttrSets\030\003 \003(\0132" + + "\027.internal.ColumnAttrSet\"\205\002\n\013QueryResult" + + "\022\014\n\004Type\030\006 \001(\r\022\032\n\003Row\030\001 \001(\0132\r.internal.R" + + "ow\022\t\n\001N\030\002 \001(\004\022\035\n\005Pairs\030\003 \003(\0132\016.internal." + + "Pair\022\017\n\007Changed\030\004 \001(\010\022$\n\010ValCount\030\005 \001(\0132" + + "\022.internal.ValCount\022\016\n\006RowIDs\030\007 \003(\004\022)\n\013G" + + "roupCounts\030\010 \003(\0132\024.internal.GroupCount\0220" + + "\n\016RowIdentifiers\030\t \001(\0132\030.internal.RowIde" + + "ntifiers\"\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\006RowID" + + "s\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\tColumn" + + "IDs\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\025Tra" + + "nslateKeysResponse\022\013\n\003IDs\030\003 \003(\004\"6\n\030Impor" + + "tRoaringRequestView\022\014\n\004Name\030\001 \001(\t\022\014\n\004Dat" + + "a\030\002 \001(\014\"X\n\024ImportRoaringRequest\022\r\n\005Clear" + + "\030\001 \001(\010\0221\n\005views\030\002 \003(\0132\".internal.ImportR" + + "oaringRequestViewB\035\n\021com.pilosa.clientB\010" + + "Internalb\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 - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{ }, assigner); - internal_static_Row_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Row_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Row_descriptor, - new java.lang.String[] { "Columns", "Keys", "Attrs", }); - internal_static_RowIdentifiers_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_RowIdentifiers_fieldAccessorTable = new + internal_static_internal_Row_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_internal_Row_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_RowIdentifiers_descriptor, - new java.lang.String[] { "Rows", "Keys", }); - internal_static_Pair_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_Pair_fieldAccessorTable = new + internal_static_internal_Row_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( + internal_static_internal_RowIdentifiers_descriptor, + new java.lang.String[]{"Rows", "Keys", }); + internal_static_internal_Pair_descriptor = + 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); + internal_static_internal_FieldRow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Pair_descriptor, - new java.lang.String[] { "ID", "Key", "Count", }); - internal_static_FieldRow_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_FieldRow_fieldAccessorTable = new + internal_static_internal_FieldRow_descriptor, + new java.lang.String[]{"Field", "RowID",}); + internal_static_internal_GroupCount_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_internal_GroupCount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_FieldRow_descriptor, - new java.lang.String[] { "Field", "RowID", }); - internal_static_GroupCount_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_GroupCount_fieldAccessorTable = new + 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 + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_internal_ValCount_descriptor, + new java.lang.String[]{"Val", "Count",}); + internal_static_internal_Bit_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_internal_Bit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GroupCount_descriptor, - new java.lang.String[] { "Group", "Count", }); - internal_static_ValCount_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_ValCount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ValCount_descriptor, - new java.lang.String[] { "Val", "Count", }); - internal_static_Bit_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_Bit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Bit_descriptor, - new java.lang.String[] { "RowID", "ColumnID", "Timestamp", }); - internal_static_ColumnAttrSet_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_ColumnAttrSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ColumnAttrSet_descriptor, - new java.lang.String[] { "ID", "Key", "Attrs", }); - internal_static_Attr_descriptor = + internal_static_internal_Bit_descriptor, + new java.lang.String[]{"RowID", "ColumnID", "Timestamp",}); + internal_static_internal_ColumnAttrSet_descriptor = + getDescriptor().getMessageTypes().get(7); + 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(8); - internal_static_Attr_fieldAccessorTable = new + internal_static_internal_Attr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Attr_descriptor, + internal_static_internal_Attr_descriptor, new java.lang.String[] { "Key", "Type", "StringValue", "IntValue", "BoolValue", "FloatValue", }); - internal_static_AttrMap_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_AttrMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AttrMap_descriptor, + internal_static_internal_AttrMap_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_internal_AttrMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_internal_AttrMap_descriptor, new java.lang.String[] { "Attrs", }); - internal_static_QueryRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_QueryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_QueryRequest_descriptor, - new java.lang.String[] { "Query", "Shards", "ColumnAttrs", "Remote", "ExcludeRowAttrs", "ExcludeColumns", }); - internal_static_QueryResponse_descriptor = + internal_static_internal_QueryRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + 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 = getDescriptor().getMessageTypes().get(11); - internal_static_QueryResponse_fieldAccessorTable = new + internal_static_internal_QueryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_QueryResponse_descriptor, + internal_static_internal_QueryResponse_descriptor, new java.lang.String[] { "Err", "Results", "ColumnAttrSets", }); - internal_static_QueryResult_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_QueryResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_QueryResult_descriptor, - new java.lang.String[] { "Type", "Row", "N", "Pairs", "Changed", "ValCount", "RowIDs", "GroupCounts", "RowIdentifiers", }); - internal_static_ImportRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_ImportRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ImportRequest_descriptor, - new java.lang.String[] { "Index", "Field", "Shard", "RowIDs", "ColumnIDs", "RowKeys", "ColumnKeys", "Timestamps", }); - internal_static_ImportValueRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_ImportValueRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ImportValueRequest_descriptor, - new java.lang.String[] { "Index", "Field", "Shard", "ColumnIDs", "ColumnKeys", "Values", }); - internal_static_ImportRoaringRequestView_descriptor = + internal_static_internal_QueryResult_descriptor = + getDescriptor().getMessageTypes().get(12); + 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(13); + 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(14); + 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(15); - internal_static_ImportRoaringRequestView_fieldAccessorTable = new + internal_static_internal_TranslateKeysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_internal_TranslateKeysRequest_descriptor, + new java.lang.String[]{"Index", "Field", "Keys",}); + internal_static_internal_TranslateKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_internal_TranslateKeysResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ImportRoaringRequestView_descriptor, + internal_static_internal_TranslateKeysResponse_descriptor, + new java.lang.String[]{"IDs",}); + internal_static_internal_ImportRoaringRequestView_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_internal_ImportRoaringRequestView_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_internal_ImportRoaringRequestView_descriptor, new java.lang.String[] { "Name", "Data", }); - internal_static_ImportRoaringRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_ImportRoaringRequest_fieldAccessorTable = new + internal_static_internal_ImportRoaringRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_internal_ImportRoaringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ImportRoaringRequest_descriptor, + internal_static_internal_ImportRoaringRequest_descriptor, new java.lang.String[] { "Clear", "Views", }); } 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 3fd854a..d02efc3 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 @@ -601,8 +601,15 @@ 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 if (records.isIndexKeys() || records.isFieldKeys()) { nodes = new ArrayList<>(); IFragmentNode node = fetchCoordinatorNode(); @@ -686,6 +693,36 @@ void importNode(ImportRequest request) { clientExecute("POST", request.getPath(), entity, request.getHeaders(), "Error while importing"); } + 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]; @@ -911,15 +948,15 @@ 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(); while (!Thread.currentThread().isInterrupted()) { try { @@ -939,7 +976,7 @@ public void run() { } shardRecords.add(record); batchCountDown -= 1; - if (strategy.equals(ImportOptions.Strategy.BATCH) && batchCountDown == 0) { + if (batchCountDown == 0) { for (Map.Entry entry : this.shardGroup.entrySet()) { shardRecords = entry.getValue(); if (shardRecords.size() > 0) { @@ -947,11 +984,6 @@ public void run() { } } 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; @@ -970,23 +1002,9 @@ 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(), @@ -1002,4 +1020,6 @@ private void importRecords(ShardRecords records) throws InterruptedException { private final BlockingQueue statusQueue; private final ImportOptions options; private Map shardGroup = new HashMap<>(); + private Map rowKeyToIDMap; + } 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..31c3126 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 @@ -85,6 +85,44 @@ public void clear() { this.columns.clear(); } + @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.rowKey); + this.columns.set(i, Column.create(rowID, oldCol.columnID)); + } + + // the columns in this batch are RowIDColumnID type now + this._isFieldKeys = false; + + return true; + } + @Override public ImportRequest toImportRequest() { if (this.roaring && !isIndexKeys() && !isFieldKeys()) { @@ -160,6 +198,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 +272,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..db92a9d 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) { @@ -83,6 +84,13 @@ public void clear() { 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..0652b1d 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(); @@ -51,5 +53,9 @@ public interface ShardRecords { void clear(); + boolean attemptTranslateKeys(PilosaClient client, + Map rowKeyToIDMap, + Map columnKeyToIDMap); + ImportRequest toImportRequest(); } 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 6b9b9a6..12c4bc2 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,8 +66,6 @@ public void testCreate() throws KeyManagementException, NoSuchAlgorithmException .setSocketTimeout(1000) .setRetryCount(5) .setSslContext(sslContext) - .setSkipVersionCheck() - .setLegacyMode(true) .setImportThreadCount(2) .setShardWidth(1024) .build(); From fe177b5d44780d3a2608cc1040ef132b41074907 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Mon, 3 Dec 2018 06:17:42 +0300 Subject: [PATCH 2/5] Fix loading fields --- com.pilosa.client/pom.xml | 2 +- .../java/integrationtest/PilosaClientIT.java | 42 ++++--- .../java/com/pilosa/client/ClientOptions.java | 11 -- .../pilosa/client/CsvFileColumnIterator.java | 2 +- .../java/com/pilosa/client/PilosaClient.java | 22 +++- .../java/com/pilosa/client/ShardColumns.java | 8 +- .../com/pilosa/client/ShardFieldValues.java | 2 +- .../java/com/pilosa/client/ShardRecords.java | 2 +- .../java/com/pilosa/client/orm/Field.java | 5 + .../com/pilosa/client/orm/FieldOptions.java | 7 +- .../java/com/pilosa/client/orm/Index.java | 12 ++ .../com/pilosa/client/orm/IndexOptions.java | 13 +++ .../java/com/pilosa/client/orm/Schema.java | 14 ++- .../com/pilosa/client/status/FieldInfo.java | 16 +++ .../com/pilosa/client/ClientOptionsTest.java | 2 - .../pilosa/client/orm/FieldOptionsTest.java | 18 +-- .../com/pilosa/client/orm/SchemaTest.java | 107 ++++++++++++++---- 17 files changed, 211 insertions(+), 74 deletions(-) diff --git a/com.pilosa.client/pom.xml b/com.pilosa.client/pom.xml index 0546b35..95de78f 100644 --- a/com.pilosa.client/pom.xml +++ b/com.pilosa.client/pom.xml @@ -137,7 +137,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.19.1 + 3.0.0-M1 ${skip.unit.tests} 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 f542710..3196f32 100644 --- a/com.pilosa.client/src/integration-test/java/integrationtest/PilosaClientIT.java +++ b/com.pilosa.client/src/integration-test/java/integrationtest/PilosaClientIT.java @@ -993,25 +993,35 @@ public void getEmptySchemaTest() throws IOException { @Test public void syncSchemaTest() throws IOException { - Index remoteIndex = Index.create("remote-index-1"); - Field remoteField = remoteIndex.field("remote-field-1"); - Schema schema1 = Schema.defaultSchema(); - Index index11 = schema1.index("diff-index1"); - index11.field("field1-1"); - index11.field("field1-2"); - Index index12 = schema1.index("diff-index2"); - index12.field("field2-1"); - schema1.index(remoteIndex.getName()); - + Index index = null; try (PilosaClient client = this.getClient()) { - client.ensureIndex(remoteIndex); - client.ensureField(remoteField); - client.syncSchema(schema1); + Schema schema = client.readSchema(); + IndexOptions indexOptions = IndexOptions.builder() + .setKeys(true) + .setTrackExistence(true) + .build(); + index = schema.index("index11", indexOptions); + FieldOptions fieldOptions = FieldOptions.builder() + .setKeys(true) + .fieldSet(CacheType.RANKED, 50000) + .build(); + index.field("index11-f1", fieldOptions); + client.syncSchema(schema); + + Schema schema2 = client.readSchema(); + Index index2 = schema2.index("index11"); + assertEquals(index, index2); + + Schema schema3 = Schema.defaultSchema(); + client.syncSchema(schema3); + Index index3 = schema3.index("index11"); + assertEquals(index, index3); + } finally { try (PilosaClient client = this.getClient()) { - client.deleteIndex(remoteIndex); - client.deleteIndex(index11); - client.deleteIndex(index12); + if (index != null) { + client.deleteIndex(index); + } } } } 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 d520423..f86b234 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 setImportThreadCount(int threadCount) { - this.importThreadCount = threadCount; - return this; - } - public Builder setShardWidth(long shardWidth) { this.shardWidth = shardWidth; return this; @@ -185,10 +180,6 @@ public SSLContext getSslContext() { return this.sslContext; } - public int getImportThreadCount() { - return this.importThreadCount; - } - public long getShardWidth() { return this.shardWidth; } @@ -203,7 +194,6 @@ private ClientOptions(final int socketTimeout, final int connectTimeout, final i this.connectionPoolSizePerRoute = connectionPoolSizePerRoute; this.connectionPoolTotalSize = connectionPoolTotalSize; this.sslContext = sslContext; - this.importThreadCount = importThreadCount; this.shardWidth = shardWidth; } @@ -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 int importThreadCount; private final long shardWidth; } diff --git a/com.pilosa.client/src/main/java/com/pilosa/client/CsvFileColumnIterator.java b/com.pilosa.client/src/main/java/com/pilosa/client/CsvFileColumnIterator.java index 040b97c..620e9d0 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/CsvFileColumnIterator.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/CsvFileColumnIterator.java @@ -56,7 +56,7 @@ * * @see Importing and Exporting Data */ -public class CsvFileColumnIterator implements ColumnIterator { +public class CsvFileColumnIterator implements RecordIterator { private CsvFileColumnIterator(SimpleDateFormat timestampFormat) { this.timestampFormat = timestampFormat; if (this.timestampFormat != null) { 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 d02efc3..e10066f 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 @@ -350,6 +350,10 @@ public Schema readSchema() { List fields = indexInfo.getFields(); if (fields != null) { for (IFieldInfo fieldInfo : indexInfo.getFields()) { + // do not read system indexes + if (systemFields.contains(fieldInfo.getName())) { + continue; + } index.field(fieldInfo.getName(), fieldInfo.getOptions()); } } @@ -392,6 +396,10 @@ public void syncSchema(Schema schema) { } else { Index localIndex = schema.getIndexes().get(indexName); for (Map.Entry fieldEntry : index.getFields().entrySet()) { + // do not read system indexes + if (systemFields.contains(fieldEntry.getKey())) { + continue; + } localIndex.field(fieldEntry.getValue()); } } @@ -760,6 +768,8 @@ private enum ReturnClientResponse { new BasicHeader("Accept", "application/x-protobuf"), new BasicHeader("PQL-Version", PQL_VERSION) }; + + systemFields = Collections.singletonList("exists"); } private static final ObjectMapper mapper; @@ -768,6 +778,7 @@ private enum ReturnClientResponse { private static final int MAX_HOSTS = 10; private static final Header[] protobufHeaders; private static final Logger logger = LoggerFactory.getLogger("pilosa"); + private static List systemFields; private Cluster cluster; private URI currentAddress; private CloseableHttpClient client = null; @@ -957,6 +968,7 @@ class BitImportWorker implements Runnable { public void run() { final long shardWidth = this.options.getShardWidth(); int batchCountDown = this.options.getBatchSize(); + Map shardGroup = new HashMap<>(); while (!Thread.currentThread().isInterrupted()) { try { @@ -976,8 +988,8 @@ public void run() { } shardRecords.add(record); batchCountDown -= 1; - if (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()); @@ -990,7 +1002,7 @@ public void run() { } } // 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 { @@ -1011,7 +1023,7 @@ private void importRecords(ShardRecords records) throws InterruptedException { records.getShard(), records.size(), tac - tic); this.statusQueue.offer(statusUpdate, 1, TimeUnit.SECONDS); } - records.clear(); + records.reset(); } private final PilosaClient client; @@ -1019,7 +1031,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/ShardColumns.java b/com.pilosa.client/src/main/java/com/pilosa/client/ShardColumns.java index 31c3126..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 @@ -81,8 +81,10 @@ 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 @@ -113,8 +115,8 @@ public boolean attemptTranslateKeys(PilosaClient client, // 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.rowKey); - this.columns.set(i, Column.create(rowID, oldCol.columnID)); + long rowID = rowKeyToIDMap.get(oldCol.getRowKey()); + this.columns.set(i, Column.create(rowID, oldCol.getColumnID())); } // the columns in this batch are RowIDColumnID type now 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 db92a9d..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 @@ -80,7 +80,7 @@ public void add(Record record) { } @Override - public void clear() { + public void reset() { this.fieldValues.clear(); } 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 0652b1d..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 @@ -51,7 +51,7 @@ public interface ShardRecords { void add(Record record); - void clear(); + void reset(); boolean attemptTranslateKeys(PilosaClient client, Map rowKeyToIDMap, 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 f8a98ac..937a923 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 @@ -939,6 +939,11 @@ public int hashCode() { .toHashCode(); } + @Override + public String toString() { + return String.format("%s(%s)", this.name, this.getOptions().toString()); + } + /** * Creates a field. * 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 6988f95..55ed6af 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 @@ -223,7 +223,6 @@ public FieldOptions build() { private long min = 0; private long max = 0; private boolean keys = false; - } /** @@ -296,9 +295,9 @@ public String toString() { case TIME: options.put("timeQuantum", this.timeQuantum.toString()); } - if (this.keys) { - options.put("keys", true); - } + + 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 1545cf6..cee5f4d 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 @@ -335,6 +335,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 752b72d..8a8f4f3 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 @@ -90,6 +90,7 @@ public Builder keys(boolean enable) { * * @param enable * @return IndexOptions builder + * @deprecated */ public Builder trackExistence(boolean enable) { @@ -97,6 +98,18 @@ public Builder trackExistence(boolean enable) { return this; } + /** + * Enables keeping track of existence which is required for Not query + * + * @param enable + * @return IndexOptions builder + */ + + public Builder setTrackExistence(boolean enable) { + this.trackExistence = enable; + return this; + } + /** * Creates the FieldOptions object. * 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 2c82256..adf541a 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 @@ -84,7 +84,7 @@ public Index index(String name, IndexOptions options) { */ public Index index(Index other) { Index index = this.index(other.getName(), other.getOptions()); - for (Map.Entry fieldEntry : index.getFields().entrySet()) { + for (Map.Entry fieldEntry : other.getFields().entrySet()) { Field field = fieldEntry.getValue(); index.field(field.getName(), field.getOptions()); } @@ -143,5 +143,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/main/java/com/pilosa/client/status/FieldInfo.java b/com.pilosa.client/src/main/java/com/pilosa/client/status/FieldInfo.java index 2b90cf3..ce5445c 100644 --- a/com.pilosa.client/src/main/java/com/pilosa/client/status/FieldInfo.java +++ b/com.pilosa.client/src/main/java/com/pilosa/client/status/FieldInfo.java @@ -71,12 +71,22 @@ FieldOptions getOptions() { case SET: builder = builder.fieldSet(this.cacheType, this.cacheSize); break; + case MUTEX: + builder = builder.fieldMutex(this.cacheType, this.cacheSize); + break; + case BOOL: + builder = builder.fieldBool(); + break; case INT: builder = builder.fieldInt(this.min, this.max); break; case TIME: builder = builder.fieldTime(this.timeQuantum); + break; } + + builder.setKeys(this.keys); + return builder.build(); } @@ -115,10 +125,16 @@ void setMax(long max) { this.max = max; } + @JsonProperty("keys") + void setKeys(boolean keys) { + this.keys = keys; + } + private TimeQuantum timeQuantum = TimeQuantum.NONE; private CacheType cacheType = CacheType.DEFAULT; private int cacheSize = 0; private FieldType fieldType = FieldType.DEFAULT; private long min = 0; private long max = 0; + private boolean keys = false; } 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 12c4bc2..6077fdc 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) - .setImportThreadCount(2) .setShardWidth(1024) .build(); assertEquals(2, options.getConnectionPoolSizePerRoute()); @@ -75,7 +74,6 @@ public void testCreate() throws KeyManagementException, NoSuchAlgorithmException assertEquals(1000, options.getSocketTimeout()); assertEquals(5, options.getRetryCount()); assertEquals(sslContext, options.getSslContext()); - assertEquals(2, options.getImportThreadCount()); assertEquals(1024, options.getShardWidth()); } } 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 0dd902a..0c036c1 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 @@ -65,14 +65,14 @@ public void testSetFieldOptions() { .fieldSet(CacheType.RANKED) .build(); compare(options, FieldType.SET, TimeQuantum.NONE, CacheType.RANKED, 0, 0, 0); - target = "{\"options\":{\"type\":\"set\",\"cacheType\":\"ranked\"}}"; + target = "{\"options\":{\"keys\":false,\"type\":\"set\",\"cacheType\":\"ranked\"}}"; assertArrayEquals(stringToSortedChars(target), stringToSortedChars(options.toString())); options = FieldOptions.builder() .fieldSet() .build(); compare(options, FieldType.SET, TimeQuantum.NONE, CacheType.DEFAULT, 0, 0, 0); - target = "{\"options\":{\"type\":\"set\"}}"; + target = "{\"options\":{\"keys\":false,\"type\":\"set\"}}"; assertArrayEquals(stringToSortedChars(target), stringToSortedChars(options.toString())); } @@ -82,7 +82,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())); } @@ -92,7 +92,7 @@ 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())); } @@ -103,7 +103,7 @@ public void testMutexFieldOptions() { options = FieldOptions.builder() .fieldMutex(CacheType.RANKED, 1000) - .keys(true) + .setKeys(true) .build(); compare(options, FieldType.MUTEX, TimeQuantum.NONE, CacheType.RANKED, 1000, 0, 0); target = "{\"options\":{\"keys\":true,\"type\":\"mutex\",\"cacheSize\":1000,\"cacheType\":\"ranked\"}}"; @@ -113,14 +113,14 @@ public void testMutexFieldOptions() { .fieldMutex(CacheType.RANKED) .build(); compare(options, FieldType.MUTEX, TimeQuantum.NONE, CacheType.RANKED, 0, 0, 0); - target = "{\"options\":{\"type\":\"mutex\",\"cacheType\":\"ranked\"}}"; + target = "{\"options\":{\"keys\":false,\"type\":\"mutex\",\"cacheType\":\"ranked\"}}"; assertArrayEquals(stringToSortedChars(target), stringToSortedChars(options.toString())); options = FieldOptions.builder() .fieldMutex() .build(); compare(options, FieldType.MUTEX, TimeQuantum.NONE, CacheType.DEFAULT, 0, 0, 0); - target = "{\"options\":{\"type\":\"mutex\"}}"; + target = "{\"keys\":false,\"options\":{\"type\":\"mutex\"}}"; assertArrayEquals(stringToSortedChars(target), stringToSortedChars(options.toString())); } @@ -130,7 +130,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())); } @@ -138,7 +138,7 @@ public void testBoolFieldOptions() { @Test public void testKeysOption() { FieldOptions options = FieldOptions.builder() - .keys(true) + .setKeys(true) .build(); assertTrue(options.isKeys()); } diff --git a/com.pilosa.client/src/test/java/com/pilosa/client/orm/SchemaTest.java b/com.pilosa.client/src/test/java/com/pilosa/client/orm/SchemaTest.java index a0bc8cb..67a7c57 100644 --- a/com.pilosa.client/src/test/java/com/pilosa/client/orm/SchemaTest.java +++ b/com.pilosa.client/src/test/java/com/pilosa/client/orm/SchemaTest.java @@ -44,28 +44,75 @@ public class SchemaTest { @Test public void diffTest() { + // Create schema1 + /* + schema1 + |___ index11 + | |___ index11-f1 + | |___ index11-f2 [keys] + | + |___ index12 [keys] + | |___ index12-f1 + | + |___ index13 [keys] + |___ index13-f1 [keys] + */ Schema schema1 = Schema.defaultSchema(); - Index index11 = schema1.index("diff-index1"); - index11.field("field1-1"); - index11.field("field1-2"); - Index index12 = schema1.index("diff-index2", - IndexOptions.builder().keys(true).build()); - index12.field("field2-1"); + Index index11 = makeIndex(schema1, "index11"); + makeField(index11, "index11-f1"); + makeField(index11, "index11-f2", true); + Index index12 = makeIndex(schema1, "index12", true); + makeField(index12, "index12-f1"); + + Index index13 = makeIndex(schema1, "index13", true); + makeField(index13, "index13-f1", true); + + // Create schema2 + /* + schema2 + |___ index21 + | |___ index21-f1 + | + |___ index13 [keys] + |___ index13-f2 + */ Schema schema2 = Schema.defaultSchema(); - Index index21 = schema2.index("diff-index1"); - index21.field("another-field"); - - Schema targetDiff12 = Schema.defaultSchema(); - Index targetIndex1 = targetDiff12.index("diff-index1"); - targetIndex1.field("field1-1"); - targetIndex1.field("field1-2"); - Index targetIndex2 = targetDiff12.index("diff-index2", - IndexOptions.builder().keys(true).build()); - targetIndex2.field("field2-1"); - - Schema diff12 = schema1.diff(schema2); - assertEquals(targetDiff12, diff12); + Index index21 = makeIndex(schema2, "index21"); + makeField(index21, "index21-f1"); + + Index s2Index13 = makeIndex(schema2, "index13", true); + makeField(s2Index13, "index13-f2"); + + // target schema1 - schema2 + /* + target + |___ index11 + | |___ index11-f1 + | |___ index11-f2 [keys] + | + |___ index12 [keys] + | |___ index12-f1 + | + |___ index13 [keys] + |___ index13-f1 [keys] + + */ + Schema target = Schema.defaultSchema(); + Index targetIndex11 = makeIndex(target, "index11"); + makeField(targetIndex11, "index11-f1"); + makeField(targetIndex11, "index11-f2", true); + + Index targetIndex12 = makeIndex(target, "index12", true); + makeField(targetIndex12, "index12-f1"); + + Index targetIndex13 = makeIndex(target, "index13", true); + makeField(targetIndex13, "index13-f1", true); + + // schema1 - schema2 + Schema diff = schema1.diff(schema2); + assertEquals(target, diff); + } @Test @@ -107,4 +154,26 @@ public void testHashCode() { schema2.index("foo"); assertEquals(schema1.hashCode(), schema2.hashCode()); } + + private Index makeIndex(Schema schema, String name) { + return schema.index(name); + } + + private Index makeIndex(Schema schema, String name, boolean hasKeys) { + IndexOptions options = IndexOptions.builder() + .setKeys(true) + .build(); + return schema.index(name, options); + } + + private Field makeField(Index index, String name) { + return index.field(name); + } + + private Field makeField(Index index, String name, boolean hasKeys) { + FieldOptions options = FieldOptions.builder() + .setKeys(true) + .build(); + return index.field(name, options); + } } From fe4ceff24faa8e5df24df4f3acabb79220b0562c Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Fri, 7 Dec 2018 14:56:35 +0300 Subject: [PATCH 3/5] updates --- com.pilosa.client/pom.xml | 2 +- .../main/java/com/pilosa/client/PilosaClient.java | 13 +++++++------ .../test/java/com/pilosa/client/FieldValueTest.java | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/com.pilosa.client/pom.xml b/com.pilosa.client/pom.xml index 95de78f..3577213 100644 --- a/com.pilosa.client/pom.xml +++ b/com.pilosa.client/pom.xml @@ -300,7 +300,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.10.4 + 3.0.1 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 e10066f..59ac96f 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 @@ -618,10 +618,10 @@ void importColumns(ShardRecords records, Map rowKeyToColumnIDMap) // should we attempt to convert keys to IDs? boolean success = records.attemptTranslateKeys(this, rowKeyToColumnIDMap, null); // TODO: log success - if (records.isIndexKeys() || records.isFieldKeys()) { + if (success || records.isIndexKeys() || records.isFieldKeys()) { nodes = new ArrayList<>(); - IFragmentNode node = fetchCoordinatorNode(); - nodes.add(node); + updateCoordinatorAddress(); + nodes.add(this.coordinatorNode); } else { nodes = fetchFragmentNodes(indexName, records.getShard()); } @@ -747,8 +747,8 @@ private String makeUserAgent() { private synchronized void updateCoordinatorAddress() { if (this.coordinatorAddress == null) { - IFragmentNode node = fetchCoordinatorNode(); - this.coordinatorAddress = node.toURI(); + this.coordinatorNode = fetchCoordinatorNode(); + this.coordinatorAddress = this.coordinatorNode.toURI(); } } @@ -784,7 +784,8 @@ private enum ReturnClientResponse { private CloseableHttpClient client = null; private ClientOptions options; private Map> fragmentNodeCache = null; - private URI coordinatorAddress; + private URI coordinatorAddress = null; + private IFragmentNode coordinatorNode = null; } class QueryRequest { diff --git a/com.pilosa.client/src/test/java/com/pilosa/client/FieldValueTest.java b/com.pilosa.client/src/test/java/com/pilosa/client/FieldValueTest.java index fa7b5d7..f404aba 100644 --- a/com.pilosa.client/src/test/java/com/pilosa/client/FieldValueTest.java +++ b/com.pilosa.client/src/test/java/com/pilosa/client/FieldValueTest.java @@ -34,11 +34,11 @@ package com.pilosa.client; -import edu.emory.mathcs.backport.java.util.Collections; import org.junit.Test; import org.junit.experimental.categories.Category; import java.util.Arrays; +import java.util.Collections; import java.util.List; import static org.junit.Assert.*; From 1b98a1dcfed591727d1eed88515d047e83bbe080 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Wed, 12 Dec 2018 04:45:31 +0300 Subject: [PATCH 4/5] Do not create new client instances on import --- .../java/com/pilosa/client/ImportRequest.java | 12 +++-- .../java/com/pilosa/client/PilosaClient.java | 45 +++++++++++++------ .../com/pilosa/client/PilosaClientTest.java | 2 +- 3 files changed, 41 insertions(+), 18 deletions(-) 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/PilosaClient.java b/com.pilosa.client/src/main/java/com/pilosa/client/PilosaClient.java index 59ac96f..a2484b7 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 @@ -502,7 +502,7 @@ private CloseableHttpResponse clientExecute(final String method, final String pa HttpRequestBase request = makeRequest(method, path, data, headers, useCoordinator); logger.debug("Request: {} {}", request.getMethod(), request.getURI()); try { - response = client.execute(request); + response = clientExecute(request, errorMessage, returnResponse); break; } catch (IOException ex) { if (useCoordinator) { @@ -518,11 +518,19 @@ private CloseableHttpResponse clientExecute(final String method, final String pa if (response == null) { throw new PilosaException(String.format("Tried %s hosts, still failing", MAX_HOSTS)); } - Header warningHeader = response.getFirstHeader("warning"); - if (warningHeader != null) { - logger.warn(warningHeader.getValue()); + return response; + } + + private CloseableHttpResponse clientExecute(HttpRequestBase request, String errorMessage, ReturnClientResponse returnResponse) throws IOException { + if (this.client == null) { + connect(); } try { + CloseableHttpResponse response = client.execute(request); + Header warningHeader = response.getFirstHeader("warning"); + if (warningHeader != null) { + logger.warn(warningHeader.getValue()); + } if (returnResponse != ReturnClientResponse.RAW_RESPONSE) { int statusCode = response.getStatusLine().getStatusCode(); if (statusCode < 200 || statusCode >= 300) { @@ -556,15 +564,19 @@ private CloseableHttpResponse clientExecute(final String method, final String pa } HttpRequestBase makeRequest(final String method, final String path, final ByteArrayEntity data, final Header[] headers, boolean useCoordinator) { - HttpRequestBase request; String uri; if (useCoordinator) { updateCoordinatorAddress(); - uri = this.coordinatorAddress.getNormalized() + path; + uri = this.coordinatorAddress.getNormalized(); } else { - uri = this.getAddress() + path; + uri = this.getAddress(); } + return makeRequest(method, path, data, headers, uri); + } + HttpRequestBase makeRequest(final String method, final String path, final ByteArrayEntity data, final Header[] headers, String hostUri) { + HttpRequestBase request; + String uri = hostUri + path; switch (method) { case "GET": request = new HttpGet(uri); @@ -618,7 +630,8 @@ void importColumns(ShardRecords records, Map rowKeyToColumnIDMap) // should we attempt to convert keys to IDs? boolean success = records.attemptTranslateKeys(this, rowKeyToColumnIDMap, null); // TODO: log success - if (success || records.isIndexKeys() || records.isFieldKeys()) { + ImportRequest importRequest = records.toImportRequest(); + if (importRequest.isRoaring() || records.isIndexKeys() || records.isFieldKeys()) { nodes = new ArrayList<>(); updateCoordinatorAddress(); nodes.add(this.coordinatorNode); @@ -626,10 +639,9 @@ void importColumns(ShardRecords records, Map rowKeyToColumnIDMap) nodes = fetchFragmentNodes(indexName, records.getShard()); } for (IFragmentNode node : nodes) { - Cluster cluster = Cluster.withHost(node.toURI()); - PilosaClient client = this.newClientInstance(cluster, this.options); - ImportRequest importRequest = records.toImportRequest(); - client.importNode(importRequest); +// Cluster cluster = Cluster.withHost(node.toURI()); +// PilosaClient client = this.newClientInstance(cluster, this.options); + importNode(node.toURI().getNormalized(), importRequest); } } @@ -696,9 +708,14 @@ IFragmentNode fetchCoordinatorNode() { } } - void importNode(ImportRequest request) { + void importNode(String hostUri, ImportRequest request) { ByteArrayEntity entity = new ByteArrayEntity(request.getPayload()); - clientExecute("POST", request.getPath(), entity, request.getHeaders(), "Error while importing"); + HttpRequestBase httpRequest = makeRequest("POST", request.getPath(), entity, request.getHeaders(), hostUri); + try { + clientExecute(httpRequest, "Error while importing", ReturnClientResponse.ERROR_CHECKED_RESPONSE); + } catch (IOException e) { + throw new PilosaException(String.format("Error connecting to host: %s", hostUri)); + } } public List translateKeys(Field field, List keys) { diff --git a/com.pilosa.client/src/test/java/com/pilosa/client/PilosaClientTest.java b/com.pilosa.client/src/test/java/com/pilosa/client/PilosaClientTest.java index 82a19af..8008f7a 100644 --- a/com.pilosa.client/src/test/java/com/pilosa/client/PilosaClientTest.java +++ b/com.pilosa.client/src/test/java/com/pilosa/client/PilosaClientTest.java @@ -74,7 +74,7 @@ public void importNodeTest() throws IOException { Index index = schema.index("foo"); Field field = index.field("bar"); ImportRequest request = ImportRequest.createCSVImport(field, new byte[]{0}, false); - client.importNode(request); + client.importNode("non-existent-domain-555.com:19000", request); } } From 7b82e0b164beab9245f2fc6a057ea094cbbb4d83 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Fri, 14 Dec 2018 18:08:40 +0300 Subject: [PATCH 5/5] updated roaring dependency; enable creating uber jars --- com.pilosa.client/pom.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/com.pilosa.client/pom.xml b/com.pilosa.client/pom.xml index 3577213..47e53df 100644 --- a/com.pilosa.client/pom.xml +++ b/com.pilosa.client/pom.xml @@ -183,7 +183,6 @@ - @@ -306,7 +307,7 @@ com.pilosa roaring - 0.1 + 0.2 @@ -317,6 +318,7 @@ UTF-8 ${maven.build.timestamp} yyyy-MM-dd HH:mm:ss + pilosa-client-${project.version}-uber