Class AzureConfigEncryption.Builder (0.21.0)

public static final class AzureConfigEncryption.Builder extends GeneratedMessageV3.Builder<AzureConfigEncryption.Builder> implements AzureConfigEncryptionOrBuilder

Configuration related to config data encryption.

Azure VM bootstrap secret is envelope encrypted with the provided key vault key.

Protobuf type google.cloud.gkemulticloud.v1.AzureConfigEncryption

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AzureConfigEncryption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides

build()

public AzureConfigEncryption build()
Returns
TypeDescription
AzureConfigEncryption

buildPartial()

public AzureConfigEncryption buildPartial()
Returns
TypeDescription
AzureConfigEncryption

clear()

public AzureConfigEncryption.Builder clear()
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AzureConfigEncryption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides

clearKeyId()

public AzureConfigEncryption.Builder clearKeyId()

Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.

For example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>

string key_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AzureConfigEncryption.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AzureConfigEncryption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides

clearPublicKey()

public AzureConfigEncryption.Builder clearPublicKey()

Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.

This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) in ASN.1 DER form. The string must be comprised of a single PEM block of type "PUBLIC KEY".

string public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AzureConfigEncryption.Builder

This builder for chaining.

clone()

public AzureConfigEncryption.Builder clone()
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides

getDefaultInstanceForType()

public AzureConfigEncryption getDefaultInstanceForType()
Returns
TypeDescription
AzureConfigEncryption

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKeyId()

public String getKeyId()

Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.

For example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>

string key_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The keyId.

getKeyIdBytes()

public ByteString getKeyIdBytes()

Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.

For example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>

string key_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for keyId.

getPublicKey()

public String getPublicKey()

Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.

This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) in ASN.1 DER form. The string must be comprised of a single PEM block of type "PUBLIC KEY".

string public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The publicKey.

getPublicKeyBytes()

public ByteString getPublicKeyBytes()

Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.

This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) in ASN.1 DER form. The string must be comprised of a single PEM block of type "PUBLIC KEY".

string public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for publicKey.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AzureConfigEncryption other)

public AzureConfigEncryption.Builder mergeFrom(AzureConfigEncryption other)
Parameter
NameDescription
otherAzureConfigEncryption
Returns
TypeDescription
AzureConfigEncryption.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AzureConfigEncryption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AzureConfigEncryption.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AzureConfigEncryption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AzureConfigEncryption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides

setKeyId(String value)

public AzureConfigEncryption.Builder setKeyId(String value)

Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.

For example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>

string key_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The keyId to set.

Returns
TypeDescription
AzureConfigEncryption.Builder

This builder for chaining.

setKeyIdBytes(ByteString value)

public AzureConfigEncryption.Builder setKeyIdBytes(ByteString value)

Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.

For example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>

string key_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for keyId to set.

Returns
TypeDescription
AzureConfigEncryption.Builder

This builder for chaining.

setPublicKey(String value)

public AzureConfigEncryption.Builder setPublicKey(String value)

Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.

This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) in ASN.1 DER form. The string must be comprised of a single PEM block of type "PUBLIC KEY".

string public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The publicKey to set.

Returns
TypeDescription
AzureConfigEncryption.Builder

This builder for chaining.

setPublicKeyBytes(ByteString value)

public AzureConfigEncryption.Builder setPublicKeyBytes(ByteString value)

Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.

This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) in ASN.1 DER form. The string must be comprised of a single PEM block of type "PUBLIC KEY".

string public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for publicKey to set.

Returns
TypeDescription
AzureConfigEncryption.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AzureConfigEncryption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AzureConfigEncryption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AzureConfigEncryption.Builder
Overrides