public static final class SourceProvenance.Builder extends GeneratedMessageV3.Builder<SourceProvenance.Builder> implements SourceProvenanceOrBuilder
Provenance of the source. Ways to find the original source, or verify that
some source was used for this build.
Protobuf type google.devtools.cloudbuild.v1.SourceProvenance
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SourceProvenance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SourceProvenance build()
Returns
buildPartial()
public SourceProvenance buildPartial()
Returns
clear()
public SourceProvenance.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SourceProvenance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFileHashes()
public SourceProvenance.Builder clearFileHashes()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SourceProvenance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearResolvedRepoSource()
public SourceProvenance.Builder clearResolvedRepoSource()
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;
Returns
clearResolvedStorageSource()
public SourceProvenance.Builder clearResolvedStorageSource()
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;
Returns
clearResolvedStorageSourceManifest()
public SourceProvenance.Builder clearResolvedStorageSourceManifest()
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
.google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9;
Returns
clone()
public SourceProvenance.Builder clone()
Returns
Overrides
containsFileHashes(String key)
public boolean containsFileHashes(String key)
Output only. 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.
map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
getDefaultInstanceForType()
public SourceProvenance getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFileHashes()
public Map<String,FileHashes> getFileHashes()
Returns
getFileHashesCount()
public int getFileHashesCount()
Output only. 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.
map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getFileHashesMap()
public Map<String,FileHashes> getFileHashesMap()
Output only. 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.
map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getFileHashesOrDefault(String key, FileHashes defaultValue)
public FileHashes getFileHashesOrDefault(String key, FileHashes defaultValue)
Output only. 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.
map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
getFileHashesOrThrow(String key)
public FileHashes getFileHashesOrThrow(String key)
Output only. 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.
map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
getMutableFileHashes()
public Map<String,FileHashes> getMutableFileHashes()
Use alternate mutation accessors instead.
Returns
getResolvedRepoSource()
public RepoSource getResolvedRepoSource()
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;
Returns
getResolvedRepoSourceBuilder()
public RepoSource.Builder getResolvedRepoSourceBuilder()
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;
Returns
getResolvedRepoSourceOrBuilder()
public RepoSourceOrBuilder getResolvedRepoSourceOrBuilder()
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;
Returns
getResolvedStorageSource()
public StorageSource getResolvedStorageSource()
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;
Returns
getResolvedStorageSourceBuilder()
public StorageSource.Builder getResolvedStorageSourceBuilder()
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;
Returns
getResolvedStorageSourceManifest()
public StorageSourceManifest getResolvedStorageSourceManifest()
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
.google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9;
Returns
getResolvedStorageSourceManifestBuilder()
public StorageSourceManifest.Builder getResolvedStorageSourceManifestBuilder()
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
.google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9;
Returns
getResolvedStorageSourceManifestOrBuilder()
public StorageSourceManifestOrBuilder getResolvedStorageSourceManifestOrBuilder()
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
.google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9;
Returns
getResolvedStorageSourceOrBuilder()
public StorageSourceOrBuilder getResolvedStorageSourceOrBuilder()
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;
Returns
hasResolvedRepoSource()
public boolean hasResolvedRepoSource()
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;
Returns
Type | Description |
boolean | Whether the resolvedRepoSource field is set.
|
hasResolvedStorageSource()
public boolean hasResolvedStorageSource()
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;
Returns
Type | Description |
boolean | Whether the resolvedStorageSource field is set.
|
hasResolvedStorageSourceManifest()
public boolean hasResolvedStorageSourceManifest()
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
.google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9;
Returns
Type | Description |
boolean | Whether the resolvedStorageSourceManifest field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SourceProvenance other)
public SourceProvenance.Builder mergeFrom(SourceProvenance other)
Parameter
Returns
public SourceProvenance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SourceProvenance.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeResolvedRepoSource(RepoSource value)
public SourceProvenance.Builder mergeResolvedRepoSource(RepoSource value)
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;
Parameter
Returns
mergeResolvedStorageSource(StorageSource value)
public SourceProvenance.Builder mergeResolvedStorageSource(StorageSource value)
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;
Parameter
Returns
mergeResolvedStorageSourceManifest(StorageSourceManifest value)
public SourceProvenance.Builder mergeResolvedStorageSourceManifest(StorageSourceManifest value)
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
.google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SourceProvenance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllFileHashes(Map<String,FileHashes> values)
public SourceProvenance.Builder putAllFileHashes(Map<String,FileHashes> values)
Output only. 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.
map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
putFileHashes(String key, FileHashes value)
public SourceProvenance.Builder putFileHashes(String key, FileHashes value)
Output only. 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.
map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
removeFileHashes(String key)
public SourceProvenance.Builder removeFileHashes(String key)
Output only. 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.
map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SourceProvenance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SourceProvenance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setResolvedRepoSource(RepoSource value)
public SourceProvenance.Builder setResolvedRepoSource(RepoSource value)
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;
Parameter
Returns
setResolvedRepoSource(RepoSource.Builder builderForValue)
public SourceProvenance.Builder setResolvedRepoSource(RepoSource.Builder builderForValue)
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;
Parameter
Returns
setResolvedStorageSource(StorageSource value)
public SourceProvenance.Builder setResolvedStorageSource(StorageSource value)
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;
Parameter
Returns
setResolvedStorageSource(StorageSource.Builder builderForValue)
public SourceProvenance.Builder setResolvedStorageSource(StorageSource.Builder builderForValue)
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;
Parameter
Returns
setResolvedStorageSourceManifest(StorageSourceManifest value)
public SourceProvenance.Builder setResolvedStorageSourceManifest(StorageSourceManifest value)
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
.google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9;
Parameter
Returns
setResolvedStorageSourceManifest(StorageSourceManifest.Builder builderForValue)
public SourceProvenance.Builder setResolvedStorageSourceManifest(StorageSourceManifest.Builder builderForValue)
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
.google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SourceProvenance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides