Class SingleTenantHsmInstance.QuorumAuth.Builder

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

public static final class SingleTenantHsmInstance.QuorumAuth.Builder extends com.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstance.QuorumAuth.Builder> implements SingleTenantHsmInstance.QuorumAuthOrBuilder
 Configuration for M of N quorum auth.
 
Protobuf type google.cloud.kms.v1.SingleTenantHsmInstance.QuorumAuth
  • 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<SingleTenantHsmInstance.QuorumAuth.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<SingleTenantHsmInstance.QuorumAuth.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<SingleTenantHsmInstance.QuorumAuth.Builder>
    • getDefaultInstanceForType

      public SingleTenantHsmInstance.QuorumAuth 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

      public SingleTenantHsmInstance.QuorumAuth buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SingleTenantHsmInstance.QuorumAuth.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<SingleTenantHsmInstance.QuorumAuth.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<SingleTenantHsmInstance.QuorumAuth.Builder>
    • mergeFrom

      public SingleTenantHsmInstance.QuorumAuth.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<SingleTenantHsmInstance.QuorumAuth.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getTotalApproverCount in interface SingleTenantHsmInstance.QuorumAuthOrBuilder
      Returns:
      The totalApproverCount.
    • setTotalApproverCount

      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];
      Parameters:
      value - The totalApproverCount to set.
      Returns:
      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:
      This builder for chaining.
    • 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][google.cloud.kms.v1.SingleTenantHsmInstance.QuorumAuth.total_approver_count]
       - 1.
       
      int32 required_approver_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRequiredApproverCount in interface SingleTenantHsmInstance.QuorumAuthOrBuilder
      Returns:
      The requiredApproverCount.
    • setRequiredApproverCount

      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][google.cloud.kms.v1.SingleTenantHsmInstance.QuorumAuth.total_approver_count]
       - 1.
       
      int32 required_approver_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The requiredApproverCount to set.
      Returns:
      This builder for chaining.
    • 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][google.cloud.kms.v1.SingleTenantHsmInstance.QuorumAuth.total_approver_count]
       - 1.
       
      int32 required_approver_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getTwoFactorPublicKeyPemsList

      public com.google.protobuf.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];
      Specified by:
      getTwoFactorPublicKeyPemsList in interface SingleTenantHsmInstance.QuorumAuthOrBuilder
      Returns:
      A list containing the twoFactorPublicKeyPems.
    • 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];
      Specified by:
      getTwoFactorPublicKeyPemsCount in interface SingleTenantHsmInstance.QuorumAuthOrBuilder
      Returns:
      The count of twoFactorPublicKeyPems.
    • getTwoFactorPublicKeyPems

      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];
      Specified by:
      getTwoFactorPublicKeyPems in interface SingleTenantHsmInstance.QuorumAuthOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The twoFactorPublicKeyPems at the given index.
    • getTwoFactorPublicKeyPemsBytes

      public com.google.protobuf.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];
      Specified by:
      getTwoFactorPublicKeyPemsBytes in interface SingleTenantHsmInstance.QuorumAuthOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the twoFactorPublicKeyPems at the given index.
    • setTwoFactorPublicKeyPems

      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:
      index - The index to set the value at.
      value - The twoFactorPublicKeyPems to set.
      Returns:
      This builder for chaining.
    • addTwoFactorPublicKeyPems

      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];
      Parameters:
      value - The twoFactorPublicKeyPems to add.
      Returns:
      This builder for chaining.
    • addAllTwoFactorPublicKeyPems

      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];
      Parameters:
      values - The twoFactorPublicKeyPems to add.
      Returns:
      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:
      This builder for chaining.
    • addTwoFactorPublicKeyPemsBytes

      public SingleTenantHsmInstance.QuorumAuth.Builder addTwoFactorPublicKeyPemsBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the twoFactorPublicKeyPems to add.
      Returns:
      This builder for chaining.