Package io.grafeas.v1beta1.attestation
Class GenericSignedAttestation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenericSignedAttestation.Builder>
io.grafeas.v1beta1.attestation.GenericSignedAttestation.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GenericSignedAttestationOrBuilder,Cloneable
- Enclosing class:
- GenericSignedAttestation
public static final class GenericSignedAttestation.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllSignatures(Iterable<? extends Signature> values) One or more signatures over `serialized_payload`.addSignatures(int index, Signature value) One or more signatures over `serialized_payload`.addSignatures(int index, Signature.Builder builderForValue) One or more signatures over `serialized_payload`.addSignatures(Signature value) One or more signatures over `serialized_payload`.addSignatures(Signature.Builder builderForValue) One or more signatures over `serialized_payload`.One or more signatures over `serialized_payload`.addSignaturesBuilder(int index) One or more signatures over `serialized_payload`.build()clear()Type (for example schema) of the attestation payload that was signed.The serialized payload that is verified by one or more `signatures`.One or more signatures over `serialized_payload`.Type (for example schema) of the attestation payload that was signed.intType (for example schema) of the attestation payload that was signed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringThe serialized payload that is verified by one or more `signatures`.getSignatures(int index) One or more signatures over `serialized_payload`.getSignaturesBuilder(int index) One or more signatures over `serialized_payload`.One or more signatures over `serialized_payload`.intOne or more signatures over `serialized_payload`.One or more signatures over `serialized_payload`.getSignaturesOrBuilder(int index) One or more signatures over `serialized_payload`.List<? extends SignatureOrBuilder>One or more signatures over `serialized_payload`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSignatures(int index) One or more signatures over `serialized_payload`.Type (for example schema) of the attestation payload that was signed.setContentTypeValue(int value) Type (for example schema) of the attestation payload that was signed.setSerializedPayload(com.google.protobuf.ByteString value) The serialized payload that is verified by one or more `signatures`.setSignatures(int index, Signature value) One or more signatures over `serialized_payload`.setSignatures(int index, Signature.Builder builderForValue) One or more signatures over `serialized_payload`.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenericSignedAttestation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenericSignedAttestation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenericSignedAttestation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenericSignedAttestation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenericSignedAttestation.Builder>
-
mergeFrom
public GenericSignedAttestation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenericSignedAttestation.Builder>- Throws:
IOException
-
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;- Specified by:
getContentTypeValuein interfaceGenericSignedAttestationOrBuilder- Returns:
- The enum numeric value on the wire for contentType.
-
setContentTypeValue
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;- Parameters:
value- The enum numeric value on the wire for contentType to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getContentTypein interfaceGenericSignedAttestationOrBuilder- Returns:
- The contentType.
-
setContentType
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;- Parameters:
value- The contentType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getSerializedPayload
public com.google.protobuf.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;- Specified by:
getSerializedPayloadin interfaceGenericSignedAttestationOrBuilder- Returns:
- The serializedPayload.
-
setSerializedPayload
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;- Parameters:
value- The serializedPayload to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getSignaturesListin interfaceGenericSignedAttestationOrBuilder
-
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;- Specified by:
getSignaturesCountin interfaceGenericSignedAttestationOrBuilder
-
getSignatures
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;- Specified by:
getSignaturesin interfaceGenericSignedAttestationOrBuilder
-
setSignatures
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
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
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
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
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
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; -
addAllSignatures
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; -
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; -
removeSignatures
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; -
getSignaturesBuilder
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
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;- Specified by:
getSignaturesOrBuilderin interfaceGenericSignedAttestationOrBuilder
-
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;- Specified by:
getSignaturesOrBuilderListin interfaceGenericSignedAttestationOrBuilder
-
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
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; -
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;
-