Class GenericSignedAttestation.Builder (2.8.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends io.grafeas.v1beta1.common.Signature>
Returns
TypeDescription
GenericSignedAttestation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenericSignedAttestation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenericSignedAttestation.Builder
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
NameDescription
indexint
valueSignature
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSignature.Builder
Returns
TypeDescription
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
NameDescription
valueSignature
Returns
TypeDescription
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
NameDescription
builderForValueSignature.Builder
Returns
TypeDescription
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
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.v1beta1.Signature signatures = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Signature.Builder

build()

public GenericSignedAttestation build()
Returns
TypeDescription
GenericSignedAttestation

buildPartial()

public GenericSignedAttestation buildPartial()
Returns
TypeDescription
GenericSignedAttestation

clear()

public GenericSignedAttestation.Builder clear()
Returns
TypeDescription
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
TypeDescription
GenericSignedAttestation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public GenericSignedAttestation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GenericSignedAttestation.Builder
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
TypeDescription
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
TypeDescription
GenericSignedAttestation.Builder

clone()

public GenericSignedAttestation.Builder clone()
Returns
TypeDescription
GenericSignedAttestation.Builder
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for contentType.

getDefaultInstanceForType()

public GenericSignedAttestation getDefaultInstanceForType()
Returns
TypeDescription
GenericSignedAttestation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.v1beta1.Signature signatures = 3;

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

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

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

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

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

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

Returns
TypeDescription
List<? extends io.grafeas.v1beta1.common.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 GenericSignedAttestation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenericSignedAttestation.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(GenericSignedAttestation other)

public GenericSignedAttestation.Builder mergeFrom(GenericSignedAttestation other)
Parameter
NameDescription
otherGenericSignedAttestation
Returns
TypeDescription
GenericSignedAttestation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The contentType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
GenericSignedAttestation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The serializedPayload to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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