Class ServicePerimeterConfig.IngressPolicy.Builder (1.47.0)

public static final class ServicePerimeterConfig.IngressPolicy.Builder extends GeneratedMessageV3.Builder<ServicePerimeterConfig.IngressPolicy.Builder> implements ServicePerimeterConfig.IngressPolicyOrBuilder

Policy for ingress into [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

[IngressPolicies] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] match requests based on ingress_from and ingress_to stanzas. For an ingress policy to match, both the ingress_from and ingress_to stanzas must be matched. If an [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] matches a request, the request is allowed through the perimeter boundary from outside the perimeter.

For example, access from the internet can be allowed either based on an [AccessLevel] [google.identity.accesscontextmanager.v1.AccessLevel] or, for traffic hosted on Google Cloud, the project of the source network. For access from private networks, using the project of the hosting network is required.

Individual ingress policies can be limited by restricting which services and/or actions they match using the ingress_to field.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIngressFrom()

public ServicePerimeterConfig.IngressPolicy.Builder clearIngressFrom()

Defines the conditions on the source of a request causing this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1;

Returns
Type Description
ServicePerimeterConfig.IngressPolicy.Builder

clearIngressTo()

public ServicePerimeterConfig.IngressPolicy.Builder clearIngressTo()

Defines the conditions on the [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] and request destination that cause this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2;

Returns
Type Description
ServicePerimeterConfig.IngressPolicy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getIngressFrom()

public ServicePerimeterConfig.IngressFrom getIngressFrom()

Defines the conditions on the source of a request causing this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1;

Returns
Type Description
ServicePerimeterConfig.IngressFrom

The ingressFrom.

getIngressFromBuilder()

public ServicePerimeterConfig.IngressFrom.Builder getIngressFromBuilder()

Defines the conditions on the source of a request causing this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1;

Returns
Type Description
ServicePerimeterConfig.IngressFrom.Builder

getIngressFromOrBuilder()

public ServicePerimeterConfig.IngressFromOrBuilder getIngressFromOrBuilder()

Defines the conditions on the source of a request causing this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1;

Returns
Type Description
ServicePerimeterConfig.IngressFromOrBuilder

getIngressTo()

public ServicePerimeterConfig.IngressTo getIngressTo()

Defines the conditions on the [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] and request destination that cause this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2;

Returns
Type Description
ServicePerimeterConfig.IngressTo

The ingressTo.

getIngressToBuilder()

public ServicePerimeterConfig.IngressTo.Builder getIngressToBuilder()

Defines the conditions on the [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] and request destination that cause this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2;

Returns
Type Description
ServicePerimeterConfig.IngressTo.Builder

getIngressToOrBuilder()

public ServicePerimeterConfig.IngressToOrBuilder getIngressToOrBuilder()

Defines the conditions on the [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] and request destination that cause this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2;

Returns
Type Description
ServicePerimeterConfig.IngressToOrBuilder

hasIngressFrom()

public boolean hasIngressFrom()

Defines the conditions on the source of a request causing this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1;

Returns
Type Description
boolean

Whether the ingressFrom field is set.

hasIngressTo()

public boolean hasIngressTo()

Defines the conditions on the [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] and request destination that cause this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2;

Returns
Type Description
boolean

Whether the ingressTo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServicePerimeterConfig.IngressPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIngressFrom(ServicePerimeterConfig.IngressFrom value)

public ServicePerimeterConfig.IngressPolicy.Builder mergeIngressFrom(ServicePerimeterConfig.IngressFrom value)

Defines the conditions on the source of a request causing this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1;

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

mergeIngressTo(ServicePerimeterConfig.IngressTo value)

public ServicePerimeterConfig.IngressPolicy.Builder mergeIngressTo(ServicePerimeterConfig.IngressTo value)

Defines the conditions on the [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] and request destination that cause this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2;

Parameter
Name Description
value ServicePerimeterConfig.IngressTo
Returns
Type Description
ServicePerimeterConfig.IngressPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIngressFrom(ServicePerimeterConfig.IngressFrom value)

public ServicePerimeterConfig.IngressPolicy.Builder setIngressFrom(ServicePerimeterConfig.IngressFrom value)

Defines the conditions on the source of a request causing this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1;

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

setIngressFrom(ServicePerimeterConfig.IngressFrom.Builder builderForValue)

public ServicePerimeterConfig.IngressPolicy.Builder setIngressFrom(ServicePerimeterConfig.IngressFrom.Builder builderForValue)

Defines the conditions on the source of a request causing this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1;

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

setIngressTo(ServicePerimeterConfig.IngressTo value)

public ServicePerimeterConfig.IngressPolicy.Builder setIngressTo(ServicePerimeterConfig.IngressTo value)

Defines the conditions on the [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] and request destination that cause this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2;

Parameter
Name Description
value ServicePerimeterConfig.IngressTo
Returns
Type Description
ServicePerimeterConfig.IngressPolicy.Builder

setIngressTo(ServicePerimeterConfig.IngressTo.Builder builderForValue)

public ServicePerimeterConfig.IngressPolicy.Builder setIngressTo(ServicePerimeterConfig.IngressTo.Builder builderForValue)

Defines the conditions on the [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] and request destination that cause this [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] to apply.

.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2;

Parameter
Name Description
builderForValue ServicePerimeterConfig.IngressTo.Builder
Returns
Type Description
ServicePerimeterConfig.IngressPolicy.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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