/** * <code>optional .exec.user.QueryPriority priority = 1008;</code> */ public Builder setPriority(com.dremio.exec.proto.UserProtos.QueryPriority value) { if (priorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } priority_ = value; onChanged(); } else { priorityBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /**
/** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder clearFragments() { if (fragmentsBuilder_ == null) { fragments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { fragmentsBuilder_.clear(); } return this; } /**
/** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ public Builder setResultsMode(com.dremio.exec.proto.UserProtos.QueryResultsMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; resultsMode_ = value; onChanged(); return this; } /**
/** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder removeFragments(int index) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.remove(index); onChanged(); } else { fragmentsBuilder_.remove(index); } return this; } /**
/** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public Builder setPlanBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; plan_ = value; onChanged(); return this; }
/** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public Builder clearPlan() { bitField0_ = (bitField0_ & ~0x00000004); plan_ = getDefaultInstance().getPlan(); onChanged(); return this; } /**
/** * <code>optional .exec.user.QueryPriority priority = 1008;</code> */ public Builder setPriority( com.dremio.exec.proto.UserProtos.QueryPriority.Builder builderForValue) { if (priorityBuilder_ == null) { priority_ = builderForValue.build(); onChanged(); } else { priorityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /**
/** * <code>optional .exec.user.QueryPriority priority = 1008;</code> */ public Builder clearPriority() { if (priorityBuilder_ == null) { priority_ = com.dremio.exec.proto.UserProtos.QueryPriority.getDefaultInstance(); onChanged(); } else { priorityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /**
/** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public com.dremio.exec.proto.UserProtos.PreparedStatementHandle.Builder getPreparedStatementHandleBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPreparedStatementHandleFieldBuilder().getBuilder(); } /**
/** * <code>optional string description = 1010;</code> */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; description_ = value; onChanged(); return this; } /**
/** * <code>optional string description = 1010;</code> */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; description_ = value; onChanged(); return this; }
/** * <code>optional .exec.user.SubmissionSource source = 1007 [default = UNKNOWN_SOURCE];</code> */ public Builder setSource(com.dremio.exec.proto.UserProtos.SubmissionSource value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; source_ = value; onChanged(); return this; } /**
/** * <code>optional .exec.shared.QueryType type = 2;</code> */ public Builder setType(com.dremio.exec.proto.UserBitShared.QueryType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /**
/** * <code>optional int64 max_allocation = 1009;</code> */ public Builder setMaxAllocation(long value) { bitField0_ |= 0x00000080; maxAllocation_ = value; onChanged(); return this; } /**
/** * <code>optional .exec.shared.QueryType type = 2;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = com.dremio.exec.proto.UserBitShared.QueryType.SQL; onChanged(); return this; }
/** * <code>optional string description = 1010;</code> */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000100); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
/** * <code>optional int64 max_allocation = 1009;</code> */ public Builder clearMaxAllocation() { bitField0_ = (bitField0_ & ~0x00000080); maxAllocation_ = 0L; onChanged(); return this; }
/** * <code>optional .exec.user.QueryPriority priority = 1008;</code> */ public com.dremio.exec.proto.UserProtos.QueryPriority.Builder getPriorityBuilder() { bitField0_ |= 0x00000040; onChanged(); return getPriorityFieldBuilder().getBuilder(); } /**
/** * <code>optional .exec.user.SubmissionSource source = 1007 [default = UNKNOWN_SOURCE];</code> */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000020); source_ = com.dremio.exec.proto.UserProtos.SubmissionSource.UNKNOWN_SOURCE; onChanged(); return this; }
/** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ public Builder clearResultsMode() { bitField0_ = (bitField0_ & ~0x00000001); resultsMode_ = com.dremio.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL; onChanged(); return this; }