Class ProxyProtocolUpstreamTransport

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.transport_sockets.proxy_protocol.v3.ProxyProtocolUpstreamTransport
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ProxyProtocolUpstreamTransportOrBuilder, Serializable

public final class ProxyProtocolUpstreamTransport extends com.google.protobuf.GeneratedMessageV3 implements ProxyProtocolUpstreamTransportOrBuilder
 Configuration for PROXY protocol socket
 
Protobuf type envoy.extensions.transport_sockets.proxy_protocol.v3.ProxyProtocolUpstreamTransport
See Also:
  • Field Details

    • CONFIG_FIELD_NUMBER

      public static final int CONFIG_FIELD_NUMBER
      See Also:
    • TRANSPORT_SOCKET_FIELD_NUMBER

      public static final int TRANSPORT_SOCKET_FIELD_NUMBER
      See Also:
    • ALLOW_UNSPECIFIED_ADDRESS_FIELD_NUMBER

      public static final int ALLOW_UNSPECIFIED_ADDRESS_FIELD_NUMBER
      See Also:
    • TLV_AS_POOL_KEY_FIELD_NUMBER

      public static final int TLV_AS_POOL_KEY_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • hasConfig

      public boolean hasConfig()
       The PROXY protocol settings
       
      .envoy.config.core.v3.ProxyProtocolConfig config = 1;
      Specified by:
      hasConfig in interface ProxyProtocolUpstreamTransportOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public ProxyProtocolConfig getConfig()
       The PROXY protocol settings
       
      .envoy.config.core.v3.ProxyProtocolConfig config = 1;
      Specified by:
      getConfig in interface ProxyProtocolUpstreamTransportOrBuilder
      Returns:
      The config.
    • getConfigOrBuilder

      public ProxyProtocolConfigOrBuilder getConfigOrBuilder()
       The PROXY protocol settings
       
      .envoy.config.core.v3.ProxyProtocolConfig config = 1;
      Specified by:
      getConfigOrBuilder in interface ProxyProtocolUpstreamTransportOrBuilder
    • hasTransportSocket

      public boolean hasTransportSocket()
       The underlying transport socket being wrapped.
       
      .envoy.config.core.v3.TransportSocket transport_socket = 2 [(.validate.rules) = { ... }
      Specified by:
      hasTransportSocket in interface ProxyProtocolUpstreamTransportOrBuilder
      Returns:
      Whether the transportSocket field is set.
    • getTransportSocket

      public TransportSocket getTransportSocket()
       The underlying transport socket being wrapped.
       
      .envoy.config.core.v3.TransportSocket transport_socket = 2 [(.validate.rules) = { ... }
      Specified by:
      getTransportSocket in interface ProxyProtocolUpstreamTransportOrBuilder
      Returns:
      The transportSocket.
    • getTransportSocketOrBuilder

      public TransportSocketOrBuilder getTransportSocketOrBuilder()
       The underlying transport socket being wrapped.
       
      .envoy.config.core.v3.TransportSocket transport_socket = 2 [(.validate.rules) = { ... }
      Specified by:
      getTransportSocketOrBuilder in interface ProxyProtocolUpstreamTransportOrBuilder
    • getAllowUnspecifiedAddress

      public boolean getAllowUnspecifiedAddress()
       If this is set to true, the null addresses are allowed in the PROXY protocol header.
       The proxy protocol header encodes the null addresses to AF_UNSPEC.
       [#not-implemented-hide:]
       
      bool allow_unspecified_address = 3;
      Specified by:
      getAllowUnspecifiedAddress in interface ProxyProtocolUpstreamTransportOrBuilder
      Returns:
      The allowUnspecifiedAddress.
    • getTlvAsPoolKey

      public boolean getTlvAsPoolKey()
       If true, all the TLVs are encoded in the connection pool key.
       [#not-implemented-hide:]
       
      bool tlv_as_pool_key = 4;
      Specified by:
      getTlvAsPoolKey in interface ProxyProtocolUpstreamTransportOrBuilder
      Returns:
      The tlvAsPoolKey.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProxyProtocolUpstreamTransport parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProxyProtocolUpstreamTransport parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProxyProtocolUpstreamTransport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ProxyProtocolUpstreamTransport.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ProxyProtocolUpstreamTransport.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ProxyProtocolUpstreamTransport.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ProxyProtocolUpstreamTransport getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ProxyProtocolUpstreamTransport> parser()
    • getParserForType

      public com.google.protobuf.Parser<ProxyProtocolUpstreamTransport> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public ProxyProtocolUpstreamTransport getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder