Interface Input.SecurityRuleOrBuilder (0.7.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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<String>

A list containing the ipRanges.