Class PkixPublicKey.Builder

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

public static final class PkixPublicKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<PkixPublicKey.Builder> implements 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.v1beta1.PkixPublicKey
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
    The signature algorithm used to verify a message against a signature using this key.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
    com.google.protobuf.ByteString
    A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
    The signature algorithm used to verify a message against a signature using this key.
    int
    The signature algorithm used to verify a message against a signature using this key.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
    setPublicKeyPemBytes(com.google.protobuf.ByteString value)
    A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
    The signature algorithm used to verify a message against a signature using this key.
    The signature algorithm used to verify a message against a signature using this key.

    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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<PkixPublicKey.Builder>
    • clear

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

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

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

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

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

      public PkixPublicKey.Builder mergeFrom(PkixPublicKey other)
    • isInitialized

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

      public 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<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 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 PkixPublicKeyOrBuilder
      Returns:
      The bytes for publicKeyPem.
    • setPublicKeyPem

      public 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 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 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.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
      Specified by:
      getSignatureAlgorithmValue in interface PkixPublicKeyOrBuilder
      Returns:
      The enum numeric value on the wire for signatureAlgorithm.
    • setSignatureAlgorithmValue

      public 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.v1beta1.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 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.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
      Specified by:
      getSignatureAlgorithm in interface PkixPublicKeyOrBuilder
      Returns:
      The signatureAlgorithm.
    • setSignatureAlgorithm

      public PkixPublicKey.Builder setSignatureAlgorithm(PkixPublicKey.SignatureAlgorithm 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.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
      Parameters:
      value - The signatureAlgorithm to set.
      Returns:
      This builder for chaining.
    • clearSignatureAlgorithm

      public 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.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
      Returns:
      This builder for chaining.