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.Builder
addAllSignatures(Iterable<? extends Signature> values)
One or more signatures over `serialized_payload`.GenericSignedAttestation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GenericSignedAttestation.Builder
addSignatures(int index, Signature value)
One or more signatures over `serialized_payload`.GenericSignedAttestation.Builder
addSignatures(int index, Signature.Builder builderForValue)
One or more signatures over `serialized_payload`.GenericSignedAttestation.Builder
addSignatures(Signature value)
One or more signatures over `serialized_payload`.GenericSignedAttestation.Builder
addSignatures(Signature.Builder builderForValue)
One or more signatures over `serialized_payload`.Signature.Builder
addSignaturesBuilder()
One or more signatures over `serialized_payload`.Signature.Builder
addSignaturesBuilder(int index)
One or more signatures over `serialized_payload`.GenericSignedAttestation
build()
GenericSignedAttestation
buildPartial()
GenericSignedAttestation.Builder
clear()
GenericSignedAttestation.Builder
clearContentType()
Type (for example schema) of the attestation payload that was signed.GenericSignedAttestation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GenericSignedAttestation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GenericSignedAttestation.Builder
clearSerializedPayload()
The serialized payload that is verified by one or more `signatures`.GenericSignedAttestation.Builder
clearSignatures()
One or more signatures over `serialized_payload`.GenericSignedAttestation.Builder
clone()
GenericSignedAttestation.ContentType
getContentType()
Type (for example schema) of the attestation payload that was signed.int
getContentTypeValue()
Type (for example schema) of the attestation payload that was signed.GenericSignedAttestation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.ByteString
getSerializedPayload()
The serialized payload that is verified by one or more `signatures`.Signature
getSignatures(int index)
One or more signatures over `serialized_payload`.Signature.Builder
getSignaturesBuilder(int index)
One or more signatures over `serialized_payload`.List<Signature.Builder>
getSignaturesBuilderList()
One or more signatures over `serialized_payload`.int
getSignaturesCount()
One or more signatures over `serialized_payload`.List<Signature>
getSignaturesList()
One or more signatures over `serialized_payload`.SignatureOrBuilder
getSignaturesOrBuilder(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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GenericSignedAttestation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GenericSignedAttestation.Builder
mergeFrom(com.google.protobuf.Message other)
GenericSignedAttestation.Builder
mergeFrom(GenericSignedAttestation other)
GenericSignedAttestation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GenericSignedAttestation.Builder
removeSignatures(int index)
One or more signatures over `serialized_payload`.GenericSignedAttestation.Builder
setContentType(GenericSignedAttestation.ContentType value)
Type (for example schema) of the attestation payload that was signed.GenericSignedAttestation.Builder
setContentTypeValue(int value)
Type (for example schema) of the attestation payload that was signed.GenericSignedAttestation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GenericSignedAttestation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GenericSignedAttestation.Builder
setSerializedPayload(com.google.protobuf.ByteString value)
The serialized payload that is verified by one or more `signatures`.GenericSignedAttestation.Builder
setSignatures(int index, Signature value)
One or more signatures over `serialized_payload`.GenericSignedAttestation.Builder
setSignatures(int index, Signature.Builder builderForValue)
One or more signatures over `serialized_payload`.GenericSignedAttestation.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
clear
public GenericSignedAttestation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
getDefaultInstanceForType
public GenericSignedAttestation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GenericSignedAttestation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GenericSignedAttestation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GenericSignedAttestation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
setField
public GenericSignedAttestation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
clearField
public GenericSignedAttestation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
clearOneof
public GenericSignedAttestation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
setRepeatedField
public GenericSignedAttestation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
addRepeatedField
public GenericSignedAttestation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
mergeFrom
public GenericSignedAttestation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GenericSignedAttestation.Builder>
-
mergeFrom
public GenericSignedAttestation.Builder mergeFrom(GenericSignedAttestation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getContentTypeValue
in 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:
getContentType
in 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:
getSerializedPayload
in 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:
getSignaturesList
in 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:
getSignaturesCount
in 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:
getSignatures
in 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:
getSignaturesOrBuilder
in 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:
getSignaturesOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
mergeUnknownFields
public final GenericSignedAttestation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
-
-