Class ManualApprovals.Step (0.3.0)

public static final class ManualApprovals.Step extends GeneratedMessageV3 implements ManualApprovals.StepOrBuilder

Step represents a logical step in a manual approval workflow.

Protobuf type google.cloud.privilegedaccessmanager.v1.ManualApprovals.Step

Static Fields

APPROVALS_NEEDED_FIELD_NUMBER

public static final int APPROVALS_NEEDED_FIELD_NUMBER
Field Value
Type Description
int

APPROVERS_FIELD_NUMBER

public static final int APPROVERS_FIELD_NUMBER
Field Value
Type Description
int

APPROVER_EMAIL_RECIPIENTS_FIELD_NUMBER

public static final int APPROVER_EMAIL_RECIPIENTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ManualApprovals.Step getDefaultInstance()
Returns
Type Description
ManualApprovals.Step

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ManualApprovals.Step.Builder newBuilder()
Returns
Type Description
ManualApprovals.Step.Builder

newBuilder(ManualApprovals.Step prototype)

public static ManualApprovals.Step.Builder newBuilder(ManualApprovals.Step prototype)
Parameter
Name Description
prototype ManualApprovals.Step
Returns
Type Description
ManualApprovals.Step.Builder

parseDelimitedFrom(InputStream input)

public static ManualApprovals.Step parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ManualApprovals.Step parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ManualApprovals.Step parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ManualApprovals.Step parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ManualApprovals.Step parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ManualApprovals.Step parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ManualApprovals.Step parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ManualApprovals.Step parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ManualApprovals.Step parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ManualApprovals.Step parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ManualApprovals.Step parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ManualApprovals.Step parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManualApprovals.Step
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ManualApprovals.Step> parser()
Returns
Type Description
Parser<Step>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApprovalsNeeded()

public int getApprovalsNeeded()

Required. How many users from the above list need to approve. If there aren't enough distinct users in the list, then the workflow indefinitely blocks. Should always be greater than 0. 1 is the only supported value.

int32 approvals_needed = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The approvalsNeeded.

getApproverEmailRecipients(int index)

public String getApproverEmailRecipients(int index)

Optional. Additional email addresses to be notified when a grant is pending approval.

repeated string approver_email_recipients = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The approverEmailRecipients at the given index.

getApproverEmailRecipientsBytes(int index)

public ByteString getApproverEmailRecipientsBytes(int index)

Optional. Additional email addresses to be notified when a grant is pending approval.

repeated string approver_email_recipients = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the approverEmailRecipients at the given index.

getApproverEmailRecipientsCount()

public int getApproverEmailRecipientsCount()

Optional. Additional email addresses to be notified when a grant is pending approval.

repeated string approver_email_recipients = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of approverEmailRecipients.

getApproverEmailRecipientsList()

public ProtocolStringList getApproverEmailRecipientsList()

Optional. Additional email addresses to be notified when a grant is pending approval.

repeated string approver_email_recipients = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the approverEmailRecipients.

getApprovers(int index)

public AccessControlEntry getApprovers(int index)

Optional. The potential set of approvers in this step. This list must contain at most one entry.

repeated .google.cloud.privilegedaccessmanager.v1.AccessControlEntry approvers = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessControlEntry

getApproversCount()

public int getApproversCount()

Optional. The potential set of approvers in this step. This list must contain at most one entry.

repeated .google.cloud.privilegedaccessmanager.v1.AccessControlEntry approvers = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getApproversList()

public List<AccessControlEntry> getApproversList()

Optional. The potential set of approvers in this step. This list must contain at most one entry.

repeated .google.cloud.privilegedaccessmanager.v1.AccessControlEntry approvers = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AccessControlEntry>

getApproversOrBuilder(int index)

public AccessControlEntryOrBuilder getApproversOrBuilder(int index)

Optional. The potential set of approvers in this step. This list must contain at most one entry.

repeated .google.cloud.privilegedaccessmanager.v1.AccessControlEntry approvers = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessControlEntryOrBuilder

getApproversOrBuilderList()

public List<? extends AccessControlEntryOrBuilder> getApproversOrBuilderList()

Optional. The potential set of approvers in this step. This list must contain at most one entry.

repeated .google.cloud.privilegedaccessmanager.v1.AccessControlEntry approvers = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.privilegedaccessmanager.v1.AccessControlEntryOrBuilder>

getDefaultInstanceForType()

public ManualApprovals.Step getDefaultInstanceForType()
Returns
Type Description
ManualApprovals.Step

getParserForType()

public Parser<ManualApprovals.Step> getParserForType()
Returns
Type Description
Parser<Step>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ManualApprovals.Step.Builder newBuilderForType()
Returns
Type Description
ManualApprovals.Step.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ManualApprovals.Step.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ManualApprovals.Step.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ManualApprovals.Step.Builder toBuilder()
Returns
Type Description
ManualApprovals.Step.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException