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
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
Returns
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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServicePerimeterConfig.VpcAccessibleServices.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ServicePerimeterConfig.VpcAccessibleServices build()
Returns
buildPartial()
public ServicePerimeterConfig.VpcAccessibleServices buildPartial()
Returns
clear()
public ServicePerimeterConfig.VpcAccessibleServices.Builder clear()
Returns
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
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
clearField(Descriptors.FieldDescriptor field)
public ServicePerimeterConfig.VpcAccessibleServices.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ServicePerimeterConfig.VpcAccessibleServices.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ServicePerimeterConfig.VpcAccessibleServices.Builder clone()
Returns
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
getDefaultInstanceForType()
public ServicePerimeterConfig.VpcAccessibleServices getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ServicePerimeterConfig.VpcAccessibleServices other)
public ServicePerimeterConfig.VpcAccessibleServices.Builder mergeFrom(ServicePerimeterConfig.VpcAccessibleServices other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServicePerimeterConfig.VpcAccessibleServices.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ServicePerimeterConfig.VpcAccessibleServices.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServicePerimeterConfig.VpcAccessibleServices.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public ServicePerimeterConfig.VpcAccessibleServices.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServicePerimeterConfig.VpcAccessibleServices.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ServicePerimeterConfig.VpcAccessibleServices.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides