[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface GitSourceOrBuilder (0.74.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.74.0 (latest)](/java/docs/reference/google-cloud-private-catalog/latest/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.72.0](/java/docs/reference/google-cloud-private-catalog/0.72.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.70.0](/java/docs/reference/google-cloud-private-catalog/0.70.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.69.0](/java/docs/reference/google-cloud-private-catalog/0.69.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.66.0](/java/docs/reference/google-cloud-private-catalog/0.66.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.65.0](/java/docs/reference/google-cloud-private-catalog/0.65.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.64.0](/java/docs/reference/google-cloud-private-catalog/0.64.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.62.0](/java/docs/reference/google-cloud-private-catalog/0.62.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.61.0](/java/docs/reference/google-cloud-private-catalog/0.61.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.60.0](/java/docs/reference/google-cloud-private-catalog/0.60.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.59.0](/java/docs/reference/google-cloud-private-catalog/0.59.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.58.0](/java/docs/reference/google-cloud-private-catalog/0.58.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.57.0](/java/docs/reference/google-cloud-private-catalog/0.57.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.56.0](/java/docs/reference/google-cloud-private-catalog/0.56.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.55.0](/java/docs/reference/google-cloud-private-catalog/0.55.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.54.0](/java/docs/reference/google-cloud-private-catalog/0.54.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.53.0](/java/docs/reference/google-cloud-private-catalog/0.53.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.51.0](/java/docs/reference/google-cloud-private-catalog/0.51.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.50.0](/java/docs/reference/google-cloud-private-catalog/0.50.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.49.0](/java/docs/reference/google-cloud-private-catalog/0.49.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.48.0](/java/docs/reference/google-cloud-private-catalog/0.48.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.47.0](/java/docs/reference/google-cloud-private-catalog/0.47.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.46.0](/java/docs/reference/google-cloud-private-catalog/0.46.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.45.0](/java/docs/reference/google-cloud-private-catalog/0.45.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.44.0](/java/docs/reference/google-cloud-private-catalog/0.44.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.43.0](/java/docs/reference/google-cloud-private-catalog/0.43.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.42.0](/java/docs/reference/google-cloud-private-catalog/0.42.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.41.0](/java/docs/reference/google-cloud-private-catalog/0.41.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.39.0](/java/docs/reference/google-cloud-private-catalog/0.39.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.38.0](/java/docs/reference/google-cloud-private-catalog/0.38.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.37.0](/java/docs/reference/google-cloud-private-catalog/0.37.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.36.0](/java/docs/reference/google-cloud-private-catalog/0.36.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.35.0](/java/docs/reference/google-cloud-private-catalog/0.35.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.34.0](/java/docs/reference/google-cloud-private-catalog/0.34.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.33.0](/java/docs/reference/google-cloud-private-catalog/0.33.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.32.0](/java/docs/reference/google-cloud-private-catalog/0.32.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.31.0](/java/docs/reference/google-cloud-private-catalog/0.31.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.30.0](/java/docs/reference/google-cloud-private-catalog/0.30.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.29.0](/java/docs/reference/google-cloud-private-catalog/0.29.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.26.0](/java/docs/reference/google-cloud-private-catalog/0.26.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.25.0](/java/docs/reference/google-cloud-private-catalog/0.25.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.24.0](/java/docs/reference/google-cloud-private-catalog/0.24.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.23.0](/java/docs/reference/google-cloud-private-catalog/0.23.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.22.0](/java/docs/reference/google-cloud-private-catalog/0.22.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.21.0](/java/docs/reference/google-cloud-private-catalog/0.21.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.20.0](/java/docs/reference/google-cloud-private-catalog/0.20.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-private-catalog/0.19.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.18.0](/java/docs/reference/google-cloud-private-catalog/0.18.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.17.0](/java/docs/reference/google-cloud-private-catalog/0.17.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.16.0](/java/docs/reference/google-cloud-private-catalog/0.16.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-private-catalog/0.15.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-private-catalog/0.14.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.13.0](/java/docs/reference/google-cloud-private-catalog/0.13.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-private-catalog/0.11.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-private-catalog/0.10.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.9.0](/java/docs/reference/google-cloud-private-catalog/0.9.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-private-catalog/0.8.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-private-catalog/0.7.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.6.0](/java/docs/reference/google-cloud-private-catalog/0.6.0/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder)\n- [0.3.7](/java/docs/reference/google-cloud-private-catalog/0.3.7/com.google.cloud.privatecatalog.v1beta1.GitSourceOrBuilder) \n\n public interface GitSourceOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getBranch()\n\n public abstract String getBranch()\n\nThe revision branch to use.\n\n`string branch = 4;`\n\n### getBranchBytes()\n\n public abstract ByteString getBranchBytes()\n\nThe revision branch to use.\n\n`string branch = 4;`\n\n### getCommit()\n\n public abstract String getCommit()\n\nThe revision commit to use.\n\n`string commit = 3;`\n\n### getCommitBytes()\n\n public abstract ByteString getCommitBytes()\n\nThe revision commit to use.\n\n`string commit = 3;`\n\n### getDir()\n\n public abstract String getDir()\n\nDirectory, relative to the source root, in which to run the build.\n\nThis must be a relative path. If a step's `dir` is specified and is an\nabsolute path, this value is ignored for that step's execution.\n\n`string dir = 2;`\n\n### getDirBytes()\n\n public abstract ByteString getDirBytes()\n\nDirectory, relative to the source root, in which to run the build.\n\nThis must be a relative path. If a step's `dir` is specified and is an\nabsolute path, this value is ignored for that step's execution.\n\n`string dir = 2;`\n\n### getRefCase()\n\n public abstract GitSource.RefCase getRefCase()\n\n### getRepo()\n\n public abstract String getRepo()\n\nLocation of the Git repo to build.\n\n`string repo = 1;`\n\n### getRepoBytes()\n\n public abstract ByteString getRepoBytes()\n\nLocation of the Git repo to build.\n\n`string repo = 1;`\n\n### getTag()\n\n public abstract String getTag()\n\nThe revision tag to use.\n\n`string tag = 5;`\n\n### getTagBytes()\n\n public abstract ByteString getTagBytes()\n\nThe revision tag to use.\n\n`string tag = 5;`\n\n### hasBranch()\n\n public abstract boolean hasBranch()\n\nThe revision branch to use.\n\n`string branch = 4;`\n\n### hasCommit()\n\n public abstract boolean hasCommit()\n\nThe revision commit to use.\n\n`string commit = 3;`\n\n### hasTag()\n\n public abstract boolean hasTag()\n\nThe revision tag to use.\n\n`string tag = 5;`"]]