Class ThriftProtocolOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ThriftProtocolOptions.Builder>
io.envoyproxy.envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftProtocolOptions.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ThriftProtocolOptionsOrBuilder, Cloneable
Enclosing class:
ThriftProtocolOptions

public static final class ThriftProtocolOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ThriftProtocolOptions.Builder> implements ThriftProtocolOptionsOrBuilder
 ThriftProtocolOptions specifies Thrift upstream protocol options. This object is used in
 in
 :ref:`typed_extension_protocol_options<envoy_api_field_Cluster.typed_extension_protocol_options>`,
 keyed by the name `envoy.filters.network.thrift_proxy`.
 
Protobuf type envoy.config.filter.network.thrift_proxy.v2alpha1.ThriftProtocolOptions
  • 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<ThriftProtocolOptions.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<ThriftProtocolOptions.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<ThriftProtocolOptions.Builder>
    • getDefaultInstanceForType

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

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

      public ThriftProtocolOptions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ThriftProtocolOptions.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public ThriftProtocolOptions.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<ThriftProtocolOptions.Builder>
      Throws:
      IOException
    • getTransportValue

      public int getTransportValue()
       Supplies the type of transport that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`,
       which is the default, causes the proxy to use the same transport as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType transport = 1 [(.validate.rules) = { ... }
      Specified by:
      getTransportValue in interface ThriftProtocolOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for transport.
    • setTransportValue

      public ThriftProtocolOptions.Builder setTransportValue(int value)
       Supplies the type of transport that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`,
       which is the default, causes the proxy to use the same transport as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType transport = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for transport to set.
      Returns:
      This builder for chaining.
    • getTransport

      public TransportType getTransport()
       Supplies the type of transport that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`,
       which is the default, causes the proxy to use the same transport as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType transport = 1 [(.validate.rules) = { ... }
      Specified by:
      getTransport in interface ThriftProtocolOptionsOrBuilder
      Returns:
      The transport.
    • setTransport

      public ThriftProtocolOptions.Builder setTransport(TransportType value)
       Supplies the type of transport that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`,
       which is the default, causes the proxy to use the same transport as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType transport = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The transport to set.
      Returns:
      This builder for chaining.
    • clearTransport

      public ThriftProtocolOptions.Builder clearTransport()
       Supplies the type of transport that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_TRANSPORT<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.TransportType.AUTO_TRANSPORT>`,
       which is the default, causes the proxy to use the same transport as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.TransportType transport = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • getProtocolValue

      public int getProtocolValue()
       Supplies the type of protocol that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`,
       which is the default, causes the proxy to use the same protocol as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 2 [(.validate.rules) = { ... }
      Specified by:
      getProtocolValue in interface ThriftProtocolOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for protocol.
    • setProtocolValue

      public ThriftProtocolOptions.Builder setProtocolValue(int value)
       Supplies the type of protocol that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`,
       which is the default, causes the proxy to use the same protocol as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for protocol to set.
      Returns:
      This builder for chaining.
    • getProtocol

      public ProtocolType getProtocol()
       Supplies the type of protocol that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`,
       which is the default, causes the proxy to use the same protocol as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 2 [(.validate.rules) = { ... }
      Specified by:
      getProtocol in interface ThriftProtocolOptionsOrBuilder
      Returns:
      The protocol.
    • setProtocol

      public ThriftProtocolOptions.Builder setProtocol(ProtocolType value)
       Supplies the type of protocol that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`,
       which is the default, causes the proxy to use the same protocol as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The protocol to set.
      Returns:
      This builder for chaining.
    • clearProtocol

      public ThriftProtocolOptions.Builder clearProtocol()
       Supplies the type of protocol that the Thrift proxy should use for upstream connections.
       Selecting
       :ref:`AUTO_PROTOCOL<envoy_api_enum_value_config.filter.network.thrift_proxy.v2alpha1.ProtocolType.AUTO_PROTOCOL>`,
       which is the default, causes the proxy to use the same protocol as the downstream connection.
       
      .envoy.config.filter.network.thrift_proxy.v2alpha1.ProtocolType protocol = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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