Implementation:Treeverse LakeFS Java SDK Model PullRequest
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing a pull request in the lakeFS Java SDK.
Description
The PullRequest class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to pull request fields through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when working with pull requests for branch review workflows through the lakeFS Java SDK API classes.
Code Reference
Source Location
- Repository: Treeverse_LakeFS
- File: clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequest.java
- Lines: 1-622
Signature
public class PullRequest {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.PullRequest;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| status | StatusEnum | Yes | Pull request status (open, closed, merged) |
| title | String | Yes | Title of the pull request |
| description | String | No | Detailed description of the pull request |
| id | String | Yes | Unique identifier for the pull request |
| creation_date | OffsetDateTime | Yes | Timestamp when the pull request was created |
| author | String | Yes | Author of the pull request |
| source_branch | String | Yes | Source branch to merge from |
| destination_branch | String | Yes | Destination branch to merge into |
| merged_commit_id | String | No | Commit ID if the pull request was merged |
| closed_date | OffsetDateTime | No | Timestamp when the pull request was closed |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation of the object |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.PullRequest;
PullRequest obj = new PullRequest();
obj.setTitle("Add new dataset");
obj.setStatus(PullRequest.StatusEnum.OPEN);
obj.setSourceBranch("feature-branch");
obj.setDestinationBranch("main");
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment