Package com.google.cloud.tools.jib.cache
Class CachedLayer.Builder
- java.lang.Object
-
- com.google.cloud.tools.jib.cache.CachedLayer.Builder
-
- Enclosing class:
- CachedLayer
public static class CachedLayer.Builder extends java.lang.Object
Builds aCachedLayer
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CachedLayer
build()
Creates a CachedLayer instance.CachedLayer.Builder
setLayerBlob(Blob layerBlob)
CachedLayer.Builder
setLayerDiffId(DescriptorDigest layerDiffId)
CachedLayer.Builder
setLayerDigest(DescriptorDigest layerDigest)
CachedLayer.Builder
setLayerSize(long layerSize)
-
-
-
Method Detail
-
setLayerDigest
public CachedLayer.Builder setLayerDigest(DescriptorDigest layerDigest)
-
setLayerDiffId
public CachedLayer.Builder setLayerDiffId(DescriptorDigest layerDiffId)
-
setLayerSize
public CachedLayer.Builder setLayerSize(long layerSize)
-
setLayerBlob
public CachedLayer.Builder setLayerBlob(Blob layerBlob)
-
build
public CachedLayer build()
Creates a CachedLayer instance.- Returns:
- a new cached layer
-
-