Interface V1.ContainerPortOrBuilder

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

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

    Modifier and Type
    Method
    Description
    int
    Number of port to expose on the pod's IP address.
    What host IP to bind the external port to.
    com.google.protobuf.ByteString
    What host IP to bind the external port to.
    int
    Number of port to expose on the host.
    If specified, this must be an IANA_SVC_NAME and unique within the pod.
    com.google.protobuf.ByteString
    If specified, this must be an IANA_SVC_NAME and unique within the pod.
    Protocol for port.
    com.google.protobuf.ByteString
    Protocol for port.
    boolean
    Number of port to expose on the pod's IP address.
    boolean
    What host IP to bind the external port to.
    boolean
    Number of port to expose on the host.
    boolean
    If specified, this must be an IANA_SVC_NAME and unique within the pod.
    boolean
    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 Details

    • 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;
    • 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;
    • 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;
    • 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;
    • 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;
    • 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;
    • 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;
    • hasProtocol

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

      String getProtocol()
       Protocol for port. Must be UDP, TCP, or SCTP.
       Defaults to "TCP".
       +optional
       +default="TCP"
       
      optional string protocol = 4;
    • 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;
    • hasHostIP

      boolean hasHostIP()
       What host IP to bind the external port to.
       +optional
       
      optional string hostIP = 5;
    • getHostIP

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

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