Class Generated.ContainerPort.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • clear

        public Generated.ContainerPort.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • getDefaultInstanceForType

        public Generated.ContainerPort getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Generated.ContainerPort build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.ContainerPort buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Generated.ContainerPort.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • clearField

        public Generated.ContainerPort.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • clearOneof

        public Generated.ContainerPort.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • setRepeatedField

        public Generated.ContainerPort.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • addRepeatedField

        public Generated.ContainerPort.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • mergeFrom

        public Generated.ContainerPort.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.ContainerPort.Builder>
        Throws:
        IOException
      • hasName

        public 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;
        Specified by:
        hasName in interface Generated.ContainerPortOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public 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;
        Specified by:
        getName in interface Generated.ContainerPortOrBuilder
        Returns:
        The name.
      • getNameBytes

        public 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;
        Specified by:
        getNameBytes in interface Generated.ContainerPortOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Generated.ContainerPort.Builder setName​(String value)
         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;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Generated.ContainerPort.Builder clearName()
         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:
        This builder for chaining.
      • setNameBytes

        public Generated.ContainerPort.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasHostPort

        public 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;
        Specified by:
        hasHostPort in interface Generated.ContainerPortOrBuilder
        Returns:
        Whether the hostPort field is set.
      • getHostPort

        public 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;
        Specified by:
        getHostPort in interface Generated.ContainerPortOrBuilder
        Returns:
        The hostPort.
      • setHostPort

        public Generated.ContainerPort.Builder setHostPort​(int value)
         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;
        Parameters:
        value - The hostPort to set.
        Returns:
        This builder for chaining.
      • clearHostPort

        public Generated.ContainerPort.Builder clearHostPort()
         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:
        This builder for chaining.
      • hasContainerPort

        public 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;
        Specified by:
        hasContainerPort in interface Generated.ContainerPortOrBuilder
        Returns:
        Whether the containerPort field is set.
      • getContainerPort

        public 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;
        Specified by:
        getContainerPort in interface Generated.ContainerPortOrBuilder
        Returns:
        The containerPort.
      • setContainerPort

        public Generated.ContainerPort.Builder setContainerPort​(int value)
         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;
        Parameters:
        value - The containerPort to set.
        Returns:
        This builder for chaining.
      • clearContainerPort

        public Generated.ContainerPort.Builder clearContainerPort()
         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:
        This builder for chaining.
      • hasProtocol

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

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

        public com.google.protobuf.ByteString getProtocolBytes()
         Protocol for port. Must be UDP, TCP, or SCTP.
         Defaults to "TCP".
         +optional
         +default="TCP"
         
        optional string protocol = 4;
        Specified by:
        getProtocolBytes in interface Generated.ContainerPortOrBuilder
        Returns:
        The bytes for protocol.
      • setProtocol

        public Generated.ContainerPort.Builder setProtocol​(String value)
         Protocol for port. Must be UDP, TCP, or SCTP.
         Defaults to "TCP".
         +optional
         +default="TCP"
         
        optional string protocol = 4;
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public Generated.ContainerPort.Builder clearProtocol()
         Protocol for port. Must be UDP, TCP, or SCTP.
         Defaults to "TCP".
         +optional
         +default="TCP"
         
        optional string protocol = 4;
        Returns:
        This builder for chaining.
      • setProtocolBytes

        public Generated.ContainerPort.Builder setProtocolBytes​(com.google.protobuf.ByteString value)
         Protocol for port. Must be UDP, TCP, or SCTP.
         Defaults to "TCP".
         +optional
         +default="TCP"
         
        optional string protocol = 4;
        Parameters:
        value - The bytes for protocol to set.
        Returns:
        This builder for chaining.
      • hasHostIP

        public boolean hasHostIP()
         What host IP to bind the external port to.
         +optional
         
        optional string hostIP = 5;
        Specified by:
        hasHostIP in interface Generated.ContainerPortOrBuilder
        Returns:
        Whether the hostIP field is set.
      • getHostIPBytes

        public com.google.protobuf.ByteString getHostIPBytes()
         What host IP to bind the external port to.
         +optional
         
        optional string hostIP = 5;
        Specified by:
        getHostIPBytes in interface Generated.ContainerPortOrBuilder
        Returns:
        The bytes for hostIP.
      • setHostIP

        public Generated.ContainerPort.Builder setHostIP​(String value)
         What host IP to bind the external port to.
         +optional
         
        optional string hostIP = 5;
        Parameters:
        value - The hostIP to set.
        Returns:
        This builder for chaining.
      • clearHostIP

        public Generated.ContainerPort.Builder clearHostIP()
         What host IP to bind the external port to.
         +optional
         
        optional string hostIP = 5;
        Returns:
        This builder for chaining.
      • setHostIPBytes

        public Generated.ContainerPort.Builder setHostIPBytes​(com.google.protobuf.ByteString value)
         What host IP to bind the external port to.
         +optional
         
        optional string hostIP = 5;
        Parameters:
        value - The bytes for hostIP to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.ContainerPort.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>
      • mergeUnknownFields

        public final Generated.ContainerPort.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ContainerPort.Builder>