publicfinalclass SourceextendsGeneratedMessageV3implementsSourceOrBuilder
Source describes the location of the source used for the build.
Protobuf type grafeas.v1beta1.provenance.Source
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ADDITIONAL_CONTEXTS_FIELD_NUMBER
publicstaticfinalintADDITIONAL_CONTEXTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ARTIFACT_STORAGE_SOURCE_URI_FIELD_NUMBER
publicstaticfinalintARTIFACT_STORAGE_SOURCE_URI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
CONTEXT_FIELD_NUMBER
publicstaticfinalintCONTEXT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
FILE_HASHES_FIELD_NUMBER
publicstaticfinalintFILE_HASHES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticSourcegetDefaultInstance()
| Returns |
| Type |
Description |
Source |
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticSource.BuildernewBuilder()
newBuilder(Source prototype)
publicstaticSource.BuildernewBuilder(Sourceprototype)
| Parameter |
| Name |
Description |
prototype |
Source
|
publicstaticSourceparseDelimitedFrom(InputStreaminput)
| Returns |
| Type |
Description |
Source |
publicstaticSourceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Source |
parseFrom(byte[] data)
publicstaticSourceparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Source |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticSourceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Source |
parseFrom(ByteString data)
publicstaticSourceparseFrom(ByteStringdata)
| Returns |
| Type |
Description |
Source |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticSourceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Source |
publicstaticSourceparseFrom(CodedInputStreaminput)
| Returns |
| Type |
Description |
Source |
publicstaticSourceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Source |
publicstaticSourceparseFrom(InputStreaminput)
| Returns |
| Type |
Description |
Source |
publicstaticSourceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Source |
parseFrom(ByteBuffer data)
publicstaticSourceparseFrom(ByteBufferdata)
| Returns |
| Type |
Description |
Source |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticSourceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Source |
parser()
publicstaticParser<Source>parser()
Methods
containsFileHashes(String key)
publicbooleancontainsFileHashes(Stringkey)
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;
| Parameter |
| Name |
Description |
key |
String
|
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAdditionalContexts(int index)
publicSourceContextgetAdditionalContexts(intindex)
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;
| Parameter |
| Name |
Description |
index |
int
|
getAdditionalContextsCount()
publicintgetAdditionalContextsCount()
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;
| Returns |
| Type |
Description |
int |
getAdditionalContextsList()
publicList<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;
getAdditionalContextsOrBuilder(int index)
publicSourceContextOrBuildergetAdditionalContextsOrBuilder(intindex)
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;
| Parameter |
| Name |
Description |
index |
int
|
getAdditionalContextsOrBuilderList()
publicList<?extendsSourceContextOrBuilder>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;
| Returns |
| Type |
Description |
List<? extends io.grafeas.v1beta1.source.SourceContextOrBuilder> |
getArtifactStorageSourceUri()
publicStringgetArtifactStorageSourceUri()
If provided, the input binary artifacts for the build came from this
location.
string artifact_storage_source_uri = 1;
| Returns |
| Type |
Description |
String |
The artifactStorageSourceUri.
|
getArtifactStorageSourceUriBytes()
publicByteStringgetArtifactStorageSourceUriBytes()
If provided, the input binary artifacts for the build came from this
location.
string artifact_storage_source_uri = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for artifactStorageSourceUri.
|
getContext()
publicSourceContextgetContext()
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;
getContextOrBuilder()
publicSourceContextOrBuildergetContextOrBuilder()
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;
getDefaultInstanceForType()
publicSourcegetDefaultInstanceForType()
| Returns |
| Type |
Description |
Source |
getFileHashes() (deprecated)
publicMap<String,FileHashes>getFileHashes()
getFileHashesCount()
publicintgetFileHashesCount()
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;
| Returns |
| Type |
Description |
int |
getFileHashesMap()
publicMap<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;
getFileHashesOrDefault(String key, FileHashes defaultValue)
publicFileHashesgetFileHashesOrDefault(Stringkey,FileHashesdefaultValue)
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(String key)
publicFileHashesgetFileHashesOrThrow(Stringkey)
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;
| Parameter |
| Name |
Description |
key |
String
|
getParserForType()
publicParser<Source>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()
Overrides
hasContext()
publicbooleanhasContext()
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;
| Returns |
| Type |
Description |
boolean |
Whether the context field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)
| Parameter |
| Name |
Description |
number |
int
|
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicSource.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicSource.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides