com.databricks.sdk.service.workspace.RepoInfo Maven / Gradle / Ivy
The newest version!
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.workspace;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/** Git folder (repo) information. */
@Generated
public class RepoInfo {
/** Name of the current git branch of the git folder (repo). */
@JsonProperty("branch")
private String branch;
/** Current git commit id of the git folder (repo). */
@JsonProperty("head_commit_id")
private String headCommitId;
/** Id of the git folder (repo) in the Workspace. */
@JsonProperty("id")
private Long id;
/** Root path of the git folder (repo) in the Workspace. */
@JsonProperty("path")
private String path;
/** Git provider of the remote git repository, e.g. `gitHub`. */
@JsonProperty("provider")
private String provider;
/** Sparse checkout config for the git folder (repo). */
@JsonProperty("sparse_checkout")
private SparseCheckout sparseCheckout;
/** URL of the remote git repository. */
@JsonProperty("url")
private String url;
public RepoInfo setBranch(String branch) {
this.branch = branch;
return this;
}
public String getBranch() {
return branch;
}
public RepoInfo setHeadCommitId(String headCommitId) {
this.headCommitId = headCommitId;
return this;
}
public String getHeadCommitId() {
return headCommitId;
}
public RepoInfo setId(Long id) {
this.id = id;
return this;
}
public Long getId() {
return id;
}
public RepoInfo setPath(String path) {
this.path = path;
return this;
}
public String getPath() {
return path;
}
public RepoInfo setProvider(String provider) {
this.provider = provider;
return this;
}
public String getProvider() {
return provider;
}
public RepoInfo setSparseCheckout(SparseCheckout sparseCheckout) {
this.sparseCheckout = sparseCheckout;
return this;
}
public SparseCheckout getSparseCheckout() {
return sparseCheckout;
}
public RepoInfo setUrl(String url) {
this.url = url;
return this;
}
public String getUrl() {
return url;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
RepoInfo that = (RepoInfo) o;
return Objects.equals(branch, that.branch)
&& Objects.equals(headCommitId, that.headCommitId)
&& Objects.equals(id, that.id)
&& Objects.equals(path, that.path)
&& Objects.equals(provider, that.provider)
&& Objects.equals(sparseCheckout, that.sparseCheckout)
&& Objects.equals(url, that.url);
}
@Override
public int hashCode() {
return Objects.hash(branch, headCommitId, id, path, provider, sparseCheckout, url);
}
@Override
public String toString() {
return new ToStringer(RepoInfo.class)
.add("branch", branch)
.add("headCommitId", headCommitId)
.add("id", id)
.add("path", path)
.add("provider", provider)
.add("sparseCheckout", sparseCheckout)
.add("url", url)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy