Class HealthCheck.TlsOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HealthCheck.TlsOptions.Builder>
com.google.protobuf.GeneratedMessage.Builder<HealthCheck.TlsOptions.Builder>
io.envoyproxy.envoy.config.core.v3.HealthCheck.TlsOptions.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HealthCheck.TlsOptionsOrBuilder
,Cloneable
- Enclosing class:
HealthCheck.TlsOptions
public static final class HealthCheck.TlsOptions.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HealthCheck.TlsOptions.Builder>
implements HealthCheck.TlsOptionsOrBuilder
Health checks occur over the transport socket specified for the cluster. This implies that if a cluster is using a TLS-enabled transport socket, the health check will also occur over TLS. This allows overriding the cluster TLS settings, just for health check connections.Protobuf type
envoy.config.core.v3.HealthCheck.TlsOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.protobuf.LazyStringArrayList
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllAlpnProtocols
(Iterable<String> values) Specifies the ALPN protocols for health check connections.addAlpnProtocols
(String value) Specifies the ALPN protocols for health check connections.addAlpnProtocolsBytes
(com.google.protobuf.ByteString value) Specifies the ALPN protocols for health check connections.build()
private void
buildPartial0
(HealthCheck.TlsOptions result) clear()
Specifies the ALPN protocols for health check connections.private void
getAlpnProtocols
(int index) Specifies the ALPN protocols for health check connections.com.google.protobuf.ByteString
getAlpnProtocolsBytes
(int index) Specifies the ALPN protocols for health check connections.int
Specifies the ALPN protocols for health check connections.com.google.protobuf.ProtocolStringList
Specifies the ALPN protocols for health check connections.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(HealthCheck.TlsOptions other) setAlpnProtocols
(int index, String value) Specifies the ALPN protocols for health check connections.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_ -
alpnProtocols_
private com.google.protobuf.LazyStringArrayList alpnProtocols_
-
-
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<HealthCheck.TlsOptions.Builder>
-
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<HealthCheck.TlsOptions.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<HealthCheck.TlsOptions.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<HealthCheck.TlsOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<HealthCheck.TlsOptions.Builder>
-
mergeFrom
public HealthCheck.TlsOptions.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<HealthCheck.TlsOptions.Builder>
- Throws:
IOException
-
ensureAlpnProtocolsIsMutable
private void ensureAlpnProtocolsIsMutable() -
getAlpnProtocolsList
public com.google.protobuf.ProtocolStringList getAlpnProtocolsList()Specifies the ALPN protocols for health check connections. This is useful if the corresponding upstream is using ALPN-based :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` along with different protocols for health checks versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
- Specified by:
getAlpnProtocolsList
in interfaceHealthCheck.TlsOptionsOrBuilder
- Returns:
- A list containing the alpnProtocols.
-
getAlpnProtocolsCount
public int getAlpnProtocolsCount()Specifies the ALPN protocols for health check connections. This is useful if the corresponding upstream is using ALPN-based :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` along with different protocols for health checks versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
- Specified by:
getAlpnProtocolsCount
in interfaceHealthCheck.TlsOptionsOrBuilder
- Returns:
- The count of alpnProtocols.
-
getAlpnProtocols
Specifies the ALPN protocols for health check connections. This is useful if the corresponding upstream is using ALPN-based :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` along with different protocols for health checks versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
- Specified by:
getAlpnProtocols
in interfaceHealthCheck.TlsOptionsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The alpnProtocols at the given index.
-
getAlpnProtocolsBytes
public com.google.protobuf.ByteString getAlpnProtocolsBytes(int index) Specifies the ALPN protocols for health check connections. This is useful if the corresponding upstream is using ALPN-based :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` along with different protocols for health checks versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
- Specified by:
getAlpnProtocolsBytes
in interfaceHealthCheck.TlsOptionsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the alpnProtocols at the given index.
-
setAlpnProtocols
Specifies the ALPN protocols for health check connections. This is useful if the corresponding upstream is using ALPN-based :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` along with different protocols for health checks versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
- Parameters:
index
- The index to set the value at.value
- The alpnProtocols to set.- Returns:
- This builder for chaining.
-
addAlpnProtocols
Specifies the ALPN protocols for health check connections. This is useful if the corresponding upstream is using ALPN-based :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` along with different protocols for health checks versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
- Parameters:
value
- The alpnProtocols to add.- Returns:
- This builder for chaining.
-
addAllAlpnProtocols
Specifies the ALPN protocols for health check connections. This is useful if the corresponding upstream is using ALPN-based :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` along with different protocols for health checks versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
- Parameters:
values
- The alpnProtocols to add.- Returns:
- This builder for chaining.
-
clearAlpnProtocols
Specifies the ALPN protocols for health check connections. This is useful if the corresponding upstream is using ALPN-based :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` along with different protocols for health checks versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
- Returns:
- This builder for chaining.
-
addAlpnProtocolsBytes
Specifies the ALPN protocols for health check connections. This is useful if the corresponding upstream is using ALPN-based :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` along with different protocols for health checks versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
- Parameters:
value
- The bytes of the alpnProtocols to add.- Returns:
- This builder for chaining.
-