Class SingleTenantHsmInstance.QuorumAuth.Builder (2.86.0)

public static final class SingleTenantHsmInstance.QuorumAuth.Builder extends GeneratedMessage.Builder<SingleTenantHsmInstance.QuorumAuth.Builder> implements SingleTenantHsmInstance.QuorumAuthOrBuilder

Configuration for M of N quorum auth.

Protobuf type google.cloud.kms.v1.SingleTenantHsmInstance.QuorumAuth

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTwoFactorPublicKeyPems(Iterable<String> values)

public SingleTenantHsmInstance.QuorumAuth.Builder addAllTwoFactorPublicKeyPems(Iterable<String> values)

Output only. The public keys associated with the 2FA keys for M of N quorum auth.

repeated string two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The twoFactorPublicKeyPems to add.

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

This builder for chaining.

addTwoFactorPublicKeyPems(String value)

public SingleTenantHsmInstance.QuorumAuth.Builder addTwoFactorPublicKeyPems(String value)

Output only. The public keys associated with the 2FA keys for M of N quorum auth.

repeated string two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The twoFactorPublicKeyPems to add.

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

This builder for chaining.

addTwoFactorPublicKeyPemsBytes(ByteString value)

public SingleTenantHsmInstance.QuorumAuth.Builder addTwoFactorPublicKeyPemsBytes(ByteString value)

Output only. The public keys associated with the 2FA keys for M of N quorum auth.

repeated string two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the twoFactorPublicKeyPems to add.

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

This builder for chaining.

build()

public SingleTenantHsmInstance.QuorumAuth build()
Returns
Type Description
SingleTenantHsmInstance.QuorumAuth

buildPartial()

public SingleTenantHsmInstance.QuorumAuth buildPartial()
Returns
Type Description
SingleTenantHsmInstance.QuorumAuth

clear()

public SingleTenantHsmInstance.QuorumAuth.Builder clear()
Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder
Overrides

clearRequiredApproverCount()

public SingleTenantHsmInstance.QuorumAuth.Builder clearRequiredApproverCount()

Output only. The required numbers of approvers. The M value used for M of N quorum auth. Must be greater than or equal to 2 and less than or equal to total_approver_count

  • 1.

int32 required_approver_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

This builder for chaining.

clearTotalApproverCount()

public SingleTenantHsmInstance.QuorumAuth.Builder clearTotalApproverCount()

Required. The total number of approvers. This is the N value used for M of N quorum auth. Must be greater than or equal to 3 and less than or equal to 16.

int32 total_approver_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

This builder for chaining.

clearTwoFactorPublicKeyPems()

public SingleTenantHsmInstance.QuorumAuth.Builder clearTwoFactorPublicKeyPems()

Output only. The public keys associated with the 2FA keys for M of N quorum auth.

repeated string two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

This builder for chaining.

getDefaultInstanceForType()

public SingleTenantHsmInstance.QuorumAuth getDefaultInstanceForType()
Returns
Type Description
SingleTenantHsmInstance.QuorumAuth

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRequiredApproverCount()

public int getRequiredApproverCount()

Output only. The required numbers of approvers. The M value used for M of N quorum auth. Must be greater than or equal to 2 and less than or equal to total_approver_count

  • 1.

int32 required_approver_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The requiredApproverCount.

getTotalApproverCount()

public int getTotalApproverCount()

Required. The total number of approvers. This is the N value used for M of N quorum auth. Must be greater than or equal to 3 and less than or equal to 16.

int32 total_approver_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The totalApproverCount.

getTwoFactorPublicKeyPems(int index)

public String getTwoFactorPublicKeyPems(int index)

Output only. The public keys associated with the 2FA keys for M of N quorum auth.

repeated string two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The twoFactorPublicKeyPems at the given index.

getTwoFactorPublicKeyPemsBytes(int index)

public ByteString getTwoFactorPublicKeyPemsBytes(int index)

Output only. The public keys associated with the 2FA keys for M of N quorum auth.

repeated string two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the twoFactorPublicKeyPems at the given index.

getTwoFactorPublicKeyPemsCount()

public int getTwoFactorPublicKeyPemsCount()

Output only. The public keys associated with the 2FA keys for M of N quorum auth.

repeated string two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of twoFactorPublicKeyPems.

getTwoFactorPublicKeyPemsList()

public ProtocolStringList getTwoFactorPublicKeyPemsList()

Output only. The public keys associated with the 2FA keys for M of N quorum auth.

repeated string two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the twoFactorPublicKeyPems.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SingleTenantHsmInstance.QuorumAuth other)

public SingleTenantHsmInstance.QuorumAuth.Builder mergeFrom(SingleTenantHsmInstance.QuorumAuth other)
Parameter
Name Description
other SingleTenantHsmInstance.QuorumAuth
Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SingleTenantHsmInstance.QuorumAuth.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SingleTenantHsmInstance.QuorumAuth.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder
Overrides

setRequiredApproverCount(int value)

public SingleTenantHsmInstance.QuorumAuth.Builder setRequiredApproverCount(int value)

Output only. The required numbers of approvers. The M value used for M of N quorum auth. Must be greater than or equal to 2 and less than or equal to total_approver_count

  • 1.

int32 required_approver_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The requiredApproverCount to set.

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

This builder for chaining.

setTotalApproverCount(int value)

public SingleTenantHsmInstance.QuorumAuth.Builder setTotalApproverCount(int value)

Required. The total number of approvers. This is the N value used for M of N quorum auth. Must be greater than or equal to 3 and less than or equal to 16.

int32 total_approver_count = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The totalApproverCount to set.

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

This builder for chaining.

setTwoFactorPublicKeyPems(int index, String value)

public SingleTenantHsmInstance.QuorumAuth.Builder setTwoFactorPublicKeyPems(int index, String value)

Output only. The public keys associated with the 2FA keys for M of N quorum auth.

repeated string two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The twoFactorPublicKeyPems to set.

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth.Builder

This builder for chaining.