Interface Input.SecurityRuleOrBuilder (0.57.0)

public static interface Input.SecurityRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getIpRanges(int index)

public abstract String getIpRanges(int index)

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ipRanges at the given index.

getIpRangesBytes(int index)

public abstract ByteString getIpRangesBytes(int index)

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ipRanges at the given index.

getIpRangesCount()

public abstract int getIpRangesCount()

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Returns
Type Description
int

The count of ipRanges.

getIpRangesList()

public abstract List<String> getIpRangesList()

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Returns
Type Description
List<String>

A list containing the ipRanges.