Interface AllowedOrBuilder (1.8.1)

public interface AllowedOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getIPProtocol()

public abstract String getIPProtocol()

The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number.

optional string I_p_protocol = 488094525;

Returns
TypeDescription
String

The iPProtocol.

getIPProtocolBytes()

public abstract ByteString getIPProtocolBytes()

The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number.

optional string I_p_protocol = 488094525;

Returns
TypeDescription
ByteString

The bytes for iPProtocol.

getPorts(int index)

public abstract String getPorts(int index)

An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].

repeated string ports = 106854418;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The ports at the given index.

getPortsBytes(int index)

public abstract ByteString getPortsBytes(int index)

An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].

repeated string ports = 106854418;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the ports at the given index.

getPortsCount()

public abstract int getPortsCount()

An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].

repeated string ports = 106854418;

Returns
TypeDescription
int

The count of ports.

getPortsList()

public abstract List<String> getPortsList()

An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].

repeated string ports = 106854418;

Returns
TypeDescription
List<String>

A list containing the ports.

hasIPProtocol()

public abstract boolean hasIPProtocol()

The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number.

optional string I_p_protocol = 488094525;

Returns
TypeDescription
boolean

Whether the iPProtocol field is set.