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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public 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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Source.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Source.Builder>
public Source getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Source build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Source buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Source.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Source.Builder>
public Source.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Source.Builder>
public Source.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Source.Builder>
public Source.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Source.Builder>
public Source.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Source.Builder>
public Source.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Source.Builder>
public Source.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Source.Builder>
public Source.Builder mergeFrom(Source other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Source.Builder>
public Source.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Source.Builder>
IOException
public String getArtifactStorageSourceUri()
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;
getArtifactStorageSourceUri
in interface SourceOrBuilder
public ByteString getArtifactStorageSourceUriBytes()
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;
getArtifactStorageSourceUriBytes
in interface SourceOrBuilder
public 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()
SourceOrBuilder
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;
getFileHashesCount
in interface SourceOrBuilder
public 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 SourceOrBuilder
public 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 SourceOrBuilder
public 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 SourceOrBuilder
public 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 SourceOrBuilder
public 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 SourceOrBuilder
public SourceContext getContext()
If provided, the source code used for the build came from this location.
.grafeas.v1.SourceContext context = 3;
getContext
in interface SourceOrBuilder
public 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 SourceOrBuilder
public 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 SourceOrBuilder
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.v1.SourceContext additional_contexts = 4;
getAdditionalContextsCount
in interface SourceOrBuilder
public 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 SourceOrBuilder
public 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 SourceOrBuilder
public 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 SourceOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Source.Builder>
public final Source.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Source.Builder>
Copyright © 2019 Google LLC. All rights reserved.