Class ServicePerimeterConfig.IngressPolicy.Builder (1.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

Whether the ingressTo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServicePerimeterConfig.IngressPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ServicePerimeterConfig.IngressPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueServicePerimeterConfig.IngressFrom
Returns
TypeDescription
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
NameDescription
valueServicePerimeterConfig.IngressTo
Returns
TypeDescription
ServicePerimeterConfig.IngressPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ServicePerimeterConfig.IngressPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServicePerimeterConfig.IngressPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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