Class PublicKey.Builder

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

public static final class PublicKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder> implements PublicKeyOrBuilder
 The public keys for a given
 [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via
 [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
 
Protobuf type google.cloud.kms.v1.PublicKey
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
    The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    The public key, encoded in PEM format.
    Integrity verification field.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    This field contains the public key (with integrity verification), formatted according to the [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
    The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the customer through the [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format] field.
    The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
    int
    The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    com.google.protobuf.ByteString
    The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    The public key, encoded in PEM format.
    com.google.protobuf.ByteString
    The public key, encoded in PEM format.
    com.google.protobuf.Int64Value
    Integrity verification field.
    com.google.protobuf.Int64Value.Builder
    Integrity verification field.
    com.google.protobuf.Int64ValueOrBuilder
    Integrity verification field.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    int
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    This field contains the public key (with integrity verification), formatted according to the [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
    This field contains the public key (with integrity verification), formatted according to the [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
    The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the customer through the [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format] field.
    int
    The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the customer through the [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format] field.
    This field contains the public key (with integrity verification), formatted according to the [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
    boolean
    Integrity verification field.
    boolean
    This field contains the public key (with integrity verification), formatted according to the [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
    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)
     
    mergePemCrc32C(com.google.protobuf.Int64Value value)
    Integrity verification field.
    This field contains the public key (with integrity verification), formatted according to the [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
    The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
    setAlgorithmValue(int value)
    The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
    setName(String value)
    The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    setNameBytes(com.google.protobuf.ByteString value)
    The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    setPem(String value)
    The public key, encoded in PEM format.
    setPemBytes(com.google.protobuf.ByteString value)
    The public key, encoded in PEM format.
    setPemCrc32C(com.google.protobuf.Int64Value value)
    Integrity verification field.
    setPemCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)
    Integrity verification field.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    This field contains the public key (with integrity verification), formatted according to the [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
    This field contains the public key (with integrity verification), formatted according to the [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
    The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the customer through the [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format] field.
    The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the customer through the [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format] field.

    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<PublicKey.Builder>
    • clear

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

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

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

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

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

      public PublicKey.Builder mergeFrom(PublicKey other)
    • isInitialized

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

      public PublicKey.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<PublicKey.Builder>
      Throws:
      IOException
    • getPem

      public String getPem()
       The public key, encoded in PEM format. For more information, see the
       [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
       [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       
      string pem = 1;
      Specified by:
      getPem in interface PublicKeyOrBuilder
      Returns:
      The pem.
    • getPemBytes

      public com.google.protobuf.ByteString getPemBytes()
       The public key, encoded in PEM format. For more information, see the
       [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
       [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       
      string pem = 1;
      Specified by:
      getPemBytes in interface PublicKeyOrBuilder
      Returns:
      The bytes for pem.
    • setPem

      public PublicKey.Builder setPem(String value)
       The public key, encoded in PEM format. For more information, see the
       [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
       [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       
      string pem = 1;
      Parameters:
      value - The pem to set.
      Returns:
      This builder for chaining.
    • clearPem

      public PublicKey.Builder clearPem()
       The public key, encoded in PEM format. For more information, see the
       [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
       [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       
      string pem = 1;
      Returns:
      This builder for chaining.
    • setPemBytes

      public PublicKey.Builder setPemBytes(com.google.protobuf.ByteString value)
       The public key, encoded in PEM format. For more information, see the
       [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
       [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       
      string pem = 1;
      Parameters:
      value - The bytes for pem to set.
      Returns:
      This builder for chaining.
    • getAlgorithmValue

      public int getAlgorithmValue()
       The
       [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
       associated with this key.
       
      .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;
      Specified by:
      getAlgorithmValue in interface PublicKeyOrBuilder
      Returns:
      The enum numeric value on the wire for algorithm.
    • setAlgorithmValue

      public PublicKey.Builder setAlgorithmValue(int value)
       The
       [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
       associated with this key.
       
      .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;
      Parameters:
      value - The enum numeric value on the wire for algorithm to set.
      Returns:
      This builder for chaining.
    • getAlgorithm

       The
       [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
       associated with this key.
       
      .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;
      Specified by:
      getAlgorithm in interface PublicKeyOrBuilder
      Returns:
      The algorithm.
    • setAlgorithm

       The
       [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
       associated with this key.
       
      .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;
      Parameters:
      value - The algorithm to set.
      Returns:
      This builder for chaining.
    • clearAlgorithm

      public PublicKey.Builder clearAlgorithm()
       The
       [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
       associated with this key.
       
      .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;
      Returns:
      This builder for chaining.
    • hasPemCrc32C

      public boolean hasPemCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by
       computing the CRC32C checksum of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your
       results to this field. Discard the response in case of non-matching
       checksum values, and perform a limited number of retries. A persistent
       mismatch may indicate an issue in your computation of the CRC32C checksum.
       Note: This field is defined as int64 for reasons of compatibility across
       different languages. However, it is a non-negative integer, which will
       never exceed `2^32-1`, and can be safely downconverted to uint32 in
       languages that support this type.
      
       NOTE: This field is in Beta.
       
      .google.protobuf.Int64Value pem_crc32c = 3;
      Specified by:
      hasPemCrc32C in interface PublicKeyOrBuilder
      Returns:
      Whether the pemCrc32c field is set.
    • getPemCrc32C

      public com.google.protobuf.Int64Value getPemCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by
       computing the CRC32C checksum of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your
       results to this field. Discard the response in case of non-matching
       checksum values, and perform a limited number of retries. A persistent
       mismatch may indicate an issue in your computation of the CRC32C checksum.
       Note: This field is defined as int64 for reasons of compatibility across
       different languages. However, it is a non-negative integer, which will
       never exceed `2^32-1`, and can be safely downconverted to uint32 in
       languages that support this type.
      
       NOTE: This field is in Beta.
       
      .google.protobuf.Int64Value pem_crc32c = 3;
      Specified by:
      getPemCrc32C in interface PublicKeyOrBuilder
      Returns:
      The pemCrc32c.
    • setPemCrc32C

      public PublicKey.Builder setPemCrc32C(com.google.protobuf.Int64Value value)
       Integrity verification field. A CRC32C checksum of the returned
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by
       computing the CRC32C checksum of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your
       results to this field. Discard the response in case of non-matching
       checksum values, and perform a limited number of retries. A persistent
       mismatch may indicate an issue in your computation of the CRC32C checksum.
       Note: This field is defined as int64 for reasons of compatibility across
       different languages. However, it is a non-negative integer, which will
       never exceed `2^32-1`, and can be safely downconverted to uint32 in
       languages that support this type.
      
       NOTE: This field is in Beta.
       
      .google.protobuf.Int64Value pem_crc32c = 3;
    • setPemCrc32C

      public PublicKey.Builder setPemCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)
       Integrity verification field. A CRC32C checksum of the returned
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by
       computing the CRC32C checksum of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your
       results to this field. Discard the response in case of non-matching
       checksum values, and perform a limited number of retries. A persistent
       mismatch may indicate an issue in your computation of the CRC32C checksum.
       Note: This field is defined as int64 for reasons of compatibility across
       different languages. However, it is a non-negative integer, which will
       never exceed `2^32-1`, and can be safely downconverted to uint32 in
       languages that support this type.
      
       NOTE: This field is in Beta.
       
      .google.protobuf.Int64Value pem_crc32c = 3;
    • mergePemCrc32C

      public PublicKey.Builder mergePemCrc32C(com.google.protobuf.Int64Value value)
       Integrity verification field. A CRC32C checksum of the returned
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by
       computing the CRC32C checksum of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your
       results to this field. Discard the response in case of non-matching
       checksum values, and perform a limited number of retries. A persistent
       mismatch may indicate an issue in your computation of the CRC32C checksum.
       Note: This field is defined as int64 for reasons of compatibility across
       different languages. However, it is a non-negative integer, which will
       never exceed `2^32-1`, and can be safely downconverted to uint32 in
       languages that support this type.
      
       NOTE: This field is in Beta.
       
      .google.protobuf.Int64Value pem_crc32c = 3;
    • clearPemCrc32C

      public PublicKey.Builder clearPemCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by
       computing the CRC32C checksum of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your
       results to this field. Discard the response in case of non-matching
       checksum values, and perform a limited number of retries. A persistent
       mismatch may indicate an issue in your computation of the CRC32C checksum.
       Note: This field is defined as int64 for reasons of compatibility across
       different languages. However, it is a non-negative integer, which will
       never exceed `2^32-1`, and can be safely downconverted to uint32 in
       languages that support this type.
      
       NOTE: This field is in Beta.
       
      .google.protobuf.Int64Value pem_crc32c = 3;
    • getPemCrc32CBuilder

      public com.google.protobuf.Int64Value.Builder getPemCrc32CBuilder()
       Integrity verification field. A CRC32C checksum of the returned
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by
       computing the CRC32C checksum of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your
       results to this field. Discard the response in case of non-matching
       checksum values, and perform a limited number of retries. A persistent
       mismatch may indicate an issue in your computation of the CRC32C checksum.
       Note: This field is defined as int64 for reasons of compatibility across
       different languages. However, it is a non-negative integer, which will
       never exceed `2^32-1`, and can be safely downconverted to uint32 in
       languages that support this type.
      
       NOTE: This field is in Beta.
       
      .google.protobuf.Int64Value pem_crc32c = 3;
    • getPemCrc32COrBuilder

      public com.google.protobuf.Int64ValueOrBuilder getPemCrc32COrBuilder()
       Integrity verification field. A CRC32C checksum of the returned
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by
       computing the CRC32C checksum of
       [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your
       results to this field. Discard the response in case of non-matching
       checksum values, and perform a limited number of retries. A persistent
       mismatch may indicate an issue in your computation of the CRC32C checksum.
       Note: This field is defined as int64 for reasons of compatibility across
       different languages. However, it is a non-negative integer, which will
       never exceed `2^32-1`, and can be safely downconverted to uint32 in
       languages that support this type.
      
       NOTE: This field is in Beta.
       
      .google.protobuf.Int64Value pem_crc32c = 3;
      Specified by:
      getPemCrc32COrBuilder in interface PublicKeyOrBuilder
    • getName

      public String getName()
       The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       Provided here for verification.
      
       NOTE: This field is in Beta.
       
      string name = 4;
      Specified by:
      getName in interface PublicKeyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       Provided here for verification.
      
       NOTE: This field is in Beta.
       
      string name = 4;
      Specified by:
      getNameBytes in interface PublicKeyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PublicKey.Builder setName(String value)
       The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       Provided here for verification.
      
       NOTE: This field is in Beta.
       
      string name = 4;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PublicKey.Builder clearName()
       The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       Provided here for verification.
      
       NOTE: This field is in Beta.
       
      string name = 4;
      Returns:
      This builder for chaining.
    • setNameBytes

      public PublicKey.Builder setNameBytes(com.google.protobuf.ByteString value)
       The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       Provided here for verification.
      
       NOTE: This field is in Beta.
       
      string name = 4;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getProtectionLevelValue

      public int getProtectionLevelValue()
       The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 5;
      Specified by:
      getProtectionLevelValue in interface PublicKeyOrBuilder
      Returns:
      The enum numeric value on the wire for protectionLevel.
    • setProtectionLevelValue

      public PublicKey.Builder setProtectionLevelValue(int value)
       The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 5;
      Parameters:
      value - The enum numeric value on the wire for protectionLevel to set.
      Returns:
      This builder for chaining.
    • getProtectionLevel

      public ProtectionLevel getProtectionLevel()
       The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 5;
      Specified by:
      getProtectionLevel in interface PublicKeyOrBuilder
      Returns:
      The protectionLevel.
    • setProtectionLevel

      public PublicKey.Builder setProtectionLevel(ProtectionLevel value)
       The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 5;
      Parameters:
      value - The protectionLevel to set.
      Returns:
      This builder for chaining.
    • clearProtectionLevel

      public PublicKey.Builder clearProtectionLevel()
       The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 5;
      Returns:
      This builder for chaining.
    • getPublicKeyFormatValue

      public int getPublicKeyFormatValue()
       The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the
       customer through the
       [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format]
       field.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 7;
      Specified by:
      getPublicKeyFormatValue in interface PublicKeyOrBuilder
      Returns:
      The enum numeric value on the wire for publicKeyFormat.
    • setPublicKeyFormatValue

      public PublicKey.Builder setPublicKeyFormatValue(int value)
       The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the
       customer through the
       [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format]
       field.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 7;
      Parameters:
      value - The enum numeric value on the wire for publicKeyFormat to set.
      Returns:
      This builder for chaining.
    • getPublicKeyFormat

      public PublicKey.PublicKeyFormat getPublicKeyFormat()
       The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the
       customer through the
       [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format]
       field.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 7;
      Specified by:
      getPublicKeyFormat in interface PublicKeyOrBuilder
      Returns:
      The publicKeyFormat.
    • setPublicKeyFormat

      public PublicKey.Builder setPublicKeyFormat(PublicKey.PublicKeyFormat value)
       The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the
       customer through the
       [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format]
       field.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 7;
      Parameters:
      value - The publicKeyFormat to set.
      Returns:
      This builder for chaining.
    • clearPublicKeyFormat

      public PublicKey.Builder clearPublicKeyFormat()
       The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the
       customer through the
       [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format]
       field.
       
      .google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 7;
      Returns:
      This builder for chaining.
    • hasPublicKey

      public boolean hasPublicKey()
       This field contains the public key (with integrity verification), formatted
       according to the
       [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
       
      .google.cloud.kms.v1.ChecksummedData public_key = 8;
      Specified by:
      hasPublicKey in interface PublicKeyOrBuilder
      Returns:
      Whether the publicKey field is set.
    • getPublicKey

      public ChecksummedData getPublicKey()
       This field contains the public key (with integrity verification), formatted
       according to the
       [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
       
      .google.cloud.kms.v1.ChecksummedData public_key = 8;
      Specified by:
      getPublicKey in interface PublicKeyOrBuilder
      Returns:
      The publicKey.
    • setPublicKey

      public PublicKey.Builder setPublicKey(ChecksummedData value)
       This field contains the public key (with integrity verification), formatted
       according to the
       [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
       
      .google.cloud.kms.v1.ChecksummedData public_key = 8;
    • setPublicKey

      public PublicKey.Builder setPublicKey(ChecksummedData.Builder builderForValue)
       This field contains the public key (with integrity verification), formatted
       according to the
       [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
       
      .google.cloud.kms.v1.ChecksummedData public_key = 8;
    • mergePublicKey

      public PublicKey.Builder mergePublicKey(ChecksummedData value)
       This field contains the public key (with integrity verification), formatted
       according to the
       [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
       
      .google.cloud.kms.v1.ChecksummedData public_key = 8;
    • clearPublicKey

      public PublicKey.Builder clearPublicKey()
       This field contains the public key (with integrity verification), formatted
       according to the
       [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
       
      .google.cloud.kms.v1.ChecksummedData public_key = 8;
    • getPublicKeyBuilder

      public ChecksummedData.Builder getPublicKeyBuilder()
       This field contains the public key (with integrity verification), formatted
       according to the
       [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
       
      .google.cloud.kms.v1.ChecksummedData public_key = 8;
    • getPublicKeyOrBuilder

      public ChecksummedDataOrBuilder getPublicKeyOrBuilder()
       This field contains the public key (with integrity verification), formatted
       according to the
       [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
       
      .google.cloud.kms.v1.ChecksummedData public_key = 8;
      Specified by:
      getPublicKeyOrBuilder in interface PublicKeyOrBuilder