[[["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-07 UTC."],[],[],null,["# Interface SourceOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.functions.v2.SourceOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.functions.v2.SourceOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.functions.v2.SourceOrBuilder) \n\n public interface SourceOrBuilder 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### getRepoSource()\n\n public abstract RepoSource getRepoSource()\n\nIf provided, get the source from this location in a Cloud Source\nRepository.\n\n`.google.events.cloud.functions.v2.RepoSource repo_source = 2;`\n\n### getRepoSourceOrBuilder()\n\n public abstract RepoSourceOrBuilder getRepoSourceOrBuilder()\n\nIf provided, get the source from this location in a Cloud Source\nRepository.\n\n`.google.events.cloud.functions.v2.RepoSource repo_source = 2;`\n\n### getSourceCase()\n\n public abstract Source.SourceCase getSourceCase()\n\n### getStorageSource()\n\n public abstract StorageSource getStorageSource()\n\nIf provided, get the source from this location in Google Cloud Storage.\n\n`.google.events.cloud.functions.v2.StorageSource storage_source = 1;`\n\n### getStorageSourceOrBuilder()\n\n public abstract StorageSourceOrBuilder getStorageSourceOrBuilder()\n\nIf provided, get the source from this location in Google Cloud Storage.\n\n`.google.events.cloud.functions.v2.StorageSource storage_source = 1;`\n\n### hasRepoSource()\n\n public abstract boolean hasRepoSource()\n\nIf provided, get the source from this location in a Cloud Source\nRepository.\n\n`.google.events.cloud.functions.v2.RepoSource repo_source = 2;`\n\n### hasStorageSource()\n\n public abstract boolean hasStorageSource()\n\nIf provided, get the source from this location in Google Cloud Storage.\n\n`.google.events.cloud.functions.v2.StorageSource storage_source = 1;`"]]