Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> [03/12] DRILL-233: Move protobuf IDLs to a separate module and check in the compile Java sources


Copy link to this message
-
[03/12] DRILL-233: Move protobuf IDLs to a separate module and check in the compile Java sources
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/07c6c21d/protocol/src/main/java/org/apache/drill/exec/proto/UserProtos.java
----------------------------------------------------------------------
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/UserProtos.java b/protocol/src/main/java/org/apache/drill/exec/proto/UserProtos.java
new file mode 100644
index 0000000..e505204
--- /dev/null
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/UserProtos.java
@@ -0,0 +1,5185 @@
+/**
+ * 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: User.proto
+
+package org.apache.drill.exec.proto;
+
+public final class UserProtos {
+  private UserProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+  }
+  /**
+   * Protobuf enum {@code exec.user.RpcType}
+   *
+   * <pre>
+   *//// UserToBit RPC ///////
+   * </pre>
+   */
+  public enum RpcType
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * <code>HANDSHAKE = 0;</code>
+     */
+    HANDSHAKE(0, 0),
+    /**
+     * <code>ACK = 1;</code>
+     */
+    ACK(1, 1),
+    /**
+     * <code>GOODBYE = 2;</code>
+     */
+    GOODBYE(2, 2),
+    /**
+     * <code>RUN_QUERY = 3;</code>
+     *
+     * <pre>
+     * user to bit
+     * </pre>
+     */
+    RUN_QUERY(3, 3),
+    /**
+     * <code>CANCEL_QUERY = 4;</code>
+     */
+    CANCEL_QUERY(4, 4),
+    /**
+     * <code>REQUEST_RESULTS = 5;</code>
+     */
+    REQUEST_RESULTS(5, 5),
+    /**
+     * <code>QUERY_RESULT = 6;</code>
+     *
+     * <pre>
+     * bit to user
+     * </pre>
+     */
+    QUERY_RESULT(6, 6),
+    /**
+     * <code>QUERY_HANDLE = 7;</code>
+     */
+    QUERY_HANDLE(7, 7),
+    ;
+
+    /**
+     * <code>HANDSHAKE = 0;</code>
+     */
+    public static final int HANDSHAKE_VALUE = 0;
+    /**
+     * <code>ACK = 1;</code>
+     */
+    public static final int ACK_VALUE = 1;
+    /**
+     * <code>GOODBYE = 2;</code>
+     */
+    public static final int GOODBYE_VALUE = 2;
+    /**
+     * <code>RUN_QUERY = 3;</code>
+     *
+     * <pre>
+     * user to bit
+     * </pre>
+     */
+    public static final int RUN_QUERY_VALUE = 3;
+    /**
+     * <code>CANCEL_QUERY = 4;</code>
+     */
+    public static final int CANCEL_QUERY_VALUE = 4;
+    /**
+     * <code>REQUEST_RESULTS = 5;</code>
+     */
+    public static final int REQUEST_RESULTS_VALUE = 5;
+    /**
+     * <code>QUERY_RESULT = 6;</code>
+     *
+     * <pre>
+     * bit to user
+     * </pre>
+     */
+    public static final int QUERY_RESULT_VALUE = 6;
+    /**
+     * <code>QUERY_HANDLE = 7;</code>
+     */
+    public static final int QUERY_HANDLE_VALUE = 7;
+
+
+    public final int getNumber() { return value; }
+
+    public static RpcType valueOf(int value) {
+      switch (value) {
+        case 0: return HANDSHAKE;
+        case 1: return ACK;
+        case 2: return GOODBYE;
+        case 3: return RUN_QUERY;
+        case 4: return CANCEL_QUERY;
+        case 5: return REQUEST_RESULTS;
+        case 6: return QUERY_RESULT;
+        case 7: return QUERY_HANDLE;
+        default: return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap<RpcType>
+        internalGetValueMap() {
+      return internalValueMap;
+    }
+    private static com.google.protobuf.Internal.EnumLiteMap<RpcType>
+        internalValueMap +          new com.google.protobuf.Internal.EnumLiteMap<RpcType>() {
+            public RpcType findValueByNumber(int number) {
+              return RpcType.valueOf(number);
+            }
+          };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
+      return getDescriptor().getValues().get(index);
+    }
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
+      return getDescriptor();
+    }
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(0);
+    }
+
+    private static final RpcType[] VALUES = values();
+
+    public static RpcType valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      if (desc.getType() != getDescriptor()) {
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
+      }
+      return VALUES[desc.getIndex()];
+    }
+
+    private final int index;
+    private final int value;
+
+    private RpcType(int index, int value) {
+      this.index = index;
+      this.value = value;
+    }
+
+    // @@protoc_insertion_point(enum_scope:exec.user.RpcType)
+  }
+
+  /**
+   * Protobuf enum {@code exec.user.QueryType}
+   */
+  public enum QueryType
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * <code>SQL = 1;</code>
+     */
+    SQL(0, 1),
+    /**
+     * <code>LOGICAL = 2;</code>
+     */
+    LOGICAL(1, 2),
+    /**
+     * <code>PHYSICAL = 3;</code>
+     */
+    PHYSICAL(2, 3),
+    ;
+
+    /**
+     * <code>SQL = 1;</code>
+     */
+    public static fina