Class 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.GeneratedMessageV3.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.api.v2.core.HealthCheck.TlsOptions
    • Method Detail

      • 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<HealthCheck.TlsOptions.Builder>
      • clear

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

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

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

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

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

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

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

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

        public HealthCheck.TlsOptions.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<HealthCheck.TlsOptions.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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 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<HealthCheck.TlsOptions.Builder>
        Throws:
        IOException
      • 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_api_msg_listener.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 interface HealthCheck.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_api_msg_listener.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 interface HealthCheck.TlsOptionsOrBuilder
        Returns:
        The count of alpnProtocols.
      • getAlpnProtocols

        public String getAlpnProtocols​(int index)
         Specifies the ALPN protocols for health check connections. This is useful if the
         corresponding upstream is using ALPN-based :ref:`FilterChainMatch
         <envoy_api_msg_listener.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 interface HealthCheck.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_api_msg_listener.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 interface HealthCheck.TlsOptionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the alpnProtocols at the given index.
      • setAlpnProtocols

        public HealthCheck.TlsOptions.Builder setAlpnProtocols​(int index,
                                                               String value)
         Specifies the ALPN protocols for health check connections. This is useful if the
         corresponding upstream is using ALPN-based :ref:`FilterChainMatch
         <envoy_api_msg_listener.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

        public HealthCheck.TlsOptions.Builder addAlpnProtocols​(String value)
         Specifies the ALPN protocols for health check connections. This is useful if the
         corresponding upstream is using ALPN-based :ref:`FilterChainMatch
         <envoy_api_msg_listener.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

        public HealthCheck.TlsOptions.Builder addAllAlpnProtocols​(Iterable<String> values)
         Specifies the ALPN protocols for health check connections. This is useful if the
         corresponding upstream is using ALPN-based :ref:`FilterChainMatch
         <envoy_api_msg_listener.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

        public HealthCheck.TlsOptions.Builder clearAlpnProtocols()
         Specifies the ALPN protocols for health check connections. This is useful if the
         corresponding upstream is using ALPN-based :ref:`FilterChainMatch
         <envoy_api_msg_listener.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

        public HealthCheck.TlsOptions.Builder addAlpnProtocolsBytes​(com.google.protobuf.ByteString value)
         Specifies the ALPN protocols for health check connections. This is useful if the
         corresponding upstream is using ALPN-based :ref:`FilterChainMatch
         <envoy_api_msg_listener.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.
      • setUnknownFields

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

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