public final class Source extends GeneratedMessageV3 implements SourceOrBuilder
Source describes the location of the source used for the build.Protobuf type
grafeas.v1.Source| Modifier and Type | Class and Description |
|---|---|
static class |
Source.Builder
Source describes the location of the source used for the build.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| 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 |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| 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.
|
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 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.
|
Parser<Source> |
getParserForType() |
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
boolean |
hasContext()
If provided, the source code used for the build came from this location.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Source.Builder |
newBuilder() |
static Source.Builder |
newBuilder(Source prototype) |
Source.Builder |
newBuilderForType() |
protected Source.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Source |
parseDelimitedFrom(InputStream input) |
static Source |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(byte[] data) |
static Source |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(ByteBuffer data) |
static Source |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(ByteString data) |
static Source |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(CodedInputStream input) |
static Source |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Source |
parseFrom(InputStream input) |
static Source |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Source> |
parser() |
Source.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, 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, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class 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 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.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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Source parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Source parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Source parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Source parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Source parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Source parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Source parseFrom(InputStream input) throws IOException
IOExceptionpublic static Source parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Source parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Source parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Source parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static Source parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Source.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Source.Builder newBuilder()
public static Source.Builder newBuilder(Source prototype)
public Source.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Source.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Source getDefaultInstance()
public Parser<Source> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Source getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.