Class ServicePerimeterConfig.IngressFrom.Builder (1.44.0)

public static final class ServicePerimeterConfig.IngressFrom.Builder extends GeneratedMessageV3.Builder<ServicePerimeterConfig.IngressFrom.Builder> implements ServicePerimeterConfig.IngressFromOrBuilder

Defines the conditions under which an [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] matches a request. Conditions are based on information about the source of the request. The request must satisfy what is defined in sources AND identity related fields in order to match.

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

Static Methods

getDescriptor()

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

Methods

addAllIdentities(Iterable<String> values)

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

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

repeated string identities = 2;

Parameter
Name Description
values Iterable<String>

The identities to add.

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

This builder for chaining.

addAllSources(Iterable<? extends ServicePerimeterConfig.IngressSource> values)

public ServicePerimeterConfig.IngressFrom.Builder addAllSources(Iterable<? extends ServicePerimeterConfig.IngressSource> values)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameter
Name Description
values Iterable<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource>
Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

addIdentities(String value)

public ServicePerimeterConfig.IngressFrom.Builder addIdentities(String value)

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

repeated string identities = 2;

Parameter
Name Description
value String

The identities to add.

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

This builder for chaining.

addIdentitiesBytes(ByteString value)

public ServicePerimeterConfig.IngressFrom.Builder addIdentitiesBytes(ByteString value)

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

repeated string identities = 2;

Parameter
Name Description
value ByteString

The bytes of the identities to add.

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSources(ServicePerimeterConfig.IngressSource value)

public ServicePerimeterConfig.IngressFrom.Builder addSources(ServicePerimeterConfig.IngressSource value)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameter
Name Description
value ServicePerimeterConfig.IngressSource
Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

addSources(ServicePerimeterConfig.IngressSource.Builder builderForValue)

public ServicePerimeterConfig.IngressFrom.Builder addSources(ServicePerimeterConfig.IngressSource.Builder builderForValue)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameter
Name Description
builderForValue ServicePerimeterConfig.IngressSource.Builder
Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

addSources(int index, ServicePerimeterConfig.IngressSource value)

public ServicePerimeterConfig.IngressFrom.Builder addSources(int index, ServicePerimeterConfig.IngressSource value)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameters
Name Description
index int
value ServicePerimeterConfig.IngressSource
Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

addSources(int index, ServicePerimeterConfig.IngressSource.Builder builderForValue)

public ServicePerimeterConfig.IngressFrom.Builder addSources(int index, ServicePerimeterConfig.IngressSource.Builder builderForValue)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameters
Name Description
index int
builderForValue ServicePerimeterConfig.IngressSource.Builder
Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

addSourcesBuilder()

public ServicePerimeterConfig.IngressSource.Builder addSourcesBuilder()

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Returns
Type Description
ServicePerimeterConfig.IngressSource.Builder

addSourcesBuilder(int index)

public ServicePerimeterConfig.IngressSource.Builder addSourcesBuilder(int index)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.IngressSource.Builder

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIdentities()

public ServicePerimeterConfig.IngressFrom.Builder clearIdentities()

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

repeated string identities = 2;

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

This builder for chaining.

clearIdentityType()

public ServicePerimeterConfig.IngressFrom.Builder clearIdentityType()

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

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

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSources()

public ServicePerimeterConfig.IngressFrom.Builder clearSources()

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

clone()

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

getDefaultInstanceForType()

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

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 ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 2;

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 ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 2;

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 ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.

repeated string identities = 2;

Returns
Type Description
int

The count of identities.

getIdentitiesList()

public ProtocolStringList getIdentitiesList()

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

repeated string identities = 2;

Returns
Type Description
ProtocolStringList

A list containing the identities.

getIdentityType()

public ServicePerimeterConfig.IdentityType getIdentityType()

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

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

Returns
Type Description
ServicePerimeterConfig.IdentityType

The identityType.

getIdentityTypeValue()

public int getIdentityTypeValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for identityType.

getSources(int index)

public ServicePerimeterConfig.IngressSource getSources(int index)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.IngressSource

getSourcesBuilder(int index)

public ServicePerimeterConfig.IngressSource.Builder getSourcesBuilder(int index)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.IngressSource.Builder

getSourcesBuilderList()

public List<ServicePerimeterConfig.IngressSource.Builder> getSourcesBuilderList()

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Returns
Type Description
List<Builder>

getSourcesCount()

public int getSourcesCount()

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Returns
Type Description
int

getSourcesList()

public List<ServicePerimeterConfig.IngressSource> getSourcesList()

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Returns
Type Description
List<IngressSource>

getSourcesOrBuilder(int index)

public ServicePerimeterConfig.IngressSourceOrBuilder getSourcesOrBuilder(int index)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.IngressSourceOrBuilder

getSourcesOrBuilderList()

public List<? extends ServicePerimeterConfig.IngressSourceOrBuilder> getSourcesOrBuilderList()

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Returns
Type Description
List<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSourceOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServicePerimeterConfig.IngressFrom other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSources(int index)

public ServicePerimeterConfig.IngressFrom.Builder removeSources(int index)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameter
Name Description
index int
Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIdentities(int index, String value)

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

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

repeated string identities = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The identities to set.

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

This builder for chaining.

setIdentityType(ServicePerimeterConfig.IdentityType value)

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

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

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

Parameter
Name Description
value ServicePerimeterConfig.IdentityType

The identityType to set.

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

This builder for chaining.

setIdentityTypeValue(int value)

public ServicePerimeterConfig.IngressFrom.Builder setIdentityTypeValue(int value)

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

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

Parameter
Name Description
value int

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

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

This builder for chaining.

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

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

setSources(int index, ServicePerimeterConfig.IngressSource value)

public ServicePerimeterConfig.IngressFrom.Builder setSources(int index, ServicePerimeterConfig.IngressSource value)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameters
Name Description
index int
value ServicePerimeterConfig.IngressSource
Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

setSources(int index, ServicePerimeterConfig.IngressSource.Builder builderForValue)

public ServicePerimeterConfig.IngressFrom.Builder setSources(int index, ServicePerimeterConfig.IngressSource.Builder builderForValue)

Sources that this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] authorizes access from.

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1;

Parameters
Name Description
index int
builderForValue ServicePerimeterConfig.IngressSource.Builder
Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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