Class Attestation.Builder (2.53.0)

public static final class Attestation.Builder extends GeneratedMessageV3.Builder<Attestation.Builder> implements AttestationOrBuilder

Occurrence that represents a single "attestation". The authenticity of an attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the authority to which this attestation is attached is primarily useful for look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for).

Protobuf type grafeas.v1beta1.attestation.Attestation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Attestation build()
Returns
Type Description
Attestation

buildPartial()

public Attestation buildPartial()
Returns
Type Description
Attestation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGenericSignedAttestation()

public Attestation.Builder clearGenericSignedAttestation()

.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;

Returns
Type Description
Attestation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPgpSignedAttestation()

public Attestation.Builder clearPgpSignedAttestation()

A PGP signed attestation.

.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;

Returns
Type Description
Attestation.Builder

clearSignature()

public Attestation.Builder clearSignature()
Returns
Type Description
Attestation.Builder

clone()

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

getDefaultInstanceForType()

public Attestation getDefaultInstanceForType()
Returns
Type Description
Attestation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGenericSignedAttestation()

public GenericSignedAttestation getGenericSignedAttestation()

.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;

Returns
Type Description
GenericSignedAttestation

The genericSignedAttestation.

getGenericSignedAttestationBuilder()

public GenericSignedAttestation.Builder getGenericSignedAttestationBuilder()

.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;

Returns
Type Description
GenericSignedAttestation.Builder

getGenericSignedAttestationOrBuilder()

public GenericSignedAttestationOrBuilder getGenericSignedAttestationOrBuilder()

.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;

Returns
Type Description
GenericSignedAttestationOrBuilder

getPgpSignedAttestation()

public PgpSignedAttestation getPgpSignedAttestation()

A PGP signed attestation.

.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;

Returns
Type Description
PgpSignedAttestation

The pgpSignedAttestation.

getPgpSignedAttestationBuilder()

public PgpSignedAttestation.Builder getPgpSignedAttestationBuilder()

A PGP signed attestation.

.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;

Returns
Type Description
PgpSignedAttestation.Builder

getPgpSignedAttestationOrBuilder()

public PgpSignedAttestationOrBuilder getPgpSignedAttestationOrBuilder()

A PGP signed attestation.

.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;

Returns
Type Description
PgpSignedAttestationOrBuilder

getSignatureCase()

public Attestation.SignatureCase getSignatureCase()
Returns
Type Description
Attestation.SignatureCase

hasGenericSignedAttestation()

public boolean hasGenericSignedAttestation()

.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;

Returns
Type Description
boolean

Whether the genericSignedAttestation field is set.

hasPgpSignedAttestation()

public boolean hasPgpSignedAttestation()

A PGP signed attestation.

.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;

Returns
Type Description
boolean

Whether the pgpSignedAttestation field is set.

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 Attestation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Attestation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(Attestation other)

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

mergeGenericSignedAttestation(GenericSignedAttestation value)

public Attestation.Builder mergeGenericSignedAttestation(GenericSignedAttestation value)

.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;

Parameter
Name Description
value GenericSignedAttestation
Returns
Type Description
Attestation.Builder

mergePgpSignedAttestation(PgpSignedAttestation value)

public Attestation.Builder mergePgpSignedAttestation(PgpSignedAttestation value)

A PGP signed attestation.

.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;

Parameter
Name Description
value PgpSignedAttestation
Returns
Type Description
Attestation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGenericSignedAttestation(GenericSignedAttestation value)

public Attestation.Builder setGenericSignedAttestation(GenericSignedAttestation value)

.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;

Parameter
Name Description
value GenericSignedAttestation
Returns
Type Description
Attestation.Builder

setGenericSignedAttestation(GenericSignedAttestation.Builder builderForValue)

public Attestation.Builder setGenericSignedAttestation(GenericSignedAttestation.Builder builderForValue)

.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;

Parameter
Name Description
builderForValue GenericSignedAttestation.Builder
Returns
Type Description
Attestation.Builder

setPgpSignedAttestation(PgpSignedAttestation value)

public Attestation.Builder setPgpSignedAttestation(PgpSignedAttestation value)

A PGP signed attestation.

.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;

Parameter
Name Description
value PgpSignedAttestation
Returns
Type Description
Attestation.Builder

setPgpSignedAttestation(PgpSignedAttestation.Builder builderForValue)

public Attestation.Builder setPgpSignedAttestation(PgpSignedAttestation.Builder builderForValue)

A PGP signed attestation.

.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;

Parameter
Name Description
builderForValue PgpSignedAttestation.Builder
Returns
Type Description
Attestation.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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