Class Attestation.Builder

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Attestation build()
Returns
TypeDescription
Attestation

buildPartial()

public Attestation buildPartial()
Returns
TypeDescription
Attestation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGenericSignedAttestation()

public Attestation.Builder clearGenericSignedAttestation()

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

Returns
TypeDescription
Attestation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Attestation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Attestation.Builder
Overrides

clearPgpSignedAttestation()

public Attestation.Builder clearPgpSignedAttestation()

A PGP signed attestation.

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

Returns
TypeDescription
Attestation.Builder

clearSignature()

public Attestation.Builder clearSignature()
Returns
TypeDescription
Attestation.Builder

clone()

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

getDefaultInstanceForType()

public Attestation getDefaultInstanceForType()
Returns
TypeDescription
Attestation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGenericSignedAttestation()

public GenericSignedAttestation getGenericSignedAttestation()

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

Returns
TypeDescription
GenericSignedAttestation

The genericSignedAttestation.

getGenericSignedAttestationBuilder()

public GenericSignedAttestation.Builder getGenericSignedAttestationBuilder()

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

Returns
TypeDescription
GenericSignedAttestation.Builder

getGenericSignedAttestationOrBuilder()

public GenericSignedAttestationOrBuilder getGenericSignedAttestationOrBuilder()

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

Returns
TypeDescription
GenericSignedAttestationOrBuilder

getPgpSignedAttestation()

public PgpSignedAttestation getPgpSignedAttestation()

A PGP signed attestation.

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

Returns
TypeDescription
PgpSignedAttestation

The pgpSignedAttestation.

getPgpSignedAttestationBuilder()

public PgpSignedAttestation.Builder getPgpSignedAttestationBuilder()

A PGP signed attestation.

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

Returns
TypeDescription
PgpSignedAttestation.Builder

getPgpSignedAttestationOrBuilder()

public PgpSignedAttestationOrBuilder getPgpSignedAttestationOrBuilder()

A PGP signed attestation.

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

Returns
TypeDescription
PgpSignedAttestationOrBuilder

getSignatureCase()

public Attestation.SignatureCase getSignatureCase()
Returns
TypeDescription
Attestation.SignatureCase

hasGenericSignedAttestation()

public boolean hasGenericSignedAttestation()

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

Returns
TypeDescription
boolean

Whether the genericSignedAttestation field is set.

hasPgpSignedAttestation()

public boolean hasPgpSignedAttestation()

A PGP signed attestation.

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

Returns
TypeDescription
boolean

Whether the pgpSignedAttestation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Attestation other)

public Attestation.Builder mergeFrom(Attestation other)
Parameter
NameDescription
otherAttestation
Returns
TypeDescription
Attestation.Builder

mergeGenericSignedAttestation(GenericSignedAttestation value)

public Attestation.Builder mergeGenericSignedAttestation(GenericSignedAttestation value)

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

Parameter
NameDescription
valueGenericSignedAttestation
Returns
TypeDescription
Attestation.Builder

mergePgpSignedAttestation(PgpSignedAttestation value)

public Attestation.Builder mergePgpSignedAttestation(PgpSignedAttestation value)

A PGP signed attestation.

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

Parameter
NameDescription
valuePgpSignedAttestation
Returns
TypeDescription
Attestation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGenericSignedAttestation(GenericSignedAttestation value)

public Attestation.Builder setGenericSignedAttestation(GenericSignedAttestation value)

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

Parameter
NameDescription
valueGenericSignedAttestation
Returns
TypeDescription
Attestation.Builder

setGenericSignedAttestation(GenericSignedAttestation.Builder builderForValue)

public Attestation.Builder setGenericSignedAttestation(GenericSignedAttestation.Builder builderForValue)

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

Parameter
NameDescription
builderForValueGenericSignedAttestation.Builder
Returns
TypeDescription
Attestation.Builder

setPgpSignedAttestation(PgpSignedAttestation value)

public Attestation.Builder setPgpSignedAttestation(PgpSignedAttestation value)

A PGP signed attestation.

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

Parameter
NameDescription
valuePgpSignedAttestation
Returns
TypeDescription
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
NameDescription
builderForValuePgpSignedAttestation.Builder
Returns
TypeDescription
Attestation.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Attestation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Attestation.Builder
Overrides