Package io.grafeas.v1beta1.provenance
Class Source
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grafeas.v1beta1.provenance.Source
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SourceOrBuilder,Serializable
@Generated
public final class Source
extends com.google.protobuf.GeneratedMessage
implements SourceOrBuilder
Source describes the location of the source used for the build.Protobuf type
grafeas.v1beta1.provenance.Source- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSource describes the location of the source used for the build.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 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) Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.booleangetAdditionalContexts(int index) If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules.intIf provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules.If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules.getAdditionalContextsOrBuilder(int index) If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules.List<? extends SourceContextOrBuilder>If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules.If provided, the input binary artifacts for the build came from this location.com.google.protobuf.ByteStringIf provided, the input binary artifacts for the build came from this location.If provided, the source code used for the build came from this location.If provided, the source code used for the build came from this location.static Sourcestatic final com.google.protobuf.Descriptors.DescriptorDeprecated.intHash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.getFileHashesOrDefault(String key, FileHashes defaultValue) Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.com.google.protobuf.Parser<Source>intbooleanIf provided, the source code used for the build came from this location.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Source.Builderstatic Source.BuildernewBuilder(Source prototype) protected Source.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SourceparseDelimitedFrom(InputStream input) static SourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceparseFrom(byte[] data) static SourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceparseFrom(com.google.protobuf.ByteString data) static SourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceparseFrom(com.google.protobuf.CodedInputStream input) static SourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceparseFrom(InputStream input) static SourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SourceparseFrom(ByteBuffer data) static SourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Source>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
-
ARTIFACT_STORAGE_SOURCE_URI_FIELD_NUMBER
public static final int ARTIFACT_STORAGE_SOURCE_URI_FIELD_NUMBER- See Also:
-
FILE_HASHES_FIELD_NUMBER
public static final int FILE_HASHES_FIELD_NUMBER- See Also:
-
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER- See Also:
-
ADDITIONAL_CONTEXTS_FIELD_NUMBER
public static final int ADDITIONAL_CONTEXTS_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
-
getArtifactStorageSourceUri
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;- Specified by:
getArtifactStorageSourceUriin interfaceSourceOrBuilder- Returns:
- The artifactStorageSourceUri.
-
getArtifactStorageSourceUriBytes
public com.google.protobuf.ByteString getArtifactStorageSourceUriBytes()If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;- Specified by:
getArtifactStorageSourceUriBytesin interfaceSourceOrBuilder- Returns:
- The bytes for artifactStorageSourceUri.
-
getFileHashesCount
public int getFileHashesCount()Description copied from interface:SourceOrBuilderHash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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, .grafeas.v1beta1.provenance.FileHashes> file_hashes = 2;- Specified by:
getFileHashesCountin interfaceSourceOrBuilder
-
containsFileHashes
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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, .grafeas.v1beta1.provenance.FileHashes> file_hashes = 2;- Specified by:
containsFileHashesin interfaceSourceOrBuilder
-
getFileHashes
Deprecated.UsegetFileHashesMap()instead.- Specified by:
getFileHashesin interfaceSourceOrBuilder
-
getFileHashesMap
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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, .grafeas.v1beta1.provenance.FileHashes> file_hashes = 2;- Specified by:
getFileHashesMapin interfaceSourceOrBuilder
-
getFileHashesOrDefault
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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, .grafeas.v1beta1.provenance.FileHashes> file_hashes = 2;- Specified by:
getFileHashesOrDefaultin interfaceSourceOrBuilder
-
getFileHashesOrThrow
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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, .grafeas.v1beta1.provenance.FileHashes> file_hashes = 2;- Specified by:
getFileHashesOrThrowin interfaceSourceOrBuilder
-
hasContext
public boolean hasContext()If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;- Specified by:
hasContextin interfaceSourceOrBuilder- Returns:
- Whether the context field is set.
-
getContext
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;- Specified by:
getContextin interfaceSourceOrBuilder- Returns:
- The context.
-
getContextOrBuilder
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;- Specified by:
getContextOrBuilderin interfaceSourceOrBuilder
-
getAdditionalContextsList
If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
repeated .grafeas.v1beta1.source.SourceContext additional_contexts = 4;- Specified by:
getAdditionalContextsListin interfaceSourceOrBuilder
-
getAdditionalContextsOrBuilderList
If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
repeated .grafeas.v1beta1.source.SourceContext additional_contexts = 4;- Specified by:
getAdditionalContextsOrBuilderListin interfaceSourceOrBuilder
-
getAdditionalContextsCount
public int getAdditionalContextsCount()If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
repeated .grafeas.v1beta1.source.SourceContext additional_contexts = 4;- Specified by:
getAdditionalContextsCountin interfaceSourceOrBuilder
-
getAdditionalContexts
If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
repeated .grafeas.v1beta1.source.SourceContext additional_contexts = 4;- Specified by:
getAdditionalContextsin interfaceSourceOrBuilder
-
getAdditionalContextsOrBuilder
If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
repeated .grafeas.v1beta1.source.SourceContext additional_contexts = 4;- Specified by:
getAdditionalContextsOrBuilderin interfaceSourceOrBuilder
-
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 Source parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Source parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Source parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Source parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Source parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Source parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Source parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Source 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 Source.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
-