Package io.grafeas.v1beta1.provenance
Class Source.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
io.grafeas.v1beta1.provenance.Source.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SourceOrBuilder,Cloneable
- Enclosing class:
- Source
public static final class Source.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
implements SourceOrBuilder
Source describes the location of the source used for the build.Protobuf type
grafeas.v1beta1.provenance.Source-
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalContexts(int index, SourceContext value) 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.addAdditionalContexts(int index, SourceContext.Builder builderForValue) 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, 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.addAdditionalContexts(SourceContext.Builder builderForValue) 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, 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.addAdditionalContextsBuilder(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.addAllAdditionalContexts(Iterable<? extends SourceContext> values) 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.build()clear()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.If provided, the source code used for the build came from this location.booleancontainsFileHashes(String key) Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.getAdditionalContexts(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.getAdditionalContextsBuilder(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.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.If provided, the source code used for the build came from this location.static final com.google.protobuf.Descriptors.Descriptorcom.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.Deprecated.booleanIf provided, the source code used for the build came from this location.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeContext(SourceContext value) If provided, the source code used for the build came from this location.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllFileHashes(Map<String, FileHashes> values) Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.putFileHashes(String key, FileHashes value) 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.removeAdditionalContexts(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.removeFileHashes(String key) Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.setAdditionalContexts(int index, SourceContext value) 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.setAdditionalContexts(int index, SourceContext.Builder builderForValue) 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.setArtifactStorageSourceUriBytes(com.google.protobuf.ByteString value) If provided, the input binary artifacts for the build came from this location.setContext(SourceContext value) If provided, the source code used for the build came from this location.setContext(SourceContext.Builder builderForValue) If provided, the source code used for the build came from this location.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Source.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Source.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Source.Builder>
-
mergeFrom
public Source.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Source.Builder>- Throws:
IOException
-
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.
-
setArtifactStorageSourceUri
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;- Parameters:
value- The artifactStorageSourceUri to set.- Returns:
- This builder for chaining.
-
clearArtifactStorageSourceUri
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;- Returns:
- This builder for chaining.
-
setArtifactStorageSourceUriBytes
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;- Parameters:
value- The bytes for artifactStorageSourceUri to set.- Returns:
- This builder for chaining.
-
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
-
clearFileHashes
-
removeFileHashes
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; -
getMutableFileHashes
Deprecated.Use alternate mutation accessors instead. -
putFileHashes
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; -
putAllFileHashes
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; -
putFileHashesBuilderIfAbsent
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; -
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.
-
setContext
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3; -
setContext
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3; -
mergeContext
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3; -
clearContext
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3; -
getContextBuilder
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3; -
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
-
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
-
setAdditionalContexts
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; -
setAdditionalContexts
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; -
addAdditionalContexts
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; -
addAdditionalContexts
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; -
addAdditionalContexts
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; -
addAdditionalContexts
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; -
addAllAdditionalContexts
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; -
clearAdditionalContexts
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; -
removeAdditionalContexts
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; -
getAdditionalContextsBuilder
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; -
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
-
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
-
addAdditionalContextsBuilder
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; -
addAdditionalContextsBuilder
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; -
getAdditionalContextsBuilderList
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;
-