Hash(es) of the build source, which can be used to verify that
the original source integrity was maintained in the build. Note that
FileHashes will only be populated if BuildOptions has requested a
SourceProvenanceHash.
The keys to this map are file paths used as build source and the values
contain the hash values for those files.
If the build source came in a single package such as a gzipped tarfile
(.tar.gz), the FileHash will be for the single path to that file.
Hash(es) of the build source, which can be used to verify that
the original source integrity was maintained in the build. Note that
FileHashes will only be populated if BuildOptions has requested a
SourceProvenanceHash.
The keys to this map are file paths used as build source and the values
contain the hash values for those files.
If the build source came in a single package such as a gzipped tarfile
(.tar.gz), the FileHash will be for the single path to that file.
Hash(es) of the build source, which can be used to verify that
the original source integrity was maintained in the build. Note that
FileHashes will only be populated if BuildOptions has requested a
SourceProvenanceHash.
The keys to this map are file paths used as build source and the values
contain the hash values for those files.
If the build source came in a single package such as a gzipped tarfile
(.tar.gz), the FileHash will be for the single path to that file.
Hash(es) of the build source, which can be used to verify that
the original source integrity was maintained in the build. Note that
FileHashes will only be populated if BuildOptions has requested a
SourceProvenanceHash.
The keys to this map are file paths used as build source and the values
contain the hash values for those files.
If the build source came in a single package such as a gzipped tarfile
(.tar.gz), the FileHash will be for the single path to that file.
Hash(es) of the build source, which can be used to verify that
the original source integrity was maintained in the build. Note that
FileHashes will only be populated if BuildOptions has requested a
SourceProvenanceHash.
The keys to this map are file paths used as build source and the values
contain the hash values for those files.
If the build source came in a single package such as a gzipped tarfile
(.tar.gz), the FileHash will be for the single path to that file.
[[["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 SourceProvenanceOrBuilder (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.cloudbuild.v1.SourceProvenanceOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.cloudbuild.v1.SourceProvenanceOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.cloudbuild.v1.SourceProvenanceOrBuilder) \n\n public interface SourceProvenanceOrBuilder 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### containsFileHashes(String key)\n\n public abstract boolean containsFileHashes(String key)\n\nHash(es) of the build source, which can be used to verify that\nthe original source integrity was maintained in the build. Note that\n`FileHashes` will only be populated if `BuildOptions` has requested a\n`SourceProvenanceHash`.\nThe keys to this map are file paths used as build source and the values\ncontain the hash values for those files.\nIf the build source came in a single package such as a gzipped tarfile\n(`.tar.gz`), the `FileHash` will be for the single path to that file.\n\n`map\u003cstring, .google.events.cloud.cloudbuild.v1.FileHashes\u003e file_hashes = 4;`\n\n### getFileHashes()\n\n public abstract Map\u003cString,FileHashes\u003e getFileHashes()\n\nUse [#getFileHashesMap()](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.cloudbuild.v1.SourceProvenanceOrBuilder#com_google_events_cloud_cloudbuild_v1_SourceProvenanceOrBuilder_getFileHashesMap__) instead.\n\n### getFileHashesCount()\n\n public abstract int getFileHashesCount()\n\nHash(es) of the build source, which can be used to verify that\nthe original source integrity was maintained in the build. Note that\n`FileHashes` will only be populated if `BuildOptions` has requested a\n`SourceProvenanceHash`.\nThe keys to this map are file paths used as build source and the values\ncontain the hash values for those files.\nIf the build source came in a single package such as a gzipped tarfile\n(`.tar.gz`), the `FileHash` will be for the single path to that file.\n\n`map\u003cstring, .google.events.cloud.cloudbuild.v1.FileHashes\u003e file_hashes = 4;`\n\n### getFileHashesMap()\n\n public abstract Map\u003cString,FileHashes\u003e getFileHashesMap()\n\nHash(es) of the build source, which can be used to verify that\nthe original source integrity was maintained in the build. Note that\n`FileHashes` will only be populated if `BuildOptions` has requested a\n`SourceProvenanceHash`.\nThe keys to this map are file paths used as build source and the values\ncontain the hash values for those files.\nIf the build source came in a single package such as a gzipped tarfile\n(`.tar.gz`), the `FileHash` will be for the single path to that file.\n\n`map\u003cstring, .google.events.cloud.cloudbuild.v1.FileHashes\u003e file_hashes = 4;`\n\n### getFileHashesOrDefault(String key, FileHashes defaultValue)\n\n public abstract FileHashes getFileHashesOrDefault(String key, FileHashes defaultValue)\n\nHash(es) of the build source, which can be used to verify that\nthe original source integrity was maintained in the build. Note that\n`FileHashes` will only be populated if `BuildOptions` has requested a\n`SourceProvenanceHash`.\nThe keys to this map are file paths used as build source and the values\ncontain the hash values for those files.\nIf the build source came in a single package such as a gzipped tarfile\n(`.tar.gz`), the `FileHash` will be for the single path to that file.\n\n`map\u003cstring, .google.events.cloud.cloudbuild.v1.FileHashes\u003e file_hashes = 4;`\n\n### getFileHashesOrThrow(String key)\n\n public abstract FileHashes getFileHashesOrThrow(String key)\n\nHash(es) of the build source, which can be used to verify that\nthe original source integrity was maintained in the build. Note that\n`FileHashes` will only be populated if `BuildOptions` has requested a\n`SourceProvenanceHash`.\nThe keys to this map are file paths used as build source and the values\ncontain the hash values for those files.\nIf the build source came in a single package such as a gzipped tarfile\n(`.tar.gz`), the `FileHash` will be for the single path to that file.\n\n`map\u003cstring, .google.events.cloud.cloudbuild.v1.FileHashes\u003e file_hashes = 4;`\n\n### getResolvedRepoSource()\n\n public abstract RepoSource getResolvedRepoSource()\n\nA copy of the build's `source.repo_source`, if exists, with any\nrevisions resolved.\n\n`.google.events.cloud.cloudbuild.v1.RepoSource resolved_repo_source = 6;`\n\n### getResolvedRepoSourceOrBuilder()\n\n public abstract RepoSourceOrBuilder getResolvedRepoSourceOrBuilder()\n\nA copy of the build's `source.repo_source`, if exists, with any\nrevisions resolved.\n\n`.google.events.cloud.cloudbuild.v1.RepoSource resolved_repo_source = 6;`\n\n### getResolvedStorageSource()\n\n public abstract StorageSource getResolvedStorageSource()\n\nA copy of the build's `source.storage_source`, if exists, with any\ngenerations resolved.\n\n`.google.events.cloud.cloudbuild.v1.StorageSource resolved_storage_source = 3;`\n\n### getResolvedStorageSourceOrBuilder()\n\n public abstract StorageSourceOrBuilder getResolvedStorageSourceOrBuilder()\n\nA copy of the build's `source.storage_source`, if exists, with any\ngenerations resolved.\n\n`.google.events.cloud.cloudbuild.v1.StorageSource resolved_storage_source = 3;`\n\n### hasResolvedRepoSource()\n\n public abstract boolean hasResolvedRepoSource()\n\nA copy of the build's `source.repo_source`, if exists, with any\nrevisions resolved.\n\n`.google.events.cloud.cloudbuild.v1.RepoSource resolved_repo_source = 6;`\n\n### hasResolvedStorageSource()\n\n public abstract boolean hasResolvedStorageSource()\n\nA copy of the build's `source.storage_source`, if exists, with any\ngenerations resolved.\n\n`.google.events.cloud.cloudbuild.v1.StorageSource resolved_storage_source = 3;`"]]