org.gitlab4j.api.models.ProjectStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitlab4j-api Show documentation
Show all versions of gitlab4j-api Show documentation
GitLab4J-API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories and servers via the GitLab REST API.
package org.gitlab4j.api.models;
import org.gitlab4j.api.utils.JacksonJson;
/**
* This class contains the sizing information from the project. To get this information,
* ProjectApi.getProject() has to be called with parameter statistics=true
* which is only allowed for GitLab admins.
*/
public class ProjectStatistics {
long commitCount;
long storageSize;
long repositorySize;
long wikiSize;
long lfsObjectsSize;
long jobArtifactsSize;
long packagesSize;
public long getCommitCount() {
return commitCount;
}
public void setCommitCount(long commitCount) {
this.commitCount = commitCount;
}
public long getStorageSize() {
return storageSize;
}
public void setStorageSize(long storageSize) {
this.storageSize = storageSize;
}
public long getRepositorySize() {
return repositorySize;
}
public void setRepositorySize(long repositorySize) {
this.repositorySize = repositorySize;
}
public long getWikiSize() {
return wikiSize;
}
public void setWikiSize(long wikiSize) {
this.wikiSize = wikiSize;
}
public long getLfsObjectsSize() {
return lfsObjectsSize;
}
public void setLfsObjectsSize(long lfsObjectsSize) {
this.lfsObjectsSize = lfsObjectsSize;
}
public long getJobArtifactsSize() {
return jobArtifactsSize;
}
public void setJobArtifactsSize(long jobArtifactsSize) {
this.jobArtifactsSize = jobArtifactsSize;
}
public long getPackagesSize() {
return packagesSize;
}
public void setPackagesSize(long packagesSize) {
this.packagesSize = packagesSize;
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}