Class SourceProvenance

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.SourceProvenance
All Implemented Interfaces:
SourceProvenanceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SourceProvenance extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • RESOLVED_STORAGE_SOURCE_FIELD_NUMBER

      public static final int RESOLVED_STORAGE_SOURCE_FIELD_NUMBER
      See Also:
    • RESOLVED_REPO_SOURCE_FIELD_NUMBER

      public static final int RESOLVED_REPO_SOURCE_FIELD_NUMBER
      See Also:
    • RESOLVED_STORAGE_SOURCE_MANIFEST_FIELD_NUMBER

      public static final int RESOLVED_STORAGE_SOURCE_MANIFEST_FIELD_NUMBER
      See Also:
    • RESOLVED_CONNECTED_REPOSITORY_FIELD_NUMBER

      public static final int RESOLVED_CONNECTED_REPOSITORY_FIELD_NUMBER
      See Also:
    • RESOLVED_GIT_SOURCE_FIELD_NUMBER

      public static final int RESOLVED_GIT_SOURCE_FIELD_NUMBER
      See Also:
    • FILE_HASHES_FIELD_NUMBER

      public static final int FILE_HASHES_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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;
      Specified by:
      hasResolvedStorageSource in interface SourceProvenanceOrBuilder
      Returns:
      Whether the resolvedStorageSource field is set.
    • 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;
      Specified by:
      getResolvedStorageSource in interface SourceProvenanceOrBuilder
      Returns:
      The resolvedStorageSource.
    • 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;
      Specified by:
      getResolvedStorageSourceOrBuilder in interface SourceProvenanceOrBuilder
    • 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;
      Specified by:
      hasResolvedRepoSource in interface SourceProvenanceOrBuilder
      Returns:
      Whether the resolvedRepoSource field is set.
    • 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;
      Specified by:
      getResolvedRepoSource in interface SourceProvenanceOrBuilder
      Returns:
      The resolvedRepoSource.
    • 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;
      Specified by:
      getResolvedRepoSourceOrBuilder in interface SourceProvenanceOrBuilder
    • 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;
      Specified by:
      hasResolvedStorageSourceManifest in interface SourceProvenanceOrBuilder
      Returns:
      Whether the resolvedStorageSourceManifest field is set.
    • 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;
      Specified by:
      getResolvedStorageSourceManifest in interface SourceProvenanceOrBuilder
      Returns:
      The resolvedStorageSourceManifest.
    • 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;
      Specified by:
      getResolvedStorageSourceManifestOrBuilder in interface SourceProvenanceOrBuilder
    • hasResolvedConnectedRepository

      public boolean hasResolvedConnectedRepository()
       Output only. A copy of the build's `source.connected_repository`, if
       exists, with any revisions resolved.
       
      .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasResolvedConnectedRepository in interface SourceProvenanceOrBuilder
      Returns:
      Whether the resolvedConnectedRepository field is set.
    • getResolvedConnectedRepository

      public ConnectedRepository getResolvedConnectedRepository()
       Output only. A copy of the build's `source.connected_repository`, if
       exists, with any revisions resolved.
       
      .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResolvedConnectedRepository in interface SourceProvenanceOrBuilder
      Returns:
      The resolvedConnectedRepository.
    • getResolvedConnectedRepositoryOrBuilder

      public ConnectedRepositoryOrBuilder getResolvedConnectedRepositoryOrBuilder()
       Output only. A copy of the build's `source.connected_repository`, if
       exists, with any revisions resolved.
       
      .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResolvedConnectedRepositoryOrBuilder in interface SourceProvenanceOrBuilder
    • hasResolvedGitSource

      public boolean hasResolvedGitSource()
       Output only. A copy of the build's `source.git_source`, if exists, with any
       revisions resolved.
       
      .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasResolvedGitSource in interface SourceProvenanceOrBuilder
      Returns:
      Whether the resolvedGitSource field is set.
    • getResolvedGitSource

      public GitSource getResolvedGitSource()
       Output only. A copy of the build's `source.git_source`, if exists, with any
       revisions resolved.
       
      .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResolvedGitSource in interface SourceProvenanceOrBuilder
      Returns:
      The resolvedGitSource.
    • getResolvedGitSourceOrBuilder

      public GitSourceOrBuilder getResolvedGitSourceOrBuilder()
       Output only. A copy of the build's `source.git_source`, if exists, with any
       revisions resolved.
       
      .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResolvedGitSourceOrBuilder in interface SourceProvenanceOrBuilder
    • getFileHashesCount

      public int getFileHashesCount()
      Description copied from interface: SourceProvenanceOrBuilder
       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];
      Specified by:
      getFileHashesCount in interface SourceProvenanceOrBuilder
    • containsFileHashes

      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];
      Specified by:
      containsFileHashes in interface SourceProvenanceOrBuilder
    • getFileHashes

      @Deprecated public Map<String,FileHashes> getFileHashes()
      Deprecated.
      Use getFileHashesMap() instead.
      Specified by:
      getFileHashes in interface SourceProvenanceOrBuilder
    • 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];
      Specified by:
      getFileHashesMap in interface SourceProvenanceOrBuilder
    • getFileHashesOrDefault

      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];
      Specified by:
      getFileHashesOrDefault in interface SourceProvenanceOrBuilder
    • getFileHashesOrThrow

      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];
      Specified by:
      getFileHashesOrThrow in interface SourceProvenanceOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SourceProvenance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceProvenance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceProvenance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceProvenance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceProvenance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceProvenance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceProvenance parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SourceProvenance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SourceProvenance parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SourceProvenance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SourceProvenance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SourceProvenance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SourceProvenance.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SourceProvenance.Builder newBuilder()
    • newBuilder

      public static SourceProvenance.Builder newBuilder(SourceProvenance prototype)
    • toBuilder

      public SourceProvenance.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SourceProvenance.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SourceProvenance getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SourceProvenance> parser()
    • getParserForType

      public com.google.protobuf.Parser<SourceProvenance> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SourceProvenance getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder