Class Endpoint.Builder

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

public static final class Endpoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder> implements EndpointOrBuilder
 Upstream host identifier.
 
Protobuf type envoy.api.v2.endpoint.Endpoint
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    The upstream host address. .. attention:: The form of host address depends on the given cluster type.
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    The optional health check configuration is used as configuration for the health checker to contact the health checked host. .. attention:: This takes into effect only for upstream clusters with :ref:`active health checking <arch_overview_health_checking>` enabled.
    The hostname associated with this endpoint.
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
     
    The upstream host address. .. attention:: The form of host address depends on the given cluster type.
    The upstream host address. .. attention:: The form of host address depends on the given cluster type.
    The upstream host address. .. attention:: The form of host address depends on the given cluster type.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The optional health check configuration is used as configuration for the health checker to contact the health checked host. .. attention:: This takes into effect only for upstream clusters with :ref:`active health checking <arch_overview_health_checking>` enabled.
    The optional health check configuration is used as configuration for the health checker to contact the health checked host. .. attention:: This takes into effect only for upstream clusters with :ref:`active health checking <arch_overview_health_checking>` enabled.
    The optional health check configuration is used as configuration for the health checker to contact the health checked host. .. attention:: This takes into effect only for upstream clusters with :ref:`active health checking <arch_overview_health_checking>` enabled.
    The hostname associated with this endpoint.
    com.google.protobuf.ByteString
    The hostname associated with this endpoint.
    boolean
    The upstream host address. .. attention:: The form of host address depends on the given cluster type.
    boolean
    The optional health check configuration is used as configuration for the health checker to contact the health checked host. .. attention:: This takes into effect only for upstream clusters with :ref:`active health checking <arch_overview_health_checking>` enabled.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    The upstream host address. .. attention:: The form of host address depends on the given cluster type.
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    The optional health check configuration is used as configuration for the health checker to contact the health checked host. .. attention:: This takes into effect only for upstream clusters with :ref:`active health checking <arch_overview_health_checking>` enabled.
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    The upstream host address. .. attention:: The form of host address depends on the given cluster type.
    setAddress(Address.Builder builderForValue)
    The upstream host address. .. attention:: The form of host address depends on the given cluster type.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    The optional health check configuration is used as configuration for the health checker to contact the health checked host. .. attention:: This takes into effect only for upstream clusters with :ref:`active health checking <arch_overview_health_checking>` enabled.
    The optional health check configuration is used as configuration for the health checker to contact the health checked host. .. attention:: This takes into effect only for upstream clusters with :ref:`active health checking <arch_overview_health_checking>` enabled.
    The hostname associated with this endpoint.
    setHostnameBytes(com.google.protobuf.ByteString value)
    The hostname associated with this endpoint.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

    getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Endpoint.Builder mergeFrom(Endpoint other)
    • isInitialized

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

      public Endpoint.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.Builder>
      Throws:
      IOException
    • hasAddress

      public boolean hasAddress()
       The upstream host address.
      
       .. attention::
      
         The form of host address depends on the given cluster type. For STATIC or EDS,
         it is expected to be a direct IP address (or something resolvable by the
         specified :ref:`resolver <envoy_api_field_core.SocketAddress.resolver_name>`
         in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
         and will be resolved via DNS.
       
      .envoy.api.v2.core.Address address = 1;
      Specified by:
      hasAddress in interface EndpointOrBuilder
      Returns:
      Whether the address field is set.
    • getAddress

      public Address getAddress()
       The upstream host address.
      
       .. attention::
      
         The form of host address depends on the given cluster type. For STATIC or EDS,
         it is expected to be a direct IP address (or something resolvable by the
         specified :ref:`resolver <envoy_api_field_core.SocketAddress.resolver_name>`
         in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
         and will be resolved via DNS.
       
      .envoy.api.v2.core.Address address = 1;
      Specified by:
      getAddress in interface EndpointOrBuilder
      Returns:
      The address.
    • setAddress

      public Endpoint.Builder setAddress(Address value)
       The upstream host address.
      
       .. attention::
      
         The form of host address depends on the given cluster type. For STATIC or EDS,
         it is expected to be a direct IP address (or something resolvable by the
         specified :ref:`resolver <envoy_api_field_core.SocketAddress.resolver_name>`
         in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
         and will be resolved via DNS.
       
      .envoy.api.v2.core.Address address = 1;
    • setAddress

      public Endpoint.Builder setAddress(Address.Builder builderForValue)
       The upstream host address.
      
       .. attention::
      
         The form of host address depends on the given cluster type. For STATIC or EDS,
         it is expected to be a direct IP address (or something resolvable by the
         specified :ref:`resolver <envoy_api_field_core.SocketAddress.resolver_name>`
         in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
         and will be resolved via DNS.
       
      .envoy.api.v2.core.Address address = 1;
    • mergeAddress

      public Endpoint.Builder mergeAddress(Address value)
       The upstream host address.
      
       .. attention::
      
         The form of host address depends on the given cluster type. For STATIC or EDS,
         it is expected to be a direct IP address (or something resolvable by the
         specified :ref:`resolver <envoy_api_field_core.SocketAddress.resolver_name>`
         in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
         and will be resolved via DNS.
       
      .envoy.api.v2.core.Address address = 1;
    • clearAddress

      public Endpoint.Builder clearAddress()
       The upstream host address.
      
       .. attention::
      
         The form of host address depends on the given cluster type. For STATIC or EDS,
         it is expected to be a direct IP address (or something resolvable by the
         specified :ref:`resolver <envoy_api_field_core.SocketAddress.resolver_name>`
         in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
         and will be resolved via DNS.
       
      .envoy.api.v2.core.Address address = 1;
    • getAddressBuilder

      public Address.Builder getAddressBuilder()
       The upstream host address.
      
       .. attention::
      
         The form of host address depends on the given cluster type. For STATIC or EDS,
         it is expected to be a direct IP address (or something resolvable by the
         specified :ref:`resolver <envoy_api_field_core.SocketAddress.resolver_name>`
         in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
         and will be resolved via DNS.
       
      .envoy.api.v2.core.Address address = 1;
    • getAddressOrBuilder

      public AddressOrBuilder getAddressOrBuilder()
       The upstream host address.
      
       .. attention::
      
         The form of host address depends on the given cluster type. For STATIC or EDS,
         it is expected to be a direct IP address (or something resolvable by the
         specified :ref:`resolver <envoy_api_field_core.SocketAddress.resolver_name>`
         in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
         and will be resolved via DNS.
       
      .envoy.api.v2.core.Address address = 1;
      Specified by:
      getAddressOrBuilder in interface EndpointOrBuilder
    • hasHealthCheckConfig

      public boolean hasHealthCheckConfig()
       The optional health check configuration is used as configuration for the
       health checker to contact the health checked host.
      
       .. attention::
      
         This takes into effect only for upstream clusters with
         :ref:`active health checking <arch_overview_health_checking>` enabled.
       
      .envoy.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2;
      Specified by:
      hasHealthCheckConfig in interface EndpointOrBuilder
      Returns:
      Whether the healthCheckConfig field is set.
    • getHealthCheckConfig

      public Endpoint.HealthCheckConfig getHealthCheckConfig()
       The optional health check configuration is used as configuration for the
       health checker to contact the health checked host.
      
       .. attention::
      
         This takes into effect only for upstream clusters with
         :ref:`active health checking <arch_overview_health_checking>` enabled.
       
      .envoy.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2;
      Specified by:
      getHealthCheckConfig in interface EndpointOrBuilder
      Returns:
      The healthCheckConfig.
    • setHealthCheckConfig

      public Endpoint.Builder setHealthCheckConfig(Endpoint.HealthCheckConfig value)
       The optional health check configuration is used as configuration for the
       health checker to contact the health checked host.
      
       .. attention::
      
         This takes into effect only for upstream clusters with
         :ref:`active health checking <arch_overview_health_checking>` enabled.
       
      .envoy.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2;
    • setHealthCheckConfig

      public Endpoint.Builder setHealthCheckConfig(Endpoint.HealthCheckConfig.Builder builderForValue)
       The optional health check configuration is used as configuration for the
       health checker to contact the health checked host.
      
       .. attention::
      
         This takes into effect only for upstream clusters with
         :ref:`active health checking <arch_overview_health_checking>` enabled.
       
      .envoy.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2;
    • mergeHealthCheckConfig

      public Endpoint.Builder mergeHealthCheckConfig(Endpoint.HealthCheckConfig value)
       The optional health check configuration is used as configuration for the
       health checker to contact the health checked host.
      
       .. attention::
      
         This takes into effect only for upstream clusters with
         :ref:`active health checking <arch_overview_health_checking>` enabled.
       
      .envoy.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2;
    • clearHealthCheckConfig

      public Endpoint.Builder clearHealthCheckConfig()
       The optional health check configuration is used as configuration for the
       health checker to contact the health checked host.
      
       .. attention::
      
         This takes into effect only for upstream clusters with
         :ref:`active health checking <arch_overview_health_checking>` enabled.
       
      .envoy.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2;
    • getHealthCheckConfigBuilder

      public Endpoint.HealthCheckConfig.Builder getHealthCheckConfigBuilder()
       The optional health check configuration is used as configuration for the
       health checker to contact the health checked host.
      
       .. attention::
      
         This takes into effect only for upstream clusters with
         :ref:`active health checking <arch_overview_health_checking>` enabled.
       
      .envoy.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2;
    • getHealthCheckConfigOrBuilder

      public Endpoint.HealthCheckConfigOrBuilder getHealthCheckConfigOrBuilder()
       The optional health check configuration is used as configuration for the
       health checker to contact the health checked host.
      
       .. attention::
      
         This takes into effect only for upstream clusters with
         :ref:`active health checking <arch_overview_health_checking>` enabled.
       
      .envoy.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2;
      Specified by:
      getHealthCheckConfigOrBuilder in interface EndpointOrBuilder
    • getHostname

      public String getHostname()
       The hostname associated with this endpoint. This hostname is not used for routing or address
       resolution. If provided, it will be associated with the endpoint, and can be used for features
       that require a hostname, like
       :ref:`auto_host_rewrite <envoy_api_field_route.RouteAction.auto_host_rewrite>`.
       
      string hostname = 3;
      Specified by:
      getHostname in interface EndpointOrBuilder
      Returns:
      The hostname.
    • getHostnameBytes

      public com.google.protobuf.ByteString getHostnameBytes()
       The hostname associated with this endpoint. This hostname is not used for routing or address
       resolution. If provided, it will be associated with the endpoint, and can be used for features
       that require a hostname, like
       :ref:`auto_host_rewrite <envoy_api_field_route.RouteAction.auto_host_rewrite>`.
       
      string hostname = 3;
      Specified by:
      getHostnameBytes in interface EndpointOrBuilder
      Returns:
      The bytes for hostname.
    • setHostname

      public Endpoint.Builder setHostname(String value)
       The hostname associated with this endpoint. This hostname is not used for routing or address
       resolution. If provided, it will be associated with the endpoint, and can be used for features
       that require a hostname, like
       :ref:`auto_host_rewrite <envoy_api_field_route.RouteAction.auto_host_rewrite>`.
       
      string hostname = 3;
      Parameters:
      value - The hostname to set.
      Returns:
      This builder for chaining.
    • clearHostname

      public Endpoint.Builder clearHostname()
       The hostname associated with this endpoint. This hostname is not used for routing or address
       resolution. If provided, it will be associated with the endpoint, and can be used for features
       that require a hostname, like
       :ref:`auto_host_rewrite <envoy_api_field_route.RouteAction.auto_host_rewrite>`.
       
      string hostname = 3;
      Returns:
      This builder for chaining.
    • setHostnameBytes

      public Endpoint.Builder setHostnameBytes(com.google.protobuf.ByteString value)
       The hostname associated with this endpoint. This hostname is not used for routing or address
       resolution. If provided, it will be associated with the endpoint, and can be used for features
       that require a hostname, like
       :ref:`auto_host_rewrite <envoy_api_field_route.RouteAction.auto_host_rewrite>`.
       
      string hostname = 3;
      Parameters:
      value - The bytes for hostname to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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