Class SingleTenantHsmInstanceProposal.QuorumParameters.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
com.google.cloud.kms.v1.SingleTenantHsmInstanceProposal.QuorumParameters.Builder
All Implemented Interfaces:
SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SingleTenantHsmInstanceProposal.QuorumParameters

public static final class SingleTenantHsmInstanceProposal.QuorumParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder> implements SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
 Parameters of quorum approval for the
 [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal].
 
Protobuf type google.cloud.kms.v1.SingleTenantHsmInstanceProposal.QuorumParameters
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
    • getDefaultInstanceForType

      public SingleTenantHsmInstanceProposal.QuorumParameters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SingleTenantHsmInstanceProposal.QuorumParameters.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
    • mergeFrom

      public SingleTenantHsmInstanceProposal.QuorumParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getRequiredApproverCount in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
      Returns:
      The requiredApproverCount.
    • setRequiredApproverCount

      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];
      Parameters:
      value - The requiredApproverCount to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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];
      Specified by:
      getChallengesList in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
    • 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];
      Specified by:
      getChallengesCount in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
    • getChallenges

      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];
      Specified by:
      getChallenges in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
    • setChallenges

      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];
    • setChallenges

      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];
    • addChallenges

       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];
    • addChallenges

      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];
    • addChallenges

       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];
    • addChallenges

      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];
    • addAllChallenges

       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];
    • 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];
    • removeChallenges

      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];
    • getChallengesBuilder

      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];
    • getChallengesOrBuilder

      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];
      Specified by:
      getChallengesOrBuilder in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
    • 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];
      Specified by:
      getChallengesOrBuilderList in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
    • 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];
    • addChallengesBuilder

      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];
    • 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];
    • getApprovedTwoFactorPublicKeyPemsList

      public com.google.protobuf.ProtocolStringList getApprovedTwoFactorPublicKeyPemsList()
       Output only. The public keys associated with the 2FA keys that have
       already approved the
       [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
       by signing the challenge.
       
      repeated string approved_two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApprovedTwoFactorPublicKeyPemsList in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
      Returns:
      A list containing the approvedTwoFactorPublicKeyPems.
    • getApprovedTwoFactorPublicKeyPemsCount

      public int getApprovedTwoFactorPublicKeyPemsCount()
       Output only. The public keys associated with the 2FA keys that have
       already approved the
       [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
       by signing the challenge.
       
      repeated string approved_two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApprovedTwoFactorPublicKeyPemsCount in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
      Returns:
      The count of approvedTwoFactorPublicKeyPems.
    • getApprovedTwoFactorPublicKeyPems

      public String getApprovedTwoFactorPublicKeyPems(int index)
       Output only. The public keys associated with the 2FA keys that have
       already approved the
       [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
       by signing the challenge.
       
      repeated string approved_two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApprovedTwoFactorPublicKeyPems in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The approvedTwoFactorPublicKeyPems at the given index.
    • getApprovedTwoFactorPublicKeyPemsBytes

      public com.google.protobuf.ByteString getApprovedTwoFactorPublicKeyPemsBytes(int index)
       Output only. The public keys associated with the 2FA keys that have
       already approved the
       [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
       by signing the challenge.
       
      repeated string approved_two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApprovedTwoFactorPublicKeyPemsBytes in interface SingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the approvedTwoFactorPublicKeyPems at the given index.
    • setApprovedTwoFactorPublicKeyPems

      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][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
       by signing the challenge.
       
      repeated string approved_two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The approvedTwoFactorPublicKeyPems to set.
      Returns:
      This builder for chaining.
    • addApprovedTwoFactorPublicKeyPems

      public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addApprovedTwoFactorPublicKeyPems(String value)
       Output only. The public keys associated with the 2FA keys that have
       already approved the
       [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
       by signing the challenge.
       
      repeated string approved_two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The approvedTwoFactorPublicKeyPems to add.
      Returns:
      This builder for chaining.
    • addAllApprovedTwoFactorPublicKeyPems

      public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addAllApprovedTwoFactorPublicKeyPems(Iterable<String> values)
       Output only. The public keys associated with the 2FA keys that have
       already approved the
       [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
       by signing the challenge.
       
      repeated string approved_two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The approvedTwoFactorPublicKeyPems to add.
      Returns:
      This builder for chaining.
    • clearApprovedTwoFactorPublicKeyPems

      public SingleTenantHsmInstanceProposal.QuorumParameters.Builder clearApprovedTwoFactorPublicKeyPems()
       Output only. The public keys associated with the 2FA keys that have
       already approved the
       [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
       by signing the challenge.
       
      repeated string approved_two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addApprovedTwoFactorPublicKeyPemsBytes

      public SingleTenantHsmInstanceProposal.QuorumParameters.Builder addApprovedTwoFactorPublicKeyPemsBytes(com.google.protobuf.ByteString value)
       Output only. The public keys associated with the 2FA keys that have
       already approved the
       [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal]
       by signing the challenge.
       
      repeated string approved_two_factor_public_key_pems = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the approvedTwoFactorPublicKeyPems to add.
      Returns:
      This builder for chaining.