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
@Generated
public interface DeniedOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe IP protocol to which this rule applies.com.google.protobuf.ByteStringThe IP protocol to which this rule applies.getPorts(int index) An optional list of ports to which this rule applies.com.google.protobuf.ByteStringgetPortsBytes(int index) An optional list of ports to which this rule applies.intAn optional list of ports to which this rule applies.An optional list of ports to which this rule applies.booleanThe IP protocol to which this rule applies.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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.
-