Package io.grafeas.v1beta1
Interface ResourceOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Resource
,Resource.Builder
public interface ResourceOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Hash
getContentHash()
The hash of the resource content.HashOrBuilder
getContentHashOrBuilder()
The hash of the resource content.String
getName()
The name of the resource.com.google.protobuf.ByteString
getNameBytes()
The name of the resource.String
getUri()
Required.com.google.protobuf.ByteString
getUriBytes()
Required.boolean
hasContentHash()
The hash of the resource content.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
- Returns:
- The bytes for name.
-
getUri
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:
- The uri.
-
getUriBytes
com.google.protobuf.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:
- The bytes for uri.
-
hasContentHash
boolean hasContentHash()
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
- Returns:
- Whether the contentHash field is set.
-
getContentHash
Hash getContentHash()
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
- Returns:
- The contentHash.
-
getContentHashOrBuilder
HashOrBuilder getContentHashOrBuilder()
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
-
-