Package com.google.cloudbuild.v1
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProvenance of the source.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsFileHashes(String key) Output only.booleanstatic SourceProvenancestatic final com.google.protobuf.Descriptors.DescriptorDeprecated.intOutput only.Output only.getFileHashesOrDefault(String key, FileHashes defaultValue) Output only.Output only.com.google.protobuf.Parser<SourceProvenance>Output only.Output only.Output only.Output only.A copy of the build's `source.repo_source`, if exists, with any revisions resolved.A copy of the build's `source.repo_source`, if exists, with any revisions resolved.A copy of the build's `source.storage_source`, if exists, with any generations resolved.A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved.A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved.A copy of the build's `source.storage_source`, if exists, with any generations resolved.intinthashCode()booleanOutput only.booleanOutput only.booleanA copy of the build's `source.repo_source`, if exists, with any revisions resolved.booleanA copy of the build's `source.storage_source`, if exists, with any generations resolved.booleanA copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic SourceProvenance.Builderstatic SourceProvenance.BuildernewBuilder(SourceProvenance prototype) protected SourceProvenance.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SourceProvenanceparseDelimitedFrom(InputStream input) static SourceProvenanceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceProvenanceparseFrom(byte[] data) static SourceProvenanceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceProvenanceparseFrom(com.google.protobuf.ByteString data) static SourceProvenanceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceProvenanceparseFrom(com.google.protobuf.CodedInputStream input) static SourceProvenanceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceProvenanceparseFrom(InputStream input) static SourceProvenanceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceProvenanceparseFrom(ByteBuffer data) static SourceProvenanceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SourceProvenance>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.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:
hasResolvedStorageSourcein interfaceSourceProvenanceOrBuilder- Returns:
- Whether the resolvedStorageSource field is set.
-
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:
getResolvedStorageSourcein interfaceSourceProvenanceOrBuilder- Returns:
- The resolvedStorageSource.
-
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:
getResolvedStorageSourceOrBuilderin interfaceSourceProvenanceOrBuilder
-
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:
hasResolvedRepoSourcein interfaceSourceProvenanceOrBuilder- Returns:
- Whether the resolvedRepoSource field is set.
-
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:
getResolvedRepoSourcein interfaceSourceProvenanceOrBuilder- Returns:
- The resolvedRepoSource.
-
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:
getResolvedRepoSourceOrBuilderin interfaceSourceProvenanceOrBuilder
-
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:
hasResolvedStorageSourceManifestin interfaceSourceProvenanceOrBuilder- Returns:
- Whether the resolvedStorageSourceManifest field is set.
-
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:
getResolvedStorageSourceManifestin interfaceSourceProvenanceOrBuilder- Returns:
- The resolvedStorageSourceManifest.
-
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:
getResolvedStorageSourceManifestOrBuilderin interfaceSourceProvenanceOrBuilder
-
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:
hasResolvedConnectedRepositoryin interfaceSourceProvenanceOrBuilder- Returns:
- Whether the resolvedConnectedRepository field is set.
-
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:
getResolvedConnectedRepositoryin interfaceSourceProvenanceOrBuilder- Returns:
- The resolvedConnectedRepository.
-
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:
getResolvedConnectedRepositoryOrBuilderin interfaceSourceProvenanceOrBuilder
-
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:
hasResolvedGitSourcein interfaceSourceProvenanceOrBuilder- Returns:
- Whether the resolvedGitSource field is set.
-
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:
getResolvedGitSourcein interfaceSourceProvenanceOrBuilder- Returns:
- The resolvedGitSource.
-
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:
getResolvedGitSourceOrBuilderin interfaceSourceProvenanceOrBuilder
-
getFileHashesCount
public int getFileHashesCount()Description copied from interface:SourceProvenanceOrBuilderOutput 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:
getFileHashesCountin interfaceSourceProvenanceOrBuilder
-
containsFileHashes
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:
containsFileHashesin interfaceSourceProvenanceOrBuilder
-
getFileHashes
Deprecated.UsegetFileHashesMap()instead.- Specified by:
getFileHashesin interfaceSourceProvenanceOrBuilder
-
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:
getFileHashesMapin interfaceSourceProvenanceOrBuilder
-
getFileHashesOrDefault
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:
getFileHashesOrDefaultin interfaceSourceProvenanceOrBuilder
-
getFileHashesOrThrow
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:
getFileHashesOrThrowin interfaceSourceProvenanceOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static SourceProvenance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SourceProvenance.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-