Class Resources.PkixPublicKey.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Resources.PkixPublicKey.Builder>
com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Resources.PkixPublicKeyOrBuilder, Cloneable
Enclosing class:
Resources.PkixPublicKey

public static final class Resources.PkixPublicKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<Resources.PkixPublicKey.Builder> implements Resources.PkixPublicKeyOrBuilder
 A public key in the PkixPublicKey format (see
 https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
 Public keys of this type are typically textually encoded using the PEM
 format.
 
Protobuf type google.cloud.binaryauthorization.v1.PkixPublicKey
  • 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<Resources.PkixPublicKey.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<Resources.PkixPublicKey.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<Resources.PkixPublicKey.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Resources.PkixPublicKey.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<Resources.PkixPublicKey.Builder>
      Throws:
      IOException
    • getPublicKeyPem

      public String getPublicKeyPem()
       A PEM-encoded public key, as described in
       https://tools.ietf.org/html/rfc7468#section-13
       
      string public_key_pem = 1;
      Specified by:
      getPublicKeyPem in interface Resources.PkixPublicKeyOrBuilder
      Returns:
      The publicKeyPem.
    • getPublicKeyPemBytes

      public com.google.protobuf.ByteString getPublicKeyPemBytes()
       A PEM-encoded public key, as described in
       https://tools.ietf.org/html/rfc7468#section-13
       
      string public_key_pem = 1;
      Specified by:
      getPublicKeyPemBytes in interface Resources.PkixPublicKeyOrBuilder
      Returns:
      The bytes for publicKeyPem.
    • setPublicKeyPem

      public Resources.PkixPublicKey.Builder setPublicKeyPem(String value)
       A PEM-encoded public key, as described in
       https://tools.ietf.org/html/rfc7468#section-13
       
      string public_key_pem = 1;
      Parameters:
      value - The publicKeyPem to set.
      Returns:
      This builder for chaining.
    • clearPublicKeyPem

      public Resources.PkixPublicKey.Builder clearPublicKeyPem()
       A PEM-encoded public key, as described in
       https://tools.ietf.org/html/rfc7468#section-13
       
      string public_key_pem = 1;
      Returns:
      This builder for chaining.
    • setPublicKeyPemBytes

      public Resources.PkixPublicKey.Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value)
       A PEM-encoded public key, as described in
       https://tools.ietf.org/html/rfc7468#section-13
       
      string public_key_pem = 1;
      Parameters:
      value - The bytes for publicKeyPem to set.
      Returns:
      This builder for chaining.
    • getSignatureAlgorithmValue

      public int getSignatureAlgorithmValue()
       The signature algorithm used to verify a message against a signature using
       this key.
       These signature algorithm must match the structure and any object
       identifiers encoded in `public_key_pem` (i.e. this algorithm must match
       that of the public key).
       
      .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
      Specified by:
      getSignatureAlgorithmValue in interface Resources.PkixPublicKeyOrBuilder
      Returns:
      The enum numeric value on the wire for signatureAlgorithm.
    • setSignatureAlgorithmValue

      public Resources.PkixPublicKey.Builder setSignatureAlgorithmValue(int value)
       The signature algorithm used to verify a message against a signature using
       this key.
       These signature algorithm must match the structure and any object
       identifiers encoded in `public_key_pem` (i.e. this algorithm must match
       that of the public key).
       
      .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
      Parameters:
      value - The enum numeric value on the wire for signatureAlgorithm to set.
      Returns:
      This builder for chaining.
    • getSignatureAlgorithm

      public Resources.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm()
       The signature algorithm used to verify a message against a signature using
       this key.
       These signature algorithm must match the structure and any object
       identifiers encoded in `public_key_pem` (i.e. this algorithm must match
       that of the public key).
       
      .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
      Specified by:
      getSignatureAlgorithm in interface Resources.PkixPublicKeyOrBuilder
      Returns:
      The signatureAlgorithm.
    • setSignatureAlgorithm

       The signature algorithm used to verify a message against a signature using
       this key.
       These signature algorithm must match the structure and any object
       identifiers encoded in `public_key_pem` (i.e. this algorithm must match
       that of the public key).
       
      .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
      Parameters:
      value - The signatureAlgorithm to set.
      Returns:
      This builder for chaining.
    • clearSignatureAlgorithm

      public Resources.PkixPublicKey.Builder clearSignatureAlgorithm()
       The signature algorithm used to verify a message against a signature using
       this key.
       These signature algorithm must match the structure and any object
       identifiers encoded in `public_key_pem` (i.e. this algorithm must match
       that of the public key).
       
      .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
      Returns:
      This builder for chaining.