Package dev.sigstore.proto.common.v1
Class MessageSignature.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<MessageSignature.Builder>
-
- dev.sigstore.proto.common.v1.MessageSignature.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,MessageSignatureOrBuilder
,java.lang.Cloneable
- Enclosing class:
- MessageSignature
public static final class MessageSignature.Builder extends com.google.protobuf.GeneratedMessage.Builder<MessageSignature.Builder> implements MessageSignatureOrBuilder
MessageSignature stores the computed signature over a message.
Protobuf typedev.sigstore.common.v1.MessageSignature
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageSignature
build()
MessageSignature
buildPartial()
MessageSignature.Builder
clear()
MessageSignature.Builder
clearMessageDigest()
Message digest can be used to identify the artifact.MessageSignature.Builder
clearSignature()
The raw bytes as returned from the signature algorithm.MessageSignature
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
HashOutput
getMessageDigest()
Message digest can be used to identify the artifact.HashOutput.Builder
getMessageDigestBuilder()
Message digest can be used to identify the artifact.HashOutputOrBuilder
getMessageDigestOrBuilder()
Message digest can be used to identify the artifact.com.google.protobuf.ByteString
getSignature()
The raw bytes as returned from the signature algorithm.boolean
hasMessageDigest()
Message digest can be used to identify the artifact.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MessageSignature.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MessageSignature.Builder
mergeFrom(com.google.protobuf.Message other)
MessageSignature.Builder
mergeFrom(MessageSignature other)
MessageSignature.Builder
mergeMessageDigest(HashOutput value)
Message digest can be used to identify the artifact.MessageSignature.Builder
setMessageDigest(HashOutput value)
Message digest can be used to identify the artifact.MessageSignature.Builder
setMessageDigest(HashOutput.Builder builderForValue)
Message digest can be used to identify the artifact.MessageSignature.Builder
setSignature(com.google.protobuf.ByteString value)
The raw bytes as returned from the signature algorithm.-
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, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<MessageSignature.Builder>
-
clear
public MessageSignature.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.GeneratedMessage.Builder<MessageSignature.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.GeneratedMessage.Builder<MessageSignature.Builder>
-
getDefaultInstanceForType
public MessageSignature getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MessageSignature build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MessageSignature buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public MessageSignature.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MessageSignature.Builder>
-
mergeFrom
public MessageSignature.Builder mergeFrom(MessageSignature other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<MessageSignature.Builder>
-
mergeFrom
public MessageSignature.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<MessageSignature.Builder>
- Throws:
java.io.IOException
-
hasMessageDigest
public boolean hasMessageDigest()
Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification.
.dev.sigstore.common.v1.HashOutput message_digest = 1;
- Specified by:
hasMessageDigest
in interfaceMessageSignatureOrBuilder
- Returns:
- Whether the messageDigest field is set.
-
getMessageDigest
public HashOutput getMessageDigest()
Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification.
.dev.sigstore.common.v1.HashOutput message_digest = 1;
- Specified by:
getMessageDigest
in interfaceMessageSignatureOrBuilder
- Returns:
- The messageDigest.
-
setMessageDigest
public MessageSignature.Builder setMessageDigest(HashOutput value)
Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification.
.dev.sigstore.common.v1.HashOutput message_digest = 1;
-
setMessageDigest
public MessageSignature.Builder setMessageDigest(HashOutput.Builder builderForValue)
Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification.
.dev.sigstore.common.v1.HashOutput message_digest = 1;
-
mergeMessageDigest
public MessageSignature.Builder mergeMessageDigest(HashOutput value)
Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification.
.dev.sigstore.common.v1.HashOutput message_digest = 1;
-
clearMessageDigest
public MessageSignature.Builder clearMessageDigest()
Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification.
.dev.sigstore.common.v1.HashOutput message_digest = 1;
-
getMessageDigestBuilder
public HashOutput.Builder getMessageDigestBuilder()
Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification.
.dev.sigstore.common.v1.HashOutput message_digest = 1;
-
getMessageDigestOrBuilder
public HashOutputOrBuilder getMessageDigestOrBuilder()
Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification.
.dev.sigstore.common.v1.HashOutput message_digest = 1;
- Specified by:
getMessageDigestOrBuilder
in interfaceMessageSignatureOrBuilder
-
getSignature
public com.google.protobuf.ByteString getSignature()
The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out-of-band.
bytes signature = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getSignature
in interfaceMessageSignatureOrBuilder
- Returns:
- The signature.
-
setSignature
public MessageSignature.Builder setSignature(com.google.protobuf.ByteString value)
The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out-of-band.
bytes signature = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The signature to set.- Returns:
- This builder for chaining.
-
clearSignature
public MessageSignature.Builder clearSignature()
The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out-of-band.
bytes signature = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
-