Interface ResourceOrBuilder (2.5.0)

public interface ResourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContentHash()

public abstract Hash getContentHash()

The hash of the resource content. For example, the Docker digest.

.grafeas.v1beta1.provenance.Hash content_hash = 3;

Returns
TypeDescription
Hash

The contentHash.

getContentHashOrBuilder()

public abstract HashOrBuilder getContentHashOrBuilder()

The hash of the resource content. For example, the Docker digest.

.grafeas.v1beta1.provenance.Hash content_hash = 3;

Returns
TypeDescription
HashOrBuilder

getName()

public abstract String getName()

The name of the resource. For example, the name of a Docker image - "Debian".

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the resource. For example, the name of a Docker image - "Debian".

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getUri()

public abstract String getUri()

Required. The unique URI of the resource. For example, https://gcr.io/project/image@sha256:foo for a Docker image.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public abstract ByteString getUriBytes()

Required. The unique URI of the resource. For example, https://gcr.io/project/image@sha256:foo for a Docker image.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.

hasContentHash()

public abstract boolean hasContentHash()

The hash of the resource content. For example, the Docker digest.

.grafeas.v1beta1.provenance.Hash content_hash = 3;

Returns
TypeDescription
boolean

Whether the contentHash field is set.