public static final class ServicePerimeterConfig.VpcAccessibleServices.Builder extends GeneratedMessage.Builder<ServicePerimeterConfig.VpcAccessibleServices.Builder> implements ServicePerimeterConfig.VpcAccessibleServicesOrBuilderSpecifies how APIs are allowed to communicate within the Service Perimeter.
Protobuf type
google.identity.accesscontextmanager.v1.ServicePerimeterConfig.VpcAccessibleServices
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ServicePerimeterConfig.VpcAccessibleServices.BuilderStatic 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 |
StringThe 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 |
ByteStringThe bytes of the allowedServices to add. |
| Returns | |
|---|---|
| Type | Description |
ServicePerimeterConfig.VpcAccessibleServices.Builder |
This builder for chaining. |
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 |
|
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. |
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 |
intThe 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 |
intThe 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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
intThe index to set the value at. |
value |
StringThe 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 |
booleanThe enableRestriction to set. |
| Returns | |
|---|---|
| Type | Description |
ServicePerimeterConfig.VpcAccessibleServices.Builder |
This builder for chaining. |