Class ServicePerimeterConfig.IngressTo.Builder (1.38.0)

public static final class ServicePerimeterConfig.IngressTo.Builder extends GeneratedMessageV3.Builder<ServicePerimeterConfig.IngressTo.Builder> implements ServicePerimeterConfig.IngressToOrBuilder

Defines the conditions under which an [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] matches a request. Conditions are based on information about the [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] intended to be performed on the target resource of the request. The request must satisfy what is defined in operations AND resources in order to match.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllOperations(Iterable<? extends ServicePerimeterConfig.ApiOperation> values)

public ServicePerimeterConfig.IngressTo.Builder addAllOperations(Iterable<? extends ServicePerimeterConfig.ApiOperation> values)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation>
Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

addAllResources(Iterable<String> values)

public ServicePerimeterConfig.IngressTo.Builder addAllResources(Iterable<String> values)

A list of resources, currently only projects in the form projects/<projectnumber>, protected by this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] that are allowed to be accessed by sources defined in the corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. If a single * is specified, then access to all resources inside the perimeter are allowed.

repeated string resources = 2;

Parameter
NameDescription
valuesIterable<String>

The resources to add.

Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

This builder for chaining.

addOperations(ServicePerimeterConfig.ApiOperation value)

public ServicePerimeterConfig.IngressTo.Builder addOperations(ServicePerimeterConfig.ApiOperation value)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameter
NameDescription
valueServicePerimeterConfig.ApiOperation
Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

addOperations(ServicePerimeterConfig.ApiOperation.Builder builderForValue)

public ServicePerimeterConfig.IngressTo.Builder addOperations(ServicePerimeterConfig.ApiOperation.Builder builderForValue)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameter
NameDescription
builderForValueServicePerimeterConfig.ApiOperation.Builder
Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

addOperations(int index, ServicePerimeterConfig.ApiOperation value)

public ServicePerimeterConfig.IngressTo.Builder addOperations(int index, ServicePerimeterConfig.ApiOperation value)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameters
NameDescription
indexint
valueServicePerimeterConfig.ApiOperation
Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

addOperations(int index, ServicePerimeterConfig.ApiOperation.Builder builderForValue)

public ServicePerimeterConfig.IngressTo.Builder addOperations(int index, ServicePerimeterConfig.ApiOperation.Builder builderForValue)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameters
NameDescription
indexint
builderForValueServicePerimeterConfig.ApiOperation.Builder
Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

addOperationsBuilder()

public ServicePerimeterConfig.ApiOperation.Builder addOperationsBuilder()

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Returns
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder

addOperationsBuilder(int index)

public ServicePerimeterConfig.ApiOperation.Builder addOperationsBuilder(int index)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(String value)

public ServicePerimeterConfig.IngressTo.Builder addResources(String value)

A list of resources, currently only projects in the form projects/<projectnumber>, protected by this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] that are allowed to be accessed by sources defined in the corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. If a single * is specified, then access to all resources inside the perimeter are allowed.

repeated string resources = 2;

Parameter
NameDescription
valueString

The resources to add.

Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

This builder for chaining.

addResourcesBytes(ByteString value)

public ServicePerimeterConfig.IngressTo.Builder addResourcesBytes(ByteString value)

A list of resources, currently only projects in the form projects/<projectnumber>, protected by this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] that are allowed to be accessed by sources defined in the corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. If a single * is specified, then access to all resources inside the perimeter are allowed.

repeated string resources = 2;

Parameter
NameDescription
valueByteString

The bytes of the resources to add.

Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ServicePerimeterConfig.IngressTo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperations()

public ServicePerimeterConfig.IngressTo.Builder clearOperations()

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

clearResources()

public ServicePerimeterConfig.IngressTo.Builder clearResources()

A list of resources, currently only projects in the form projects/<projectnumber>, protected by this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] that are allowed to be accessed by sources defined in the corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. If a single * is specified, then access to all resources inside the perimeter are allowed.

repeated string resources = 2;

Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOperations(int index)

public ServicePerimeterConfig.ApiOperation getOperations(int index)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation

getOperationsBuilder(int index)

public ServicePerimeterConfig.ApiOperation.Builder getOperationsBuilder(int index)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServicePerimeterConfig.ApiOperation.Builder

getOperationsBuilderList()

public List<ServicePerimeterConfig.ApiOperation.Builder> getOperationsBuilderList()

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Returns
TypeDescription
List<Builder>

getOperationsCount()

public int getOperationsCount()

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Returns
TypeDescription
int

getOperationsList()

public List<ServicePerimeterConfig.ApiOperation> getOperationsList()

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Returns
TypeDescription
List<ApiOperation>

getOperationsOrBuilder(int index)

public ServicePerimeterConfig.ApiOperationOrBuilder getOperationsOrBuilder(int index)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServicePerimeterConfig.ApiOperationOrBuilder

getOperationsOrBuilderList()

public List<? extends ServicePerimeterConfig.ApiOperationOrBuilder> getOperationsOrBuilderList()

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Returns
TypeDescription
List<? extends com.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperationOrBuilder>

getResources(int index)

public String getResources(int index)

A list of resources, currently only projects in the form projects/<projectnumber>, protected by this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] that are allowed to be accessed by sources defined in the corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. If a single * is specified, then access to all resources inside the perimeter are allowed.

repeated string resources = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The resources at the given index.

getResourcesBytes(int index)

public ByteString getResourcesBytes(int index)

A list of resources, currently only projects in the form projects/<projectnumber>, protected by this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] that are allowed to be accessed by sources defined in the corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. If a single * is specified, then access to all resources inside the perimeter are allowed.

repeated string resources = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the resources at the given index.

getResourcesCount()

public int getResourcesCount()

A list of resources, currently only projects in the form projects/<projectnumber>, protected by this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] that are allowed to be accessed by sources defined in the corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. If a single * is specified, then access to all resources inside the perimeter are allowed.

repeated string resources = 2;

Returns
TypeDescription
int

The count of resources.

getResourcesList()

public ProtocolStringList getResourcesList()

A list of resources, currently only projects in the form projects/<projectnumber>, protected by this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] that are allowed to be accessed by sources defined in the corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. If a single * is specified, then access to all resources inside the perimeter are allowed.

repeated string resources = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the resources.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServicePerimeterConfig.IngressTo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOperations(int index)

public ServicePerimeterConfig.IngressTo.Builder removeOperations(int index)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOperations(int index, ServicePerimeterConfig.ApiOperation value)

public ServicePerimeterConfig.IngressTo.Builder setOperations(int index, ServicePerimeterConfig.ApiOperation value)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameters
NameDescription
indexint
valueServicePerimeterConfig.ApiOperation
Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

setOperations(int index, ServicePerimeterConfig.ApiOperation.Builder builderForValue)

public ServicePerimeterConfig.IngressTo.Builder setOperations(int index, ServicePerimeterConfig.ApiOperation.Builder builderForValue)

A list of [ApiOperations] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] allowed to be performed by the sources specified in corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] in this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1;

Parameters
NameDescription
indexint
builderForValueServicePerimeterConfig.ApiOperation.Builder
Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

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

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

setResources(int index, String value)

public ServicePerimeterConfig.IngressTo.Builder setResources(int index, String value)

A list of resources, currently only projects in the form projects/<projectnumber>, protected by this [ServicePerimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] that are allowed to be accessed by sources defined in the corresponding [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. If a single * is specified, then access to all resources inside the perimeter are allowed.

repeated string resources = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The resources to set.

Returns
TypeDescription
ServicePerimeterConfig.IngressTo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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