Class Endpoint.HealthCheckConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Endpoint.HealthCheckConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<Endpoint.HealthCheckConfig.Builder>
io.envoyproxy.envoy.config.endpoint.v3.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.GeneratedMessage.Builder<Endpoint.HealthCheckConfig.Builder>
implements Endpoint.HealthCheckConfigOrBuilder
The optional health check configuration.Protobuf type
envoy.config.endpoint.v3.Endpoint.HealthCheckConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Address
private com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> private int
private boolean
private Object
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
clear()
Optional alternative health check host address.Optional flag to control if perform active health check for this endpoint.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>`).Optional alternative health check port value.Optional alternative health check host address.Optional alternative health check host address.private com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> Optional alternative health check host address.Optional alternative health check host address.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
Optional flag to control if perform active health check for this endpoint.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>`).com.google.protobuf.ByteString
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>`).int
Optional alternative health check port value.boolean
Optional alternative health check host address.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeAddress
(Address value) Optional alternative health check host address.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) setAddress
(Address value) Optional alternative health check host address.setAddress
(Address.Builder builderForValue) Optional alternative health check host address.setDisableActiveHealthCheck
(boolean value) Optional flag to control if perform active health check for this endpoint.setHostname
(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>`).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>`).setPortValue
(int value) Optional alternative health check port value.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
Field Details
-
bitField0_
private int bitField0_ -
portValue_
private int portValue_ -
hostname_
-
address_
-
addressBuilder_
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, addressBuilder_AddressOrBuilder> -
disableActiveHealthCheck_
private boolean disableActiveHealthCheck_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Endpoint.HealthCheckConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Endpoint.HealthCheckConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Endpoint.HealthCheckConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Endpoint.HealthCheckConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceEndpoint.HealthCheckConfigOrBuilder
- Returns:
- The portValue.
-
setPortValue
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
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
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 interfaceEndpoint.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 interfaceEndpoint.HealthCheckConfigOrBuilder
- Returns:
- The bytes for hostname.
-
setHostname
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
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
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 interfaceEndpoint.HealthCheckConfigOrBuilder
- Returns:
- Whether the address field is set.
-
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 interfaceEndpoint.HealthCheckConfigOrBuilder
- Returns:
- The address.
-
setAddress
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
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
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
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
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;
-
getAddressOrBuilder
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:
getAddressOrBuilder
in interfaceEndpoint.HealthCheckConfigOrBuilder
-
getAddressFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, getAddressFieldBuilder()AddressOrBuilder> 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 interfaceEndpoint.HealthCheckConfigOrBuilder
- Returns:
- The disableActiveHealthCheck.
-
setDisableActiveHealthCheck
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
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.
-