Class Entitlement.AdditionalNotificationTargets.Builder (0.3.0)

public static final class Entitlement.AdditionalNotificationTargets.Builder extends GeneratedMessageV3.Builder<Entitlement.AdditionalNotificationTargets.Builder> implements Entitlement.AdditionalNotificationTargetsOrBuilder

AdditionalNotificationTargets includes email addresses to be notified.

Protobuf type google.cloud.privilegedaccessmanager.v1.Entitlement.AdditionalNotificationTargets

Static Methods

getDescriptor()

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

Methods

addAdminEmailRecipients(String value)

public Entitlement.AdditionalNotificationTargets.Builder addAdminEmailRecipients(String value)

Optional. Additional email addresses to be notified when a principal (requester) is granted access.

repeated string admin_email_recipients = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The adminEmailRecipients to add.

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

addAdminEmailRecipientsBytes(ByteString value)

public Entitlement.AdditionalNotificationTargets.Builder addAdminEmailRecipientsBytes(ByteString value)

Optional. Additional email addresses to be notified when a principal (requester) is granted access.

repeated string admin_email_recipients = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the adminEmailRecipients to add.

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

addAllAdminEmailRecipients(Iterable<String> values)

public Entitlement.AdditionalNotificationTargets.Builder addAllAdminEmailRecipients(Iterable<String> values)

Optional. Additional email addresses to be notified when a principal (requester) is granted access.

repeated string admin_email_recipients = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The adminEmailRecipients to add.

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

addAllRequesterEmailRecipients(Iterable<String> values)

public Entitlement.AdditionalNotificationTargets.Builder addAllRequesterEmailRecipients(Iterable<String> values)

Optional. Additional email address to be notified about an eligible entitlement.

repeated string requester_email_recipients = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The requesterEmailRecipients to add.

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequesterEmailRecipients(String value)

public Entitlement.AdditionalNotificationTargets.Builder addRequesterEmailRecipients(String value)

Optional. Additional email address to be notified about an eligible entitlement.

repeated string requester_email_recipients = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requesterEmailRecipients to add.

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

addRequesterEmailRecipientsBytes(ByteString value)

public Entitlement.AdditionalNotificationTargets.Builder addRequesterEmailRecipientsBytes(ByteString value)

Optional. Additional email address to be notified about an eligible entitlement.

repeated string requester_email_recipients = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the requesterEmailRecipients to add.

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

build()

public Entitlement.AdditionalNotificationTargets build()
Returns
Type Description
Entitlement.AdditionalNotificationTargets

buildPartial()

public Entitlement.AdditionalNotificationTargets buildPartial()
Returns
Type Description
Entitlement.AdditionalNotificationTargets

clear()

public Entitlement.AdditionalNotificationTargets.Builder clear()
Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder
Overrides

clearAdminEmailRecipients()

public Entitlement.AdditionalNotificationTargets.Builder clearAdminEmailRecipients()

Optional. Additional email addresses to be notified when a principal (requester) is granted access.

repeated string admin_email_recipients = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequesterEmailRecipients()

public Entitlement.AdditionalNotificationTargets.Builder clearRequesterEmailRecipients()

Optional. Additional email address to be notified about an eligible entitlement.

repeated string requester_email_recipients = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

clone()

public Entitlement.AdditionalNotificationTargets.Builder clone()
Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder
Overrides

getAdminEmailRecipients(int index)

public String getAdminEmailRecipients(int index)

Optional. Additional email addresses to be notified when a principal (requester) is granted access.

repeated string admin_email_recipients = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The adminEmailRecipients at the given index.

getAdminEmailRecipientsBytes(int index)

public ByteString getAdminEmailRecipientsBytes(int index)

Optional. Additional email addresses to be notified when a principal (requester) is granted access.

repeated string admin_email_recipients = 1 [(.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 adminEmailRecipients at the given index.

getAdminEmailRecipientsCount()

public int getAdminEmailRecipientsCount()

Optional. Additional email addresses to be notified when a principal (requester) is granted access.

repeated string admin_email_recipients = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of adminEmailRecipients.

getAdminEmailRecipientsList()

public ProtocolStringList getAdminEmailRecipientsList()

Optional. Additional email addresses to be notified when a principal (requester) is granted access.

repeated string admin_email_recipients = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the adminEmailRecipients.

getDefaultInstanceForType()

public Entitlement.AdditionalNotificationTargets getDefaultInstanceForType()
Returns
Type Description
Entitlement.AdditionalNotificationTargets

getDescriptorForType()

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

getRequesterEmailRecipients(int index)

public String getRequesterEmailRecipients(int index)

Optional. Additional email address to be notified about an eligible entitlement.

repeated string requester_email_recipients = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The requesterEmailRecipients at the given index.

getRequesterEmailRecipientsBytes(int index)

public ByteString getRequesterEmailRecipientsBytes(int index)

Optional. Additional email address to be notified about an eligible entitlement.

repeated string requester_email_recipients = 2 [(.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 requesterEmailRecipients at the given index.

getRequesterEmailRecipientsCount()

public int getRequesterEmailRecipientsCount()

Optional. Additional email address to be notified about an eligible entitlement.

repeated string requester_email_recipients = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of requesterEmailRecipients.

getRequesterEmailRecipientsList()

public ProtocolStringList getRequesterEmailRecipientsList()

Optional. Additional email address to be notified about an eligible entitlement.

repeated string requester_email_recipients = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the requesterEmailRecipients.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Entitlement.AdditionalNotificationTargets other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdminEmailRecipients(int index, String value)

public Entitlement.AdditionalNotificationTargets.Builder setAdminEmailRecipients(int index, String value)

Optional. Additional email addresses to be notified when a principal (requester) is granted access.

repeated string admin_email_recipients = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The adminEmailRecipients to set.

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRequesterEmailRecipients(int index, String value)

public Entitlement.AdditionalNotificationTargets.Builder setRequesterEmailRecipients(int index, String value)

Optional. Additional email address to be notified about an eligible entitlement.

repeated string requester_email_recipients = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The requesterEmailRecipients to set.

Returns
Type Description
Entitlement.AdditionalNotificationTargets.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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