Return-Path: X-Original-To: apmail-eagle-commits-archive@minotaur.apache.org Delivered-To: apmail-eagle-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1B6018BE8 for ; Thu, 3 Mar 2016 18:09:59 +0000 (UTC) Received: (qmail 52054 invoked by uid 500); 3 Mar 2016 18:09:59 -0000 Delivered-To: apmail-eagle-commits-archive@eagle.apache.org Received: (qmail 52017 invoked by uid 500); 3 Mar 2016 18:09:59 -0000 Mailing-List: contact commits-help@eagle.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@eagle.incubator.apache.org Delivered-To: mailing list commits@eagle.incubator.apache.org Received: (qmail 52004 invoked by uid 99); 3 Mar 2016 18:09:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2016 18:09:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0167FC6ECA for ; Thu, 3 Mar 2016 18:09:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5LBvNuraIg10 for ; Thu, 3 Mar 2016 18:09:52 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id EDE8860D59 for ; Thu, 3 Mar 2016 18:09:37 +0000 (UTC) Received: (qmail 51095 invoked by uid 99); 3 Mar 2016 18:09:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2016 18:09:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AA603E78FD; Thu, 3 Mar 2016 18:09:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hao@apache.org To: commits@eagle.incubator.apache.org Date: Thu, 03 Mar 2016 18:09:41 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [08/51] [partial] incubator-eagle git commit: EAGLE-184 Migrate eagle website from https://github.com/eaglemonitoring/eaglemonitoring.github.io to document branch http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/0ea130ef/eagle-core/eagle-query/eagle-storage-hbase/src/main/java/org/apache/eagle/storage/hbase/query/coprocessor/generated/AggregateProtos.java ---------------------------------------------------------------------- diff --git a/eagle-core/eagle-query/eagle-storage-hbase/src/main/java/org/apache/eagle/storage/hbase/query/coprocessor/generated/AggregateProtos.java b/eagle-core/eagle-query/eagle-storage-hbase/src/main/java/org/apache/eagle/storage/hbase/query/coprocessor/generated/AggregateProtos.java deleted file mode 100644 index 2aee11b..0000000 --- a/eagle-core/eagle-query/eagle-storage-hbase/src/main/java/org/apache/eagle/storage/hbase/query/coprocessor/generated/AggregateProtos.java +++ /dev/null @@ -1,4214 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AggregateProtocol.proto - -package org.apache.eagle.storage.hbase.query.coprocessor.generated; - -import com.google.protobuf.AbstractMessage; - -public final class AggregateProtos { - private AggregateProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface EntityDefinitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:EntityDefinition) - com.google.protobuf.MessageOrBuilder { - - /** - * required bytes byte_array = 1; - */ - boolean hasByteArray(); - /** - * required bytes byte_array = 1; - */ - com.google.protobuf.ByteString getByteArray(); - } - /** - * Protobuf type {@code EntityDefinition} - */ - public static final class EntityDefinition extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:EntityDefinition) - EntityDefinitionOrBuilder { - // Use EntityDefinition.newBuilder() to construct. - private EntityDefinition(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EntityDefinition(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EntityDefinition defaultInstance; - public static EntityDefinition getDefaultInstance() { - return defaultInstance; - } - - public EntityDefinition getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EntityDefinition( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - byteArray_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AggregateProtos.internal_static_EntityDefinition_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return AggregateProtos.internal_static_EntityDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - AggregateProtos.EntityDefinition.class, AggregateProtos.EntityDefinition.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EntityDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityDefinition(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int BYTE_ARRAY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString byteArray_; - /** - * required bytes byte_array = 1; - */ - public boolean hasByteArray() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes byte_array = 1; - */ - public com.google.protobuf.ByteString getByteArray() { - return byteArray_; - } - - private void initFields() { - byteArray_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasByteArray()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, byteArray_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, byteArray_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof AggregateProtos.EntityDefinition)) { - return super.equals(obj); - } - AggregateProtos.EntityDefinition other = (AggregateProtos.EntityDefinition) obj; - - boolean result = true; - result = result && (hasByteArray() == other.hasByteArray()); - if (hasByteArray()) { - result = result && getByteArray() - .equals(other.getByteArray()); - } - result = result && - getUnknownFields().equals(other.getUnknownFields()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - if (hasByteArray()) { - hash = (37 * hash) + BYTE_ARRAY_FIELD_NUMBER; - hash = (53 * hash) + getByteArray().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static AggregateProtos.EntityDefinition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static AggregateProtos.EntityDefinition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static AggregateProtos.EntityDefinition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static AggregateProtos.EntityDefinition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static AggregateProtos.EntityDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static AggregateProtos.EntityDefinition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static AggregateProtos.EntityDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static AggregateProtos.EntityDefinition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static AggregateProtos.EntityDefinition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static AggregateProtos.EntityDefinition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(AggregateProtos.EntityDefinition prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code EntityDefinition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:EntityDefinition) - AggregateProtos.EntityDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AggregateProtos.internal_static_EntityDefinition_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return AggregateProtos.internal_static_EntityDefinition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - AggregateProtos.EntityDefinition.class, AggregateProtos.EntityDefinition.Builder.class); - } - - // Construct using eagle.storage.hbase.query.coprocessor.generated.AggregateProtos.EntityDefinition.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - byteArray_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return AggregateProtos.internal_static_EntityDefinition_descriptor; - } - - public AggregateProtos.EntityDefinition getDefaultInstanceForType() { - return AggregateProtos.EntityDefinition.getDefaultInstance(); - } - - public AggregateProtos.EntityDefinition build() { - AggregateProtos.EntityDefinition result = buildPartial(); - if (!result.isInitialized()) { - throw AbstractMessage.Builder.newUninitializedMessageException(result); - } - return result; - } - - public AggregateProtos.EntityDefinition buildPartial() { - AggregateProtos.EntityDefinition result = new AggregateProtos.EntityDefinition(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.byteArray_ = byteArray_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof AggregateProtos.EntityDefinition) { - return mergeFrom((AggregateProtos.EntityDefinition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(AggregateProtos.EntityDefinition other) { - if (other == AggregateProtos.EntityDefinition.getDefaultInstance()) return this; - if (other.hasByteArray()) { - setByteArray(other.getByteArray()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasByteArray()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - AggregateProtos.EntityDefinition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (AggregateProtos.EntityDefinition) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString byteArray_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes byte_array = 1; - */ - public boolean hasByteArray() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes byte_array = 1; - */ - public com.google.protobuf.ByteString getByteArray() { - return byteArray_; - } - /** - * required bytes byte_array = 1; - */ - public Builder setByteArray(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - byteArray_ = value; - onChanged(); - return this; - } - /** - * required bytes byte_array = 1; - */ - public Builder clearByteArray() { - bitField0_ = (bitField0_ & ~0x00000001); - byteArray_ = getDefaultInstance().getByteArray(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:EntityDefinition) - } - - static { - defaultInstance = new EntityDefinition(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:EntityDefinition) - } - - public interface AggregateResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:AggregateResult) - com.google.protobuf.MessageOrBuilder { - - /** - * required bytes byte_array = 1; - */ - boolean hasByteArray(); - /** - * required bytes byte_array = 1; - */ - com.google.protobuf.ByteString getByteArray(); - } - /** - * Protobuf type {@code AggregateResult} - */ - public static final class AggregateResult extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:AggregateResult) - AggregateResultOrBuilder { - // Use AggregateResult.newBuilder() to construct. - private AggregateResult(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private AggregateResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AggregateResult defaultInstance; - public static AggregateResult getDefaultInstance() { - return defaultInstance; - } - - public AggregateResult getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AggregateResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - byteArray_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AggregateProtos.internal_static_AggregateResult_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return AggregateProtos.internal_static_AggregateResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - AggregateProtos.AggregateResult.class, AggregateProtos.AggregateResult.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AggregateResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AggregateResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int BYTE_ARRAY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString byteArray_; - /** - * required bytes byte_array = 1; - */ - public boolean hasByteArray() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes byte_array = 1; - */ - public com.google.protobuf.ByteString getByteArray() { - return byteArray_; - } - - private void initFields() { - byteArray_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasByteArray()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, byteArray_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, byteArray_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof AggregateProtos.AggregateResult)) { - return super.equals(obj); - } - AggregateProtos.AggregateResult other = (AggregateProtos.AggregateResult) obj; - - boolean result = true; - result = result && (hasByteArray() == other.hasByteArray()); - if (hasByteArray()) { - result = result && getByteArray() - .equals(other.getByteArray()); - } - result = result && - getUnknownFields().equals(other.getUnknownFields()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - if (hasByteArray()) { - hash = (37 * hash) + BYTE_ARRAY_FIELD_NUMBER; - hash = (53 * hash) + getByteArray().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static AggregateProtos.AggregateResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static AggregateProtos.AggregateResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static AggregateProtos.AggregateResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static AggregateProtos.AggregateResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static AggregateProtos.AggregateResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static AggregateProtos.AggregateResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static AggregateProtos.AggregateResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static AggregateProtos.AggregateResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static AggregateProtos.AggregateResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static AggregateProtos.AggregateResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(AggregateProtos.AggregateResult prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AggregateResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:AggregateResult) - AggregateProtos.AggregateResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AggregateProtos.internal_static_AggregateResult_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return AggregateProtos.internal_static_AggregateResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - AggregateProtos.AggregateResult.class, AggregateProtos.AggregateResult.Builder.class); - } - - // Construct using eagle.storage.hbase.query.coprocessor.generated.AggregateProtos.AggregateResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - byteArray_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return AggregateProtos.internal_static_AggregateResult_descriptor; - } - - public AggregateProtos.AggregateResult getDefaultInstanceForType() { - return AggregateProtos.AggregateResult.getDefaultInstance(); - } - - public AggregateProtos.AggregateResult build() { - AggregateProtos.AggregateResult result = buildPartial(); - if (!result.isInitialized()) { - throw AbstractMessage.Builder.newUninitializedMessageException(result); - } - return result; - } - - public AggregateProtos.AggregateResult buildPartial() { - AggregateProtos.AggregateResult result = new AggregateProtos.AggregateResult(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.byteArray_ = byteArray_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof AggregateProtos.AggregateResult) { - return mergeFrom((AggregateProtos.AggregateResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(AggregateProtos.AggregateResult other) { - if (other == AggregateProtos.AggregateResult.getDefaultInstance()) return this; - if (other.hasByteArray()) { - setByteArray(other.getByteArray()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasByteArray()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - AggregateProtos.AggregateResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (AggregateProtos.AggregateResult) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString byteArray_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes byte_array = 1; - */ - public boolean hasByteArray() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes byte_array = 1; - */ - public com.google.protobuf.ByteString getByteArray() { - return byteArray_; - } - /** - * required bytes byte_array = 1; - */ - public Builder setByteArray(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - byteArray_ = value; - onChanged(); - return this; - } - /** - * required bytes byte_array = 1; - */ - public Builder clearByteArray() { - bitField0_ = (bitField0_ & ~0x00000001); - byteArray_ = getDefaultInstance().getByteArray(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:AggregateResult) - } - - static { - defaultInstance = new AggregateResult(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:AggregateResult) - } - - public interface AggregateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:AggregateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required .EntityDefinition entity_definition = 1; - */ - boolean hasEntityDefinition(); - /** - * required .EntityDefinition entity_definition = 1; - */ - AggregateProtos.EntityDefinition getEntityDefinition(); - /** - * required .EntityDefinition entity_definition = 1; - */ - AggregateProtos.EntityDefinitionOrBuilder getEntityDefinitionOrBuilder(); - - /** - * required .Scan scan = 2; - */ - boolean hasScan(); - /** - * required .Scan scan = 2; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan getScan(); - /** - * required .Scan scan = 2; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder getScanOrBuilder(); - - /** - * repeated string groupby_fields = 3; - */ - com.google.protobuf.ProtocolStringList - getGroupbyFieldsList(); - /** - * repeated string groupby_fields = 3; - */ - int getGroupbyFieldsCount(); - /** - * repeated string groupby_fields = 3; - */ - java.lang.String getGroupbyFields(int index); - /** - * repeated string groupby_fields = 3; - */ - com.google.protobuf.ByteString - getGroupbyFieldsBytes(int index); - - /** - * repeated bytes aggregate_func_types = 4; - */ - java.util.List getAggregateFuncTypesList(); - /** - * repeated bytes aggregate_func_types = 4; - */ - int getAggregateFuncTypesCount(); - /** - * repeated bytes aggregate_func_types = 4; - */ - com.google.protobuf.ByteString getAggregateFuncTypes(int index); - - /** - * repeated string aggregated_fields = 5; - */ - com.google.protobuf.ProtocolStringList - getAggregatedFieldsList(); - /** - * repeated string aggregated_fields = 5; - */ - int getAggregatedFieldsCount(); - /** - * repeated string aggregated_fields = 5; - */ - java.lang.String getAggregatedFields(int index); - /** - * repeated string aggregated_fields = 5; - */ - com.google.protobuf.ByteString - getAggregatedFieldsBytes(int index); - } - /** - * Protobuf type {@code AggregateRequest} - */ - public static final class AggregateRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:AggregateRequest) - AggregateRequestOrBuilder { - // Use AggregateRequest.newBuilder() to construct. - private AggregateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private AggregateRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AggregateRequest defaultInstance; - public static AggregateRequest getDefaultInstance() { - return defaultInstance; - } - - public AggregateRequest getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AggregateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - AggregateProtos.EntityDefinition.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = entityDefinition_.toBuilder(); - } - entityDefinition_ = input.readMessage(AggregateProtos.EntityDefinition.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityDefinition_); - entityDefinition_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = scan_.toBuilder(); - } - scan_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scan_); - scan_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - groupbyFields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - groupbyFields_.add(bs); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - aggregateFuncTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - aggregateFuncTypes_.add(input.readBytes()); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - aggregatedFields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - aggregatedFields_.add(bs); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - groupbyFields_ = groupbyFields_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - aggregateFuncTypes_ = java.util.Collections.unmodifiableList(aggregateFuncTypes_); - } - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - aggregatedFields_ = aggregatedFields_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AggregateProtos.internal_static_AggregateRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return AggregateProtos.internal_static_AggregateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - AggregateProtos.AggregateRequest.class, AggregateProtos.AggregateRequest.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AggregateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AggregateRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int ENTITY_DEFINITION_FIELD_NUMBER = 1; - private AggregateProtos.EntityDefinition entityDefinition_; - /** - * required .EntityDefinition entity_definition = 1; - */ - public boolean hasEntityDefinition() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .EntityDefinition entity_definition = 1; - */ - public AggregateProtos.EntityDefinition getEntityDefinition() { - return entityDefinition_; - } - /** - * required .EntityDefinition entity_definition = 1; - */ - public AggregateProtos.EntityDefinitionOrBuilder getEntityDefinitionOrBuilder() { - return entityDefinition_; - } - - public static final int SCAN_FIELD_NUMBER = 2; - private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan scan_; - /** - * required .Scan scan = 2; - */ - public boolean hasScan() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required .Scan scan = 2; - */ - public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan getScan() { - return scan_; - } - /** - * required .Scan scan = 2; - */ - public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder getScanOrBuilder() { - return scan_; - } - - public static final int GROUPBY_FIELDS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList groupbyFields_; - /** - * repeated string groupby_fields = 3; - */ - public com.google.protobuf.ProtocolStringList - getGroupbyFieldsList() { - return groupbyFields_; - } - /** - * repeated string groupby_fields = 3; - */ - public int getGroupbyFieldsCount() { - return groupbyFields_.size(); - } - /** - * repeated string groupby_fields = 3; - */ - public java.lang.String getGroupbyFields(int index) { - return groupbyFields_.get(index); - } - /** - * repeated string groupby_fields = 3; - */ - public com.google.protobuf.ByteString - getGroupbyFieldsBytes(int index) { - return groupbyFields_.getByteString(index); - } - - public static final int AGGREGATE_FUNC_TYPES_FIELD_NUMBER = 4; - private java.util.List aggregateFuncTypes_; - /** - * repeated bytes aggregate_func_types = 4; - */ - public java.util.List - getAggregateFuncTypesList() { - return aggregateFuncTypes_; - } - /** - * repeated bytes aggregate_func_types = 4; - */ - public int getAggregateFuncTypesCount() { - return aggregateFuncTypes_.size(); - } - /** - * repeated bytes aggregate_func_types = 4; - */ - public com.google.protobuf.ByteString getAggregateFuncTypes(int index) { - return aggregateFuncTypes_.get(index); - } - - public static final int AGGREGATED_FIELDS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList aggregatedFields_; - /** - * repeated string aggregated_fields = 5; - */ - public com.google.protobuf.ProtocolStringList - getAggregatedFieldsList() { - return aggregatedFields_; - } - /** - * repeated string aggregated_fields = 5; - */ - public int getAggregatedFieldsCount() { - return aggregatedFields_.size(); - } - /** - * repeated string aggregated_fields = 5; - */ - public java.lang.String getAggregatedFields(int index) { - return aggregatedFields_.get(index); - } - /** - * repeated string aggregated_fields = 5; - */ - public com.google.protobuf.ByteString - getAggregatedFieldsBytes(int index) { - return aggregatedFields_.getByteString(index); - } - - private void initFields() { - entityDefinition_ = AggregateProtos.EntityDefinition.getDefaultInstance(); - scan_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.getDefaultInstance(); - groupbyFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - aggregateFuncTypes_ = java.util.Collections.emptyList(); - aggregatedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasEntityDefinition()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasScan()) { - memoizedIsInitialized = 0; - return false; - } - if (!getEntityDefinition().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - if (!getScan().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, entityDefinition_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, scan_); - } - for (int i = 0; i < groupbyFields_.size(); i++) { - output.writeBytes(3, groupbyFields_.getByteString(i)); - } - for (int i = 0; i < aggregateFuncTypes_.size(); i++) { - output.writeBytes(4, aggregateFuncTypes_.get(i)); - } - for (int i = 0; i < aggregatedFields_.size(); i++) { - output.writeBytes(5, aggregatedFields_.getByteString(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entityDefinition_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, scan_); - } - { - int dataSize = 0; - for (int i = 0; i < groupbyFields_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(groupbyFields_.getByteString(i)); - } - size += dataSize; - size += 1 * getGroupbyFieldsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < aggregateFuncTypes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(aggregateFuncTypes_.get(i)); - } - size += dataSize; - size += 1 * getAggregateFuncTypesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < aggregatedFields_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(aggregatedFields_.getByteString(i)); - } - size += dataSize; - size += 1 * getAggregatedFieldsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof AggregateProtos.AggregateRequest)) { - return super.equals(obj); - } - AggregateProtos.AggregateRequest other = (AggregateProtos.AggregateRequest) obj; - - boolean result = true; - result = result && (hasEntityDefinition() == other.hasEntityDefinition()); - if (hasEntityDefinition()) { - result = result && getEntityDefinition() - .equals(other.getEntityDefinition()); - } - result = result && (hasScan() == other.hasScan()); - if (hasScan()) { - result = result && getScan() - .equals(other.getScan()); - } - result = result && getGroupbyFieldsList() - .equals(other.getGroupbyFieldsList()); - result = result && getAggregateFuncTypesList() - .equals(other.getAggregateFuncTypesList()); - result = result && getAggregatedFieldsList() - .equals(other.getAggregatedFieldsList()); - result = result && - getUnknownFields().equals(other.getUnknownFields()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - if (hasEntityDefinition()) { - hash = (37 * hash) + ENTITY_DEFINITION_FIELD_NUMBER; - hash = (53 * hash) + getEntityDefinition().hashCode(); - } - if (hasScan()) { - hash = (37 * hash) + SCAN_FIELD_NUMBER; - hash = (53 * hash) + getScan().hashCode(); - } - if (getGroupbyFieldsCount() > 0) { - hash = (37 * hash) + GROUPBY_FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getGroupbyFieldsList().hashCode(); - } - if (getAggregateFuncTypesCount() > 0) { - hash = (37 * hash) + AGGREGATE_FUNC_TYPES_FIELD_NUMBER; - hash = (53 * hash) + getAggregateFuncTypesList().hashCode(); - } - if (getAggregatedFieldsCount() > 0) { - hash = (37 * hash) + AGGREGATED_FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getAggregatedFieldsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static AggregateProtos.AggregateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static AggregateProtos.AggregateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static AggregateProtos.AggregateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static AggregateProtos.AggregateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static AggregateProtos.AggregateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static AggregateProtos.AggregateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static AggregateProtos.AggregateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static AggregateProtos.AggregateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static AggregateProtos.AggregateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static AggregateProtos.AggregateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(AggregateProtos.AggregateRequest prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AggregateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:AggregateRequest) - AggregateProtos.AggregateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return AggregateProtos.internal_static_AggregateRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return AggregateProtos.internal_static_AggregateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - AggregateProtos.AggregateRequest.class, AggregateProtos.AggregateRequest.Builder.class); - } - - // Construct using eagle.storage.hbase.query.coprocessor.generated.AggregateProtos.AggregateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getEntityDefinitionFieldBuilder(); - getScanFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (entityDefinitionBuilder_ == null) { - entityDefinition_ = AggregateProtos.EntityDefinition.getDefaultInstance(); - } else { - entityDefinitionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (scanBuilder_ == null) { - scan_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.getDefaultInstance(); - } else { - scanBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - groupbyFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - aggregateFuncTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - aggregatedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return AggregateProtos.internal_static_AggregateRequest_descriptor; - } - - public AggregateProtos.AggregateRequest getDefaultInstanceForType() { - return AggregateProtos.AggregateRequest.getDefaultInstance(); - } - - public AggregateProtos.AggregateRequest build() { - AggregateProtos.AggregateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw AbstractMessage.Builder.newUninitializedMessageException(result); - } - return result; - } - - public AggregateProtos.AggregateRequest buildPartial() { - AggregateProtos.AggregateRequest result = new AggregateProtos.AggregateRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (entityDefinitionBuilder_ == null) { - result.entityDefinition_ = entityDefinition_; - } else { - result.entityDefinition_ = entityDefinitionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (scanBuilder_ == null) { - result.scan_ = scan_; - } else { - result.scan_ = scanBuilder_.build(); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - groupbyFields_ = groupbyFields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.groupbyFields_ = groupbyFields_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - aggregateFuncTypes_ = java.util.Collections.unmodifiableList(aggregateFuncTypes_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.aggregateFuncTypes_ = aggregateFuncTypes_; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - aggregatedFields_ = aggregatedFields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.aggregatedFields_ = aggregatedFields_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof AggregateProtos.AggregateRequest) { - return mergeFrom((AggregateProtos.AggregateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(AggregateProtos.AggregateRequest other) { - if (other == AggregateProtos.AggregateRequest.getDefaultInstance()) return this; - if (other.hasEntityDefinition()) { - mergeEntityDefinition(other.getEntityDefinition()); - } - if (other.hasScan()) { - mergeScan(other.getScan()); - } - if (!other.groupbyFields_.isEmpty()) { - if (groupbyFields_.isEmpty()) { - groupbyFields_ = other.groupbyFields_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureGroupbyFieldsIsMutable(); - groupbyFields_.addAll(other.groupbyFields_); - } - onChanged(); - } - if (!other.aggregateFuncTypes_.isEmpty()) { - if (aggregateFuncTypes_.isEmpty()) { - aggregateFuncTypes_ = other.aggregateFuncTypes_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureAggregateFuncTypesIsMutable(); - aggregateFuncTypes_.addAll(other.aggregateFuncTypes_); - } - onChanged(); - } - if (!other.aggregatedFields_.isEmpty()) { - if (aggregatedFields_.isEmpty()) { - aggregatedFields_ = other.aggregatedFields_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAggregatedFieldsIsMutable(); - aggregatedFields_.addAll(other.aggregatedFields_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasEntityDefinition()) { - - return false; - } - if (!hasScan()) { - - return false; - } - if (!getEntityDefinition().isInitialized()) { - - return false; - } - if (!getScan().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - AggregateProtos.AggregateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (AggregateProtos.AggregateRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private AggregateProtos.EntityDefinition entityDefinition_ = AggregateProtos.EntityDefinition.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - AggregateProtos.EntityDefinition, AggregateProtos.EntityDefinition.Builder, AggregateProtos.EntityDefinitionOrBuilder> entityDefinitionBuilder_; - /** - * required .EntityDefinition entity_definition = 1; - */ - public boolean hasEntityDefinition() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .EntityDefinition entity_definition = 1; - */ - public AggregateProtos.EntityDefinition getEntityDefinition() { - if (entityDefinitionBuilder_ == null) { - return entityDefinition_; - } else { - return entityDefinitionBuilder_.getMessage(); - } - } - /** - * required .EntityDefinition entity_definition = 1; - */ - public Builder setEntityDefinition(AggregateProtos.EntityDefinition value) { - if (entityDefinitionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityDefinition_ = value; - onChanged(); - } else { - entityDefinitionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .EntityDefinition entity_definition = 1; - */ - public Builder setEntityDefinition( - AggregateProtos.EntityDefinition.Builder builderForValue) { - if (entityDefinitionBuilder_ == null) { - entityDefinition_ = builderForValue.build(); - onChanged(); - } else { - entityDefinitionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .EntityDefinition entity_definition = 1; - */ - public Builder mergeEntityDefinition(AggregateProtos.EntityDefinition value) { - if (entityDefinitionBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - entityDefinition_ != AggregateProtos.EntityDefinition.getDefaultInstance()) { - entityDefinition_ = - AggregateProtos.EntityDefinition.newBuilder(entityDefinition_).mergeFrom(value).buildPartial(); - } else { - entityDefinition_ = value; - } - onChanged(); - } else { - entityDefinitionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .EntityDefinition entity_definition = 1; - */ - public Builder clearEntityDefinition() { - if (entityDefinitionBuilder_ == null) { - entityDefinition_ = AggregateProtos.EntityDefinition.getDefaultInstance(); - onChanged(); - } else { - entityDefinitionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * required .EntityDefinition entity_definition = 1; - */ - public AggregateProtos.EntityDefinition.Builder getEntityDefinitionBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getEntityDefinitionFieldBuilder().getBuilder(); - } - /** - * required .EntityDefinition entity_definition = 1; - */ - public AggregateProtos.EntityDefinitionOrBuilder getEntityDefinitionOrBuilder() { - if (entityDefinitionBuilder_ != null) { - return entityDefinitionBuilder_.getMessageOrBuilder(); - } else { - return entityDefinition_; - } - } - /** - * required .EntityDefinition entity_definition = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - AggregateProtos.EntityDefinition, AggregateProtos.EntityDefinition.Builder, AggregateProtos.EntityDefinitionOrBuilder> - getEntityDefinitionFieldBuilder() { - if (entityDefinitionBuilder_ == null) { - entityDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - AggregateProtos.EntityDefinition, AggregateProtos.EntityDefinition.Builder, AggregateProtos.EntityDefinitionOrBuilder>( - getEntityDefinition(), - getParentForChildren(), - isClean()); - entityDefinition_ = null; - } - return entityDefinitionBuilder_; - } - - private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan scan_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder> scanBuilder_; - /** - * required .Scan scan = 2; - */ - public boolean hasScan() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required .Scan scan = 2; - */ - public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan getScan() { - if (scanBuilder_ == null) { - return scan_; - } else { - return scanBuilder_.getMessage(); - } - } - /** - * required .Scan scan = 2; - */ - public Builder setScan(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan value) { - if (scanBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scan_ = value; - onChanged(); - } else { - scanBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * required .Scan scan = 2; - */ - public Builder setScan( - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.Builder builderForValue) { - if (scanBuilder_ == null) { - scan_ = builderForValue.build(); - onChanged(); - } else { - scanBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * required .Scan scan = 2; - */ - public Builder mergeScan(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan value) { - if (scanBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - scan_ != org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.getDefaultInstance()) { - scan_ = - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.newBuilder(scan_).mergeFrom(value).buildPartial(); - } else { - scan_ = value; - } - onChanged(); - } else { - scanBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * required .Scan scan = 2; - */ - public Builder clearScan() { - if (scanBuilder_ == null) { - scan_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.getDefaultInstance(); - onChanged(); - } else { - scanBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * required .Scan scan = 2; - */ - public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.Builder getScanBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getScanFieldBuilder().getBuilder(); - } - /** - * required .Scan scan = 2; - */ - public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder getScanOrBuilder() { - if (scanBuilder_ != null) { - return scanBuilder_.getMessageOrBuilder(); - } else { - return scan_; - } - } - /** - * required .Scan scan = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder> - getScanFieldBuilder() { - if (scanBuilder_ == null) { - scanBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder>( - getScan(), - getParentForChildren(), - isClean()); - scan_ = null; - } - return scanBuilder_; - } - - private com.google.protobuf.LazyStringList groupbyFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureGroupbyFieldsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - groupbyFields_ = new com.google.protobuf.LazyStringArrayList(groupbyFields_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string groupby_fields = 3; - */ - public com.google.protobuf.ProtocolStringList - getGroupbyFieldsList() { - return groupbyFields_.getUnmodifiableView(); - } - /** - * repeated string groupby_fields = 3; - */ - public int getGroupbyFieldsCount() { - return groupbyFields_.size(); - } - /** - * repeated string groupby_fields = 3; - */ - public java.lang.String getGroupbyFields(int index) { - return groupbyFields_.get(index); - } - /** - * repeated string groupby_fields = 3; - */ - public com.google.protobuf.ByteString - getGroupbyFieldsBytes(int index) { - return groupbyFields_.getByteString(index); - } - /** - * repeated string groupby_fields = 3; - */ - public Builder setGroupbyFields( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupbyFieldsIsMutable(); - groupbyFields_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string groupby_fields = 3; - */ - public Builder addGroupbyFields( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupbyFieldsIsMutable(); - groupbyFields_.add(value); - onChanged(); - return this; - } - /** - * repeated string groupby_fields = 3; - */ - public Builder addAllGroupbyFields( - java.lang.Iterable values) { - ensureGroupbyFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupbyFields_); - onChanged(); - return this; - } - /** - * repeated string groupby_fields = 3; - */ - public Builder clearGroupbyFields() { - groupbyFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string groupby_fields = 3; - */ - public Builder addGroupbyFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupbyFieldsIsMutable(); - groupbyFields_.add(value); - onChanged(); - return this; - } - - private java.util.List aggregateFuncTypes_ = java.util.Collections.emptyList(); - private void ensureAggregateFuncTypesIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - aggregateFuncTypes_ = new java.util.ArrayList(aggregateFuncTypes_); - bitField0_ |= 0x00000008; - } - } - /** - * repeated bytes aggregate_func_types = 4; - */ - public java.util.List - getAggregateFuncTypesList() { - return java.util.Collections.unmodifiableList(aggregateFuncTypes_); - } - /** - * repeated bytes aggregate_func_types = 4; - */ - public int getAggregateFuncTypesCount() { - return aggregateFuncTypes_.size(); - } - /** - * repeated bytes aggregate_func_types = 4; - */ - public com.google.protobuf.ByteString getAggregateFuncTypes(int index) { - return aggregateFuncTypes_.get(index); - } - /** - * repeated bytes aggregate_func_types = 4; - */ - public Builder setAggregateFuncTypes( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregateFuncTypesIsMutable(); - aggregateFuncTypes_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes aggregate_func_types = 4; - */ - public Builder addAggregateFuncTypes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregateFuncTypesIsMutable(); - aggregateFuncTypes_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes aggregate_func_types = 4; - */ - public Builder addAllAggregateFuncTypes( - java.lang.Iterable values) { - ensureAggregateFuncTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aggregateFuncTypes_); - onChanged(); - return this; - } - /** - * repeated bytes aggregate_func_types = 4; - */ - public Builder clearAggregateFuncTypes() { - aggregateFuncTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList aggregatedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAggregatedFieldsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - aggregatedFields_ = new com.google.protobuf.LazyStringArrayList(aggregatedFields_); - bitField0_ |= 0x00000010; - } - } - /** - * repeated string aggregated_fields = 5; - */ - public com.google.protobuf.ProtocolStringList - getAggregatedFieldsList() { - return aggregatedFields_.getUnmodifiableView(); - } - /** - * repeated string aggregated_fields = 5; - */ - public int getAggregatedFieldsCount() { - return aggregatedFields_.size(); - } - /** - * repeated string aggregated_fields = 5; - */ - public java.lang.String getAggregatedFields(int index) { - return aggregatedFields_.get(index); - } - /** - * repeated string aggregated_fields = 5; - */ - public com.google.protobuf.ByteString - getAggregatedFieldsBytes(int index) { - return aggregatedFields_.getByteString(index); - } - /** - * repeated string aggregated_fields = 5; - */ - public Builder setAggregatedFields( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregatedFieldsIsMutable(); - aggregatedFields_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string aggregated_fields = 5; - */ - public Builder addAggregatedFields( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregatedFieldsIsMutable(); - aggregatedFields_.add(value); - onChanged(); - return this; - } - /** - * repeated string aggregated_fields = 5; - */ - public Builder addAllAggregatedFields( - java.lang.Iterable values) { - ensureAggregatedFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aggregatedFields_); - onChanged(); - return this; - } - /** - * repeated string aggregated_fields = 5; - */ - public Builder clearAggregatedFields() { - aggregatedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * repeated string aggregated_fields = 5; - */ - public Builder addAggregatedFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAggregatedFieldsIsMutable(); - aggregatedFields_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:AggregateRequest) - } - - static { - defaultInstance = new AggregateRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:AggregateRequest) - } - - public interface TimeSeriesAggregateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:TimeSeriesAggregateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required .EntityDefinition entity_definition = 1; - */ - boolean hasEntityDefinition(); - /** - * required .EntityDefinition entity_definition = 1; - */ - AggregateProtos.EntityDefinition getEntityDefinition(); - /** - * required .EntityDefinition entity_definition = 1; - */ - AggregateProtos.EntityDefinitionOrBuilder getEntityDefinitionOrBuilder(); - - /** - * required .Scan scan = 2; - */ - boolean hasScan(); - /** - * required .Scan scan = 2; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan getScan(); - /** - * required .Scan scan = 2; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder getScanOrBuilder(); - - /** - * repeated string groupby_fields = 3; - */ - com.google.protobuf.ProtocolStringList - getGroupbyFieldsList(); - /** - * repeated string groupby_fields = 3; - */ - int getGroupbyFieldsCount(); - /** - * repeated string groupby_fields = 3; - */ - java.lang.String getGroupbyFields(int index); - /** - * repeated string groupby_fields = 3; - */ - com.google.protobuf.ByteString - getGroupbyFieldsBytes(int index); - - /** - * repeated bytes aggregate_func_types = 4; - */ - java.util.List getAggregateFuncTypesList(); - /** - * repeated bytes aggregate_func_types = 4; - */ - int getAggregateFuncTypesCount(); - /** - * repeated bytes aggregate_func_types = 4; - */ - com.google.protobuf.ByteString getAggregateFuncTypes(int index); - - /** - * repeated string aggregated_fields = 5; - */ - com.google.protobuf.ProtocolStringList - getAggregatedFieldsList(); - /** - * repeated string aggregated_fields = 5; - */ - int getAggregatedFieldsCount(); - /** - * repeated string aggregated_fields = 5; - */ - java.lang.String getAggregatedFields(int index); - /** - * repeated string aggregated_fields = 5; - */ - com.google.protobuf.ByteString - getAggregatedFieldsBytes(int index); - - /** - * required int64 start_time = 6; - */ - boolean hasStartTime(); - /** - * required int64 start_time = 6; - */ - long getStartTime(); - - /** - * required int64 end_time = 7; - */ - boolean hasEndTime(); - /** - * required int64 end_time = 7; - */ - long getEndTime(); - - /** - * required int64 interval_min = 8; - */ - boolean hasIntervalMin(); - /** - * required int64 interval_min = 8; - */ - long getIntervalMin(); - } - /** - * Protobuf type {@code TimeSeriesAggregateRequest} - */ - public static final class TimeSeriesAggregateRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TimeSeriesAggregateRequest) - TimeSeriesAggregateRequestOrBuilder { - // Use TimeSeriesAggregateRequest.newBuilder() to construct. - private TimeSeriesAggregateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private TimeSeriesAggregateRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final TimeSeriesAggregateRequest defaultInstance; - public static TimeSeriesAggregateRequest getDefaultInstance() { - return defaultInstance; - } - - public TimeSeriesAggregateRequest getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TimeSeriesAggregateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - AggregateProtos.EntityDefinition.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = entityDefinition_.toBuilder(); - } - entityDefinition_ = input.readMessage(AggregateProtos.EntityDefinition.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityDefinition_); - entityDefinition_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = scan_.toBuilder(); - } - scan_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scan_); - scan_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - groupbyFields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - groupbyFields_.add(bs); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - aggregateFuncTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - aggregateFuncTypes_.add(input.readBytes()); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((