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

The allowedServices to add.

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

The allowedServices to add.

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

The bytes of the allowedServices to add.

Returns
TypeDescription
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public ServicePerimeterConfig.VpcAccessibleServices.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ServicePerimeterConfig.VpcAccessibleServices.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the allowedServices.

getDefaultInstanceForType()

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

getDescriptorForType()

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

The enableRestriction.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServicePerimeterConfig.VpcAccessibleServices other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The allowedServices to set.

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

The enableRestriction to set.

Returns
TypeDescription
ServicePerimeterConfig.VpcAccessibleServices.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

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