Class ManualApprovals.Builder (0.5.0)

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

Static 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ManualApprovals.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ManualApprovals.Builder
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];

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public ManualApprovals.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ManualApprovals.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ManualApprovals.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ManualApprovals.Builder
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];

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

clone()

public ManualApprovals.Builder clone()
Returns
Type Description
ManualApprovals.Builder
Overrides

getDefaultInstanceForType()

public ManualApprovals getDefaultInstanceForType()
Returns
Type Description
ManualApprovals

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ManualApprovals.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ManualApprovals.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ManualApprovals.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ManualApprovals.Builder
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
Returns
Type Description
ManualApprovals.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ManualApprovals.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ManualApprovals.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ManualApprovals.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ManualApprovals.Builder
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.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ManualApprovals.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ManualApprovals.Builder
Overrides