Class SocketOption.SocketType

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.config.core.v3.SocketOption.SocketType
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SocketOption.SocketTypeOrBuilder, Serializable
Enclosing class:
SocketOption

public static final class SocketOption.SocketType extends com.google.protobuf.GeneratedMessageV3 implements SocketOption.SocketTypeOrBuilder
 The `socket type <https://linux.die.net/man/2/socket>`_ to apply the socket option to.
 Only one field should be set. If multiple fields are set, the precedence order will determine
 the selected one. If none of the fields is set, the socket option will be applied to all socket types.

 For example:
 If :ref:`stream <envoy_v3_api_field_config.core.v3.SocketOption.SocketType.stream>` is set,
 it takes precedence over :ref:`datagram <envoy_v3_api_field_config.core.v3.SocketOption.SocketType.datagram>`.
 
Protobuf type envoy.config.core.v3.SocketOption.SocketType
See Also:
  • Field Details

  • 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
    • hasStream

      public boolean hasStream()
       Apply the socket option to the stream socket type.
       
      .envoy.config.core.v3.SocketOption.SocketType.Stream stream = 1;
      Specified by:
      hasStream in interface SocketOption.SocketTypeOrBuilder
      Returns:
      Whether the stream field is set.
    • getStream

      public SocketOption.SocketType.Stream getStream()
       Apply the socket option to the stream socket type.
       
      .envoy.config.core.v3.SocketOption.SocketType.Stream stream = 1;
      Specified by:
      getStream in interface SocketOption.SocketTypeOrBuilder
      Returns:
      The stream.
    • getStreamOrBuilder

      public SocketOption.SocketType.StreamOrBuilder getStreamOrBuilder()
       Apply the socket option to the stream socket type.
       
      .envoy.config.core.v3.SocketOption.SocketType.Stream stream = 1;
      Specified by:
      getStreamOrBuilder in interface SocketOption.SocketTypeOrBuilder
    • hasDatagram

      public boolean hasDatagram()
       Apply the socket option to the datagram socket type.
       
      .envoy.config.core.v3.SocketOption.SocketType.Datagram datagram = 2;
      Specified by:
      hasDatagram in interface SocketOption.SocketTypeOrBuilder
      Returns:
      Whether the datagram field is set.
    • getDatagram

      public SocketOption.SocketType.Datagram getDatagram()
       Apply the socket option to the datagram socket type.
       
      .envoy.config.core.v3.SocketOption.SocketType.Datagram datagram = 2;
      Specified by:
      getDatagram in interface SocketOption.SocketTypeOrBuilder
      Returns:
      The datagram.
    • getDatagramOrBuilder

      public SocketOption.SocketType.DatagramOrBuilder getDatagramOrBuilder()
       Apply the socket option to the datagram socket type.
       
      .envoy.config.core.v3.SocketOption.SocketType.Datagram datagram = 2;
      Specified by:
      getDatagramOrBuilder in interface SocketOption.SocketTypeOrBuilder
    • 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 SocketOption.SocketType parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static SocketOption.SocketType parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static SocketOption.SocketType parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static SocketOption.SocketType.Builder newBuilder()
    • newBuilder

      public static SocketOption.SocketType.Builder newBuilder(SocketOption.SocketType prototype)
    • toBuilder

      public SocketOption.SocketType.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static SocketOption.SocketType getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<SocketOption.SocketType> 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 SocketOption.SocketType getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder