Package com.google.cloud.kms.v1
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 Summary
Modifier and TypeMethodDescriptionOutput only.addAllChallenges(Iterable<? extends Challenge> values) Output only.Output only.addApprovedTwoFactorPublicKeyPemsBytes(com.google.protobuf.ByteString value) Output only.addChallenges(int index, Challenge value) Output only.addChallenges(int index, Challenge.Builder builderForValue) Output only.addChallenges(Challenge value) Output only.addChallenges(Challenge.Builder builderForValue) Output only.Output only.addChallengesBuilder(int index) Output only.build()clear()Output only.Output only.Output only.getApprovedTwoFactorPublicKeyPems(int index) Output only.com.google.protobuf.ByteStringgetApprovedTwoFactorPublicKeyPemsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.getChallenges(int index) Output only.getChallengesBuilder(int index) Output only.Output only.intOutput only.Output only.getChallengesOrBuilder(int index) Output only.List<? extends ChallengeOrBuilder>Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeChallenges(int index) Output only.setApprovedTwoFactorPublicKeyPems(int index, String value) Output only.setChallenges(int index, Challenge value) Output only.setChallenges(int index, Challenge.Builder builderForValue) Output only.setRequiredApproverCount(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public SingleTenantHsmInstanceProposal.QuorumParameters.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SingleTenantHsmInstanceProposal.QuorumParameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getRequiredApproverCountin interfaceSingleTenantHsmInstanceProposal.QuorumParametersOrBuilder- Returns:
- The requiredApproverCount.
-
setRequiredApproverCount
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
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
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:
getChallengesListin interfaceSingleTenantHsmInstanceProposal.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:
getChallengesCountin interfaceSingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
-
getChallenges
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:
getChallengesin interfaceSingleTenantHsmInstanceProposal.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
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]; -
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
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]; -
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
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
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
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:
getChallengesOrBuilderin interfaceSingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
-
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:
getChallengesOrBuilderListin interfaceSingleTenantHsmInstanceProposal.QuorumParametersOrBuilder
-
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
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
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:
getApprovedTwoFactorPublicKeyPemsListin interfaceSingleTenantHsmInstanceProposal.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:
getApprovedTwoFactorPublicKeyPemsCountin interfaceSingleTenantHsmInstanceProposal.QuorumParametersOrBuilder- Returns:
- The count of approvedTwoFactorPublicKeyPems.
-
getApprovedTwoFactorPublicKeyPems
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:
getApprovedTwoFactorPublicKeyPemsin interfaceSingleTenantHsmInstanceProposal.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:
getApprovedTwoFactorPublicKeyPemsBytesin interfaceSingleTenantHsmInstanceProposal.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.
-