Class Generated.LoadBalancerIngress.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.LoadBalancerIngress.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.LoadBalancerIngress.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.LoadBalancerIngress buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.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.LoadBalancerIngress.Builder>
      • mergeFrom

        public Generated.LoadBalancerIngress.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.LoadBalancerIngress.Builder>
        Throws:
        IOException
      • hasIp

        public boolean hasIp()
         IP is set for load-balancer ingress points that are IP based
         (typically GCE or OpenStack load-balancers)
         +optional
         
        optional string ip = 1;
        Specified by:
        hasIp in interface Generated.LoadBalancerIngressOrBuilder
        Returns:
        Whether the ip field is set.
      • getIp

        public String getIp()
         IP is set for load-balancer ingress points that are IP based
         (typically GCE or OpenStack load-balancers)
         +optional
         
        optional string ip = 1;
        Specified by:
        getIp in interface Generated.LoadBalancerIngressOrBuilder
        Returns:
        The ip.
      • getIpBytes

        public com.google.protobuf.ByteString getIpBytes()
         IP is set for load-balancer ingress points that are IP based
         (typically GCE or OpenStack load-balancers)
         +optional
         
        optional string ip = 1;
        Specified by:
        getIpBytes in interface Generated.LoadBalancerIngressOrBuilder
        Returns:
        The bytes for ip.
      • setIp

        public Generated.LoadBalancerIngress.Builder setIp​(String value)
         IP is set for load-balancer ingress points that are IP based
         (typically GCE or OpenStack load-balancers)
         +optional
         
        optional string ip = 1;
        Parameters:
        value - The ip to set.
        Returns:
        This builder for chaining.
      • clearIp

        public Generated.LoadBalancerIngress.Builder clearIp()
         IP is set for load-balancer ingress points that are IP based
         (typically GCE or OpenStack load-balancers)
         +optional
         
        optional string ip = 1;
        Returns:
        This builder for chaining.
      • setIpBytes

        public Generated.LoadBalancerIngress.Builder setIpBytes​(com.google.protobuf.ByteString value)
         IP is set for load-balancer ingress points that are IP based
         (typically GCE or OpenStack load-balancers)
         +optional
         
        optional string ip = 1;
        Parameters:
        value - The bytes for ip to set.
        Returns:
        This builder for chaining.
      • hasHostname

        public boolean hasHostname()
         Hostname is set for load-balancer ingress points that are DNS based
         (typically AWS load-balancers)
         +optional
         
        optional string hostname = 2;
        Specified by:
        hasHostname in interface Generated.LoadBalancerIngressOrBuilder
        Returns:
        Whether the hostname field is set.
      • getHostname

        public String getHostname()
         Hostname is set for load-balancer ingress points that are DNS based
         (typically AWS load-balancers)
         +optional
         
        optional string hostname = 2;
        Specified by:
        getHostname in interface Generated.LoadBalancerIngressOrBuilder
        Returns:
        The hostname.
      • getHostnameBytes

        public com.google.protobuf.ByteString getHostnameBytes()
         Hostname is set for load-balancer ingress points that are DNS based
         (typically AWS load-balancers)
         +optional
         
        optional string hostname = 2;
        Specified by:
        getHostnameBytes in interface Generated.LoadBalancerIngressOrBuilder
        Returns:
        The bytes for hostname.
      • setHostname

        public Generated.LoadBalancerIngress.Builder setHostname​(String value)
         Hostname is set for load-balancer ingress points that are DNS based
         (typically AWS load-balancers)
         +optional
         
        optional string hostname = 2;
        Parameters:
        value - The hostname to set.
        Returns:
        This builder for chaining.
      • clearHostname

        public Generated.LoadBalancerIngress.Builder clearHostname()
         Hostname is set for load-balancer ingress points that are DNS based
         (typically AWS load-balancers)
         +optional
         
        optional string hostname = 2;
        Returns:
        This builder for chaining.
      • setHostnameBytes

        public Generated.LoadBalancerIngress.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         Hostname is set for load-balancer ingress points that are DNS based
         (typically AWS load-balancers)
         +optional
         
        optional string hostname = 2;
        Parameters:
        value - The bytes for hostname to set.
        Returns:
        This builder for chaining.
      • hasIpMode

        public boolean hasIpMode()
         IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
         Setting this to "VIP" indicates that traffic is delivered to the node with
         the destination set to the load-balancer's IP and port.
         Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
         the destination set to the node's IP and node port or the pod's IP and port.
         Service implementations may use this information to adjust traffic routing.
         +optional
         
        optional string ipMode = 3;
        Specified by:
        hasIpMode in interface Generated.LoadBalancerIngressOrBuilder
        Returns:
        Whether the ipMode field is set.
      • getIpMode

        public String getIpMode()
         IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
         Setting this to "VIP" indicates that traffic is delivered to the node with
         the destination set to the load-balancer's IP and port.
         Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
         the destination set to the node's IP and node port or the pod's IP and port.
         Service implementations may use this information to adjust traffic routing.
         +optional
         
        optional string ipMode = 3;
        Specified by:
        getIpMode in interface Generated.LoadBalancerIngressOrBuilder
        Returns:
        The ipMode.
      • getIpModeBytes

        public com.google.protobuf.ByteString getIpModeBytes()
         IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
         Setting this to "VIP" indicates that traffic is delivered to the node with
         the destination set to the load-balancer's IP and port.
         Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
         the destination set to the node's IP and node port or the pod's IP and port.
         Service implementations may use this information to adjust traffic routing.
         +optional
         
        optional string ipMode = 3;
        Specified by:
        getIpModeBytes in interface Generated.LoadBalancerIngressOrBuilder
        Returns:
        The bytes for ipMode.
      • setIpMode

        public Generated.LoadBalancerIngress.Builder setIpMode​(String value)
         IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
         Setting this to "VIP" indicates that traffic is delivered to the node with
         the destination set to the load-balancer's IP and port.
         Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
         the destination set to the node's IP and node port or the pod's IP and port.
         Service implementations may use this information to adjust traffic routing.
         +optional
         
        optional string ipMode = 3;
        Parameters:
        value - The ipMode to set.
        Returns:
        This builder for chaining.
      • clearIpMode

        public Generated.LoadBalancerIngress.Builder clearIpMode()
         IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
         Setting this to "VIP" indicates that traffic is delivered to the node with
         the destination set to the load-balancer's IP and port.
         Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
         the destination set to the node's IP and node port or the pod's IP and port.
         Service implementations may use this information to adjust traffic routing.
         +optional
         
        optional string ipMode = 3;
        Returns:
        This builder for chaining.
      • setIpModeBytes

        public Generated.LoadBalancerIngress.Builder setIpModeBytes​(com.google.protobuf.ByteString value)
         IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
         Setting this to "VIP" indicates that traffic is delivered to the node with
         the destination set to the load-balancer's IP and port.
         Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
         the destination set to the node's IP and node port or the pod's IP and port.
         Service implementations may use this information to adjust traffic routing.
         +optional
         
        optional string ipMode = 3;
        Parameters:
        value - The bytes for ipMode to set.
        Returns:
        This builder for chaining.
      • getPortsCount

        public int getPortsCount()
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
        Specified by:
        getPortsCount in interface Generated.LoadBalancerIngressOrBuilder
      • getPorts

        public Generated.PortStatus getPorts​(int index)
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
        Specified by:
        getPorts in interface Generated.LoadBalancerIngressOrBuilder
      • setPorts

        public Generated.LoadBalancerIngress.Builder setPorts​(int index,
                                                              Generated.PortStatus value)
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
      • addPorts

        public Generated.LoadBalancerIngress.Builder addPorts​(Generated.PortStatus value)
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
      • addPorts

        public Generated.LoadBalancerIngress.Builder addPorts​(int index,
                                                              Generated.PortStatus value)
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
      • clearPorts

        public Generated.LoadBalancerIngress.Builder clearPorts()
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
      • removePorts

        public Generated.LoadBalancerIngress.Builder removePorts​(int index)
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
      • getPortsBuilder

        public Generated.PortStatus.Builder getPortsBuilder​(int index)
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
      • addPortsBuilder

        public Generated.PortStatus.Builder addPortsBuilder()
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
      • addPortsBuilder

        public Generated.PortStatus.Builder addPortsBuilder​(int index)
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;
      • getPortsBuilderList

        public List<Generated.PortStatus.Builder> getPortsBuilderList()
         Ports is a list of records of service ports
         If used, every port defined in the service should have an entry in it
         +listType=atomic
         +optional
         
        repeated .k8s.io.api.core.v1.PortStatus ports = 4;