Class Fingerprint.Builder (2.44.0)

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

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

Protobuf type grafeas.v1beta1.image.Fingerprint

Static Methods

getDescriptor()

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

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
Fingerprint.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Fingerprint.Builder

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
Fingerprint.Builder

This builder for chaining.

build()

public Fingerprint build()
Returns
Type Description
Fingerprint

buildPartial()

public Fingerprint buildPartial()
Returns
Type Description
Fingerprint

clear()

public Fingerprint.Builder clear()
Returns
Type Description
Fingerprint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Fingerprint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Fingerprint.Builder
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
Fingerprint.Builder

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
Fingerprint.Builder

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
Fingerprint.Builder

This builder for chaining.

clone()

public Fingerprint.Builder clone()
Returns
Type Description
Fingerprint.Builder
Overrides

getDefaultInstanceForType()

public Fingerprint getDefaultInstanceForType()
Returns
Type Description
Fingerprint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
String

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
ByteString

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
String

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
ByteString

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
ProtocolStringList

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
String

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
ByteString

The bytes for v2Name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Fingerprint other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Fingerprint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Fingerprint.Builder
Overrides

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
Fingerprint.Builder

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
Fingerprint.Builder

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
Fingerprint.Builder

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
Fingerprint.Builder

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
Fingerprint.Builder

This builder for chaining.