Interface ResourceOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Resource, Resource.Builder

@Generated public interface ResourceOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The hash of the resource content.
    The hash of the resource content.
    The name of the resource.
    com.google.protobuf.ByteString
    The name of the resource.
    Required.
    com.google.protobuf.ByteString
    Required.
    boolean
    The hash of the resource content.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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;