Send feedback
Class Artifact (2.8.0) Stay organized with collections
Save and categorize content based on your preferences.
Version 2.8.0 keyboard_arrow_down
public
final
class
Artifact
extends
GeneratedMessageV3
implements
ArtifactOrBuilder
Artifact describes a build product.
Protobuf type grafeas.v1.Artifact
Static Fields
CHECKSUM_FIELD_NUMBER
public
static
final
int
CHECKSUM_FIELD_NUMBER
Field Value
ID_FIELD_NUMBER
public
static
final
int
ID_FIELD_NUMBER
Field Value
NAMES_FIELD_NUMBER
public
static
final
int
NAMES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public
static
Artifact
getDefaultInstance
()
Returns
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
Returns
newBuilder()
public
static
Artifact
.
Builder
newBuilder
()
Returns
newBuilder(Artifact prototype)
public
static
Artifact
.
Builder
newBuilder
(
Artifact
prototype
)
Parameter
Returns
public
static
Artifact
parseDelimitedFrom
(
InputStream
input
)
Parameter
Returns
Exceptions
public
static
Artifact
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public
static
Artifact
parseFrom
(
byte
[]
data
)
Parameter
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Artifact
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public
static
Artifact
parseFrom
(
ByteString
data
)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Artifact
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
Parameters
Returns
Exceptions
public
static
Artifact
parseFrom
(
CodedInputStream
input
)
Parameter
Returns
Exceptions
public
static
Artifact
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
Parameters
Returns
Exceptions
public
static
Artifact
parseFrom
(
InputStream
input
)
Parameter
Returns
Exceptions
public
static
Artifact
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public
static
Artifact
parseFrom
(
ByteBuffer
data
)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Artifact
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
Parameters
Returns
Exceptions
parser()
public
static
Parser<Artifact>
parser
()
Returns
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
Parameter
Returns
Overrides
getChecksum()
public
String
getChecksum
()
Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
container.
string checksum = 1;
Returns
getChecksumBytes()
public
ByteString
getChecksumBytes
()
Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
container.
string checksum = 1;
Returns
getDefaultInstanceForType()
public
Artifact
getDefaultInstanceForType
()
Returns
getId()
Artifact ID, if any; for container images, this will be a URL by digest
like gcr.io/projectID/imagename@sha256:123456
.
string id = 2;
Returns
getIdBytes()
public
ByteString
getIdBytes
()
Artifact ID, if any; for container images, this will be a URL by digest
like gcr.io/projectID/imagename@sha256:123456
.
string id = 2;
Returns
getNames(int index)
public
String
getNames
(
int
index
)
Related artifact names. This may be the path to a binary or jar file, or in
the case of a container build, the name used to push the container image to
Google Container Registry, as presented to docker push
. Note that a
single Artifact ID can have multiple names, for example if two tags are
applied to one image.
repeated string names = 3;
Parameter Name
Description
index
int
The index of the element to return.
Returns Type
Description
String
The names at the given index.
getNamesBytes(int index)
public
ByteString
getNamesBytes
(
int
index
)
Related artifact names. This may be the path to a binary or jar file, or in
the case of a container build, the name used to push the container image to
Google Container Registry, as presented to docker push
. Note that a
single Artifact ID can have multiple names, for example if two tags are
applied to one image.
repeated string names = 3;
Parameter Name
Description
index
int
The index of the value to return.
Returns Type
Description
ByteString
The bytes of the names at the given index.
getNamesCount()
public
int
getNamesCount
()
Related artifact names. This may be the path to a binary or jar file, or in
the case of a container build, the name used to push the container image to
Google Container Registry, as presented to docker push
. Note that a
single Artifact ID can have multiple names, for example if two tags are
applied to one image.
repeated string names = 3;
Returns
getNamesList()
public
ProtocolStringList
getNamesList
()
Related artifact names. This may be the path to a binary or jar file, or in
the case of a container build, the name used to push the container image to
Google Container Registry, as presented to docker push
. Note that a
single Artifact ID can have multiple names, for example if two tags are
applied to one image.
repeated string names = 3;
Returns
getParserForType()
public
Parser<Artifact>
getParserForType
()
Returns
Overrides
getSerializedSize()
public
int
getSerializedSize
()
Returns
Overrides
getUnknownFields()
public
final
UnknownFieldSet
getUnknownFields
()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
Returns
Overrides
isInitialized()
public
final
boolean
isInitialized
()
Returns
Overrides
newBuilderForType()
public
Artifact
.
Builder
newBuilderForType
()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
Artifact
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
Parameter
Returns
Overrides
toBuilder()
public
Artifact
.
Builder
toBuilder
()
Returns
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]