Class ServicePerimeterConfig.EgressFrom.Builder (1.43.0)

public static final class ServicePerimeterConfig.EgressFrom.Builder extends GeneratedMessageV3.Builder<ServicePerimeterConfig.EgressFrom.Builder> implements ServicePerimeterConfig.EgressFromOrBuilder

Defines the conditions under which an [EgressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] matches a request. Conditions based on information about the source of the request. Note that if the destination of the request is also protected by a [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter], then that [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] must have an [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] which allows access in order for this request to succeed.

Protobuf type google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom

Static Methods

getDescriptor()

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

Methods

addAllIdentities(Iterable<String> values)

public ServicePerimeterConfig.EgressFrom.Builder addAllIdentities(Iterable<String> values)

A list of identities that are allowed access through this [EgressPolicy]. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 1;

Parameter
Name Description
values Iterable<String>

The identities to add.

Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

addIdentities(String value)

public ServicePerimeterConfig.EgressFrom.Builder addIdentities(String value)

A list of identities that are allowed access through this [EgressPolicy]. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 1;

Parameter
Name Description
value String

The identities to add.

Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

addIdentitiesBytes(ByteString value)

public ServicePerimeterConfig.EgressFrom.Builder addIdentitiesBytes(ByteString value)

A list of identities that are allowed access through this [EgressPolicy]. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 1;

Parameter
Name Description
value ByteString

The bytes of the identities to add.

Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServicePerimeterConfig.EgressFrom build()
Returns
Type Description
ServicePerimeterConfig.EgressFrom

buildPartial()

public ServicePerimeterConfig.EgressFrom buildPartial()
Returns
Type Description
ServicePerimeterConfig.EgressFrom

clear()

public ServicePerimeterConfig.EgressFrom.Builder clear()
Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearIdentities()

public ServicePerimeterConfig.EgressFrom.Builder clearIdentities()

A list of identities that are allowed access through this [EgressPolicy]. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 1;

Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

clearIdentityType()

public ServicePerimeterConfig.EgressFrom.Builder clearIdentityType()

Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of identities field will be allowed access.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 2;

Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ServicePerimeterConfig.EgressFrom.Builder clone()
Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder
Overrides

getDefaultInstanceForType()

public ServicePerimeterConfig.EgressFrom getDefaultInstanceForType()
Returns
Type Description
ServicePerimeterConfig.EgressFrom

getDescriptorForType()

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

getIdentities(int index)

public String getIdentities(int index)

A list of identities that are allowed access through this [EgressPolicy]. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The identities at the given index.

getIdentitiesBytes(int index)

public ByteString getIdentitiesBytes(int index)

A list of identities that are allowed access through this [EgressPolicy]. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the identities at the given index.

getIdentitiesCount()

public int getIdentitiesCount()

A list of identities that are allowed access through this [EgressPolicy]. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 1;

Returns
Type Description
int

The count of identities.

getIdentitiesList()

public ProtocolStringList getIdentitiesList()

A list of identities that are allowed access through this [EgressPolicy]. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 1;

Returns
Type Description
ProtocolStringList

A list containing the identities.

getIdentityType()

public ServicePerimeterConfig.IdentityType getIdentityType()

Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of identities field will be allowed access.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 2;

Returns
Type Description
ServicePerimeterConfig.IdentityType

The identityType.

getIdentityTypeValue()

public int getIdentityTypeValue()

Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of identities field will be allowed access.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for identityType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServicePerimeterConfig.EgressFrom other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIdentities(int index, String value)

public ServicePerimeterConfig.EgressFrom.Builder setIdentities(int index, String value)

A list of identities that are allowed access through this [EgressPolicy]. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The identities to set.

Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

setIdentityType(ServicePerimeterConfig.IdentityType value)

public ServicePerimeterConfig.EgressFrom.Builder setIdentityType(ServicePerimeterConfig.IdentityType value)

Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of identities field will be allowed access.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 2;

Parameter
Name Description
value ServicePerimeterConfig.IdentityType

The identityType to set.

Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

setIdentityTypeValue(int value)

public ServicePerimeterConfig.EgressFrom.Builder setIdentityTypeValue(int value)

Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of identities field will be allowed access.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 2;

Parameter
Name Description
value int

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

Returns
Type Description
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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