public final class Source extends com.google.protobuf.GeneratedMessageV3 implements SourceOrBuilder
Source describes the location of the source used for the build.Protobuf type
grafeas.v1beta1.provenance.Source| Modifier and Type | Class and Description |
|---|---|
static class |
Source.Builder
Source describes the location of the source used for the build.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ADDITIONAL_CONTEXTS_FIELD_NUMBER |
static int |
ARTIFACT_STORAGE_SOURCE_URI_FIELD_NUMBER |
static int |
CONTEXT_FIELD_NUMBER |
static int |
FILE_HASHES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
equals(Object obj) |
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.
|
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.
|
com.google.protobuf.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.
|
SourceContextOrBuilder |
getContextOrBuilder()
If provided, the source code used for the build came from this location.
|
static Source |
getDefaultInstance() |
Source |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<Source> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasContext()
If provided, the source code used for the build came from this location.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Source.Builder |
newBuilder() |
static Source.Builder |
newBuilder(Source prototype) |
Source.Builder |
newBuilderForType() |
protected Source.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Source |
parseDelimitedFrom(InputStream input) |
static Source |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(byte[] data) |
static Source |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(ByteBuffer data) |
static Source |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(com.google.protobuf.ByteString data) |
static Source |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Source |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(InputStream input) |
static Source |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Source> |
parser() |
Source.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ARTIFACT_STORAGE_SOURCE_URI_FIELD_NUMBER
public static final int FILE_HASHES_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
public static final int ADDITIONAL_CONTEXTS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 com.google.protobuf.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 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.v1beta1.provenance.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.v1beta1.provenance.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.v1beta1.provenance.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.v1beta1.provenance.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.v1beta1.provenance.FileHashes> file_hashes = 2;getFileHashesOrThrow in interface SourceOrBuilderpublic boolean hasContext()
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;hasContext in interface SourceOrBuilderpublic SourceContext getContext()
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;getContext in interface SourceOrBuilderpublic SourceContextOrBuilder getContextOrBuilder()
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.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.v1beta1.source.SourceContext additional_contexts = 4;getAdditionalContextsList 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.v1beta1.source.SourceContext additional_contexts = 4;getAdditionalContextsOrBuilderList 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.v1beta1.source.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.v1beta1.source.SourceContext additional_contexts = 4;getAdditionalContexts in interface SourceOrBuilderpublic 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.v1beta1.source.SourceContext additional_contexts = 4;getAdditionalContextsOrBuilder in interface SourceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Source parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Source parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Source parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Source parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Source parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Source parseFrom(InputStream input) throws IOException
IOExceptionpublic static Source parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Source parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Source parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Source parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Source parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Source.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Source.Builder newBuilder()
public static Source.Builder newBuilder(Source prototype)
public Source.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Source.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Source getDefaultInstance()
public static com.google.protobuf.Parser<Source> parser()
public com.google.protobuf.Parser<Source> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Source getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.