Package k8s.io.api.networking.v1
Interface Generated.NetworkPolicyPortOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.NetworkPolicyPort,Generated.NetworkPolicyPort.Builder
- Enclosing class:
- Generated
public static interface Generated.NetworkPolicyPortOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetEndPort()endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy.Generated.IntOrStringgetPort()port represents the port on the given protocol.Generated.IntOrStringOrBuildergetPortOrBuilder()port represents the port on the given protocol.StringgetProtocol()protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.com.google.protobuf.ByteStringgetProtocolBytes()protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.booleanhasEndPort()endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy.booleanhasPort()port represents the port on the given protocol.booleanhasProtocol()protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasProtocol
boolean hasProtocol()
protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;- Returns:
- Whether the protocol field is set.
-
getProtocol
String getProtocol()
protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;- Returns:
- The protocol.
-
getProtocolBytes
com.google.protobuf.ByteString getProtocolBytes()
protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;- Returns:
- The bytes for protocol.
-
hasPort
boolean hasPort()
port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;- Returns:
- Whether the port field is set.
-
getPort
Generated.IntOrString getPort()
port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;- Returns:
- The port.
-
getPortOrBuilder
Generated.IntOrStringOrBuilder getPortOrBuilder()
port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
-
hasEndPort
boolean hasEndPort()
endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. +optional
optional int32 endPort = 3;- Returns:
- Whether the endPort field is set.
-
getEndPort
int getEndPort()
endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. +optional
optional int32 endPort = 3;- Returns:
- The endPort.
-
-