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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Attestation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Attestation build()
Returns
buildPartial()
public Attestation buildPartial()
Returns
clear()
public Attestation.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Attestation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGenericSignedAttestation()
public Attestation.Builder clearGenericSignedAttestation()
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Attestation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPgpSignedAttestation()
public Attestation.Builder clearPgpSignedAttestation()
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Returns
clearSignature()
public Attestation.Builder clearSignature()
Returns
clone()
public Attestation.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Attestation getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getGenericSignedAttestation()
public GenericSignedAttestation getGenericSignedAttestation()
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Returns
getGenericSignedAttestationBuilder()
public GenericSignedAttestation.Builder getGenericSignedAttestationBuilder()
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Returns
getGenericSignedAttestationOrBuilder()
public GenericSignedAttestationOrBuilder getGenericSignedAttestationOrBuilder()
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Returns
getPgpSignedAttestation()
public PgpSignedAttestation getPgpSignedAttestation()
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Returns
getPgpSignedAttestationBuilder()
public PgpSignedAttestation.Builder getPgpSignedAttestationBuilder()
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Returns
getPgpSignedAttestationOrBuilder()
public PgpSignedAttestationOrBuilder getPgpSignedAttestationOrBuilder()
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Returns
getSignatureCase()
public Attestation.SignatureCase getSignatureCase()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public Attestation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Attestation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(Attestation other)
public Attestation.Builder mergeFrom(Attestation other)
Parameter
Returns
mergeGenericSignedAttestation(GenericSignedAttestation value)
public Attestation.Builder mergeGenericSignedAttestation(GenericSignedAttestation value)
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Parameter
Returns
mergePgpSignedAttestation(PgpSignedAttestation value)
public Attestation.Builder mergePgpSignedAttestation(PgpSignedAttestation value)
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Attestation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Attestation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGenericSignedAttestation(GenericSignedAttestation value)
public Attestation.Builder setGenericSignedAttestation(GenericSignedAttestation value)
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Parameter
Returns
setGenericSignedAttestation(GenericSignedAttestation.Builder builderForValue)
public Attestation.Builder setGenericSignedAttestation(GenericSignedAttestation.Builder builderForValue)
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Parameter
Returns
setPgpSignedAttestation(PgpSignedAttestation value)
public Attestation.Builder setPgpSignedAttestation(PgpSignedAttestation value)
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Parameter
Returns
setPgpSignedAttestation(PgpSignedAttestation.Builder builderForValue)
public Attestation.Builder setPgpSignedAttestation(PgpSignedAttestation.Builder builderForValue)
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Attestation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Attestation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides