public static MessageLite getResponseDefaultInstance(int rpcType) throws RpcException { switch (rpcType) { case RpcType.ACK_VALUE: return Ack.getDefaultInstance(); case RpcType.HANDSHAKE_VALUE: return BitControlHandshake.getDefaultInstance(); case RpcType.RESP_FRAGMENT_HANDLE_VALUE: return FragmentHandle.getDefaultInstance(); case RpcType.RESP_FRAGMENT_STATUS_VALUE: return FragmentStatus.getDefaultInstance(); case RpcType.RESP_BIT_STATUS_VALUE: return BitStatus.getDefaultInstance(); case RpcType.RESP_QUERY_STATUS_VALUE: return QueryProfile.getDefaultInstance(); case RpcType.RESP_CUSTOM_VALUE: return CustomMessage.getDefaultInstance(); case RpcType.SASL_MESSAGE_VALUE: return SaslMessage.getDefaultInstance(); default: throw new UnsupportedOperationException(); } } }
public org.apache.drill.exec.proto.BitControl.CustomMessage getDefaultInstanceForType() { return org.apache.drill.exec.proto.BitControl.CustomMessage.getDefaultInstance(); }
public Builder mergeFrom(org.apache.drill.exec.proto.BitControl.CustomMessage other) { if (other == org.apache.drill.exec.proto.BitControl.CustomMessage.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasMessage()) { setMessage(other.getMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional bytes message = 2;</code> */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); message_ = getDefaultInstance().getMessage(); onChanged(); return this; }
public org.apache.drill.exec.proto.BitControl.CustomMessage getDefaultInstanceForType() { return org.apache.drill.exec.proto.BitControl.CustomMessage.getDefaultInstance(); }
/** * <code>optional bytes message = 2;</code> */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); message_ = getDefaultInstance().getMessage(); onChanged(); return this; }
public Builder mergeFrom(org.apache.drill.exec.proto.BitControl.CustomMessage other) { if (other == org.apache.drill.exec.proto.BitControl.CustomMessage.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasMessage()) { setMessage(other.getMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }