/** * <code>optional .exec.shared.ExceptionWrapper exception = 5;</code> */ public Builder setException(org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper value) { if (exceptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exception_ = value; onChanged(); } else { exceptionBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .exec.DrillbitEndpoint endpoint = 2;</code> */ public Builder setEndpoint(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) { if (endpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endpoint_ = value; onChanged(); } else { endpointBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code> * * <pre> *optional, used when providing location of error within a piece of text. * </pre> */ public Builder clearParsingError() { if (parsingErrorBuilder_ == null) { parsingError_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { parsingErrorBuilder_.clear(); } return this; } /**
/** * <code>optional .exec.shared.ExceptionWrapper exception = 5;</code> */ public Builder mergeException(org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper value) { if (exceptionBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && exception_ != org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance()) { exception_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.newBuilder(exception_).mergeFrom(value).buildPartial(); } else { exception_ = value; } onChanged(); } else { exceptionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code> * * <pre> *optional, used when providing location of error within a piece of text. * </pre> */ public Builder removeParsingError(int index) { if (parsingErrorBuilder_ == null) { ensureParsingErrorIsMutable(); parsingError_.remove(index); onChanged(); } else { parsingErrorBuilder_.remove(index); } return this; } /**
/** * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code> * * <pre> *optional, used when providing location of error within a piece of text. * </pre> */ public Builder addAllParsingError( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.ParsingError> values) { if (parsingErrorBuilder_ == null) { ensureParsingErrorIsMutable(); super.addAll(values, parsingError_); onChanged(); } else { parsingErrorBuilder_.addAllMessages(values); } return this; } /**
/** * <code>optional string error_id = 1;</code> * * <pre> * for debug tracing purposes * </pre> */ public Builder setErrorId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; errorId_ = value; onChanged(); return this; } /**
/** * <code>optional string error_id = 1;</code> * * <pre> * for debug tracing purposes * </pre> */ public Builder setErrorIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; errorId_ = value; onChanged(); return this; }
/** * <code>optional .exec.shared.ExceptionWrapper exception = 5;</code> */ public Builder setException( org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.Builder builderForValue) { if (exceptionBuilder_ == null) { exception_ = builderForValue.build(); onChanged(); } else { exceptionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .exec.DrillbitEndpoint endpoint = 2;</code> */ public Builder setEndpoint( org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder builderForValue) { if (endpointBuilder_ == null) { endpoint_ = builderForValue.build(); onChanged(); } else { endpointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional string message = 4;</code> */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; message_ = value; onChanged(); return this; } /**
/** * <code>optional .exec.DrillbitEndpoint endpoint = 2;</code> */ public Builder clearEndpoint() { if (endpointBuilder_ == null) { endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance(); onChanged(); } else { endpointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /**
/** * <code>optional string error_id = 1;</code> * * <pre> * for debug tracing purposes * </pre> */ public Builder clearErrorId() { bitField0_ = (bitField0_ & ~0x00000001); errorId_ = getDefaultInstance().getErrorId(); onChanged(); return this; } /**
/** * <code>optional .exec.shared.ExceptionWrapper exception = 5;</code> */ public Builder clearException() { if (exceptionBuilder_ == null) { exception_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance(); onChanged(); } else { exceptionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /**
/** * <code>optional string message = 4;</code> */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; message_ = value; onChanged(); return this; }
/** * <code>optional string message = 4;</code> */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000008); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
/** * <code>optional .exec.shared.DrillPBError.ErrorType error_type = 3;</code> */ public Builder clearErrorType() { bitField0_ = (bitField0_ & ~0x00000004); errorType_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.CONNECTION; onChanged(); return this; }
/** * <code>optional .exec.shared.DrillPBError.ErrorType error_type = 3;</code> */ public Builder setErrorType(org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; errorType_ = value; onChanged(); return this; } /**
/** * <code>optional .exec.shared.ExceptionWrapper exception = 5;</code> */ public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.Builder getExceptionBuilder() { bitField0_ |= 0x00000010; onChanged(); return getExceptionFieldBuilder().getBuilder(); } /**
/** * <code>optional .exec.DrillbitEndpoint endpoint = 2;</code> */ public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder getEndpointBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEndpointFieldBuilder().getBuilder(); } /**