/** * <code>repeated .exec.shared.DrillPBError error = 3;</code> */ public Builder clearError() { if (errorBuilder_ == null) { error_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { errorBuilder_.clear(); } return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder setQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) { if (queryIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } queryId_ = value; onChanged(); } else { queryIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>repeated .exec.shared.DrillPBError error = 3;</code> */ public Builder addError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorIsMutable(); error_.add(value); onChanged(); } else { errorBuilder_.addMessage(value); } return this; } /**
/** * <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code> */ public Builder setQueryState(org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; queryState_ = value; onChanged(); return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryId.Builder getQueryIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getQueryIdFieldBuilder().getBuilder(); } /**
/** * <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code> */ public Builder clearQueryState() { bitField0_ = (bitField0_ & ~0x00000001); queryState_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING; onChanged(); return this; }
error_.addAll(other.error_); onChanged();
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) { if (queryIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) { queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial(); } else { queryId_ = value; } onChanged(); } else { queryIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>repeated .exec.shared.DrillPBError error = 3;</code> */ public Builder setError( int index, org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorIsMutable(); error_.set(index, value); onChanged(); } else { errorBuilder_.setMessage(index, value); } return this; } /**
/** * <code>repeated .exec.shared.DrillPBError error = 3;</code> */ public Builder addError( int index, org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorIsMutable(); error_.add(index, value); onChanged(); } else { errorBuilder_.addMessage(index, value); } return this; } /**
/** * <code>repeated .exec.shared.DrillPBError error = 3;</code> */ public Builder addError( org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { ensureErrorIsMutable(); error_.add(builderForValue.build()); onChanged(); } else { errorBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.DrillPBError error = 3;</code> */ public Builder addAllError( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.DrillPBError> values) { if (errorBuilder_ == null) { ensureErrorIsMutable(); super.addAll(values, error_); onChanged(); } else { errorBuilder_.addAllMessages(values); } return this; } /**
/** * <code>repeated .exec.shared.DrillPBError error = 3;</code> */ public Builder setError( int index, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { ensureErrorIsMutable(); error_.set(index, builderForValue.build()); onChanged(); } else { errorBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.DrillPBError error = 3;</code> */ public Builder addError( int index, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { ensureErrorIsMutable(); error_.add(index, builderForValue.build()); onChanged(); } else { errorBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>repeated .exec.shared.DrillPBError error = 3;</code> */ public Builder removeError(int index) { if (errorBuilder_ == null) { ensureErrorIsMutable(); error_.remove(index); onChanged(); } else { errorBuilder_.remove(index); } return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder clearQueryId() { if (queryIdBuilder_ == null) { queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance(); onChanged(); } else { queryIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /**
/** * <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code> */ public Builder setQueryState(org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; queryState_ = value; onChanged(); return this; } /**
/** * <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code> */ public Builder clearQueryState() { bitField0_ = (bitField0_ & ~0x00000001); queryState_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING; onChanged(); return this; }
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryId.Builder getQueryIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getQueryIdFieldBuilder().getBuilder(); } /**