Class AttestationOccurrence.Builder (2.1.3)

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
NameDescription
valuesIterable<? extends io.grafeas.v1.Signature>
Returns
TypeDescription
AttestationOccurrence.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
indexint
builderForValueSignature.Builder
Returns
TypeDescription
AttestationOccurrence.Builder

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
NameDescription
valueSignature
Returns
TypeDescription
AttestationOccurrence.Builder

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
NameDescription
builderForValueSignature.Builder
Returns
TypeDescription
AttestationOccurrence.Builder

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
TypeDescription
Signature.Builder

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

build()

public AttestationOccurrence build()
Returns
TypeDescription
AttestationOccurrence

buildPartial()

public AttestationOccurrence buildPartial()
Returns
TypeDescription
AttestationOccurrence

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSerializedPayload()

public AttestationOccurrence.Builder clearSerializedPayload()

Required. The serialized payload that is verified by one or more signatures.

bytes serialized_payload = 1;

Returns
TypeDescription
AttestationOccurrence.Builder

This builder for chaining.

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
TypeDescription
AttestationOccurrence.Builder

clone()

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

getDefaultInstanceForType()

public AttestationOccurrence getDefaultInstanceForType()
Returns
TypeDescription
AttestationOccurrence

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSerializedPayload()

public ByteString getSerializedPayload()

Required. The serialized payload that is verified by one or more signatures.

bytes serialized_payload = 1;

Returns
TypeDescription
ByteString

The serializedPayload.

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

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

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
TypeDescription
List<Builder>

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

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
TypeDescription
List<Signature>

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

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
TypeDescription
List<? extends io.grafeas.v1.SignatureOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(AttestationOccurrence other)

public AttestationOccurrence.Builder mergeFrom(AttestationOccurrence other)
Parameter
NameDescription
otherAttestationOccurrence
Returns
TypeDescription
AttestationOccurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttestationOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttestationOccurrence.Builder
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
NameDescription
indexint
Returns
TypeDescription
AttestationOccurrence.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public AttestationOccurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AttestationOccurrence.Builder
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
NameDescription
valueByteString

The serializedPayload to set.

Returns
TypeDescription
AttestationOccurrence.Builder

This builder for chaining.

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
NameDescription
indexint
valueSignature
Returns
TypeDescription
AttestationOccurrence.Builder

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
NameDescription
indexint
builderForValueSignature.Builder
Returns
TypeDescription
AttestationOccurrence.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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