Class Endpoint.HealthCheckConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.HealthCheckConfig.Builder>
io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Endpoint.HealthCheckConfigOrBuilder, Cloneable
Enclosing class:
Endpoint.HealthCheckConfig

public static final class Endpoint.HealthCheckConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.HealthCheckConfig.Builder> implements Endpoint.HealthCheckConfigOrBuilder
 The optional health check configuration.
 
Protobuf type envoy.api.v2.endpoint.Endpoint.HealthCheckConfig
  • Method Details

    • 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<Endpoint.HealthCheckConfig.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<Endpoint.HealthCheckConfig.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<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

      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
    • 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<Endpoint.HealthCheckConfig.Builder>
    • setField

      public Endpoint.HealthCheckConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.HealthCheckConfig.Builder>
    • clearField

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

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

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

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

      public Endpoint.HealthCheckConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Endpoint.HealthCheckConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public Endpoint.HealthCheckConfig.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<Endpoint.HealthCheckConfig.Builder>
      Throws:
      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 String getHostname()
       By default, the host header for L7 health checks is controlled by cluster level configuration
       (see: :ref:`host <envoy_api_field_core.HealthCheck.HttpHealthCheck.host>` and
       :ref:`authority <envoy_api_field_core.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_api_field_core.HealthCheck.HttpHealthCheck.host>` and
       :ref:`authority <envoy_api_field_core.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(String value)
       By default, the host header for L7 health checks is controlled by cluster level configuration
       (see: :ref:`host <envoy_api_field_core.HealthCheck.HttpHealthCheck.host>` and
       :ref:`authority <envoy_api_field_core.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_api_field_core.HealthCheck.HttpHealthCheck.host>` and
       :ref:`authority <envoy_api_field_core.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_api_field_core.HealthCheck.HttpHealthCheck.host>` and
       :ref:`authority <envoy_api_field_core.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.
    • setUnknownFields

      public final Endpoint.HealthCheckConfig.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<Endpoint.HealthCheckConfig.Builder>
    • mergeUnknownFields

      public final Endpoint.HealthCheckConfig.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<Endpoint.HealthCheckConfig.Builder>