public static final class ManualApprovals.Builder extends GeneratedMessageV3.Builder<ManualApprovals.Builder> implements ManualApprovalsOrBuilder
A manual approval workflow where users who are designated as approvers
need to call the ApproveGrant
/DenyGrant
APIs for a grant. The workflow
can consist of multiple serial steps where each step defines who can act as
approver in that step and how many of those users should approve before the
workflow moves to the next step.
This can be used to create approval workflows such as:
- Require an approval from any user in a group G.
- Require an approval from any k number of users from a Group G.
Require an approval from any user in a group G and then from a user U.
A single user might be part of the approvers
ACL for multiple steps in this
workflow, but they can only approve once and that approval is only considered
to satisfy the approval step at which it was granted.
Protobuf type google.cloud.privilegedaccessmanager.v1.ManualApprovals
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllSteps(Iterable<? extends ManualApprovals.Step> values)
public ManualApprovals.Builder addAllSteps(Iterable<? extends ManualApprovals.Step> values)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ManualApprovals.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSteps(ManualApprovals.Step value)
public ManualApprovals.Builder addSteps(ManualApprovals.Step value)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
addSteps(ManualApprovals.Step.Builder builderForValue)
public ManualApprovals.Builder addSteps(ManualApprovals.Step.Builder builderForValue)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
addSteps(int index, ManualApprovals.Step value)
public ManualApprovals.Builder addSteps(int index, ManualApprovals.Step value)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
addSteps(int index, ManualApprovals.Step.Builder builderForValue)
public ManualApprovals.Builder addSteps(int index, ManualApprovals.Step.Builder builderForValue)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
addStepsBuilder()
public ManualApprovals.Step.Builder addStepsBuilder()
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
addStepsBuilder(int index)
public ManualApprovals.Step.Builder addStepsBuilder(int index)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
build()
public ManualApprovals build()
buildPartial()
public ManualApprovals buildPartial()
clear()
public ManualApprovals.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ManualApprovals.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ManualApprovals.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRequireApproverJustification()
public ManualApprovals.Builder clearRequireApproverJustification()
Optional. Do the approvers need to provide a justification for their
actions?
bool require_approver_justification = 1 [(.google.api.field_behavior) = OPTIONAL];
clearSteps()
public ManualApprovals.Builder clearSteps()
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
clone()
public ManualApprovals.Builder clone()
Overrides
getDefaultInstanceForType()
public ManualApprovals getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRequireApproverJustification()
public boolean getRequireApproverJustification()
Optional. Do the approvers need to provide a justification for their
actions?
bool require_approver_justification = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The requireApproverJustification.
|
getSteps(int index)
public ManualApprovals.Step getSteps(int index)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getStepsBuilder(int index)
public ManualApprovals.Step.Builder getStepsBuilder(int index)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getStepsBuilderList()
public List<ManualApprovals.Step.Builder> getStepsBuilderList()
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
getStepsCount()
public int getStepsCount()
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getStepsList()
public List<ManualApprovals.Step> getStepsList()
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
getStepsOrBuilder(int index)
public ManualApprovals.StepOrBuilder getStepsOrBuilder(int index)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getStepsOrBuilderList()
public List<? extends ManualApprovals.StepOrBuilder> getStepsOrBuilderList()
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.privilegedaccessmanager.v1.ManualApprovals.StepOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ManualApprovals other)
public ManualApprovals.Builder mergeFrom(ManualApprovals other)
public ManualApprovals.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ManualApprovals.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ManualApprovals.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeSteps(int index)
public ManualApprovals.Builder removeSteps(int index)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ManualApprovals.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ManualApprovals.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRequireApproverJustification(boolean value)
public ManualApprovals.Builder setRequireApproverJustification(boolean value)
Optional. Do the approvers need to provide a justification for their
actions?
bool require_approver_justification = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
boolean
The requireApproverJustification to set.
|
setSteps(int index, ManualApprovals.Step value)
public ManualApprovals.Builder setSteps(int index, ManualApprovals.Step value)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
setSteps(int index, ManualApprovals.Step.Builder builderForValue)
public ManualApprovals.Builder setSteps(int index, ManualApprovals.Step.Builder builderForValue)
Optional. List of approval steps in this workflow. These steps are followed
in the specified order sequentially. Only 1 step is supported.
repeated .google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step steps = 2 [(.google.api.field_behavior) = OPTIONAL];
setUnknownFields(UnknownFieldSet unknownFields)
public final ManualApprovals.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides