BlobInfo.newBuilder(BlobId.of("b", "n", 42L)) .setContentType(CONTENT_TYPE) .setMetageneration(24L) .build(); Blob expectedBlob = new Blob(serviceMockReturnsOptions, new BlobInfo.BuilderImpl(info));
BlobInfo.newBuilder(BlobId.of("b", "n", 42L)) .setContentType(CONTENT_TYPE) .setMetageneration(24L) .setCrc32c("crc") .setMd5("md5")
case IF_METAGENERATION_MATCH: return Tuple.of( blobInfo.toBuilder().setMetageneration((Long) getValue()).build(), Storage.BlobTargetOption.metagenerationMatch()); case IF_METAGENERATION_NOT_MATCH: return Tuple.of( blobInfo.toBuilder().setMetageneration((Long) getValue()).build(), Storage.BlobTargetOption.metagenerationNotMatch()); case CUSTOMER_SUPPLIED_KEY:
builder.setMetageneration(storageObject.getMetageneration());
case IF_METAGENERATION_MATCH: return Tuple.of( blobInfo.toBuilder().setMetageneration((Long) value).build(), Storage.BlobWriteOption.metagenerationMatch()); case IF_METAGENERATION_NOT_MATCH: return Tuple.of( blobInfo.toBuilder().setMetageneration((Long) value).build(), Storage.BlobWriteOption.metagenerationNotMatch()); case IF_MD5_MATCH:
case IF_METAGENERATION_MATCH: return Tuple.of( blobInfo.toBuilder().setMetageneration((Long) getValue()).build(), Storage.BlobTargetOption.metagenerationMatch()); case IF_METAGENERATION_NOT_MATCH: return Tuple.of( blobInfo.toBuilder().setMetageneration((Long) getValue()).build(), Storage.BlobTargetOption.metagenerationNotMatch()); case CUSTOMER_SUPPLIED_KEY:
builder.setMetageneration(storageObject.getMetageneration());
case IF_METAGENERATION_MATCH: return Tuple.of( blobInfo.toBuilder().setMetageneration((Long) value).build(), Storage.BlobWriteOption.metagenerationMatch()); case IF_METAGENERATION_NOT_MATCH: return Tuple.of( blobInfo.toBuilder().setMetageneration((Long) value).build(), Storage.BlobWriteOption.metagenerationNotMatch()); case IF_MD5_MATCH: