Class Thrift.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ThriftOrBuilder, java.lang.Cloneable
    Enclosing class:
    Thrift

    public static final class Thrift.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
    implements ThriftOrBuilder
    Protobuf type envoy.extensions.health_checkers.thrift.v3.Thrift
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Thrift.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)  
      Thrift build()  
      Thrift buildPartial()  
      Thrift.Builder clear()  
      Thrift.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      Thrift.Builder clearMethodName()
      Specifies the method name that will be set on each health check request dispatched to an upstream host.
      Thrift.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      Thrift.Builder clearProtocol()
      Configures the protocol type to be used with the health checks.
      Thrift.Builder clearTransport()
      Configures the transport type to be used with the health checks.
      Thrift.Builder clone()  
      Thrift getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      java.lang.String getMethodName()
      Specifies the method name that will be set on each health check request dispatched to an upstream host.
      com.google.protobuf.ByteString getMethodNameBytes()
      Specifies the method name that will be set on each health check request dispatched to an upstream host.
      ProtocolType getProtocol()
      Configures the protocol type to be used with the health checks.
      int getProtocolValue()
      Configures the protocol type to be used with the health checks.
      TransportType getTransport()
      Configures the transport type to be used with the health checks.
      int getTransportValue()
      Configures the transport type to be used with the health checks.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Thrift.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Thrift.Builder mergeFrom​(com.google.protobuf.Message other)  
      Thrift.Builder mergeFrom​(Thrift other)  
      Thrift.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      Thrift.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)  
      Thrift.Builder setMethodName​(java.lang.String value)
      Specifies the method name that will be set on each health check request dispatched to an upstream host.
      Thrift.Builder setMethodNameBytes​(com.google.protobuf.ByteString value)
      Specifies the method name that will be set on each health check request dispatched to an upstream host.
      Thrift.Builder setProtocol​(ProtocolType value)
      Configures the protocol type to be used with the health checks.
      Thrift.Builder setProtocolValue​(int value)
      Configures the protocol type to be used with the health checks.
      Thrift.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)  
      Thrift.Builder setTransport​(TransportType value)
      Configures the transport type to be used with the health checks.
      Thrift.Builder setTransportValue​(int value)
      Configures the transport type to be used with the health checks.
      Thrift.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, 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.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

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

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

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

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

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

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

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

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

        public Thrift.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
      • addRepeatedField

        public Thrift.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
      • mergeFrom

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

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

        public Thrift.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws java.io.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<Thrift.Builder>
        Throws:
        java.io.IOException
      • getMethodName

        public java.lang.String getMethodName()
         Specifies the method name that will be set on each health check request dispatched to an upstream host.
         Note that method name is case sensitive.
         
        string method_name = 1 [(.validate.rules) = { ... }
        Specified by:
        getMethodName in interface ThriftOrBuilder
        Returns:
        The methodName.
      • getMethodNameBytes

        public com.google.protobuf.ByteString getMethodNameBytes()
         Specifies the method name that will be set on each health check request dispatched to an upstream host.
         Note that method name is case sensitive.
         
        string method_name = 1 [(.validate.rules) = { ... }
        Specified by:
        getMethodNameBytes in interface ThriftOrBuilder
        Returns:
        The bytes for methodName.
      • setMethodName

        public Thrift.Builder setMethodName​(java.lang.String value)
         Specifies the method name that will be set on each health check request dispatched to an upstream host.
         Note that method name is case sensitive.
         
        string method_name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The methodName to set.
        Returns:
        This builder for chaining.
      • clearMethodName

        public Thrift.Builder clearMethodName()
         Specifies the method name that will be set on each health check request dispatched to an upstream host.
         Note that method name is case sensitive.
         
        string method_name = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setMethodNameBytes

        public Thrift.Builder setMethodNameBytes​(com.google.protobuf.ByteString value)
         Specifies the method name that will be set on each health check request dispatched to an upstream host.
         Note that method name is case sensitive.
         
        string method_name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for methodName to set.
        Returns:
        This builder for chaining.
      • getTransportValue

        public int getTransportValue()
         Configures the transport type to be used with the health checks. Note that
         :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`
         is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
         [#extension-category: envoy.filters.network]
         
        .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }
        Specified by:
        getTransportValue in interface ThriftOrBuilder
        Returns:
        The enum numeric value on the wire for transport.
      • setTransportValue

        public Thrift.Builder setTransportValue​(int value)
         Configures the transport type to be used with the health checks. Note that
         :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`
         is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
         [#extension-category: envoy.filters.network]
         
        .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for transport to set.
        Returns:
        This builder for chaining.
      • getTransport

        public TransportType getTransport()
         Configures the transport type to be used with the health checks. Note that
         :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`
         is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
         [#extension-category: envoy.filters.network]
         
        .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }
        Specified by:
        getTransport in interface ThriftOrBuilder
        Returns:
        The transport.
      • setTransport

        public Thrift.Builder setTransport​(TransportType value)
         Configures the transport type to be used with the health checks. Note that
         :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`
         is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
         [#extension-category: envoy.filters.network]
         
        .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }
        Parameters:
        value - The transport to set.
        Returns:
        This builder for chaining.
      • clearTransport

        public Thrift.Builder clearTransport()
         Configures the transport type to be used with the health checks. Note that
         :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`
         is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
         [#extension-category: envoy.filters.network]
         
        .envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • getProtocolValue

        public int getProtocolValue()
         Configures the protocol type to be used with the health checks. Note that
         :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`
         are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Specified by:
        getProtocolValue in interface ThriftOrBuilder
        Returns:
        The enum numeric value on the wire for protocol.
      • setProtocolValue

        public Thrift.Builder setProtocolValue​(int value)
         Configures the protocol type to be used with the health checks. Note that
         :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`
         are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for protocol to set.
        Returns:
        This builder for chaining.
      • getProtocol

        public ProtocolType getProtocol()
         Configures the protocol type to be used with the health checks. Note that
         :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`
         are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Specified by:
        getProtocol in interface ThriftOrBuilder
        Returns:
        The protocol.
      • setProtocol

        public Thrift.Builder setProtocol​(ProtocolType value)
         Configures the protocol type to be used with the health checks. Note that
         :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`
         are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public Thrift.Builder clearProtocol()
         Configures the protocol type to be used with the health checks. Note that
         :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`
         are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
         since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
         or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
         
        .envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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