Class ServicePerimeterConfig.VpcAccessibleServices.Builder (1.45.0)

public static final class ServicePerimeterConfig.VpcAccessibleServices.Builder extends GeneratedMessageV3.Builder<ServicePerimeterConfig.VpcAccessibleServices.Builder> implements ServicePerimeterConfig.VpcAccessibleServicesOrBuilder

Specifies how APIs are allowed to communicate within the Service Perimeter.

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

Static Methods

getDescriptor()

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

Methods

addAllAllowedServices(Iterable<String> values)

public ServicePerimeterConfig.VpcAccessibleServices.Builder addAllAllowedServices(Iterable<String> values)

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Parameter
Name Description
values Iterable<String>

The allowedServices to add.

Returns
Type Description
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

addAllowedServices(String value)

public ServicePerimeterConfig.VpcAccessibleServices.Builder addAllowedServices(String value)

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Parameter
Name Description
value String

The allowedServices to add.

Returns
Type Description
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

addAllowedServicesBytes(ByteString value)

public ServicePerimeterConfig.VpcAccessibleServices.Builder addAllowedServicesBytes(ByteString value)

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Parameter
Name Description
value ByteString

The bytes of the allowedServices to add.

Returns
Type Description
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAllowedServices()

public ServicePerimeterConfig.VpcAccessibleServices.Builder clearAllowedServices()

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Returns
Type Description
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

clearEnableRestriction()

public ServicePerimeterConfig.VpcAccessibleServices.Builder clearEnableRestriction()

Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowed_services'.

bool enable_restriction = 1;

Returns
Type Description
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllowedServices(int index)

public String getAllowedServices(int index)

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedServices at the given index.

getAllowedServicesBytes(int index)

public ByteString getAllowedServicesBytes(int index)

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedServices at the given index.

getAllowedServicesCount()

public int getAllowedServicesCount()

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Returns
Type Description
int

The count of allowedServices.

getAllowedServicesList()

public ProtocolStringList getAllowedServicesList()

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Returns
Type Description
ProtocolStringList

A list containing the allowedServices.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEnableRestriction()

public boolean getEnableRestriction()

Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowed_services'.

bool enable_restriction = 1;

Returns
Type Description
boolean

The enableRestriction.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServicePerimeterConfig.VpcAccessibleServices other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAllowedServices(int index, String value)

public ServicePerimeterConfig.VpcAccessibleServices.Builder setAllowedServices(int index, String value)

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedServices to set.

Returns
Type Description
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

setEnableRestriction(boolean value)

public ServicePerimeterConfig.VpcAccessibleServices.Builder setEnableRestriction(boolean value)

Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowed_services'.

bool enable_restriction = 1;

Parameter
Name Description
value boolean

The enableRestriction to set.

Returns
Type Description
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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