public static final class PublicKey.Builder extends GeneratedMessageV3.Builder<PublicKey.Builder> implements PublicKeyOrBuilder
The public key 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
Modifier and Type | Method and Description |
---|---|
PublicKey.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
PublicKey |
build() |
PublicKey |
buildPartial() |
PublicKey.Builder |
clear() |
PublicKey.Builder |
clearAlgorithm()
The
[Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
associated with this key.
|
PublicKey.Builder |
clearField(Descriptors.FieldDescriptor field) |
PublicKey.Builder |
clearName()
The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
PublicKey.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
PublicKey.Builder |
clearPem()
The public key, encoded in PEM format.
|
PublicKey.Builder |
clearPemCrc32C()
Integrity verification field.
|
PublicKey.Builder |
clearProtectionLevel()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
PublicKey.Builder |
clone() |
CryptoKeyVersion.CryptoKeyVersionAlgorithm |
getAlgorithm()
The
[Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
associated with this key.
|
int |
getAlgorithmValue()
The
[Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
associated with this key.
|
PublicKey |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
ByteString |
getNameBytes()
The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
String |
getPem()
The public key, encoded in PEM format.
|
ByteString |
getPemBytes()
The public key, encoded in PEM format.
|
Int64Value |
getPemCrc32C()
Integrity verification field.
|
Int64Value.Builder |
getPemCrc32CBuilder()
Integrity verification field.
|
Int64ValueOrBuilder |
getPemCrc32COrBuilder()
Integrity verification field.
|
ProtectionLevel |
getProtectionLevel()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
int |
getProtectionLevelValue()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
boolean |
hasPemCrc32C()
Integrity verification field.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PublicKey.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
PublicKey.Builder |
mergeFrom(Message other) |
PublicKey.Builder |
mergeFrom(PublicKey other) |
PublicKey.Builder |
mergePemCrc32C(Int64Value value)
Integrity verification field.
|
PublicKey.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
PublicKey.Builder |
setAlgorithm(CryptoKeyVersion.CryptoKeyVersionAlgorithm value)
The
[Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
associated with this key.
|
PublicKey.Builder |
setAlgorithmValue(int value)
The
[Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
associated with this key.
|
PublicKey.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
PublicKey.Builder |
setName(String value)
The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
PublicKey.Builder |
setNameBytes(ByteString value)
The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
PublicKey.Builder |
setPem(String value)
The public key, encoded in PEM format.
|
PublicKey.Builder |
setPemBytes(ByteString value)
The public key, encoded in PEM format.
|
PublicKey.Builder |
setPemCrc32C(Int64Value.Builder builderForValue)
Integrity verification field.
|
PublicKey.Builder |
setPemCrc32C(Int64Value value)
Integrity verification field.
|
PublicKey.Builder |
setProtectionLevel(ProtectionLevel value)
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
PublicKey.Builder |
setProtectionLevelValue(int value)
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
|
PublicKey.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
PublicKey.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public PublicKey.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public PublicKey getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public PublicKey build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public PublicKey buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public PublicKey.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public PublicKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public PublicKey.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public PublicKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public PublicKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public PublicKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public PublicKey.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<PublicKey.Builder>
public PublicKey.Builder mergeFrom(PublicKey other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public PublicKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<PublicKey.Builder>
IOException
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;
getPem
in interface PublicKeyOrBuilder
public 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;
getPemBytes
in interface PublicKeyOrBuilder
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;
value
- The pem to set.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;
public PublicKey.Builder setPemBytes(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;
value
- The bytes for pem to set.public int getAlgorithmValue()
The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;
getAlgorithmValue
in interface PublicKeyOrBuilder
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;
value
- The enum numeric value on the wire for algorithm to set.public CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm()
The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;
getAlgorithm
in interface PublicKeyOrBuilder
public PublicKey.Builder setAlgorithm(CryptoKeyVersion.CryptoKeyVersionAlgorithm value)
The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;
value
- The algorithm to set.public PublicKey.Builder clearAlgorithm()
The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;
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;
hasPemCrc32C
in interface PublicKeyOrBuilder
public 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;
getPemCrc32C
in interface PublicKeyOrBuilder
public PublicKey.Builder setPemCrc32C(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;
public PublicKey.Builder setPemCrc32C(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;
public PublicKey.Builder mergePemCrc32C(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;
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;
public 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;
public 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;
getPemCrc32COrBuilder
in interface PublicKeyOrBuilder
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;
getName
in interface PublicKeyOrBuilder
public 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;
getNameBytes
in interface PublicKeyOrBuilder
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;
value
- The name to set.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;
public PublicKey.Builder setNameBytes(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;
value
- The bytes for name to set.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;
getProtectionLevelValue
in interface PublicKeyOrBuilder
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;
value
- The enum numeric value on the wire for protectionLevel to set.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;
getProtectionLevel
in interface PublicKeyOrBuilder
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;
value
- The protectionLevel to set.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;
public final PublicKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<PublicKey.Builder>
public final PublicKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<PublicKey.Builder>
Copyright © 2022 Google LLC. All rights reserved.