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

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


Copy link to this message
-
[06/12] DRILL-233: Move protobuf IDLs to a separate module and check in the compile Java sources
jacques@... 2013-09-19, 16:45
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/07c6c21d/protocol/src/main/java/org/apache/drill/exec/proto/GeneralRPCProtos.java
----------------------------------------------------------------------
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/GeneralRPCProtos.java b/protocol/src/main/java/org/apache/drill/exec/proto/GeneralRPCProtos.java
new file mode 100644
index 0000000..5e37123
--- /dev/null
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/GeneralRPCProtos.java
@@ -0,0 +1,2888 @@
+/**
+ * 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: GeneralRPC.proto
+
+package org.apache.drill.exec.proto;
+
+public final class GeneralRPCProtos {
+  private GeneralRPCProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+  }
+  /**
+   * Protobuf enum {@code exec.rpc.RpcMode}
+   */
+  public enum RpcMode
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * <code>REQUEST = 0;</code>
+     */
+    REQUEST(0, 0),
+    /**
+     * <code>RESPONSE = 1;</code>
+     */
+    RESPONSE(1, 1),
+    /**
+     * <code>RESPONSE_FAILURE = 2;</code>
+     */
+    RESPONSE_FAILURE(2, 2),
+    ;
+
+    /**
+     * <code>REQUEST = 0;</code>
+     */
+    public static final int REQUEST_VALUE = 0;
+    /**
+     * <code>RESPONSE = 1;</code>
+     */
+    public static final int RESPONSE_VALUE = 1;
+    /**
+     * <code>RESPONSE_FAILURE = 2;</code>
+     */
+    public static final int RESPONSE_FAILURE_VALUE = 2;
+
+
+    public final int getNumber() { return value; }
+
+    public static RpcMode valueOf(int value) {
+      switch (value) {
+        case 0: return REQUEST;
+        case 1: return RESPONSE;
+        case 2: return RESPONSE_FAILURE;
+        default: return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap<RpcMode>
+        internalGetValueMap() {
+      return internalValueMap;
+    }
+    private static com.google.protobuf.Internal.EnumLiteMap<RpcMode>
+        internalValueMap +          new com.google.protobuf.Internal.EnumLiteMap<RpcMode>() {
+            public RpcMode findValueByNumber(int number) {
+              return RpcMode.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.GeneralRPCProtos.getDescriptor().getEnumTypes().get(0);
+    }
+
+    private static final RpcMode[] VALUES = values();
+
+    public static RpcMode 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 RpcMode(int index, int value) {
+      this.index = index;
+      this.value = value;
+    }
+
+    // @@protoc_insertion_point(enum_scope:exec.rpc.RpcMode)
+  }
+
+  public interface AckOrBuilder
+      extends com.google.protobuf.MessageOrBuilder {
+
+    // optional bool ok = 1;
+    /**
+     * <code>optional bool ok = 1;</code>
+     */
+    boolean hasOk();
+    /**
+     * <code>optional bool ok = 1;</code>
+     */
+    boolean getOk();
+  }
+  /**
+   * Protobuf type {@code exec.rpc.Ack}
+   */
+  public static final class Ack extends
+      com.google.protobuf.GeneratedMessage
+      implements AckOrBuilder {
+    // Use Ack.newBuilder() to construct.
+    private Ack(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+      super(builder);
+      this.unknownFields = builder.getUnknownFields();
+    }
+    private Ack(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+    private static final Ack defaultInstance;
+    public static Ack getDefaultInstance() {
+      return defaultInstance;
+    }
+
+    public Ack getDefaultInstanceForType() {
+      return defaultInstance;
+    }
+
+    private final com.google.protobuf.UnknownFieldSet unknownFields;
+    @java.lang.Override
+    public final com.google.protobuf.UnknownFieldSet
+        getUnknownFields() {
+      return this.unknownFields;
+    }
+    private Ack(
+        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:
+