Class GSBlobIdentifier


  • public class GSBlobIdentifier
    extends Object
    An abstraction for the Google BlobId type.
    • Field Detail

      • bucketName

        public final String bucketName
        The bucket name.
      • objectName

        public final String objectName
        The object name, within the bucket.
    • Constructor Detail

      • GSBlobIdentifier

        public GSBlobIdentifier​(String bucketName,
                                String objectName)
        Construct an abstract blob identifier.
        Parameters:
        bucketName - The bucket name
        objectName - The object name
    • Method Detail

      • getBlobId

        public com.google.cloud.storage.BlobId getBlobId()
        Get a Google blob id for this identifier, with generation=null.
        Returns:
        The BlobId
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromBlobId

        public static GSBlobIdentifier fromBlobId​(com.google.cloud.storage.BlobId blobId)
        Construct an abstract blob identifier from a Google BlobId.
        Parameters:
        blobId - The Google BlobId
        Returns:
        The abstract blob identifier