Class Endpoint.HealthCheckConfig.Builder

    • Field Detail

      • bitField0_

        private int bitField0_
      • portValue_

        private int portValue_
      • hostname_

        private java.lang.Object hostname_
      • address_

        private Address address_
      • disableActiveHealthCheck_

        private boolean disableActiveHealthCheck_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Endpoint.HealthCheckConfig.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • 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.GeneratedMessage.Builder<Endpoint.HealthCheckConfig.Builder>
      • getDefaultInstanceForType

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

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

        public Endpoint.HealthCheckConfig 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.GeneratedMessage.Builder<Endpoint.HealthCheckConfig.Builder>
      • mergeFrom

        public Endpoint.HealthCheckConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws java.io.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<Endpoint.HealthCheckConfig.Builder>
        Throws:
        java.io.IOException
      • getPortValue

        public int getPortValue()
         Optional alternative health check port value.
        
         By default the health check address port of an upstream host is the same
         as the host's serving address port. This provides an alternative health
         check port. Setting this with a non-zero value allows an upstream host
         to have different health check address port.
         
        uint32 port_value = 1 [(.validate.rules) = { ... }
        Specified by:
        getPortValue in interface Endpoint.HealthCheckConfigOrBuilder
        Returns:
        The portValue.
      • setPortValue

        public Endpoint.HealthCheckConfig.Builder setPortValue​(int value)
         Optional alternative health check port value.
        
         By default the health check address port of an upstream host is the same
         as the host's serving address port. This provides an alternative health
         check port. Setting this with a non-zero value allows an upstream host
         to have different health check address port.
         
        uint32 port_value = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The portValue to set.
        Returns:
        This builder for chaining.
      • clearPortValue

        public Endpoint.HealthCheckConfig.Builder clearPortValue()
         Optional alternative health check port value.
        
         By default the health check address port of an upstream host is the same
         as the host's serving address port. This provides an alternative health
         check port. Setting this with a non-zero value allows an upstream host
         to have different health check address port.
         
        uint32 port_value = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • getHostname

        public java.lang.String getHostname()
         By default, the host header for L7 health checks is controlled by cluster level configuration
         (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
         :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
         to a non-empty value allows overriding the cluster level configuration for a specific
         endpoint.
         
        string hostname = 2;
        Specified by:
        getHostname in interface Endpoint.HealthCheckConfigOrBuilder
        Returns:
        The hostname.
      • getHostnameBytes

        public com.google.protobuf.ByteString getHostnameBytes()
         By default, the host header for L7 health checks is controlled by cluster level configuration
         (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
         :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
         to a non-empty value allows overriding the cluster level configuration for a specific
         endpoint.
         
        string hostname = 2;
        Specified by:
        getHostnameBytes in interface Endpoint.HealthCheckConfigOrBuilder
        Returns:
        The bytes for hostname.
      • setHostname

        public Endpoint.HealthCheckConfig.Builder setHostname​(java.lang.String value)
         By default, the host header for L7 health checks is controlled by cluster level configuration
         (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
         :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
         to a non-empty value allows overriding the cluster level configuration for a specific
         endpoint.
         
        string hostname = 2;
        Parameters:
        value - The hostname to set.
        Returns:
        This builder for chaining.
      • clearHostname

        public Endpoint.HealthCheckConfig.Builder clearHostname()
         By default, the host header for L7 health checks is controlled by cluster level configuration
         (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
         :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
         to a non-empty value allows overriding the cluster level configuration for a specific
         endpoint.
         
        string hostname = 2;
        Returns:
        This builder for chaining.
      • setHostnameBytes

        public Endpoint.HealthCheckConfig.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         By default, the host header for L7 health checks is controlled by cluster level configuration
         (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
         :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
         to a non-empty value allows overriding the cluster level configuration for a specific
         endpoint.
         
        string hostname = 2;
        Parameters:
        value - The bytes for hostname to set.
        Returns:
        This builder for chaining.
      • hasAddress

        public boolean hasAddress()
         Optional alternative health check host address.
        
         .. attention::
        
         The form of the health check host address is expected to be a direct IP address.
         
        .envoy.config.core.v3.Address address = 3;
        Specified by:
        hasAddress in interface Endpoint.HealthCheckConfigOrBuilder
        Returns:
        Whether the address field is set.
      • getAddress

        public Address getAddress()
         Optional alternative health check host address.
        
         .. attention::
        
         The form of the health check host address is expected to be a direct IP address.
         
        .envoy.config.core.v3.Address address = 3;
        Specified by:
        getAddress in interface Endpoint.HealthCheckConfigOrBuilder
        Returns:
        The address.
      • setAddress

        public Endpoint.HealthCheckConfig.Builder setAddress​(Address value)
         Optional alternative health check host address.
        
         .. attention::
        
         The form of the health check host address is expected to be a direct IP address.
         
        .envoy.config.core.v3.Address address = 3;
      • setAddress

        public Endpoint.HealthCheckConfig.Builder setAddress​(Address.Builder builderForValue)
         Optional alternative health check host address.
        
         .. attention::
        
         The form of the health check host address is expected to be a direct IP address.
         
        .envoy.config.core.v3.Address address = 3;
      • mergeAddress

        public Endpoint.HealthCheckConfig.Builder mergeAddress​(Address value)
         Optional alternative health check host address.
        
         .. attention::
        
         The form of the health check host address is expected to be a direct IP address.
         
        .envoy.config.core.v3.Address address = 3;
      • clearAddress

        public Endpoint.HealthCheckConfig.Builder clearAddress()
         Optional alternative health check host address.
        
         .. attention::
        
         The form of the health check host address is expected to be a direct IP address.
         
        .envoy.config.core.v3.Address address = 3;
      • getAddressBuilder

        public Address.Builder getAddressBuilder()
         Optional alternative health check host address.
        
         .. attention::
        
         The form of the health check host address is expected to be a direct IP address.
         
        .envoy.config.core.v3.Address address = 3;
      • getAddressFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<Address,​Address.Builder,​AddressOrBuilder> getAddressFieldBuilder()
         Optional alternative health check host address.
        
         .. attention::
        
         The form of the health check host address is expected to be a direct IP address.
         
        .envoy.config.core.v3.Address address = 3;
      • getDisableActiveHealthCheck

        public boolean getDisableActiveHealthCheck()
         Optional flag to control if perform active health check for this endpoint.
         Active health check is enabled by default if there is a health checker.
         
        bool disable_active_health_check = 4;
        Specified by:
        getDisableActiveHealthCheck in interface Endpoint.HealthCheckConfigOrBuilder
        Returns:
        The disableActiveHealthCheck.
      • setDisableActiveHealthCheck

        public Endpoint.HealthCheckConfig.Builder setDisableActiveHealthCheck​(boolean value)
         Optional flag to control if perform active health check for this endpoint.
         Active health check is enabled by default if there is a health checker.
         
        bool disable_active_health_check = 4;
        Parameters:
        value - The disableActiveHealthCheck to set.
        Returns:
        This builder for chaining.
      • clearDisableActiveHealthCheck

        public Endpoint.HealthCheckConfig.Builder clearDisableActiveHealthCheck()
         Optional flag to control if perform active health check for this endpoint.
         Active health check is enabled by default if there is a health checker.
         
        bool disable_active_health_check = 4;
        Returns:
        This builder for chaining.