public static final class GenericSignedAttestation.Builder extends GeneratedMessageV3.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
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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenericSignedAttestation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
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
Returns
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
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.v1beta1.Signature signatures = 3;
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.v1beta1.Signature signatures = 3;
Parameter
Returns
build()
public GenericSignedAttestation build()
Returns
buildPartial()
public GenericSignedAttestation buildPartial()
Returns
clear()
public GenericSignedAttestation.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public GenericSignedAttestation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GenericSignedAttestation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
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
clone()
public GenericSignedAttestation.Builder clone()
Returns
Overrides
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
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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.v1beta1.Signature signatures = 3;
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.v1beta1.Signature signatures = 3;
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.v1beta1.Signature signatures = 3;
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.v1beta1.Signature signatures = 3;
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.v1beta1.Signature signatures = 3;
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.v1beta1.Signature signatures = 3;
Returns
Type | Description |
List<? extends io.grafeas.v1beta1.common.SignatureOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public GenericSignedAttestation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GenericSignedAttestation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(GenericSignedAttestation other)
public GenericSignedAttestation.Builder mergeFrom(GenericSignedAttestation other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenericSignedAttestation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public GenericSignedAttestation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenericSignedAttestation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final GenericSignedAttestation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides