public static final class ManualApprovals.Builder extends GeneratedMessage.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
approversACL 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ManualApprovals.BuilderImplements
ManualApprovalsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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> |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ManualApprovals.Step |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ManualApprovals.Step.Builder |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ManualApprovals.Step |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ManualApprovals.Step.Builder |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Step.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Step.Builder |
|
build()
public ManualApprovals build()| Returns | |
|---|---|
| Type | Description |
ManualApprovals |
|
buildPartial()
public ManualApprovals buildPartial()| Returns | |
|---|---|
| Type | Description |
ManualApprovals |
|
clear()
public ManualApprovals.Builder clear()| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
This builder for chaining. |
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];
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
getDefaultInstanceForType()
public ManualApprovals getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ManualApprovals |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Step |
|
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 |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Step.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<Step> |
|
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 |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.StepOrBuilder |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ManualApprovals other)
public ManualApprovals.Builder mergeFrom(ManualApprovals other)| Parameter | |
|---|---|
| Name | Description |
other |
ManualApprovals |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ManualApprovals.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ManualApprovals.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
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 |
booleanThe requireApproverJustification to set. |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
This builder for chaining. |
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ManualApprovals.Step |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ManualApprovals.Step.Builder |
| Returns | |
|---|---|
| Type | Description |
ManualApprovals.Builder |
|