Class Grant.Builder (0.3.0)

public static final class Grant.Builder extends GeneratedMessageV3.Builder<Grant.Builder> implements GrantOrBuilder

This is to ensure that the Grants and ProducerGrants proto are byte compatible. A grant represents a request from a user for obtaining the access specified in an entitlement they are eligible for.

Protobuf type google.cloud.privilegedaccessmanager.v1.Grant

Implements

GrantOrBuilder

Static Methods

getDescriptor()

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

Methods

addAdditionalEmailRecipients(String value)

public Grant.Builder addAdditionalEmailRecipients(String value)

Optional. Additional email addresses to notify for all the actions performed on the grant.

repeated string additional_email_recipients = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The additionalEmailRecipients to add.

Returns
Type Description
Grant.Builder

This builder for chaining.

addAdditionalEmailRecipientsBytes(ByteString value)

public Grant.Builder addAdditionalEmailRecipientsBytes(ByteString value)

Optional. Additional email addresses to notify for all the actions performed on the grant.

repeated string additional_email_recipients = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the additionalEmailRecipients to add.

Returns
Type Description
Grant.Builder

This builder for chaining.

addAllAdditionalEmailRecipients(Iterable<String> values)

public Grant.Builder addAllAdditionalEmailRecipients(Iterable<String> values)

Optional. Additional email addresses to notify for all the actions performed on the grant.

repeated string additional_email_recipients = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The additionalEmailRecipients to add.

Returns
Type Description
Grant.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Grant build()
Returns
Type Description
Grant

buildPartial()

public Grant buildPartial()
Returns
Type Description
Grant

clear()

public Grant.Builder clear()
Returns
Type Description
Grant.Builder
Overrides

clearAdditionalEmailRecipients()

public Grant.Builder clearAdditionalEmailRecipients()

Optional. Additional email addresses to notify for all the actions performed on the grant.

repeated string additional_email_recipients = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Grant.Builder

This builder for chaining.

clearAuditTrail()

public Grant.Builder clearAuditTrail()

Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.

.google.cloud.privilegedaccessmanager.v1.Grant.AuditTrail audit_trail = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Builder

clearCreateTime()

public Grant.Builder clearCreateTime()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Builder

clearExternallyModified()

public Grant.Builder clearExternallyModified()

Output only. Flag set by the PAM system to indicate that policy bindings made by this grant have been modified from outside PAM.

After it is set, this flag remains set forever irrespective of the grant state. A true value here indicates that PAM no longer has any certainty on the access a user has because of this grant.

bool externally_modified = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearJustification()

public Grant.Builder clearJustification()

Optional. Justification of why this access is needed.

.google.cloud.privilegedaccessmanager.v1.Justification justification = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Grant.Builder

clearName()

public Grant.Builder clearName()

