Interface Generated.NetworkPolicyPortOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getEndPort()
      endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy.
      Generated.IntOrString getPort()
      port represents the port on the given protocol.
      Generated.IntOrStringOrBuilder getPortOrBuilder()
      port represents the port on the given protocol.
      String getProtocol()
      protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.
      com.google.protobuf.ByteString getProtocolBytes()
      protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.
      boolean hasEndPort()
      endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy.
      boolean hasPort()
      port represents the port on the given protocol.
      boolean hasProtocol()
      protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • 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.