infoBuilder.setContentType(((OptionMimeType) option).mimeType()); } else if (option instanceof OptionCacheControl) { infoBuilder.setCacheControl(((OptionCacheControl) option).cacheControl()); } else if (option instanceof OptionContentDisposition) { infoBuilder.setContentDisposition(((OptionContentDisposition) option).contentDisposition());
overrideContentType = true; } else if (option instanceof OptionCacheControl) { tgtInfoBuilder.setCacheControl(((OptionCacheControl) option).cacheControl()); overrideCacheControl = true; } else if (option instanceof OptionContentEncoding) { tgtInfoBuilder.setCacheControl(blobInfo.getCacheControl());
static BlobInfo fromPb(StorageObject storageObject) { Builder builder = newBuilder(BlobId.fromPb(storageObject)); if (storageObject.getCacheControl() != null) { builder.setCacheControl(storageObject.getCacheControl());
overrideContentType = true; } else if (option instanceof OptionCacheControl) { tgtInfoBuilder.setCacheControl(((OptionCacheControl) option).cacheControl()); overrideCacheControl = true; } else if (option instanceof OptionContentEncoding) { tgtInfoBuilder.setCacheControl(blobInfo.getCacheControl());
infoBuilder.setContentType(((OptionMimeType) option).mimeType()); } else if (option instanceof OptionCacheControl) { infoBuilder.setCacheControl(((OptionCacheControl) option).cacheControl()); } else if (option instanceof OptionContentDisposition) { infoBuilder.setContentDisposition(((OptionContentDisposition) option).contentDisposition());
static BlobInfo fromPb(StorageObject storageObject) { Builder builder = newBuilder(BlobId.fromPb(storageObject)); if (storageObject.getCacheControl() != null) { builder.setCacheControl(storageObject.getCacheControl());