Class Fingerprint.Builder (2.5.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
TypeDescription
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
NameDescription
valuesIterable<String>

The v2Blob to add.

Returns
TypeDescription
Fingerprint.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Fingerprint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The v2Blob to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the v2Blob to add.

Returns
TypeDescription
Fingerprint.Builder

This builder for chaining.

build()

public Fingerprint build()
Returns
TypeDescription
Fingerprint

buildPartial()

public Fingerprint buildPartial()
Returns
TypeDescription
Fingerprint

clear()

public Fingerprint.Builder clear()
Returns
TypeDescription
Fingerprint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Fingerprint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Fingerprint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Fingerprint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Fingerprint.Builder

This builder for chaining.

clone()

public Fingerprint.Builder clone()
Returns
TypeDescription
Fingerprint.Builder
Overrides

getDefaultInstanceForType()

public Fingerprint getDefaultInstanceForType()
Returns
TypeDescription
Fingerprint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for v2Name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Fingerprint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Fingerprint.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Fingerprint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Fingerprint.Builder
Overrides

mergeFrom(Fingerprint other)

public Fingerprint.Builder mergeFrom(Fingerprint other)
Parameter
NameDescription
otherFingerprint
Returns
TypeDescription
Fingerprint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Fingerprint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Fingerprint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Fingerprint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Fingerprint.Builder
Overrides

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

public Fingerprint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Fingerprint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Fingerprint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The v1Name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for v1Name to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The v2Blob to set.

Returns
TypeDescription
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
NameDescription
valueString

The v2Name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for v2Name to set.

Returns
TypeDescription
Fingerprint.Builder

This builder for chaining.