Class ImageOccurrence.Builder (2.15.0)

  public 
  
 static 
  
 final 
  
 class 
 ImageOccurrence 
 . 
 Builder 
  
 extends 
  
 GeneratedMessageV3 
 . 
 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

Static Methods

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

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;

Parameter
Name
Description
values
Iterable < ? extends io.grafeas.v1.Layer >
Returns
Type
Description

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;

Parameters
Name
Description
index
int
value
Returns
Type
Description

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;

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description

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;

Parameter
Name
Description
value
Returns
Type
Description

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;

Parameter
Name
Description
builderForValue
Returns
Type
Description

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;

Returns
Type
Description

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;

Parameter
Name
Description
index
int
Returns
Type
Description

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 addRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

build()

  public 
  
 ImageOccurrence 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 ImageOccurrence 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearBaseResourceUrl()

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 clearBaseResourceUrl 
 () 
 

Output only. This contains the base image URL for the derived image occurrence.

string base_resource_url = 4;

Returns
Type
Description

This builder for chaining.

clearDistance()

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 clearDistance 
 () 
 

Output only. The number of layers by which this image differs from the associated image basis.

int32 distance = 2;

Returns
Type
Description

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 clearField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clearFingerprint()

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 clearFingerprint 
 () 
 

Required. The fingerprint of the derived image.

.grafeas.v1.Fingerprint fingerprint = 1;

Returns
Type
Description

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;

Returns
Type
Description

clearOneof(Descriptors.OneofDescriptor oneof)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 clearOneof 
 ( 
 Descriptors 
 . 
 OneofDescriptor 
  
 oneof 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clone()

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 clone 
 () 
 
Returns
Type
Description
Overrides

getBaseResourceUrl()

  public 
  
 String 
  
 getBaseResourceUrl 
 () 
 

Output only. This contains the base image URL for the derived image occurrence.

string base_resource_url = 4;

Returns
Type
Description

The baseResourceUrl.

getBaseResourceUrlBytes()

  public 
  
 ByteString 
  
 getBaseResourceUrlBytes 
 () 
 

Output only. This contains the base image URL for the derived image occurrence.

string base_resource_url = 4;

Returns
Type
Description

The bytes for baseResourceUrl.

getDefaultInstanceForType()

  public 
  
 ImageOccurrence 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getDistance()

  public 
  
 int 
  
 getDistance 
 () 
 

Output only. The number of layers by which this image differs from the associated image basis.

int32 distance = 2;

Returns
Type
Description
int

The distance.

getFingerprint()

  public 
  
 Fingerprint 
  
 getFingerprint 
 () 
 

Required. The fingerprint of the derived image.

.grafeas.v1.Fingerprint fingerprint = 1;

Returns
Type
Description

The fingerprint.

getFingerprintBuilder()

  public 
  
 Fingerprint 
 . 
 Builder 
  
 getFingerprintBuilder 
 () 
 

Required. The fingerprint of the derived image.

.grafeas.v1.Fingerprint fingerprint = 1;

Returns
Type
Description

getFingerprintOrBuilder()

  public 
  
 FingerprintOrBuilder 
  
 getFingerprintOrBuilder 
 () 
 

Required. The fingerprint of the derived image.

.grafeas.v1.Fingerprint fingerprint = 1;

Returns
Type
Description

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;

Parameter
Name
Description
index
int
Returns
Type
Description

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;

Parameter
Name
Description
index
int
Returns
Type
Description

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;

Returns
Type
Description

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;

Returns
Type
Description
int

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;

Returns
Type
Description
List < Layer >

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;

Parameter
Name
Description
index
int
Returns
Type
Description

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;

Returns
Type
Description
List < ? extends io.grafeas.v1.LayerOrBuilder >

hasFingerprint()

  public 
  
 boolean 
  
 hasFingerprint 
 () 
 

Required. The fingerprint of the derived image.

.grafeas.v1.Fingerprint fingerprint = 1;

Returns
Type
Description

Whether the fingerprint field is set.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeFingerprint(Fingerprint value)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 mergeFingerprint 
 ( 
 Fingerprint 
  
 value 
 ) 
 

Required. The fingerprint of the derived image.

.grafeas.v1.Fingerprint fingerprint = 1;

Parameter
Name
Description
value
Returns
Type
Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 mergeFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Overrides
Exceptions
Type
Description

mergeFrom(Message other)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 mergeFrom 
 ( 
 Message 
  
 other 
 ) 
 
Parameter
Name
Description
other
Returns
Type
Description
Overrides

mergeFrom(ImageOccurrence other)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 mergeFrom 
 ( 
 ImageOccurrence 
  
 other 
 ) 
 
Parameter
Name
Description
Returns
Type
Description

mergeUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 ImageOccurrence 
 . 
 Builder 
  
 mergeUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides

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;

Parameter
Name
Description
index
int
Returns
Type
Description

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;

Parameter
Name
Description
value
String

The baseResourceUrl to set.

Returns
Type
Description

This builder for chaining.

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;

Parameter
Name
Description
value
ByteString

The bytes for baseResourceUrl to set.

Returns
Type
Description

This builder for chaining.

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;

Parameter
Name
Description
value
int

The distance to set.

Returns
Type
Description

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 setField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

setFingerprint(Fingerprint value)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 setFingerprint 
 ( 
 Fingerprint 
  
 value 
 ) 
 

Required. The fingerprint of the derived image.

.grafeas.v1.Fingerprint fingerprint = 1;

Parameter
Name
Description
value
Returns
Type
Description

setFingerprint(Fingerprint.Builder builderForValue)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 setFingerprint 
 ( 
 Fingerprint 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Required. The fingerprint of the derived image.

.grafeas.v1.Fingerprint fingerprint = 1;

Parameter
Name
Description
builderForValue
Returns
Type
Description

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;

Parameters
Name
Description
index
int
value
Returns
Type
Description

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;

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

  public 
  
 ImageOccurrence 
 . 
 Builder 
  
 setRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 int 
  
 index 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
index
int
value
Returns
Type
Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 ImageOccurrence 
 . 
 Builder 
  
 setUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides
Create a Mobile Website
View Site in Mobile | Classic
Share by: