com.google.cloud.storage.Blob.getSelfLink()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中com.google.cloud.storage.Blob.getSelfLink()方法的一些代码示例,展示了Blob.getSelfLink()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Blob.getSelfLink()方法的具体详情如下:
包路径:com.google.cloud.storage.Blob
类名称:Blob
方法名:getSelfLink

Blob.getSelfLink介绍

暂无

代码示例

代码示例来源:origin: apache/nifi

if (blob.getSelfLink() != null) {
  attributes.put(URI_ATTR, blob.getSelfLink());

代码示例来源:origin: apache/nifi

if (blob.getSelfLink() != null) {
  attributes.put(URI_ATTR, blob.getSelfLink());

代码示例来源:origin: apache/nifi

if (blob.getSelfLink() != null) {
  attributes.put(URI_ATTR, blob.getSelfLink());

代码示例来源:origin: googleapis/google-cloud-java

@Test
public void testGetBlobAllSelectedFields() {
 String blobName = "test-get-all-selected-fields-blob";
 BlobInfo blob =
   BlobInfo.newBuilder(BUCKET, blobName)
     .setContentType(CONTENT_TYPE)
     .setMetadata(ImmutableMap.of("k", "v"))
     .build();
 assertNotNull(storage.create(blob));
 Blob remoteBlob =
   storage.get(blob.getBlobId(), Storage.BlobGetOption.fields(BlobField.values()));
 assertEquals(blob.getBucket(), remoteBlob.getBucket());
 assertEquals(blob.getName(), remoteBlob.getName());
 assertEquals(ImmutableMap.of("k", "v"), remoteBlob.getMetadata());
 assertNotNull(remoteBlob.getGeneratedId());
 assertNotNull(remoteBlob.getSelfLink());
}

代码示例来源:origin: googleapis/google-cloud-java

assertEquals(META_GENERATION, blob.getMetageneration());
assertEquals(OWNER, blob.getOwner());
assertEquals(SELF_LINK, blob.getSelfLink());
assertEquals(SIZE, blob.getSize());
assertEquals(UPDATE_TIME, blob.getUpdateTime());
assertNull(blob.getMetageneration());
assertNull(blob.getOwner());
assertNull(blob.getSelfLink());
assertEquals(0L, (long) blob.getSize());
assertNull(blob.getUpdateTime());

相关文章