Class Fingerprint.Builder (2.89.0)

  public 
  
 static 
  
 final 
  
 class 
 Fingerprint 
 . 
 Builder 
  
 extends 
  
 GeneratedMessage 
 . 
 Builder<Fingerprint 
 . 
 Builder 
>  
 implements 
  
 FingerprintOrBuilder 
 

A set of properties that uniquely identify a given Docker image.

Protobuf type grafeas.v1.Fingerprint

Static Methods

getDescriptor()

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

Methods

addAllV2Blob(Iterable<String> values)

  public 
  
 Fingerprint 
 . 
 Builder 
  
 addAllV2Blob 
 ( 
 Iterable<String> 
  
 values 
 ) 
 

Required. The ordered list of v2 blobs that represent a given image.

repeated string v2_blob = 2;

Parameter
Name
Description
values
Iterable < String >

The v2Blob to add.

Returns
Type
Description

This builder for chaining.

addV2Blob(String value)

  public 
  
 Fingerprint 
 . 
 Builder 
  
 addV2Blob 
 ( 
 String 
  
 value 
 ) 
 

Required. The ordered list of v2 blobs that represent a given image.

repeated string v2_blob = 2;

Parameter
Name
Description
value
String

The v2Blob to add.

Returns
Type
Description

This builder for chaining.

addV2BlobBytes(ByteString value)

  public 
  
 Fingerprint 
 . 
 Builder 
  
 addV2BlobBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

Required. The ordered list of v2 blobs that represent a given image.

repeated string v2_blob = 2;

Parameter
Name
Description
value
ByteString

The bytes of the v2Blob to add.

Returns
Type
Description

This builder for chaining.

build()

  public 
  
 Fingerprint 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 Fingerprint 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 Fingerprint 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearV1Name()

  public 
  
 Fingerprint 
 . 
 Builder 
  
 clearV1Name 
 () 
 

Required. The layer ID of the final layer in the Docker image's v1 representation.

string v1_name = 1;

Returns
Type
Description

This builder for chaining.

clearV2Blob()

  public 
  
 Fingerprint 
 . 
 Builder 
  
 clearV2Blob 
 () 
 

Required. The ordered list of v2 blobs that represent a given image.

repeated string v2_blob = 2;

Returns
Type
Description

This builder for chaining.

clearV2Name()

  public 
  
 Fingerprint 
 . 
 Builder 
  
 clearV2Name 
 () 
 

Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept.

string v2_name = 3;

Returns
Type
Description

This builder for chaining.

getDefaultInstanceForType()

  public 
  
 Fingerprint 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getV1Name()

  public 
  
 String 
  
 getV1Name 
 () 
 

Required. The layer ID of the final layer in the Docker image's v1 representation.

string v1_name = 1;

Returns
Type
Description

The v1Name.

getV1NameBytes()

  public 
  
 ByteString 
  
 getV1NameBytes 
 () 
 

Required. The layer ID of the final layer in the Docker image's v1 representation.

string v1_name = 1;

Returns
Type
Description

The bytes for v1Name.

getV2Blob(int index)

  public 
  
 String 
  
 getV2Blob 
 ( 
 int 
  
 index 
 ) 
 

Required. The ordered list of v2 blobs that represent a given image.

repeated string v2_blob = 2;

Parameter
Name
Description
index
int

The index of the element to return.

Returns
Type
Description

The v2Blob at the given index.

getV2BlobBytes(int index)

  public 
  
 ByteString 
  
 getV2BlobBytes 
 ( 
 int 
  
 index 
 ) 
 

Required. The ordered list of v2 blobs that represent a given image.

repeated string v2_blob = 2;

Parameter
Name
Description
index
int

The index of the value to return.

Returns
Type
Description

The bytes of the v2Blob at the given index.

getV2BlobCount()

  public 
  
 int 
  
 getV2BlobCount 
 () 
 

Required. The ordered list of v2 blobs that represent a given image.

repeated string v2_blob = 2;

Returns
Type
Description
int

The count of v2Blob.

getV2BlobList()

  public 
  
 ProtocolStringList 
  
 getV2BlobList 
 () 
 

Required. The ordered list of v2 blobs that represent a given image.

repeated string v2_blob = 2;

Returns
Type
Description

A list containing the v2Blob.

getV2Name()

  public 
  
 String 
  
 getV2Name 
 () 
 

Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept.

string v2_name = 3;

Returns
Type
Description

The v2Name.

getV2NameBytes()

  public 
  
 ByteString 
  
 getV2NameBytes 
 () 
 

Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept.

string v2_name = 3;

Returns
Type
Description

The bytes for v2Name.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessage 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Fingerprint other)

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

setV1Name(String value)

  public 
  
 Fingerprint 
 . 
 Builder 
  
 setV1Name 
 ( 
 String 
  
 value 
 ) 
 

Required. The layer ID of the final layer in the Docker image's v1 representation.

string v1_name = 1;

Parameter
Name
Description
value
String

The v1Name to set.

Returns
Type
Description

This builder for chaining.

setV1NameBytes(ByteString value)

  public 
  
 Fingerprint 
 . 
 Builder 
  
 setV1NameBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

Required. The layer ID of the final layer in the Docker image's v1 representation.

string v1_name = 1;

Parameter
Name
Description
value
ByteString

The bytes for v1Name to set.

Returns
Type
Description

This builder for chaining.

setV2Blob(int index, String value)

  public 
  
 Fingerprint 
 . 
 Builder 
  
 setV2Blob 
 ( 
 int 
  
 index 
 , 
  
 String 
  
 value 
 ) 
 

Required. The ordered list of v2 blobs that represent a given image.

repeated string v2_blob = 2;

Parameters
Name
Description
index
int

The index to set the value at.

value
String

The v2Blob to set.

Returns
Type
Description

This builder for chaining.

setV2Name(String value)

  public 
  
 Fingerprint 
 . 
 Builder 
  
 setV2Name 
 ( 
 String 
  
 value 
 ) 
 

Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept.

string v2_name = 3;

Parameter
Name
Description
value
String

The v2Name to set.

Returns
Type
Description

This builder for chaining.

setV2NameBytes(ByteString value)

  public 
  
 Fingerprint 
 . 
 Builder 
  
 setV2NameBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept.

string v2_name = 3;

Parameter
Name
Description
value
ByteString

The bytes for v2Name to set.

Returns
Type
Description

This builder for chaining.

Create a Mobile Website
View Site in Mobile | Classic
Share by: