Interface ServiceConnectionPolicy.PscConfigOrBuilder (0.16.0)

public static interface ServiceConnectionPolicy.PscConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLimit()

public abstract long getLimit()

Optional. Max number of PSC connections for this policy.

optional int64 limit = 2;

Returns
Type Description
long

The limit.

getSubnetworks(int index)

public abstract String getSubnetworks(int index)

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The subnetworks at the given index.

getSubnetworksBytes(int index)

public abstract ByteString getSubnetworksBytes(int index)

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the subnetworks at the given index.

getSubnetworksCount()

public abstract int getSubnetworksCount()

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Returns
Type Description
int

The count of subnetworks.

getSubnetworksList()

public abstract List<String> getSubnetworksList()

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Returns
Type Description
List<String>

A list containing the subnetworks.

hasLimit()

public abstract boolean hasLimit()

Optional. Max number of PSC connections for this policy.

optional int64 limit = 2;

Returns
Type Description
boolean

Whether the limit field is set.