public static final class Source.Builder extends GeneratedMessageV3.Builder<Source.Builder> implements SourceOrBuilder
Source describes the location of the source used for the build.Protobuf type
grafeas.v1.Source| Modifier and Type | Method and Description |
|---|---|
Source.Builder |
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.
|
Source.Builder |
addAdditionalContexts(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.
|
Source.Builder |
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.
|
Source.Builder |
addAdditionalContexts(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.
|
SourceContext.Builder |
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.
|
SourceContext.Builder |
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.
|
Source.Builder |
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.
|
Source.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Source |
build() |
Source |
buildPartial() |
Source.Builder |
clear() |
Source.Builder |
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.
|
Source.Builder |
clearArtifactStorageSourceUri()
If provided, the input binary artifacts for the build came from this
location.
|
Source.Builder |
clearContext()
If provided, the source code used for the build came from this location.
|
Source.Builder |
clearField(Descriptors.FieldDescriptor field) |
Source.Builder |
clearFileHashes() |
Source.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Source.Builder |
clone() |
boolean |
containsFileHashes(String key)
Hash(es) of the build source, which can be used to verify that the original
source integrity was maintained in the build.
|
SourceContext |
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.
|
SourceContext.Builder |
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.
|
List<SourceContext.Builder> |
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.
|
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.
|
List<SourceContext> |
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.
|
SourceContextOrBuilder |
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> |
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.
|
String |
getArtifactStorageSourceUri()
If provided, the input binary artifacts for the build came from this
location.
|
ByteString |
getArtifactStorageSourceUriBytes()
If provided, the input binary artifacts for the build came from this
location.
|
SourceContext |
getContext()
If provided, the source code used for the build came from this location.
|
SourceContext.Builder |
getContextBuilder()
If provided, the source code used for the build came from this location.
|
SourceContextOrBuilder |
getContextOrBuilder()
If provided, the source code used for the build came from this location.
|
Source |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Map<String,FileHashes> |
getFileHashes()
Deprecated.
|
int |
getFileHashesCount()
Hash(es) of the build source, which can be used to verify that the original
source integrity was maintained in the build.
|
Map<String,FileHashes> |
getFileHashesMap()
Hash(es) of the build source, which can be used to verify that the original
source integrity was maintained in the build.
|
FileHashes |
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.
|
FileHashes |
getFileHashesOrThrow(String key)
Hash(es) of the build source, which can be used to verify that the original
source integrity was maintained in the build.
|
Map<String,FileHashes> |
getMutableFileHashes()
Deprecated.
|
boolean |
hasContext()
If provided, the source code used for the build came from this location.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Source.Builder |
mergeContext(SourceContext value)
If provided, the source code used for the build came from this location.
|
Source.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Source.Builder |
mergeFrom(Message other) |
Source.Builder |
mergeFrom(Source other) |
Source.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Source.Builder |
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.
|
Source.Builder |
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.
|
Source.Builder |
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.
|
Source.Builder |
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.
|
Source.Builder |
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.
|
Source.Builder |
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.
|
Source.Builder |
setArtifactStorageSourceUri(String value)
If provided, the input binary artifacts for the build came from this
location.
|
Source.Builder |
setArtifactStorageSourceUriBytes(ByteString value)
If provided, the input binary artifacts for the build came from this
location.
|
Source.Builder |
setContext(SourceContext.Builder builderForValue)
If provided, the source code used for the build came from this location.
|
Source.Builder |
setContext(SourceContext value)
If provided, the source code used for the build came from this location.
|
Source.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Source.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Source.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3.Builder<Source.Builder>protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class GeneratedMessageV3.Builder<Source.Builder>protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Source.Builder>public Source.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Source.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Source.Builder>public Source getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Source build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Source buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Source.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Source.Builder>public Source.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Source.Builder>public Source.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Source.Builder>public Source.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Source.Builder>public Source.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Source.Builder>public Source.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Source.Builder>public Source.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Source.Builder>public Source.Builder mergeFrom(Source other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Source.Builder>public Source.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Source.Builder>IOExceptionpublic String getArtifactStorageSourceUri()
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;getArtifactStorageSourceUri in interface SourceOrBuilderpublic ByteString getArtifactStorageSourceUriBytes()
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;getArtifactStorageSourceUriBytes in interface SourceOrBuilderpublic Source.Builder setArtifactStorageSourceUri(String value)
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;public Source.Builder clearArtifactStorageSourceUri()
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;public Source.Builder setArtifactStorageSourceUriBytes(ByteString value)
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;public int getFileHashesCount()
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.v1.FileHashes> file_hashes = 2;getFileHashesCount in interface SourceOrBuilderpublic boolean containsFileHashes(String key)
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.v1.FileHashes> file_hashes = 2;containsFileHashes in interface SourceOrBuilder@Deprecated public Map<String,FileHashes> getFileHashes()
getFileHashesMap() instead.getFileHashes in interface SourceOrBuilderpublic Map<String,FileHashes> 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.v1.FileHashes> file_hashes = 2;getFileHashesMap in interface SourceOrBuilderpublic FileHashes 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. 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.v1.FileHashes> file_hashes = 2;getFileHashesOrDefault in interface SourceOrBuilderpublic FileHashes getFileHashesOrThrow(String key)
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.v1.FileHashes> file_hashes = 2;getFileHashesOrThrow in interface SourceOrBuilderpublic Source.Builder clearFileHashes()
public Source.Builder 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. 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.v1.FileHashes> file_hashes = 2;@Deprecated public Map<String,FileHashes> getMutableFileHashes()
public Source.Builder 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. 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.v1.FileHashes> file_hashes = 2;public Source.Builder 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. 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.v1.FileHashes> file_hashes = 2;public boolean hasContext()
If provided, the source code used for the build came from this location.
.grafeas.v1.SourceContext context = 3;hasContext in interface SourceOrBuilderpublic SourceContext getContext()
If provided, the source code used for the build came from this location.
.grafeas.v1.SourceContext context = 3;getContext in interface SourceOrBuilderpublic Source.Builder setContext(SourceContext value)
If provided, the source code used for the build came from this location.
.grafeas.v1.SourceContext context = 3;public Source.Builder setContext(SourceContext.Builder builderForValue)
If provided, the source code used for the build came from this location.
.grafeas.v1.SourceContext context = 3;public Source.Builder mergeContext(SourceContext value)
If provided, the source code used for the build came from this location.
.grafeas.v1.SourceContext context = 3;public Source.Builder clearContext()
If provided, the source code used for the build came from this location.
.grafeas.v1.SourceContext context = 3;public SourceContext.Builder getContextBuilder()
If provided, the source code used for the build came from this location.
.grafeas.v1.SourceContext context = 3;public SourceContextOrBuilder getContextOrBuilder()
If provided, the source code used for the build came from this location.
.grafeas.v1.SourceContext context = 3;getContextOrBuilder in interface SourceOrBuilderpublic List<SourceContext> 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.v1.SourceContext additional_contexts = 4;getAdditionalContextsList in interface SourceOrBuilderpublic 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.v1.SourceContext additional_contexts = 4;getAdditionalContextsCount in interface SourceOrBuilderpublic SourceContext 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;getAdditionalContexts in interface SourceOrBuilderpublic Source.Builder 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public Source.Builder 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public Source.Builder addAdditionalContexts(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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public Source.Builder addAdditionalContexts(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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public Source.Builder 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public Source.Builder 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public Source.Builder 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public Source.Builder 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.v1.SourceContext additional_contexts = 4;public Source.Builder 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public SourceContext.Builder 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public SourceContextOrBuilder 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;getAdditionalContextsOrBuilder in interface SourceOrBuilderpublic List<? extends SourceContextOrBuilder> 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.v1.SourceContext additional_contexts = 4;getAdditionalContextsOrBuilderList in interface SourceOrBuilderpublic SourceContext.Builder 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.v1.SourceContext additional_contexts = 4;public SourceContext.Builder 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. This list will not include the context specified in the context field.
repeated .grafeas.v1.SourceContext additional_contexts = 4;public List<SourceContext.Builder> 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.v1.SourceContext additional_contexts = 4;public final Source.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Source.Builder>public final Source.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Source.Builder>Copyright © 2019 Google LLC. All rights reserved.