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.UnusedPrivateParameter
AbstractMessageLite.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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Source parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Source parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Source parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Source parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Source parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Source parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Source parseFrom(InputStream input) throws IOException
IOException
public static Source parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Source parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Source parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Source parseFrom(CodedInputStream input) throws IOException
IOException
public static Source parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Source.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Source.Builder newBuilder()
public static Source.Builder newBuilder(Source prototype)
public Source.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Source.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Source getDefaultInstance()
public Parser<Source> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Source getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2019 Google LLC. All rights reserved.