| /* |
| * 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.ExtensionRegistryLite registry) { |
| } |
| |
| public static void registerAllExtensions( |
| com.google.protobuf.ExtensionRegistry registry) { |
| registerAllExtensions( |
| (com.google.protobuf.ExtensionRegistryLite) registry); |
| } |
| /** |
| * Protobuf enum {@code exec.rpc.RpcMode} |
| */ |
| public enum RpcMode |
| implements com.google.protobuf.ProtocolMessageEnum { |
| /** |
| * <code>REQUEST = 0;</code> |
| */ |
| REQUEST(0), |
| /** |
| * <code>RESPONSE = 1;</code> |
| */ |
| RESPONSE(1), |
| /** |
| * <code>RESPONSE_FAILURE = 2;</code> |
| */ |
| RESPONSE_FAILURE(2), |
| /** |
| * <code>PING = 3;</code> |
| */ |
| PING(3), |
| /** |
| * <code>PONG = 4;</code> |
| */ |
| PONG(4), |
| ; |
| |
| /** |
| * <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; |
| /** |
| * <code>PING = 3;</code> |
| */ |
| public static final int PING_VALUE = 3; |
| /** |
| * <code>PONG = 4;</code> |
| */ |
| public static final int PONG_VALUE = 4; |
| |
| |
| public final int getNumber() { |
| return value; |
| } |
| |
| /** |
| * @param value The numeric wire value of the corresponding enum entry. |
| * @return The enum associated with the given numeric wire value. |
| * @deprecated Use {@link #forNumber(int)} instead. |
| */ |
| @java.lang.Deprecated |
| public static RpcMode valueOf(int value) { |
| return forNumber(value); |
| } |
| |
| /** |
| * @param value The numeric wire value of the corresponding enum entry. |
| * @return The enum associated with the given numeric wire value. |
| */ |
| public static RpcMode forNumber(int value) { |
| switch (value) { |
| case 0: return REQUEST; |
| case 1: return RESPONSE; |
| case 2: return RESPONSE_FAILURE; |
| case 3: return PING; |
| case 4: return PONG; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<RpcMode> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static final com.google.protobuf.Internal.EnumLiteMap< |
| RpcMode> internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<RpcMode>() { |
| public RpcMode findValueByNumber(int number) { |
| return RpcMode.forNumber(number); |
| } |
| }; |
| |
| public final com.google.protobuf.Descriptors.EnumValueDescriptor |
| getValueDescriptor() { |
| return getDescriptor().getValues().get(ordinal()); |
| } |
| 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 value; |
| |
| private RpcMode(int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:exec.rpc.RpcMode) |
| } |
| |
| public interface AckOrBuilder extends |
| // @@protoc_insertion_point(interface_extends:exec.rpc.Ack) |
| com.google.protobuf.MessageOrBuilder { |
| |
| /** |
| * <code>optional bool ok = 1;</code> |
| * @return Whether the ok field is set. |
| */ |
| boolean hasOk(); |
| /** |
| * <code>optional bool ok = 1;</code> |
| * @return The ok. |
| */ |
| boolean getOk(); |
| } |
| /** |
| * Protobuf type {@code exec.rpc.Ack} |
| */ |
| public static final class Ack extends |
| com.google.protobuf.GeneratedMessageV3 implements |
| // @@protoc_insertion_point(message_implements:exec.rpc.Ack) |
| AckOrBuilder { |
| private static final long serialVersionUID = 0L; |
| // Use Ack.newBuilder() to construct. |
| private Ack(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { |
| super(builder); |
| } |
| private Ack() { |
| } |
| |
| @java.lang.Override |
| @SuppressWarnings({"unused"}) |
| protected java.lang.Object newInstance( |
| UnusedPrivateParameter unused) { |
| return new Ack(); |
| } |
| |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_descriptor; |
| } |
| |
| @java.lang.Override |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.drill.exec.proto.GeneralRPCProtos.Ack.class, org.apache.drill.exec.proto.GeneralRPCProtos.Ack.Builder.class); |
| } |
| |
| private int bitField0_; |
| public static final int OK_FIELD_NUMBER = 1; |
| private boolean ok_; |
| /** |
| * <code>optional bool ok = 1;</code> |
| * @return Whether the ok field is set. |
| */ |
| @java.lang.Override |
| public boolean hasOk() { |
| return ((bitField0_ & 0x00000001) != 0); |
| } |
| /** |
| * <code>optional bool ok = 1;</code> |
| * @return The ok. |
| */ |
| @java.lang.Override |
| public boolean getOk() { |
| return ok_; |
| } |
| |
| 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 (((bitField0_ & 0x00000001) != 0)) { |
| output.writeBool(1, ok_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| @java.lang.Override |
| public int getSerializedSize() { |
| int size = memoizedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) != 0)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(1, ok_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSize = size; |
| return size; |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.drill.exec.proto.GeneralRPCProtos.Ack)) { |
| return super.equals(obj); |
| } |
| org.apache.drill.exec.proto.GeneralRPCProtos.Ack other = (org.apache.drill.exec.proto.GeneralRPCProtos.Ack) obj; |
| |
| if (hasOk() != other.hasOk()) return false; |
| if (hasOk()) { |
| if (getOk() |
| != other.getOk()) return false; |
| } |
| if (!getUnknownFields().equals(other.getUnknownFields())) return false; |
| return true; |
| } |
| |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptor().hashCode(); |
| if (hasOk()) { |
| hash = (37 * hash) + OK_FIELD_NUMBER; |
| hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( |
| getOk()); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom( |
| java.nio.ByteBuffer data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom( |
| java.nio.ByteBuffer data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack 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 org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseDelimitedWithIOException(PARSER, input); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack 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 org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack 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(org.apache.drill.exec.proto.GeneralRPCProtos.Ack 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 exec.rpc.Ack} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements |
| // @@protoc_insertion_point(builder_implements:exec.rpc.Ack) |
| org.apache.drill.exec.proto.GeneralRPCProtos.AckOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_descriptor; |
| } |
| |
| @java.lang.Override |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.drill.exec.proto.GeneralRPCProtos.Ack.class, org.apache.drill.exec.proto.GeneralRPCProtos.Ack.Builder.class); |
| } |
| |
| // Construct using org.apache.drill.exec.proto.GeneralRPCProtos.Ack.newBuilder() |
| private Builder() { |
| |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { |
| super(parent); |
| |
| } |
| @java.lang.Override |
| public Builder clear() { |
| super.clear(); |
| ok_ = false; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_descriptor; |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.Ack getDefaultInstanceForType() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.Ack.getDefaultInstance(); |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.Ack build() { |
| org.apache.drill.exec.proto.GeneralRPCProtos.Ack result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.Ack buildPartial() { |
| org.apache.drill.exec.proto.GeneralRPCProtos.Ack result = new org.apache.drill.exec.proto.GeneralRPCProtos.Ack(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) != 0)) { |
| result.ok_ = ok_; |
| to_bitField0_ |= 0x00000001; |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| @java.lang.Override |
| public Builder clone() { |
| return super.clone(); |
| } |
| @java.lang.Override |
| public Builder setField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return super.setField(field, value); |
| } |
| @java.lang.Override |
| public Builder clearField( |
| com.google.protobuf.Descriptors.FieldDescriptor field) { |
| return super.clearField(field); |
| } |
| @java.lang.Override |
| public Builder clearOneof( |
| com.google.protobuf.Descriptors.OneofDescriptor oneof) { |
| return super.clearOneof(oneof); |
| } |
| @java.lang.Override |
| public Builder setRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| int index, java.lang.Object value) { |
| return super.setRepeatedField(field, index, value); |
| } |
| @java.lang.Override |
| public Builder addRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return super.addRepeatedField(field, value); |
| } |
| @java.lang.Override |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.drill.exec.proto.GeneralRPCProtos.Ack) { |
| return mergeFrom((org.apache.drill.exec.proto.GeneralRPCProtos.Ack)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.drill.exec.proto.GeneralRPCProtos.Ack other) { |
| if (other == org.apache.drill.exec.proto.GeneralRPCProtos.Ack.getDefaultInstance()) return this; |
| if (other.hasOk()) { |
| setOk(other.getOk()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| 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 { |
| if (extensionRegistry == null) { |
| throw new java.lang.NullPointerException(); |
| } |
| try { |
| boolean done = false; |
| while (!done) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| done = true; |
| break; |
| case 8: { |
| ok_ = input.readBool(); |
| bitField0_ |= 0x00000001; |
| break; |
| } // case 8 |
| default: { |
| if (!super.parseUnknownField(input, extensionRegistry, tag)) { |
| done = true; // was an endgroup tag |
| } |
| break; |
| } // default: |
| } // switch (tag) |
| } // while (!done) |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.unwrapIOException(); |
| } finally { |
| onChanged(); |
| } // finally |
| return this; |
| } |
| private int bitField0_; |
| |
| private boolean ok_ ; |
| /** |
| * <code>optional bool ok = 1;</code> |
| * @return Whether the ok field is set. |
| */ |
| @java.lang.Override |
| public boolean hasOk() { |
| return ((bitField0_ & 0x00000001) != 0); |
| } |
| /** |
| * <code>optional bool ok = 1;</code> |
| * @return The ok. |
| */ |
| @java.lang.Override |
| public boolean getOk() { |
| return ok_; |
| } |
| /** |
| * <code>optional bool ok = 1;</code> |
| * @param value The ok to set. |
| * @return This builder for chaining. |
| */ |
| public Builder setOk(boolean value) { |
| bitField0_ |= 0x00000001; |
| ok_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool ok = 1;</code> |
| * @return This builder for chaining. |
| */ |
| public Builder clearOk() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| ok_ = false; |
| onChanged(); |
| return this; |
| } |
| @java.lang.Override |
| public final Builder setUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.setUnknownFields(unknownFields); |
| } |
| |
| @java.lang.Override |
| public final Builder mergeUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.mergeUnknownFields(unknownFields); |
| } |
| |
| |
| // @@protoc_insertion_point(builder_scope:exec.rpc.Ack) |
| } |
| |
| // @@protoc_insertion_point(class_scope:exec.rpc.Ack) |
| private static final org.apache.drill.exec.proto.GeneralRPCProtos.Ack DEFAULT_INSTANCE; |
| static { |
| DEFAULT_INSTANCE = new org.apache.drill.exec.proto.GeneralRPCProtos.Ack(); |
| } |
| |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack getDefaultInstance() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| @java.lang.Deprecated public static final com.google.protobuf.Parser<Ack> |
| PARSER = new com.google.protobuf.AbstractParser<Ack>() { |
| @java.lang.Override |
| public Ack parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| Builder builder = newBuilder(); |
| try { |
| builder.mergeFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(builder.buildPartial()); |
| } catch (com.google.protobuf.UninitializedMessageException e) { |
| throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException(e) |
| .setUnfinishedMessage(builder.buildPartial()); |
| } |
| return builder.buildPartial(); |
| } |
| }; |
| |
| public static com.google.protobuf.Parser<Ack> parser() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<Ack> getParserForType() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.Ack getDefaultInstanceForType() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| } |
| |
| public interface RpcHeaderOrBuilder extends |
| // @@protoc_insertion_point(interface_extends:exec.rpc.RpcHeader) |
| com.google.protobuf.MessageOrBuilder { |
| |
| /** |
| * <code>optional .exec.rpc.RpcMode mode = 1;</code> |
| * @return Whether the mode field is set. |
| */ |
| boolean hasMode(); |
| /** |
| * <code>optional .exec.rpc.RpcMode mode = 1;</code> |
| * @return The mode. |
| */ |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode getMode(); |
| |
| /** |
| * <pre> |
| * reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc. |
| * </pre> |
| * |
| * <code>optional int32 coordination_id = 2;</code> |
| * @return Whether the coordinationId field is set. |
| */ |
| boolean hasCoordinationId(); |
| /** |
| * <pre> |
| * reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc. |
| * </pre> |
| * |
| * <code>optional int32 coordination_id = 2;</code> |
| * @return The coordinationId. |
| */ |
| int getCoordinationId(); |
| |
| /** |
| * <pre> |
| * a rpc mode specific rpc type. |
| * </pre> |
| * |
| * <code>optional int32 rpc_type = 3;</code> |
| * @return Whether the rpcType field is set. |
| */ |
| boolean hasRpcType(); |
| /** |
| * <pre> |
| * a rpc mode specific rpc type. |
| * </pre> |
| * |
| * <code>optional int32 rpc_type = 3;</code> |
| * @return The rpcType. |
| */ |
| int getRpcType(); |
| } |
| /** |
| * Protobuf type {@code exec.rpc.RpcHeader} |
| */ |
| public static final class RpcHeader extends |
| com.google.protobuf.GeneratedMessageV3 implements |
| // @@protoc_insertion_point(message_implements:exec.rpc.RpcHeader) |
| RpcHeaderOrBuilder { |
| private static final long serialVersionUID = 0L; |
| // Use RpcHeader.newBuilder() to construct. |
| private RpcHeader(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { |
| super(builder); |
| } |
| private RpcHeader() { |
| mode_ = 0; |
| } |
| |
| @java.lang.Override |
| @SuppressWarnings({"unused"}) |
| protected java.lang.Object newInstance( |
| UnusedPrivateParameter unused) { |
| return new RpcHeader(); |
| } |
| |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_descriptor; |
| } |
| |
| @java.lang.Override |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.class, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder.class); |
| } |
| |
| private int bitField0_; |
| public static final int MODE_FIELD_NUMBER = 1; |
| private int mode_; |
| /** |
| * <code>optional .exec.rpc.RpcMode mode = 1;</code> |
| * @return Whether the mode field is set. |
| */ |
| @java.lang.Override public boolean hasMode() { |
| return ((bitField0_ & 0x00000001) != 0); |
| } |
| /** |
| * <code>optional .exec.rpc.RpcMode mode = 1;</code> |
| * @return The mode. |
| */ |
| @java.lang.Override public org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode getMode() { |
| @SuppressWarnings("deprecation") |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode result = org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.valueOf(mode_); |
| return result == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.REQUEST : result; |
| } |
| |
| public static final int COORDINATION_ID_FIELD_NUMBER = 2; |
| private int coordinationId_; |
| /** |
| * <pre> |
| * reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc. |
| * </pre> |
| * |
| * <code>optional int32 coordination_id = 2;</code> |
| * @return Whether the coordinationId field is set. |
| */ |
| @java.lang.Override |
| public boolean hasCoordinationId() { |
| return ((bitField0_ & 0x00000002) != 0); |
| } |
| /** |
| * <pre> |
| * reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc. |
| * </pre> |
| * |
| * <code>optional int32 coordination_id = 2;</code> |
| * @return The coordinationId. |
| */ |
| @java.lang.Override |
| public int getCoordinationId() { |
| return coordinationId_; |
| } |
| |
| public static final int RPC_TYPE_FIELD_NUMBER = 3; |
| private int rpcType_; |
| /** |
| * <pre> |
| * a rpc mode specific rpc type. |
| * </pre> |
| * |
| * <code>optional int32 rpc_type = 3;</code> |
| * @return Whether the rpcType field is set. |
| */ |
| @java.lang.Override |
| public boolean hasRpcType() { |
| return ((bitField0_ & 0x00000004) != 0); |
| } |
| /** |
| * <pre> |
| * a rpc mode specific rpc type. |
| * </pre> |
| * |
| * <code>optional int32 rpc_type = 3;</code> |
| * @return The rpcType. |
| */ |
| @java.lang.Override |
| public int getRpcType() { |
| return rpcType_; |
| } |
| |
| 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 (((bitField0_ & 0x00000001) != 0)) { |
| output.writeEnum(1, mode_); |
| } |
| if (((bitField0_ & 0x00000002) != 0)) { |
| output.writeInt32(2, coordinationId_); |
| } |
| if (((bitField0_ & 0x00000004) != 0)) { |
| output.writeInt32(3, rpcType_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| @java.lang.Override |
| public int getSerializedSize() { |
| int size = memoizedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) != 0)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(1, mode_); |
| } |
| if (((bitField0_ & 0x00000002) != 0)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(2, coordinationId_); |
| } |
| if (((bitField0_ & 0x00000004) != 0)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(3, rpcType_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSize = size; |
| return size; |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader)) { |
| return super.equals(obj); |
| } |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader other = (org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader) obj; |
| |
| if (hasMode() != other.hasMode()) return false; |
| if (hasMode()) { |
| if (mode_ != other.mode_) return false; |
| } |
| if (hasCoordinationId() != other.hasCoordinationId()) return false; |
| if (hasCoordinationId()) { |
| if (getCoordinationId() |
| != other.getCoordinationId()) return false; |
| } |
| if (hasRpcType() != other.hasRpcType()) return false; |
| if (hasRpcType()) { |
| if (getRpcType() |
| != other.getRpcType()) return false; |
| } |
| if (!getUnknownFields().equals(other.getUnknownFields())) return false; |
| return true; |
| } |
| |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptor().hashCode(); |
| if (hasMode()) { |
| hash = (37 * hash) + MODE_FIELD_NUMBER; |
| hash = (53 * hash) + mode_; |
| } |
| if (hasCoordinationId()) { |
| hash = (37 * hash) + COORDINATION_ID_FIELD_NUMBER; |
| hash = (53 * hash) + getCoordinationId(); |
| } |
| if (hasRpcType()) { |
| hash = (37 * hash) + RPC_TYPE_FIELD_NUMBER; |
| hash = (53 * hash) + getRpcType(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom( |
| java.nio.ByteBuffer data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom( |
| java.nio.ByteBuffer data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader 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 org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseDelimitedWithIOException(PARSER, input); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader 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 org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader 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(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader 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 exec.rpc.RpcHeader} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements |
| // @@protoc_insertion_point(builder_implements:exec.rpc.RpcHeader) |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_descriptor; |
| } |
| |
| @java.lang.Override |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.class, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder.class); |
| } |
| |
| // Construct using org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.newBuilder() |
| private Builder() { |
| |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { |
| super(parent); |
| |
| } |
| @java.lang.Override |
| public Builder clear() { |
| super.clear(); |
| mode_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| coordinationId_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| rpcType_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_descriptor; |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getDefaultInstanceForType() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance(); |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader build() { |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader buildPartial() { |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader result = new org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) != 0)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.mode_ = mode_; |
| if (((from_bitField0_ & 0x00000002) != 0)) { |
| result.coordinationId_ = coordinationId_; |
| to_bitField0_ |= 0x00000002; |
| } |
| if (((from_bitField0_ & 0x00000004) != 0)) { |
| result.rpcType_ = rpcType_; |
| to_bitField0_ |= 0x00000004; |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| @java.lang.Override |
| public Builder clone() { |
| return super.clone(); |
| } |
| @java.lang.Override |
| public Builder setField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return super.setField(field, value); |
| } |
| @java.lang.Override |
| public Builder clearField( |
| com.google.protobuf.Descriptors.FieldDescriptor field) { |
| return super.clearField(field); |
| } |
| @java.lang.Override |
| public Builder clearOneof( |
| com.google.protobuf.Descriptors.OneofDescriptor oneof) { |
| return super.clearOneof(oneof); |
| } |
| @java.lang.Override |
| public Builder setRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| int index, java.lang.Object value) { |
| return super.setRepeatedField(field, index, value); |
| } |
| @java.lang.Override |
| public Builder addRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return super.addRepeatedField(field, value); |
| } |
| @java.lang.Override |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader) { |
| return mergeFrom((org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader other) { |
| if (other == org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance()) return this; |
| if (other.hasMode()) { |
| setMode(other.getMode()); |
| } |
| if (other.hasCoordinationId()) { |
| setCoordinationId(other.getCoordinationId()); |
| } |
| if (other.hasRpcType()) { |
| setRpcType(other.getRpcType()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| 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 { |
| if (extensionRegistry == null) { |
| throw new java.lang.NullPointerException(); |
| } |
| try { |
| boolean done = false; |
| while (!done) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| done = true; |
| break; |
| case 8: { |
| int tmpRaw = input.readEnum(); |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode tmpValue = |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.forNumber(tmpRaw); |
| if (tmpValue == null) { |
| mergeUnknownVarintField(1, tmpRaw); |
| } else { |
| mode_ = tmpRaw; |
| bitField0_ |= 0x00000001; |
| } |
| break; |
| } // case 8 |
| case 16: { |
| coordinationId_ = input.readInt32(); |
| bitField0_ |= 0x00000002; |
| break; |
| } // case 16 |
| case 24: { |
| rpcType_ = input.readInt32(); |
| bitField0_ |= 0x00000004; |
| break; |
| } // case 24 |
| default: { |
| if (!super.parseUnknownField(input, extensionRegistry, tag)) { |
| done = true; // was an endgroup tag |
| } |
| break; |
| } // default: |
| } // switch (tag) |
| } // while (!done) |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.unwrapIOException(); |
| } finally { |
| onChanged(); |
| } // finally |
| return this; |
| } |
| private int bitField0_; |
| |
| private int mode_ = 0; |
| /** |
| * <code>optional .exec.rpc.RpcMode mode = 1;</code> |
| * @return Whether the mode field is set. |
| */ |
| @java.lang.Override public boolean hasMode() { |
| return ((bitField0_ & 0x00000001) != 0); |
| } |
| /** |
| * <code>optional .exec.rpc.RpcMode mode = 1;</code> |
| * @return The mode. |
| */ |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode getMode() { |
| @SuppressWarnings("deprecation") |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode result = org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.valueOf(mode_); |
| return result == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.REQUEST : result; |
| } |
| /** |
| * <code>optional .exec.rpc.RpcMode mode = 1;</code> |
| * @param value The mode to set. |
| * @return This builder for chaining. |
| */ |
| public Builder setMode(org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| mode_ = value.getNumber(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional .exec.rpc.RpcMode mode = 1;</code> |
| * @return This builder for chaining. |
| */ |
| public Builder clearMode() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| mode_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| private int coordinationId_ ; |
| /** |
| * <pre> |
| * reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc. |
| * </pre> |
| * |
| * <code>optional int32 coordination_id = 2;</code> |
| * @return Whether the coordinationId field is set. |
| */ |
| @java.lang.Override |
| public boolean hasCoordinationId() { |
| return ((bitField0_ & 0x00000002) != 0); |
| } |
| /** |
| * <pre> |
| * reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc. |
| * </pre> |
| * |
| * <code>optional int32 coordination_id = 2;</code> |
| * @return The coordinationId. |
| */ |
| @java.lang.Override |
| public int getCoordinationId() { |
| return coordinationId_; |
| } |
| /** |
| * <pre> |
| * reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc. |
| * </pre> |
| * |
| * <code>optional int32 coordination_id = 2;</code> |
| * @param value The coordinationId to set. |
| * @return This builder for chaining. |
| */ |
| public Builder setCoordinationId(int value) { |
| bitField0_ |= 0x00000002; |
| coordinationId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc. |
| * </pre> |
| * |
| * <code>optional int32 coordination_id = 2;</code> |
| * @return This builder for chaining. |
| */ |
| public Builder clearCoordinationId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| coordinationId_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| private int rpcType_ ; |
| /** |
| * <pre> |
| * a rpc mode specific rpc type. |
| * </pre> |
| * |
| * <code>optional int32 rpc_type = 3;</code> |
| * @return Whether the rpcType field is set. |
| */ |
| @java.lang.Override |
| public boolean hasRpcType() { |
| return ((bitField0_ & 0x00000004) != 0); |
| } |
| /** |
| * <pre> |
| * a rpc mode specific rpc type. |
| * </pre> |
| * |
| * <code>optional int32 rpc_type = 3;</code> |
| * @return The rpcType. |
| */ |
| @java.lang.Override |
| public int getRpcType() { |
| return rpcType_; |
| } |
| /** |
| * <pre> |
| * a rpc mode specific rpc type. |
| * </pre> |
| * |
| * <code>optional int32 rpc_type = 3;</code> |
| * @param value The rpcType to set. |
| * @return This builder for chaining. |
| */ |
| public Builder setRpcType(int value) { |
| bitField0_ |= 0x00000004; |
| rpcType_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * a rpc mode specific rpc type. |
| * </pre> |
| * |
| * <code>optional int32 rpc_type = 3;</code> |
| * @return This builder for chaining. |
| */ |
| public Builder clearRpcType() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| rpcType_ = 0; |
| onChanged(); |
| return this; |
| } |
| @java.lang.Override |
| public final Builder setUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.setUnknownFields(unknownFields); |
| } |
| |
| @java.lang.Override |
| public final Builder mergeUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.mergeUnknownFields(unknownFields); |
| } |
| |
| |
| // @@protoc_insertion_point(builder_scope:exec.rpc.RpcHeader) |
| } |
| |
| // @@protoc_insertion_point(class_scope:exec.rpc.RpcHeader) |
| private static final org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader DEFAULT_INSTANCE; |
| static { |
| DEFAULT_INSTANCE = new org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader(); |
| } |
| |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getDefaultInstance() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| @java.lang.Deprecated public static final com.google.protobuf.Parser<RpcHeader> |
| PARSER = new com.google.protobuf.AbstractParser<RpcHeader>() { |
| @java.lang.Override |
| public RpcHeader parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| Builder builder = newBuilder(); |
| try { |
| builder.mergeFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(builder.buildPartial()); |
| } catch (com.google.protobuf.UninitializedMessageException e) { |
| throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException(e) |
| .setUnfinishedMessage(builder.buildPartial()); |
| } |
| return builder.buildPartial(); |
| } |
| }; |
| |
| public static com.google.protobuf.Parser<RpcHeader> parser() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<RpcHeader> getParserForType() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getDefaultInstanceForType() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| } |
| |
| public interface CompleteRpcMessageOrBuilder extends |
| // @@protoc_insertion_point(interface_extends:exec.rpc.CompleteRpcMessage) |
| com.google.protobuf.MessageOrBuilder { |
| |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| * @return Whether the header field is set. |
| */ |
| boolean hasHeader(); |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| * @return The header. |
| */ |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getHeader(); |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| */ |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder getHeaderOrBuilder(); |
| |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional bytes protobuf_body = 2;</code> |
| * @return Whether the protobufBody field is set. |
| */ |
| boolean hasProtobufBody(); |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional bytes protobuf_body = 2;</code> |
| * @return The protobufBody. |
| */ |
| com.google.protobuf.ByteString getProtobufBody(); |
| |
| /** |
| * <pre> |
| * optional |
| * </pre> |
| * |
| * <code>optional bytes raw_body = 3;</code> |
| * @return Whether the rawBody field is set. |
| */ |
| boolean hasRawBody(); |
| /** |
| * <pre> |
| * optional |
| * </pre> |
| * |
| * <code>optional bytes raw_body = 3;</code> |
| * @return The rawBody. |
| */ |
| com.google.protobuf.ByteString getRawBody(); |
| } |
| /** |
| * Protobuf type {@code exec.rpc.CompleteRpcMessage} |
| */ |
| public static final class CompleteRpcMessage extends |
| com.google.protobuf.GeneratedMessageV3 implements |
| // @@protoc_insertion_point(message_implements:exec.rpc.CompleteRpcMessage) |
| CompleteRpcMessageOrBuilder { |
| private static final long serialVersionUID = 0L; |
| // Use CompleteRpcMessage.newBuilder() to construct. |
| private CompleteRpcMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { |
| super(builder); |
| } |
| private CompleteRpcMessage() { |
| protobufBody_ = com.google.protobuf.ByteString.EMPTY; |
| rawBody_ = com.google.protobuf.ByteString.EMPTY; |
| } |
| |
| @java.lang.Override |
| @SuppressWarnings({"unused"}) |
| protected java.lang.Object newInstance( |
| UnusedPrivateParameter unused) { |
| return new CompleteRpcMessage(); |
| } |
| |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_descriptor; |
| } |
| |
| @java.lang.Override |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.class, org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.Builder.class); |
| } |
| |
| private int bitField0_; |
| public static final int HEADER_FIELD_NUMBER = 1; |
| private org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader header_; |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| * @return Whether the header field is set. |
| */ |
| @java.lang.Override |
| public boolean hasHeader() { |
| return ((bitField0_ & 0x00000001) != 0); |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| * @return The header. |
| */ |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getHeader() { |
| return header_ == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance() : header_; |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| */ |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder getHeaderOrBuilder() { |
| return header_ == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance() : header_; |
| } |
| |
| public static final int PROTOBUF_BODY_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString protobufBody_; |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional bytes protobuf_body = 2;</code> |
| * @return Whether the protobufBody field is set. |
| */ |
| @java.lang.Override |
| public boolean hasProtobufBody() { |
| return ((bitField0_ & 0x00000002) != 0); |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional bytes protobuf_body = 2;</code> |
| * @return The protobufBody. |
| */ |
| @java.lang.Override |
| public com.google.protobuf.ByteString getProtobufBody() { |
| return protobufBody_; |
| } |
| |
| public static final int RAW_BODY_FIELD_NUMBER = 3; |
| private com.google.protobuf.ByteString rawBody_; |
| /** |
| * <pre> |
| * optional |
| * </pre> |
| * |
| * <code>optional bytes raw_body = 3;</code> |
| * @return Whether the rawBody field is set. |
| */ |
| @java.lang.Override |
| public boolean hasRawBody() { |
| return ((bitField0_ & 0x00000004) != 0); |
| } |
| /** |
| * <pre> |
| * optional |
| * </pre> |
| * |
| * <code>optional bytes raw_body = 3;</code> |
| * @return The rawBody. |
| */ |
| @java.lang.Override |
| public com.google.protobuf.ByteString getRawBody() { |
| return rawBody_; |
| } |
| |
| 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 (((bitField0_ & 0x00000001) != 0)) { |
| output.writeMessage(1, getHeader()); |
| } |
| if (((bitField0_ & 0x00000002) != 0)) { |
| output.writeBytes(2, protobufBody_); |
| } |
| if (((bitField0_ & 0x00000004) != 0)) { |
| output.writeBytes(3, rawBody_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| @java.lang.Override |
| public int getSerializedSize() { |
| int size = memoizedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) != 0)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, getHeader()); |
| } |
| if (((bitField0_ & 0x00000002) != 0)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, protobufBody_); |
| } |
| if (((bitField0_ & 0x00000004) != 0)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, rawBody_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSize = size; |
| return size; |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage)) { |
| return super.equals(obj); |
| } |
| org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage other = (org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage) obj; |
| |
| if (hasHeader() != other.hasHeader()) return false; |
| if (hasHeader()) { |
| if (!getHeader() |
| .equals(other.getHeader())) return false; |
| } |
| if (hasProtobufBody() != other.hasProtobufBody()) return false; |
| if (hasProtobufBody()) { |
| if (!getProtobufBody() |
| .equals(other.getProtobufBody())) return false; |
| } |
| if (hasRawBody() != other.hasRawBody()) return false; |
| if (hasRawBody()) { |
| if (!getRawBody() |
| .equals(other.getRawBody())) return false; |
| } |
| if (!getUnknownFields().equals(other.getUnknownFields())) return false; |
| return true; |
| } |
| |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptor().hashCode(); |
| if (hasHeader()) { |
| hash = (37 * hash) + HEADER_FIELD_NUMBER; |
| hash = (53 * hash) + getHeader().hashCode(); |
| } |
| if (hasProtobufBody()) { |
| hash = (37 * hash) + PROTOBUF_BODY_FIELD_NUMBER; |
| hash = (53 * hash) + getProtobufBody().hashCode(); |
| } |
| if (hasRawBody()) { |
| hash = (37 * hash) + RAW_BODY_FIELD_NUMBER; |
| hash = (53 * hash) + getRawBody().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom( |
| java.nio.ByteBuffer data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom( |
| java.nio.ByteBuffer data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage 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 org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseDelimitedWithIOException(PARSER, input); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage 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 org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage 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(org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage 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 exec.rpc.CompleteRpcMessage} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements |
| // @@protoc_insertion_point(builder_implements:exec.rpc.CompleteRpcMessage) |
| org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessageOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_descriptor; |
| } |
| |
| @java.lang.Override |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.class, org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.Builder.class); |
| } |
| |
| // Construct using org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessageV3 |
| .alwaysUseFieldBuilders) { |
| getHeaderFieldBuilder(); |
| } |
| } |
| @java.lang.Override |
| public Builder clear() { |
| super.clear(); |
| if (headerBuilder_ == null) { |
| header_ = null; |
| } else { |
| headerBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| protobufBody_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| rawBody_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_descriptor; |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage getDefaultInstanceForType() { |
| return org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.getDefaultInstance(); |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage build() { |
| org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage buildPartial() { |
| org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage result = new org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) != 0)) { |
| if (headerBuilder_ == null) { |
| result.header_ = header_; |
| } else { |
| result.header_ = headerBuilder_.build(); |
| } |
| to_bitField0_ |= 0x00000001; |
| } |
| if (((from_bitField0_ & 0x00000002) != 0)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.protobufBody_ = protobufBody_; |
| if (((from_bitField0_ & 0x00000004) != 0)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.rawBody_ = rawBody_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| @java.lang.Override |
| public Builder clone() { |
| return super.clone(); |
| } |
| @java.lang.Override |
| public Builder setField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return super.setField(field, value); |
| } |
| @java.lang.Override |
| public Builder clearField( |
| com.google.protobuf.Descriptors.FieldDescriptor field) { |
| return super.clearField(field); |
| } |
| @java.lang.Override |
| public Builder clearOneof( |
| com.google.protobuf.Descriptors.OneofDescriptor oneof) { |
| return super.clearOneof(oneof); |
| } |
| @java.lang.Override |
| public Builder setRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| int index, java.lang.Object value) { |
| return super.setRepeatedField(field, index, value); |
| } |
| @java.lang.Override |
| public Builder addRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return super.addRepeatedField(field, value); |
| } |
| @java.lang.Override |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage) { |
| return mergeFrom((org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage other) { |
| if (other == org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.getDefaultInstance()) return this; |
| if (other.hasHeader()) { |
| mergeHeader(other.getHeader()); |
| } |
| if (other.hasProtobufBody()) { |
| setProtobufBody(other.getProtobufBody()); |
| } |
| if (other.hasRawBody()) { |
| setRawBody(other.getRawBody()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| 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 { |
| if (extensionRegistry == null) { |
| throw new java.lang.NullPointerException(); |
| } |
| try { |
| boolean done = false; |
| while (!done) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| done = true; |
| break; |
| case 10: { |
| input.readMessage( |
| getHeaderFieldBuilder().getBuilder(), |
| extensionRegistry); |
| bitField0_ |= 0x00000001; |
| break; |
| } // case 10 |
| case 18: { |
| protobufBody_ = input.readBytes(); |
| bitField0_ |= 0x00000002; |
| break; |
| } // case 18 |
| case 26: { |
| rawBody_ = input.readBytes(); |
| bitField0_ |= 0x00000004; |
| break; |
| } // case 26 |
| default: { |
| if (!super.parseUnknownField(input, extensionRegistry, tag)) { |
| done = true; // was an endgroup tag |
| } |
| break; |
| } // default: |
| } // switch (tag) |
| } // while (!done) |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.unwrapIOException(); |
| } finally { |
| onChanged(); |
| } // finally |
| return this; |
| } |
| private int bitField0_; |
| |
| private org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader header_; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder> headerBuilder_; |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| * @return Whether the header field is set. |
| */ |
| public boolean hasHeader() { |
| return ((bitField0_ & 0x00000001) != 0); |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| * @return The header. |
| */ |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getHeader() { |
| if (headerBuilder_ == null) { |
| return header_ == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance() : header_; |
| } else { |
| return headerBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| */ |
| public Builder setHeader(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader value) { |
| if (headerBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| header_ = value; |
| onChanged(); |
| } else { |
| headerBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| */ |
| public Builder setHeader( |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder builderForValue) { |
| if (headerBuilder_ == null) { |
| header_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| headerBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| */ |
| public Builder mergeHeader(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader value) { |
| if (headerBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) != 0) && |
| header_ != null && |
| header_ != org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance()) { |
| header_ = |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.newBuilder(header_).mergeFrom(value).buildPartial(); |
| } else { |
| header_ = value; |
| } |
| onChanged(); |
| } else { |
| headerBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| */ |
| public Builder clearHeader() { |
| if (headerBuilder_ == null) { |
| header_ = null; |
| onChanged(); |
| } else { |
| headerBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| */ |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder getHeaderBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getHeaderFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| */ |
| public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder getHeaderOrBuilder() { |
| if (headerBuilder_ != null) { |
| return headerBuilder_.getMessageOrBuilder(); |
| } else { |
| return header_ == null ? |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance() : header_; |
| } |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional .exec.rpc.RpcHeader header = 1;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder> |
| getHeaderFieldBuilder() { |
| if (headerBuilder_ == null) { |
| headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder>( |
| getHeader(), |
| getParentForChildren(), |
| isClean()); |
| header_ = null; |
| } |
| return headerBuilder_; |
| } |
| |
| private com.google.protobuf.ByteString protobufBody_ = com.google.protobuf.ByteString.EMPTY; |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional bytes protobuf_body = 2;</code> |
| * @return Whether the protobufBody field is set. |
| */ |
| @java.lang.Override |
| public boolean hasProtobufBody() { |
| return ((bitField0_ & 0x00000002) != 0); |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional bytes protobuf_body = 2;</code> |
| * @return The protobufBody. |
| */ |
| @java.lang.Override |
| public com.google.protobuf.ByteString getProtobufBody() { |
| return protobufBody_; |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional bytes protobuf_body = 2;</code> |
| * @param value The protobufBody to set. |
| * @return This builder for chaining. |
| */ |
| public Builder setProtobufBody(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| protobufBody_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * required |
| * </pre> |
| * |
| * <code>optional bytes protobuf_body = 2;</code> |
| * @return This builder for chaining. |
| */ |
| public Builder clearProtobufBody() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| protobufBody_ = getDefaultInstance().getProtobufBody(); |
| onChanged(); |
| return this; |
| } |
| |
| private com.google.protobuf.ByteString rawBody_ = com.google.protobuf.ByteString.EMPTY; |
| /** |
| * <pre> |
| * optional |
| * </pre> |
| * |
| * <code>optional bytes raw_body = 3;</code> |
| * @return Whether the rawBody field is set. |
| */ |
| @java.lang.Override |
| public boolean hasRawBody() { |
| return ((bitField0_ & 0x00000004) != 0); |
| } |
| /** |
| * <pre> |
| * optional |
| * </pre> |
| * |
| * <code>optional bytes raw_body = 3;</code> |
| * @return The rawBody. |
| */ |
| @java.lang.Override |
| public com.google.protobuf.ByteString getRawBody() { |
| return rawBody_; |
| } |
| /** |
| * <pre> |
| * optional |
| * </pre> |
| * |
| * <code>optional bytes raw_body = 3;</code> |
| * @param value The rawBody to set. |
| * @return This builder for chaining. |
| */ |
| public Builder setRawBody(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| rawBody_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * optional |
| * </pre> |
| * |
| * <code>optional bytes raw_body = 3;</code> |
| * @return This builder for chaining. |
| */ |
| public Builder clearRawBody() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| rawBody_ = getDefaultInstance().getRawBody(); |
| onChanged(); |
| return this; |
| } |
| @java.lang.Override |
| public final Builder setUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.setUnknownFields(unknownFields); |
| } |
| |
| @java.lang.Override |
| public final Builder mergeUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.mergeUnknownFields(unknownFields); |
| } |
| |
| |
| // @@protoc_insertion_point(builder_scope:exec.rpc.CompleteRpcMessage) |
| } |
| |
| // @@protoc_insertion_point(class_scope:exec.rpc.CompleteRpcMessage) |
| private static final org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage DEFAULT_INSTANCE; |
| static { |
| DEFAULT_INSTANCE = new org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage(); |
| } |
| |
| public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage getDefaultInstance() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| @java.lang.Deprecated public static final com.google.protobuf.Parser<CompleteRpcMessage> |
| PARSER = new com.google.protobuf.AbstractParser<CompleteRpcMessage>() { |
| @java.lang.Override |
| public CompleteRpcMessage parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| Builder builder = newBuilder(); |
| try { |
| builder.mergeFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(builder.buildPartial()); |
| } catch (com.google.protobuf.UninitializedMessageException e) { |
| throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException(e) |
| .setUnfinishedMessage(builder.buildPartial()); |
| } |
| return builder.buildPartial(); |
| } |
| }; |
| |
| public static com.google.protobuf.Parser<CompleteRpcMessage> parser() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<CompleteRpcMessage> getParserForType() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage getDefaultInstanceForType() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| } |
| |
| private static final com.google.protobuf.Descriptors.Descriptor |
| internal_static_exec_rpc_Ack_descriptor; |
| private static final |
| com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internal_static_exec_rpc_Ack_fieldAccessorTable; |
| private static final com.google.protobuf.Descriptors.Descriptor |
| internal_static_exec_rpc_RpcHeader_descriptor; |
| private static final |
| com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internal_static_exec_rpc_RpcHeader_fieldAccessorTable; |
| private static final com.google.protobuf.Descriptors.Descriptor |
| internal_static_exec_rpc_CompleteRpcMessage_descriptor; |
| private static final |
| com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internal_static_exec_rpc_CompleteRpcMessage_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\020GeneralRPC.proto\022\010exec.rpc\032\022Coordinati" + |
| "on.proto\"\021\n\003Ack\022\n\n\002ok\030\001 \001(\010\"W\n\tRpcHeader" + |
| "\022\037\n\004mode\030\001 \001(\0162\021.exec.rpc.RpcMode\022\027\n\017coo" + |
| "rdination_id\030\002 \001(\005\022\020\n\010rpc_type\030\003 \001(\005\"b\n\022" + |
| "CompleteRpcMessage\022#\n\006header\030\001 \001(\0132\023.exe" + |
| "c.rpc.RpcHeader\022\025\n\rprotobuf_body\030\002 \001(\014\022\020" + |
| "\n\010raw_body\030\003 \001(\014*N\n\007RpcMode\022\013\n\007REQUEST\020\000" + |
| "\022\014\n\010RESPONSE\020\001\022\024\n\020RESPONSE_FAILURE\020\002\022\010\n\004" + |
| "PING\020\003\022\010\n\004PONG\020\004B1\n\033org.apache.drill.exe" + |
| "c.protoB\020GeneralRPCProtosH\001" |
| }; |
| descriptor = com.google.protobuf.Descriptors.FileDescriptor |
| .internalBuildGeneratedFileFrom(descriptorData, |
| new com.google.protobuf.Descriptors.FileDescriptor[] { |
| org.apache.drill.exec.proto.CoordinationProtos.getDescriptor(), |
| }); |
| internal_static_exec_rpc_Ack_descriptor = |
| getDescriptor().getMessageTypes().get(0); |
| internal_static_exec_rpc_Ack_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( |
| internal_static_exec_rpc_Ack_descriptor, |
| new java.lang.String[] { "Ok", }); |
| internal_static_exec_rpc_RpcHeader_descriptor = |
| getDescriptor().getMessageTypes().get(1); |
| internal_static_exec_rpc_RpcHeader_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( |
| internal_static_exec_rpc_RpcHeader_descriptor, |
| new java.lang.String[] { "Mode", "CoordinationId", "RpcType", }); |
| internal_static_exec_rpc_CompleteRpcMessage_descriptor = |
| getDescriptor().getMessageTypes().get(2); |
| internal_static_exec_rpc_CompleteRpcMessage_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( |
| internal_static_exec_rpc_CompleteRpcMessage_descriptor, |
| new java.lang.String[] { "Header", "ProtobufBody", "RawBody", }); |
| org.apache.drill.exec.proto.CoordinationProtos.getDescriptor(); |
| } |
| |
| // @@protoc_insertion_point(outer_class_scope) |
| } |