Class Artifact (2.11.0)

public final class Artifact extends GeneratedMessageV3 implements ArtifactOrBuilder

Artifact describes a build product.

Protobuf type grafeas.v1beta1.provenance.Artifact

Implements

ArtifactOrBuilder

Static Fields

CHECKSUM_FIELD_NUMBER

public static final int CHECKSUM_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

NAMES_FIELD_NUMBER

public static final int NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Artifact getDefaultInstance()
Returns
TypeDescription
Artifact

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Artifact.Builder newBuilder()
Returns
TypeDescription
Artifact.Builder

newBuilder(Artifact prototype)

public static Artifact.Builder newBuilder(Artifact prototype)
Parameter
NameDescription
prototypeArtifact
Returns
TypeDescription
Artifact.Builder

parseDelimitedFrom(InputStream input)

public static Artifact parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Artifact parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Artifact parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Artifact parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Artifact parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Artifact parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Artifact parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Artifact parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Artifact parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Artifact parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Artifact parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Artifact parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Artifact
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Artifact> parser()
Returns
TypeDescription
Parser<Artifact>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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
TypeDescription
String

The checksum.

getChecksumBytes()

public ByteString getChecksumBytes()

Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.

string checksum = 1;

Returns
TypeDescription
ByteString

The bytes for checksum.

getDefaultInstanceForType()

public Artifact getDefaultInstanceForType()
Returns
TypeDescription
Artifact

getId()

public String 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
TypeDescription
String

The id.

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
TypeDescription
ByteString

The bytes for id.

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of names.

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
TypeDescription
ProtocolStringList

A list containing the names.

getParserForType()

public Parser<Artifact> getParserForType()
Returns
TypeDescription
Parser<Artifact>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Artifact.Builder newBuilderForType()
Returns
TypeDescription
Artifact.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Artifact.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Artifact.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Artifact.Builder toBuilder()
Returns
TypeDescription
Artifact.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException