Package com.google.cloud.kms.v1
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 TypeMethodDescriptionbuild()clear()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.clearPem()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.intThe [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.com.google.protobuf.ByteStringThe [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.getPem()The public key, encoded in PEM format.com.google.protobuf.ByteStringThe public key, encoded in PEM format.com.google.protobuf.Int64ValueIntegrity verification field.com.google.protobuf.Int64Value.BuilderIntegrity verification field.com.google.protobuf.Int64ValueOrBuilderIntegrity verification field.The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.intThe [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.intThe [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.booleanIntegrity verification field.booleanThis 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.FieldAccessorTablefinal booleanmergeFrom(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.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.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.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.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.setProtectionLevelValue(int value) The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.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.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.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.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.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PublicKey.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PublicKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PublicKey.Builder>- Throws:
IOException
-
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:
getPemin interfacePublicKeyOrBuilder- 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:
getPemBytesin interfacePublicKeyOrBuilder- Returns:
- The bytes for pem.
-
setPem
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
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
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:
getAlgorithmValuein interfacePublicKeyOrBuilder- Returns:
- The enum numeric value on the wire for algorithm.
-
setAlgorithmValue
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:
getAlgorithmin interfacePublicKeyOrBuilder- 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
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:
hasPemCrc32Cin interfacePublicKeyOrBuilder- 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:
getPemCrc32Cin interfacePublicKeyOrBuilder- Returns:
- The pemCrc32c.
-
setPemCrc32C
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
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
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
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:
getPemCrc32COrBuilderin interfacePublicKeyOrBuilder
-
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:
getNamein interfacePublicKeyOrBuilder- 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:
getNameBytesin interfacePublicKeyOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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:
getProtectionLevelValuein interfacePublicKeyOrBuilder- Returns:
- The enum numeric value on the wire for protectionLevel.
-
setProtectionLevelValue
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
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:
getProtectionLevelin interfacePublicKeyOrBuilder- Returns:
- The protectionLevel.
-
setProtectionLevel
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
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:
getPublicKeyFormatValuein interfacePublicKeyOrBuilder- Returns:
- The enum numeric value on the wire for publicKeyFormat.
-
setPublicKeyFormatValue
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
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:
getPublicKeyFormatin interfacePublicKeyOrBuilder- Returns:
- The publicKeyFormat.
-
setPublicKeyFormat
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
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:
hasPublicKeyin interfacePublicKeyOrBuilder- Returns:
- Whether the publicKey field is set.
-
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:
getPublicKeyin interfacePublicKeyOrBuilder- Returns:
- The publicKey.
-
setPublicKey
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
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
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
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
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
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:
getPublicKeyOrBuilderin interfacePublicKeyOrBuilder
-