public
static
final
class
ImageOccurrence
.
Builder
extends
GeneratedMessage
.
Builder<ImageOccurrence
.
Builder
>
implements
ImageOccurrenceOrBuilder
Details of the derived image portion of the DockerImage relationship. This image would be produced from a Dockerfile with FROM <DockerImage.Basis in attached Note>.
Protobuf type grafeas.v1.ImageOccurrence
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ImageOccurrence.BuilderImplements
ImageOccurrenceOrBuilderStatic Methods
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
Methods
addAllLayerInfo(Iterable<? extends Layer> values)
public
ImageOccurrence
.
Builder
addAllLayerInfo
(
Iterable
< ?
extends
Layer
>
values
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
addLayerInfo(int index, Layer value)
public
ImageOccurrence
.
Builder
addLayerInfo
(
int
index
,
Layer
value
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
addLayerInfo(int index, Layer.Builder builderForValue)
public
ImageOccurrence
.
Builder
addLayerInfo
(
int
index
,
Layer
.
Builder
builderForValue
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
addLayerInfo(Layer value)
public
ImageOccurrence
.
Builder
addLayerInfo
(
Layer
value
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
addLayerInfo(Layer.Builder builderForValue)
public
ImageOccurrence
.
Builder
addLayerInfo
(
Layer
.
Builder
builderForValue
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
addLayerInfoBuilder()
public
Layer
.
Builder
addLayerInfoBuilder
()
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
addLayerInfoBuilder(int index)
public
Layer
.
Builder
addLayerInfoBuilder
(
int
index
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
build()
public
ImageOccurrence
build
()
buildPartial()
public
ImageOccurrence
buildPartial
()
clear()
public
ImageOccurrence
.
Builder
clear
()
clearBaseResourceUrl()
public
ImageOccurrence
.
Builder
clearBaseResourceUrl
()
Output only. This contains the base image URL for the derived image occurrence.
string base_resource_url = 4;
clearDistance()
public
ImageOccurrence
.
Builder
clearDistance
()
Output only. The number of layers by which this image differs from the associated image basis.
int32 distance = 2;
clearFingerprint()
public
ImageOccurrence
.
Builder
clearFingerprint
()
Required. The fingerprint of the derived image.
.grafeas.v1.Fingerprint fingerprint = 1;
clearLayerInfo()
public
ImageOccurrence
.
Builder
clearLayerInfo
()
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
getBaseResourceUrl()
public
String
getBaseResourceUrl
()
Output only. This contains the base image URL for the derived image occurrence.
string base_resource_url = 4;
getBaseResourceUrlBytes()
public
ByteString
getBaseResourceUrlBytes
()
Output only. This contains the base image URL for the derived image occurrence.
string base_resource_url = 4;
getDefaultInstanceForType()
public
ImageOccurrence
getDefaultInstanceForType
()
getDescriptorForType()
public
Descriptors
.
Descriptor
getDescriptorForType
()
getDistance()
public
int
getDistance
()
Output only. The number of layers by which this image differs from the associated image basis.
int32 distance = 2;
getFingerprint()
public
Fingerprint
getFingerprint
()
Required. The fingerprint of the derived image.
.grafeas.v1.Fingerprint fingerprint = 1;
getFingerprintBuilder()
public
Fingerprint
.
Builder
getFingerprintBuilder
()
Required. The fingerprint of the derived image.
.grafeas.v1.Fingerprint fingerprint = 1;
getFingerprintOrBuilder()
public
FingerprintOrBuilder
getFingerprintOrBuilder
()
Required. The fingerprint of the derived image.
.grafeas.v1.Fingerprint fingerprint = 1;
getLayerInfo(int index)
public
Layer
getLayerInfo
(
int
index
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
getLayerInfoBuilder(int index)
public
Layer
.
Builder
getLayerInfoBuilder
(
int
index
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
getLayerInfoBuilderList()
public
List<Layer
.
Builder
>
getLayerInfoBuilderList
()
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
getLayerInfoCount()
public
int
getLayerInfoCount
()
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
getLayerInfoList()
public
List<Layer>
getLayerInfoList
()
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
getLayerInfoOrBuilder(int index)
public
LayerOrBuilder
getLayerInfoOrBuilder
(
int
index
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
getLayerInfoOrBuilderList()
public
List
< ?
extends
LayerOrBuilder
>
getLayerInfoOrBuilderList
()
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
hasFingerprint()
public
boolean
hasFingerprint
()
Required. The fingerprint of the derived image.
.grafeas.v1.Fingerprint fingerprint = 1;
internalGetFieldAccessorTable()
protected
GeneratedMessage
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
mergeFingerprint(Fingerprint value)
public
ImageOccurrence
.
Builder
mergeFingerprint
(
Fingerprint
value
)
Required. The fingerprint of the derived image.
.grafeas.v1.Fingerprint fingerprint = 1;
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
ImageOccurrence
.
Builder
mergeFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
mergeFrom(Message other)
public
ImageOccurrence
.
Builder
mergeFrom
(
Message
other
)
mergeFrom(ImageOccurrence other)
public
ImageOccurrence
.
Builder
mergeFrom
(
ImageOccurrence
other
)
removeLayerInfo(int index)
public
ImageOccurrence
.
Builder
removeLayerInfo
(
int
index
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
setBaseResourceUrl(String value)
public
ImageOccurrence
.
Builder
setBaseResourceUrl
(
String
value
)
Output only. This contains the base image URL for the derived image occurrence.
string base_resource_url = 4;
setBaseResourceUrlBytes(ByteString value)
public
ImageOccurrence
.
Builder
setBaseResourceUrlBytes
(
ByteString
value
)
Output only. This contains the base image URL for the derived image occurrence.
string base_resource_url = 4;
setDistance(int value)
public
ImageOccurrence
.
Builder
setDistance
(
int
value
)
Output only. The number of layers by which this image differs from the associated image basis.
int32 distance = 2;
setFingerprint(Fingerprint value)
public
ImageOccurrence
.
Builder
setFingerprint
(
Fingerprint
value
)
Required. The fingerprint of the derived image.
.grafeas.v1.Fingerprint fingerprint = 1;
setFingerprint(Fingerprint.Builder builderForValue)
public
ImageOccurrence
.
Builder
setFingerprint
(
Fingerprint
.
Builder
builderForValue
)
Required. The fingerprint of the derived image.
.grafeas.v1.Fingerprint fingerprint = 1;
setLayerInfo(int index, Layer value)
public
ImageOccurrence
.
Builder
setLayerInfo
(
int
index
,
Layer
value
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;
setLayerInfo(int index, Layer.Builder builderForValue)
public
ImageOccurrence
.
Builder
setLayerInfo
(
int
index
,
Layer
.
Builder
builderForValue
)
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
repeated .grafeas.v1.Layer layer_info = 3;

