Package com.google.cloud.compute.v1
Interface DeniedOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Denied
,Denied.Builder
public interface DeniedOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getIPProtocol()
The IP protocol to which this rule applies.com.google.protobuf.ByteString
getIPProtocolBytes()
The IP protocol to which this rule applies.String
getPorts(int index)
An optional list of ports to which this rule applies.com.google.protobuf.ByteString
getPortsBytes(int index)
An optional list of ports to which this rule applies.int
getPortsCount()
An optional list of ports to which this rule applies.List<String>
getPortsList()
An optional list of ports to which this rule applies.boolean
hasIPProtocol()
The IP protocol to which this rule applies.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasIPProtocol
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:
- Whether the iPProtocol field is set.
-
getIPProtocol
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:
- The iPProtocol.
-
getIPProtocolBytes
com.google.protobuf.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:
- The bytes for iPProtocol.
-
getPortsList
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:
- A list containing the ports.
-
getPortsCount
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:
- The count of ports.
-
getPorts
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The ports at the given index.
-
getPortsBytes
com.google.protobuf.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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the ports at the given index.
-
-