Interface Generated.ContainerPortOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Generated.ContainerPort, Generated.ContainerPort.Builder
    Enclosing class:
    Generated

    public static interface Generated.ContainerPortOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getContainerPort()
      Number of port to expose on the pod's IP address.
      String getHostIP()
      What host IP to bind the external port to.
      com.google.protobuf.ByteString getHostIPBytes()
      What host IP to bind the external port to.
      int getHostPort()
      Number of port to expose on the host.
      String getName()
      If specified, this must be an IANA_SVC_NAME and unique within the pod.
      com.google.protobuf.ByteString getNameBytes()
      If specified, this must be an IANA_SVC_NAME and unique within the pod.
      String getProtocol()
      Protocol for port.
      com.google.protobuf.ByteString getProtocolBytes()
      Protocol for port.
      boolean hasContainerPort()
      Number of port to expose on the pod's IP address.
      boolean hasHostIP()
      What host IP to bind the external port to.
      boolean hasHostPort()
      Number of port to expose on the host.
      boolean hasName()
      If specified, this must be an IANA_SVC_NAME and unique within the pod.
      boolean hasProtocol()
      Protocol for port.
      • 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

      • hasName

        boolean hasName()
         If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
         named port in a pod must have a unique name. Name for the port that can be
         referred to by services.
         +optional
         
        optional string name = 1;
        Returns:
        Whether the name field is set.
      • getName

        String getName()
         If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
         named port in a pod must have a unique name. Name for the port that can be
         referred to by services.
         +optional
         
        optional string name = 1;
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
         named port in a pod must have a unique name. Name for the port that can be
         referred to by services.
         +optional
         
        optional string name = 1;
        Returns:
        The bytes for name.
      • hasHostPort

        boolean hasHostPort()
         Number of port to expose on the host.
         If specified, this must be a valid port number, 0 < x < 65536.
         If HostNetwork is specified, this must match ContainerPort.
         Most containers do not need this.
         +optional
         
        optional int32 hostPort = 2;
        Returns:
        Whether the hostPort field is set.
      • getHostPort

        int getHostPort()
         Number of port to expose on the host.
         If specified, this must be a valid port number, 0 < x < 65536.
         If HostNetwork is specified, this must match ContainerPort.
         Most containers do not need this.
         +optional
         
        optional int32 hostPort = 2;
        Returns:
        The hostPort.
      • hasContainerPort

        boolean hasContainerPort()
         Number of port to expose on the pod's IP address.
         This must be a valid port number, 0 < x < 65536.
         
        optional int32 containerPort = 3;
        Returns:
        Whether the containerPort field is set.
      • getContainerPort

        int getContainerPort()
         Number of port to expose on the pod's IP address.
         This must be a valid port number, 0 < x < 65536.
         
        optional int32 containerPort = 3;
        Returns:
        The containerPort.
      • hasProtocol

        boolean hasProtocol()
         Protocol for port. Must be UDP, TCP, or SCTP.
         Defaults to "TCP".
         +optional
         +default="TCP"
         
        optional string protocol = 4;
        Returns:
        Whether the protocol field is set.
      • getProtocol

        String getProtocol()
         Protocol for port. Must be UDP, TCP, or SCTP.
         Defaults to "TCP".
         +optional
         +default="TCP"
         
        optional string protocol = 4;
        Returns:
        The protocol.
      • getProtocolBytes

        com.google.protobuf.ByteString getProtocolBytes()
         Protocol for port. Must be UDP, TCP, or SCTP.
         Defaults to "TCP".
         +optional
         +default="TCP"
         
        optional string protocol = 4;
        Returns:
        The bytes for protocol.
      • hasHostIP

        boolean hasHostIP()
         What host IP to bind the external port to.
         +optional
         
        optional string hostIP = 5;
        Returns:
        Whether the hostIP field is set.
      • getHostIP

        String getHostIP()
         What host IP to bind the external port to.
         +optional
         
        optional string hostIP = 5;
        Returns:
        The hostIP.
      • getHostIPBytes

        com.google.protobuf.ByteString getHostIPBytes()
         What host IP to bind the external port to.
         +optional
         
        optional string hostIP = 5;
        Returns:
        The bytes for hostIP.