Class ServicePerimeterConfig.EgressFrom.Builder (1.2.10)

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
TypeDescription
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
NameDescription
valuesIterable<String>

The identities to add.

Returns
TypeDescription
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
NameDescription
valueString

The identities to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the identities to add.

Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServicePerimeterConfig.EgressFrom.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder
Overrides

build()

public ServicePerimeterConfig.EgressFrom build()
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom

buildPartial()

public ServicePerimeterConfig.EgressFrom buildPartial()
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom

clear()

public ServicePerimeterConfig.EgressFrom.Builder clear()
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ServicePerimeterConfig.EgressFrom.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServicePerimeterConfig.EgressFrom.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder
Overrides

clone()

public ServicePerimeterConfig.EgressFrom.Builder clone()
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder
Overrides

getDefaultInstanceForType()

public ServicePerimeterConfig.EgressFrom getDefaultInstanceForType()
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for identityType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServicePerimeterConfig.EgressFrom other)

public ServicePerimeterConfig.EgressFrom.Builder mergeFrom(ServicePerimeterConfig.EgressFrom other)
Parameter
NameDescription
otherServicePerimeterConfig.EgressFrom
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServicePerimeterConfig.EgressFrom.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ServicePerimeterConfig.EgressFrom.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServicePerimeterConfig.EgressFrom.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ServicePerimeterConfig.EgressFrom.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The identities to set.

Returns
TypeDescription
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
NameDescription
valueServicePerimeterConfig.IdentityType

The identityType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ServicePerimeterConfig.EgressFrom.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServicePerimeterConfig.EgressFrom.Builder
Overrides