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.GeneratedMessageV3.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.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 typegrafeas.v1beta1.attestation.GenericSignedAttestation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericSignedAttestation.BuilderaddAllSignatures(Iterable<? extends Signature> values)One or more signatures over `serialized_payload`.GenericSignedAttestation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GenericSignedAttestation.BuilderaddSignatures(int index, Signature value)One or more signatures over `serialized_payload`.GenericSignedAttestation.BuilderaddSignatures(int index, Signature.Builder builderForValue)One or more signatures over `serialized_payload`.GenericSignedAttestation.BuilderaddSignatures(Signature value)One or more signatures over `serialized_payload`.GenericSignedAttestation.BuilderaddSignatures(Signature.Builder builderForValue)One or more signatures over `serialized_payload`.Signature.BuilderaddSignaturesBuilder()One or more signatures over `serialized_payload`.Signature.BuilderaddSignaturesBuilder(int index)One or more signatures over `serialized_payload`.GenericSignedAttestationbuild()GenericSignedAttestationbuildPartial()GenericSignedAttestation.Builderclear()GenericSignedAttestation.BuilderclearContentType()Type (for example schema) of the attestation payload that was signed.GenericSignedAttestation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GenericSignedAttestation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GenericSignedAttestation.BuilderclearSerializedPayload()The serialized payload that is verified by one or more `signatures`.GenericSignedAttestation.BuilderclearSignatures()One or more signatures over `serialized_payload`.GenericSignedAttestation.Builderclone()GenericSignedAttestation.ContentTypegetContentType()Type (for example schema) of the attestation payload that was signed.intgetContentTypeValue()Type (for example schema) of the attestation payload that was signed.GenericSignedAttestationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetSerializedPayload()The serialized payload that is verified by one or more `signatures`.SignaturegetSignatures(int index)One or more signatures over `serialized_payload`.Signature.BuildergetSignaturesBuilder(int index)One or more signatures over `serialized_payload`.List<Signature.Builder>getSignaturesBuilderList()One or more signatures over `serialized_payload`.intgetSignaturesCount()One or more signatures over `serialized_payload`.List<Signature>getSignaturesList()One or more signatures over `serialized_payload`.SignatureOrBuildergetSignaturesOrBuilder(int index)One or more signatures over `serialized_payload`.List<? extends SignatureOrBuilder>getSignaturesOrBuilderList()One or more signatures over `serialized_payload`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GenericSignedAttestation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GenericSignedAttestation.BuildermergeFrom(com.google.protobuf.Message other)GenericSignedAttestation.BuildermergeFrom(GenericSignedAttestation other)GenericSignedAttestation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GenericSignedAttestation.BuilderremoveSignatures(int index)One or more signatures over `serialized_payload`.GenericSignedAttestation.BuildersetContentType(GenericSignedAttestation.ContentType value)Type (for example schema) of the attestation payload that was signed.GenericSignedAttestation.BuildersetContentTypeValue(int value)Type (for example schema) of the attestation payload that was signed.GenericSignedAttestation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GenericSignedAttestation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GenericSignedAttestation.BuildersetSerializedPayload(com.google.protobuf.ByteString value)The serialized payload that is verified by one or more `signatures`.GenericSignedAttestation.BuildersetSignatures(int index, Signature value)One or more signatures over `serialized_payload`.GenericSignedAttestation.BuildersetSignatures(int index, Signature.Builder builderForValue)One or more signatures over `serialized_payload`.GenericSignedAttestation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
clear
public GenericSignedAttestation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
getDefaultInstanceForType
public GenericSignedAttestation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GenericSignedAttestation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GenericSignedAttestation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GenericSignedAttestation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
setField
public GenericSignedAttestation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
clearField
public GenericSignedAttestation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
clearOneof
public GenericSignedAttestation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
setRepeatedField
public GenericSignedAttestation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
addRepeatedField
public GenericSignedAttestation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
mergeFrom
public GenericSignedAttestation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenericSignedAttestation.Builder>
-
mergeFrom
public GenericSignedAttestation.Builder mergeFrom(GenericSignedAttestation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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;- Parameters:
value- The enum numeric value on the wire for contentType to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getContentTypein interfaceGenericSignedAttestationOrBuilder- Returns:
- The contentType.
-
setContentType
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;- Parameters:
value- The contentType to set.- Returns:
- This builder for chaining.
-
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:
- 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
public GenericSignedAttestation.Builder setSerializedPayload(com.google.protobuf.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;- Parameters:
value- The serializedPayload to set.- Returns:
- 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:
- This builder for chaining.
-
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;- 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
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;- Specified by:
getSignaturesin interfaceGenericSignedAttestationOrBuilder
-
setSignatures
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
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;
-
addSignatures
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
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
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;
-
addSignatures
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;
-
addAllSignatures
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;
-
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;
-
removeSignatures
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;
-
getSignaturesBuilder
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;
-
getSignaturesOrBuilder
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;- Specified by:
getSignaturesOrBuilderin interfaceGenericSignedAttestationOrBuilder
-
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;- Specified by:
getSignaturesOrBuilderListin interfaceGenericSignedAttestationOrBuilder
-
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
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;
-
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;
-
setUnknownFields
public final GenericSignedAttestation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
mergeUnknownFields
public final GenericSignedAttestation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
-