Identifier. Name of this grant. Possible formats:

  • organizations/{organization-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • folders/{folder-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • projects/{project-id|project-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}

    The last segment of this name ({grant-id}) is autogenerated.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Grant.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Grant.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Grant.Builder
Overrides

clearPrivilegedAccess()

public Grant.Builder clearPrivilegedAccess()

Output only. The access that would be granted by this grant.

.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess privileged_access = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Builder

clearRequestedDuration()

public Grant.Builder clearRequestedDuration()

Required. The amount of time access is needed for. This value should be less than the max_request_duration value of the entitlement.

.google.protobuf.Duration requested_duration = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Grant.Builder

clearRequester()

public Grant.Builder clearRequester()

Output only. Username of the user who created this grant.

string requester = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Builder

This builder for chaining.

clearState()

public Grant.Builder clearState()

Output only. Current state of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Builder

This builder for chaining.

clearTimeline()

public Grant.Builder clearTimeline()

Output only. Timeline of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.Timeline timeline = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Builder

clearUpdateTime()

public Grant.Builder clearUpdateTime()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Builder

clone()

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

getAdditionalEmailRecipients(int index)

public String getAdditionalEmailRecipients(int index)

Optional. Additional email addresses to notify for all the actions performed on the grant.

repeated string additional_email_recipients = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The additionalEmailRecipients at the given index.

getAdditionalEmailRecipientsBytes(int index)

public ByteString getAdditionalEmailRecipientsBytes(int index)

Optional. Additional email addresses to notify for all the actions performed on the grant.

repeated string additional_email_recipients = 11 [(.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 additionalEmailRecipients at the given index.

getAdditionalEmailRecipientsCount()

public int getAdditionalEmailRecipientsCount()

Optional. Additional email addresses to notify for all the actions performed on the grant.

repeated string additional_email_recipients = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of additionalEmailRecipients.

getAdditionalEmailRecipientsList()

public ProtocolStringList getAdditionalEmailRecipientsList()

Optional. Additional email addresses to notify for all the actions performed on the grant.

repeated string additional_email_recipients = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the additionalEmailRecipients.

getAuditTrail()

public Grant.AuditTrail getAuditTrail()

Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.

.google.cloud.privilegedaccessmanager.v1.Grant.AuditTrail audit_trail = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.AuditTrail

The auditTrail.

getAuditTrailBuilder()

public Grant.AuditTrail.Builder getAuditTrailBuilder()

Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.

.google.cloud.privilegedaccessmanager.v1.Grant.AuditTrail audit_trail = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.AuditTrail.Builder

getAuditTrailOrBuilder()

public Grant.AuditTrailOrBuilder getAuditTrailOrBuilder()

Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.

.google.cloud.privilegedaccessmanager.v1.Grant.AuditTrail audit_trail = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.AuditTrailOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Grant getDefaultInstanceForType()
Returns
Type Description
Grant

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExternallyModified()

public boolean getExternallyModified()

Output only. Flag set by the PAM system to indicate that policy bindings made by this grant have been modified from outside PAM.

After it is set, this flag remains set forever irrespective of the grant state. A true value here indicates that PAM no longer has any certainty on the access a user has because of this grant.

bool externally_modified = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The externallyModified.

getJustification()

public Justification getJustification()

Optional. Justification of why this access is needed.

.google.cloud.privilegedaccessmanager.v1.Justification justification = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Justification

The justification.

getJustificationBuilder()

public Justification.Builder getJustificationBuilder()

Optional. Justification of why this access is needed.

.google.cloud.privilegedaccessmanager.v1.Justification justification = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Justification.Builder

getJustificationOrBuilder()

public JustificationOrBuilder getJustificationOrBuilder()

Optional. Justification of why this access is needed.

.google.cloud.privilegedaccessmanager.v1.Justification justification = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
JustificationOrBuilder

getName()

public String getName()

Identifier. Name of this grant. Possible formats:

  • organizations/{organization-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • folders/{folder-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • projects/{project-id|project-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}

    The last segment of this name ({grant-id}) is autogenerated.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of this grant. Possible formats:

  • organizations/{organization-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • folders/{folder-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • projects/{project-id|project-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}

    The last segment of this name ({grant-id}) is autogenerated.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getPrivilegedAccess()

public PrivilegedAccess getPrivilegedAccess()

Output only. The access that would be granted by this grant.

.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess privileged_access = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivilegedAccess

The privilegedAccess.

getPrivilegedAccessBuilder()

public PrivilegedAccess.Builder getPrivilegedAccessBuilder()

Output only. The access that would be granted by this grant.

.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess privileged_access = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivilegedAccess.Builder

getPrivilegedAccessOrBuilder()

public PrivilegedAccessOrBuilder getPrivilegedAccessOrBuilder()

Output only. The access that would be granted by this grant.

.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess privileged_access = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivilegedAccessOrBuilder

getRequestedDuration()

public Duration getRequestedDuration()

Required. The amount of time access is needed for. This value should be less than the max_request_duration value of the entitlement.

.google.protobuf.Duration requested_duration = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The requestedDuration.

getRequestedDurationBuilder()

public Duration.Builder getRequestedDurationBuilder()

Required. The amount of time access is needed for. This value should be less than the max_request_duration value of the entitlement.

.google.protobuf.Duration requested_duration = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getRequestedDurationOrBuilder()

public DurationOrBuilder getRequestedDurationOrBuilder()

Required. The amount of time access is needed for. This value should be less than the max_request_duration value of the entitlement.

.google.protobuf.Duration requested_duration = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

getRequester()

public String getRequester()

Output only. Username of the user who created this grant.

string requester = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The requester.

getRequesterBytes()

public ByteString getRequesterBytes()

Output only. Username of the user who created this grant.

string requester = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for requester.

getState()

public Grant.State getState()

Output only. Current state of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTimeline()

public Grant.Timeline getTimeline()

Output only. Timeline of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.Timeline timeline = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Timeline

The timeline.

getTimelineBuilder()

public Grant.Timeline.Builder getTimelineBuilder()

Output only. Timeline of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.Timeline timeline = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.Timeline.Builder

getTimelineOrBuilder()

public Grant.TimelineOrBuilder getTimelineOrBuilder()

Output only. Timeline of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.Timeline timeline = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Grant.TimelineOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasAuditTrail()

public boolean hasAuditTrail()

Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.

.google.cloud.privilegedaccessmanager.v1.Grant.AuditTrail audit_trail = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the auditTrail field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasJustification()

public boolean hasJustification()

Optional. Justification of why this access is needed.

.google.cloud.privilegedaccessmanager.v1.Justification justification = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the justification field is set.

hasPrivilegedAccess()

public boolean hasPrivilegedAccess()

Output only. The access that would be granted by this grant.

.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess privileged_access = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the privilegedAccess field is set.

hasRequestedDuration()

public boolean hasRequestedDuration()

Required. The amount of time access is needed for. This value should be less than the max_request_duration value of the entitlement.

.google.protobuf.Duration requested_duration = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the requestedDuration field is set.

hasTimeline()

public boolean hasTimeline()

Output only. Timeline of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.Timeline timeline = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the timeline field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuditTrail(Grant.AuditTrail value)

public Grant.Builder mergeAuditTrail(Grant.AuditTrail value)

Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.

.google.cloud.privilegedaccessmanager.v1.Grant.AuditTrail audit_trail = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Grant.AuditTrail
Returns
Type Description
Grant.Builder

mergeCreateTime(Timestamp value)

public Grant.Builder mergeCreateTime(Timestamp value)

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Grant.Builder

mergeFrom(Grant other)

public Grant.Builder mergeFrom(Grant other)
Parameter
Name Description
other Grant
Returns
Type Description
Grant.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Grant.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Grant.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeJustification(Justification value)

public Grant.Builder mergeJustification(Justification value)

Optional. Justification of why this access is needed.

.google.cloud.privilegedaccessmanager.v1.Justification justification = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Justification
Returns
Type Description
Grant.Builder

mergePrivilegedAccess(PrivilegedAccess value)

public Grant.Builder mergePrivilegedAccess(PrivilegedAccess value)

Output only. The access that would be granted by this grant.

.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess privileged_access = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PrivilegedAccess
Returns
Type Description
Grant.Builder

mergeRequestedDuration(Duration value)

public Grant.Builder mergeRequestedDuration(Duration value)

Required. The amount of time access is needed for. This value should be less than the max_request_duration value of the entitlement.

.google.protobuf.Duration requested_duration = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
Grant.Builder

mergeTimeline(Grant.Timeline value)

public Grant.Builder mergeTimeline(Grant.Timeline value)

Output only. Timeline of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.Timeline timeline = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Grant.Timeline
Returns
Type Description
Grant.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Grant.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Grant.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Grant.Builder mergeUpdateTime(Timestamp value)

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Grant.Builder

setAdditionalEmailRecipients(int index, String value)

public Grant.Builder setAdditionalEmailRecipients(int index, String value)

Optional. Additional email addresses to notify for all the actions performed on the grant.

repeated string additional_email_recipients = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The additionalEmailRecipients to set.

Returns
Type Description
Grant.Builder

This builder for chaining.

setAuditTrail(Grant.AuditTrail value)

public Grant.Builder setAuditTrail(Grant.AuditTrail value)

Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.

.google.cloud.privilegedaccessmanager.v1.Grant.AuditTrail audit_trail = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Grant.AuditTrail
Returns
Type Description
Grant.Builder

setAuditTrail(Grant.AuditTrail.Builder builderForValue)

public Grant.Builder setAuditTrail(Grant.AuditTrail.Builder builderForValue)

Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.

.google.cloud.privilegedaccessmanager.v1.Grant.AuditTrail audit_trail = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Grant.AuditTrail.Builder
Returns
Type Description
Grant.Builder

setCreateTime(Timestamp value)

public Grant.Builder setCreateTime(Timestamp value)

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Grant.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Grant.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Grant.Builder

setExternallyModified(boolean value)

public Grant.Builder setExternallyModified(boolean value)

Output only. Flag set by the PAM system to indicate that policy bindings made by this grant have been modified from outside PAM.

After it is set, this flag remains set forever irrespective of the grant state. A true value here indicates that PAM no longer has any certainty on the access a user has because of this grant.

bool externally_modified = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The externallyModified to set.

Returns
Type Description
Grant.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setJustification(Justification value)

public Grant.Builder setJustification(Justification value)

Optional. Justification of why this access is needed.

.google.cloud.privilegedaccessmanager.v1.Justification justification = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Justification
Returns
Type Description
Grant.Builder

setJustification(Justification.Builder builderForValue)

public Grant.Builder setJustification(Justification.Builder builderForValue)

Optional. Justification of why this access is needed.

.google.cloud.privilegedaccessmanager.v1.Justification justification = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Justification.Builder
Returns
Type Description
Grant.Builder

setName(String value)

public Grant.Builder setName(String value)

Identifier. Name of this grant. Possible formats:

  • organizations/{organization-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • folders/{folder-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • projects/{project-id|project-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}

    The last segment of this name ({grant-id}) is autogenerated.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Grant.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Grant.Builder setNameBytes(ByteString value)

Identifier. Name of this grant. Possible formats:

  • organizations/{organization-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • folders/{folder-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
  • projects/{project-id|project-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}

    The last segment of this name ({grant-id}) is autogenerated.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Grant.Builder

This builder for chaining.

setPrivilegedAccess(PrivilegedAccess value)

public Grant.Builder setPrivilegedAccess(PrivilegedAccess value)

Output only. The access that would be granted by this grant.

.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess privileged_access = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PrivilegedAccess
Returns
Type Description
Grant.Builder

setPrivilegedAccess(PrivilegedAccess.Builder builderForValue)

public Grant.Builder setPrivilegedAccess(PrivilegedAccess.Builder builderForValue)

Output only. The access that would be granted by this grant.

.google.cloud.privilegedaccessmanager.v1.PrivilegedAccess privileged_access = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue PrivilegedAccess.Builder
Returns
Type Description
Grant.Builder

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

public Grant.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Grant.Builder
Overrides

setRequestedDuration(Duration value)

public Grant.Builder setRequestedDuration(Duration value)

Required. The amount of time access is needed for. This value should be less than the max_request_duration value of the entitlement.

.google.protobuf.Duration requested_duration = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
Grant.Builder

setRequestedDuration(Duration.Builder builderForValue)

public Grant.Builder setRequestedDuration(Duration.Builder builderForValue)

Required. The amount of time access is needed for. This value should be less than the max_request_duration value of the entitlement.

.google.protobuf.Duration requested_duration = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Grant.Builder

setRequester(String value)

public Grant.Builder setRequester(String value)

Output only. Username of the user who created this grant.

string requester = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The requester to set.

Returns
Type Description
Grant.Builder

This builder for chaining.

setRequesterBytes(ByteString value)

public Grant.Builder setRequesterBytes(ByteString value)

Output only. Username of the user who created this grant.

string requester = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for requester to set.

Returns
Type Description
Grant.Builder

This builder for chaining.

setState(Grant.State value)

public Grant.Builder setState(Grant.State value)

Output only. Current state of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Grant.State

The state to set.

Returns
Type Description
Grant.Builder

This builder for chaining.

setStateValue(int value)

public Grant.Builder setStateValue(int value)

Output only. Current state of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Grant.Builder

This builder for chaining.

setTimeline(Grant.Timeline value)

public Grant.Builder setTimeline(Grant.Timeline value)

Output only. Timeline of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.Timeline timeline = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Grant.Timeline
Returns
Type Description
Grant.Builder

setTimeline(Grant.Timeline.Builder builderForValue)

public Grant.Builder setTimeline(Grant.Timeline.Builder builderForValue)

Output only. Timeline of this grant.

.google.cloud.privilegedaccessmanager.v1.Grant.Timeline timeline = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Grant.Timeline.Builder
Returns
Type Description
Grant.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Grant.Builder setUpdateTime(Timestamp value)

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Grant.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Grant.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Grant.Builder