Class 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 type dev.sigstore.common.v1.MessageSignature
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MessageSignature.Builder>
      • clear

        public MessageSignature.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<MessageSignature.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MessageSignature.Builder>
      • getDefaultInstanceForType

        public MessageSignature getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MessageSignature build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MessageSignature buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public MessageSignature.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MessageSignature.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface MessageSignatureOrBuilder
        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 interface MessageSignatureOrBuilder
        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 interface MessageSignatureOrBuilder
      • 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 interface MessageSignatureOrBuilder
        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.