Interface ResourceOrBuilder (2.46.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
Type Description
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
Type Description
HashOrBuilder

getName()

public abstract String getName()

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

string name = 1;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the contentHash field is set.