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()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenericSignedAttestation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
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;
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
|
build()
public GenericSignedAttestation build()
buildPartial()
public GenericSignedAttestation buildPartial()
clear()
public GenericSignedAttestation.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public GenericSignedAttestation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GenericSignedAttestation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clone()
public GenericSignedAttestation.Builder clone()
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;
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public GenericSignedAttestation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GenericSignedAttestation.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(GenericSignedAttestation other)
public GenericSignedAttestation.Builder mergeFrom(GenericSignedAttestation other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenericSignedAttestation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
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;
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public GenericSignedAttestation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenericSignedAttestation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final GenericSignedAttestation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides