Class SingleTenantHsmInstanceProposal.QuorumParameters.Builder (2.86.0)

public static final class SingleTenantHsmInstanceProposal.QuorumParameters.Builder extends GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder> implements SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder

Parameters of quorum approval for the SingleTenantHsmInstanceProposal.

Protobuf type google.cloud.kms.v1.SingleTenantHsmInstanceProposal.QuorumParameters

Static Methods

getDescriptor()

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

Methods

addAllApprovedTwoFactorPublicKeyPems(Iterable<String> values)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addAllApprovedTwoFactorPublicKeyPems(Iterable<String> values)

Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge.

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

Parameter
Name Description
values Iterable<String>

The approvedTwoFactorPublicKeyPems to add.

Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

This builder for chaining.

addAllChallenges(Iterable<? extends Challenge> values)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addAllChallenges(Iterable<? extends Challenge> values)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.kms.v1.Challenge>
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

addApprovedTwoFactorPublicKeyPems(String value)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addApprovedTwoFactorPublicKeyPems(String value)

Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge.

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

Parameter
Name Description
value String

The approvedTwoFactorPublicKeyPems to add.

Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

This builder for chaining.

addApprovedTwoFactorPublicKeyPemsBytes(ByteString value)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addApprovedTwoFactorPublicKeyPemsBytes(ByteString value)

Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge.

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

Parameter
Name Description
value ByteString

The bytes of the approvedTwoFactorPublicKeyPems to add.

Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

This builder for chaining.

addChallenges(Challenge value)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addChallenges(Challenge value)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Challenge
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

addChallenges(Challenge.Builder builderForValue)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addChallenges(Challenge.Builder builderForValue)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Challenge.Builder
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

addChallenges(int index, Challenge value)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addChallenges(int index, Challenge value)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Challenge
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

addChallenges(int index, Challenge.Builder builderForValue)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addChallenges(int index, Challenge.Builder builderForValue)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Challenge.Builder
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

addChallengesBuilder()

public Challenge.Builder addChallengesBuilder()

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Challenge.Builder

addChallengesBuilder(int index)

public Challenge.Builder addChallengesBuilder(int index)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Challenge.Builder

build()

public SingleTenantHsmInstanceProposal.QuorumParameters build()
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters

buildPartial()

public SingleTenantHsmInstanceProposal.QuorumParameters buildPartial()
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters

clear()

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder clear()
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder
Overrides

clearApprovedTwoFactorPublicKeyPems()

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder clearApprovedTwoFactorPublicKeyPems()

Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge.

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

Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

This builder for chaining.

clearChallenges()

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder clearChallenges()

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

clearRequiredApproverCount()

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder clearRequiredApproverCount()

Output only. The required numbers of approvers. This is the M value used for M of N quorum auth. It is less than the number of public keys.

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

Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

This builder for chaining.

getApprovedTwoFactorPublicKeyPems(int index)

public String getApprovedTwoFactorPublicKeyPems(int index)

Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge.

repeated string approved_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 approvedTwoFactorPublicKeyPems at the given index.

getApprovedTwoFactorPublicKeyPemsBytes(int index)

public ByteString getApprovedTwoFactorPublicKeyPemsBytes(int index)

Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge.

repeated string approved_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 approvedTwoFactorPublicKeyPems at the given index.

getApprovedTwoFactorPublicKeyPemsCount()

public int getApprovedTwoFactorPublicKeyPemsCount()

Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge.

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

Returns
Type Description
int

The count of approvedTwoFactorPublicKeyPems.

getApprovedTwoFactorPublicKeyPemsList()

public ProtocolStringList getApprovedTwoFactorPublicKeyPemsList()

Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge.

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

Returns
Type Description
ProtocolStringList

A list containing the approvedTwoFactorPublicKeyPems.

getChallenges(int index)

public Challenge getChallenges(int index)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Challenge

getChallengesBuilder(int index)

public Challenge.Builder getChallengesBuilder(int index)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Challenge.Builder

getChallengesBuilderList()

public List<Challenge.Builder> getChallengesBuilderList()

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getChallengesCount()

public int getChallengesCount()

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getChallengesList()

public List<Challenge> getChallengesList()

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Challenge>

getChallengesOrBuilder(int index)

public ChallengeOrBuilder getChallengesOrBuilder(int index)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ChallengeOrBuilder

getChallengesOrBuilderList()

public List<? extends ChallengeOrBuilder> getChallengesOrBuilderList()

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.kms.v1.ChallengeOrBuilder>

getDefaultInstanceForType()

public SingleTenantHsmInstanceProposal.QuorumParameters getDefaultInstanceForType()
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters

getDescriptorForType()

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

getRequiredApproverCount()

public int getRequiredApproverCount()

Output only. The required numbers of approvers. This is the M value used for M of N quorum auth. It is less than the number of public keys.

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

Returns
Type Description
int

The requiredApproverCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SingleTenantHsmInstanceProposal.QuorumParameters other)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder mergeFrom(SingleTenantHsmInstanceProposal.QuorumParameters other)
Parameter
Name Description
other SingleTenantHsmInstanceProposal.QuorumParameters
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder
Overrides

removeChallenges(int index)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder removeChallenges(int index)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

setApprovedTwoFactorPublicKeyPems(int index, String value)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder setApprovedTwoFactorPublicKeyPems(int index, String value)

Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge.

repeated string approved_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 approvedTwoFactorPublicKeyPems to set.

Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

This builder for chaining.

setChallenges(int index, Challenge value)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder setChallenges(int index, Challenge value)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Challenge
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

setChallenges(int index, Challenge.Builder builderForValue)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder setChallenges(int index, Challenge.Builder builderForValue)

Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation.

repeated .google.cloud.kms.v1.Challenge challenges = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Challenge.Builder
Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

setRequiredApproverCount(int value)

public SingleTenantHsmInstanceProposal.QuorumParameters.Builder setRequiredApproverCount(int value)

Output only. The required numbers of approvers. This is the M value used for M of N quorum auth. It is less than the number of public keys.

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

Parameter
Name Description
value int

The requiredApproverCount to set.

Returns
Type Description
SingleTenantHsmInstanceProposal.QuorumParameters.Builder

This builder for chaining.