Class ServicePerimeterConfig.IngressFrom.Builder (1.38.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
TypeDescription
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
NameDescription
valuesIterable<String>

The identities to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource>
Returns
TypeDescription
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
NameDescription
valueString

The identities to add.

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

The bytes of the identities to add.

Returns
TypeDescription
ServicePerimeterConfig.IngressFrom.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServicePerimeterConfig.IngressFrom.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueServicePerimeterConfig.IngressSource
Returns
TypeDescription
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
NameDescription
builderForValueServicePerimeterConfig.IngressSource.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueServicePerimeterConfig.IngressSource
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServicePerimeterConfig.IngressSource.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ServicePerimeterConfig.IngressSource.Builder

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServicePerimeterConfig.IngressFrom.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ServicePerimeterConfig.IngressFrom.Builder

clone()

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

getDefaultInstanceForType()

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

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 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
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 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
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 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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSourceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServicePerimeterConfig.IngressFrom other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServicePerimeterConfig.IngressFrom.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ServicePerimeterConfig.IngressFrom.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The identities to set.

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

The identityType to set.

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

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueServicePerimeterConfig.IngressSource
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServicePerimeterConfig.IngressSource.Builder
Returns
TypeDescription
ServicePerimeterConfig.IngressFrom.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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