Class ContainerImageSignature.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContainerImageSignature.Builder>
com.google.cloud.confidentialcomputing.v1.ContainerImageSignature.Builder
All Implemented Interfaces:
ContainerImageSignatureOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ContainerImageSignature

public static final class ContainerImageSignature.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContainerImageSignature.Builder> implements ContainerImageSignatureOrBuilder
 ContainerImageSignature holds necessary metadata to verify a container image
 signature.
 
Protobuf type google.cloud.confidentialcomputing.v1.ContainerImageSignature
  • Method Details

    • 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<ContainerImageSignature.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<ContainerImageSignature.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<ContainerImageSignature.Builder>
    • getDefaultInstanceForType

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

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

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

      public ContainerImageSignature.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<ContainerImageSignature.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ContainerImageSignature.Builder>
    • mergeFrom

      public ContainerImageSignature.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<ContainerImageSignature.Builder>
      Throws:
      IOException
    • getPayload

      public com.google.protobuf.ByteString getPayload()
       Optional. The binary signature payload following the SimpleSigning format
       https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
       This payload includes the container image digest.
       
      bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPayload in interface ContainerImageSignatureOrBuilder
      Returns:
      The payload.
    • setPayload

      public ContainerImageSignature.Builder setPayload(com.google.protobuf.ByteString value)
       Optional. The binary signature payload following the SimpleSigning format
       https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
       This payload includes the container image digest.
       
      bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The payload to set.
      Returns:
      This builder for chaining.
    • clearPayload

      public ContainerImageSignature.Builder clearPayload()
       Optional. The binary signature payload following the SimpleSigning format
       https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.
       This payload includes the container image digest.
       
      bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getSignature

      public com.google.protobuf.ByteString getSignature()
       Optional. A signature over the payload.
       The container image digest is incorporated into the signature as follows:
       1. Generate a SimpleSigning format payload that includes the container
       image digest.
       2. Generate a signature over SHA256 digest of the payload.
       The signature generation process can be represented as follows:
       `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`
       
      bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSignature in interface ContainerImageSignatureOrBuilder
      Returns:
      The signature.
    • setSignature

      public ContainerImageSignature.Builder setSignature(com.google.protobuf.ByteString value)
       Optional. A signature over the payload.
       The container image digest is incorporated into the signature as follows:
       1. Generate a SimpleSigning format payload that includes the container
       image digest.
       2. Generate a signature over SHA256 digest of the payload.
       The signature generation process can be represented as follows:
       `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`
       
      bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The signature to set.
      Returns:
      This builder for chaining.
    • clearSignature

      public ContainerImageSignature.Builder clearSignature()
       Optional. A signature over the payload.
       The container image digest is incorporated into the signature as follows:
       1. Generate a SimpleSigning format payload that includes the container
       image digest.
       2. Generate a signature over SHA256 digest of the payload.
       The signature generation process can be represented as follows:
       `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`
       
      bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPublicKey

      public com.google.protobuf.ByteString getPublicKey()
       Optional. Reserved for future use.
       
      bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKey in interface ContainerImageSignatureOrBuilder
      Returns:
      The publicKey.
    • setPublicKey

      public ContainerImageSignature.Builder setPublicKey(com.google.protobuf.ByteString value)
       Optional. Reserved for future use.
       
      bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The publicKey to set.
      Returns:
      This builder for chaining.
    • clearPublicKey

      public ContainerImageSignature.Builder clearPublicKey()
       Optional. Reserved for future use.
       
      bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getSigAlgValue

      public int getSigAlgValue()
       Optional. Reserved for future use.
       
      .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSigAlgValue in interface ContainerImageSignatureOrBuilder
      Returns:
      The enum numeric value on the wire for sigAlg.
    • setSigAlgValue

      public ContainerImageSignature.Builder setSigAlgValue(int value)
       Optional. Reserved for future use.
       
      .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for sigAlg to set.
      Returns:
      This builder for chaining.
    • getSigAlg

      public SigningAlgorithm getSigAlg()
       Optional. Reserved for future use.
       
      .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSigAlg in interface ContainerImageSignatureOrBuilder
      Returns:
      The sigAlg.
    • setSigAlg

       Optional. Reserved for future use.
       
      .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sigAlg to set.
      Returns:
      This builder for chaining.
    • clearSigAlg

      public ContainerImageSignature.Builder clearSigAlg()
       Optional. Reserved for future use.
       
      .google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.