public static final class AttestationOccurrence.Builder extends GeneratedMessageV3.Builder<AttestationOccurrence.Builder> implements AttestationOccurrenceOrBuilder
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 lookup (how to find
this attestation if you already know the authority and artifact to be
verified) and intent (for which authority this attestation was intended to
sign.
Protobuf type grafeas.v1.AttestationOccurrence
Methods
addAllSignatures(Iterable<? extends Signature> values)
public AttestationOccurrence.Builder addAllSignatures(Iterable<? extends Signature> values)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter
Name | Description |
values | Iterable<? extends io.grafeas.v1.Signature>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttestationOccurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addSignatures(int index, Signature value)
public AttestationOccurrence.Builder addSignatures(int index, Signature value)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameters
Returns
addSignatures(int index, Signature.Builder builderForValue)
public AttestationOccurrence.Builder addSignatures(int index, Signature.Builder builderForValue)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameters
Returns
addSignatures(Signature value)
public AttestationOccurrence.Builder addSignatures(Signature value)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter
Returns
addSignatures(Signature.Builder builderForValue)
public AttestationOccurrence.Builder addSignatures(Signature.Builder builderForValue)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter
Returns
addSignaturesBuilder()
public Signature.Builder addSignaturesBuilder()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Returns
addSignaturesBuilder(int index)
public Signature.Builder addSignaturesBuilder(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter
Returns
build()
public AttestationOccurrence build()
Returns
buildPartial()
public AttestationOccurrence buildPartial()
Returns
clear()
public AttestationOccurrence.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AttestationOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AttestationOccurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSerializedPayload()
public AttestationOccurrence.Builder clearSerializedPayload()
Required. The serialized payload that is verified by one or more
signatures
.
bytes serialized_payload = 1;
Returns
clearSignatures()
public AttestationOccurrence.Builder clearSignatures()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Returns
clone()
public AttestationOccurrence.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AttestationOccurrence getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSerializedPayload()
public ByteString getSerializedPayload()
Required. The serialized payload that is verified by one or more
signatures
.
bytes serialized_payload = 1;
Returns
getSignatures(int index)
public Signature getSignatures(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter
Returns
getSignaturesBuilder(int index)
public Signature.Builder getSignaturesBuilder(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter
Returns
getSignaturesBuilderList()
public List<Signature.Builder> getSignaturesBuilderList()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Returns
getSignaturesCount()
public int getSignaturesCount()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Returns
getSignaturesList()
public List<Signature> getSignaturesList()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Returns
getSignaturesOrBuilder(int index)
public SignatureOrBuilder getSignaturesOrBuilder(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter
Returns
getSignaturesOrBuilderList()
public List<? extends SignatureOrBuilder> getSignaturesOrBuilderList()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Returns
Type | Description |
List<? extends io.grafeas.v1.SignatureOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public AttestationOccurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AttestationOccurrence.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(AttestationOccurrence other)
public AttestationOccurrence.Builder mergeFrom(AttestationOccurrence other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttestationOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeSignatures(int index)
public AttestationOccurrence.Builder removeSignatures(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AttestationOccurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttestationOccurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSerializedPayload(ByteString value)
public AttestationOccurrence.Builder setSerializedPayload(ByteString value)
Required. The serialized payload that is verified by one or more
signatures
.
bytes serialized_payload = 1;
Parameter
Name | Description |
value | ByteString
The serializedPayload to set.
|
Returns
setSignatures(int index, Signature value)
public AttestationOccurrence.Builder setSignatures(int index, Signature value)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameters
Returns
setSignatures(int index, Signature.Builder builderForValue)
public AttestationOccurrence.Builder setSignatures(int index, Signature.Builder builderForValue)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AttestationOccurrence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides