Class GenericSignedAttestation.Builder (2.84.0)

public static final class GenericSignedAttestation.Builder extends GeneratedMessage.Builder<GenericSignedAttestation.Builder> implements GenericSignedAttestationOrBuilder

An attestation wrapper that uses the Grafeas Signature message. This attestation must define the serialized_payload that the signatures verify and any metadata necessary to interpret that plaintext. The signatures should always be over the serialized_payload bytestring.

Protobuf type grafeas.v1beta1.attestation.GenericSignedAttestation

Static Methods

getDescriptor()

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

Methods

addAllSignatures(Iterable<? extends Signature> values)

public GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1beta1.common.Signature>
Returns
Type Description
GenericSignedAttestation.Builder

addSignatures(int index, Signature value)

public GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Parameters
Name Description
index int
value Signature
Returns
Type Description
GenericSignedAttestation.Builder

addSignatures(int index, Signature.Builder builderForValue)

public GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Parameters
Name Description
index int
builderForValue Signature.Builder
Returns
Type Description
GenericSignedAttestation.Builder

addSignatures(Signature value)

public GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Parameter
Name Description
value Signature
Returns
Type Description
GenericSignedAttestation.Builder

addSignatures(Signature.Builder builderForValue)

public GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Parameter
Name Description
builderForValue Signature.Builder
Returns
Type Description
GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Returns
Type Description
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.v1beta1.Signature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
Signature.Builder

build()

public GenericSignedAttestation build()
Returns
Type Description
GenericSignedAttestation

buildPartial()

public GenericSignedAttestation buildPartial()
Returns
Type Description
GenericSignedAttestation

clear()

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

clearContentType()

public GenericSignedAttestation.Builder clearContentType()

Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).

.grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;

Returns
Type Description
GenericSignedAttestation.Builder

This builder for chaining.

clearSerializedPayload()

public GenericSignedAttestation.Builder clearSerializedPayload()

The serialized payload that is verified by one or more signatures. The encoding and semantic meaning of this payload must match what is set in content_type.

bytes serialized_payload = 2;

Returns
Type Description
GenericSignedAttestation.Builder

This builder for chaining.

clearSignatures()

public GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Returns
Type Description
GenericSignedAttestation.Builder

getContentType()

public GenericSignedAttestation.ContentType getContentType()

Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).

.grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;

Returns
Type Description
GenericSignedAttestation.ContentType

The contentType.

getContentTypeValue()

public int getContentTypeValue()

Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).

.grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for contentType.

getDefaultInstanceForType()

public GenericSignedAttestation getDefaultInstanceForType()
Returns
Type Description
GenericSignedAttestation

getDescriptorForType()

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

getSerializedPayload()

public ByteString getSerializedPayload()

The serialized payload that is verified by one or more signatures. The encoding and semantic meaning of this payload must match what is set in content_type.

bytes serialized_payload = 2;

Returns
Type Description
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.v1beta1.Signature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
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.v1beta1.Signature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
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.v1beta1.Signature signatures = 3;

Returns
Type Description
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.v1beta1.Signature signatures = 3;

Returns
Type Description
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.v1beta1.Signature signatures = 3;

Returns
Type Description
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.v1beta1.Signature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
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.v1beta1.Signature signatures = 3;

Returns
Type Description
List<? extends io.grafeas.v1beta1.common.SignatureOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenericSignedAttestation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenericSignedAttestation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(GenericSignedAttestation other)

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

removeSignatures(int index)

public GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
GenericSignedAttestation.Builder

setContentType(GenericSignedAttestation.ContentType value)

public GenericSignedAttestation.Builder setContentType(GenericSignedAttestation.ContentType value)

Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).

.grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;

Parameter
Name Description
value GenericSignedAttestation.ContentType

The contentType to set.

Returns
Type Description
GenericSignedAttestation.Builder

This builder for chaining.

setContentTypeValue(int value)

public GenericSignedAttestation.Builder setContentTypeValue(int value)

Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).

.grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for contentType to set.

Returns
Type Description
GenericSignedAttestation.Builder

This builder for chaining.

setSerializedPayload(ByteString value)

public GenericSignedAttestation.Builder setSerializedPayload(ByteString value)

The serialized payload that is verified by one or more signatures. The encoding and semantic meaning of this payload must match what is set in content_type.

bytes serialized_payload = 2;

Parameter
Name Description
value ByteString

The serializedPayload to set.

Returns
Type Description
GenericSignedAttestation.Builder

This builder for chaining.

setSignatures(int index, Signature value)

public GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Parameters
Name Description
index int
value Signature
Returns
Type Description
GenericSignedAttestation.Builder

setSignatures(int index, Signature.Builder builderForValue)

public GenericSignedAttestation.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.v1beta1.Signature signatures = 3;

Parameters
Name Description
index int
builderForValue Signature.Builder
Returns
Type Description
GenericSignedAttestation.Builder