Interface SocketOptionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SocketOption,SocketOption.Builder
public interface SocketOptionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringOtherwise it's a byte buffer.An optional name to give this socket option for debugging, etc.com.google.protobuf.ByteStringAn optional name to give this socket option for debugging, etc.longBecause many sockopts take an int value.longgetLevel()Corresponding to the level value passed to setsockopt, such as IPPROTO_TCPlonggetName()The numeric name as passed to setsockoptgetState()The state in which the option will be applied.intThe state in which the option will be applied.getType()Apply the socket option to the specified `socket type <https://linux.die.net/man/2/socket>`_.Apply the socket option to the specified `socket type <https://linux.die.net/man/2/socket>`_.booleanOtherwise it's a byte buffer.booleanBecause many sockopts take an int value.booleanhasType()Apply the socket option to the specified `socket type <https://linux.die.net/man/2/socket>`_.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescription
String getDescription()An optional name to give this socket option for debugging, etc. Uniqueness is not required and no special meaning is assumed.
string description = 1;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()An optional name to give this socket option for debugging, etc. Uniqueness is not required and no special meaning is assumed.
string description = 1;- Returns:
- The bytes for description.
-
getLevel
long getLevel()Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2;- Returns:
- The level.
-
getName
long getName()The numeric name as passed to setsockopt
int64 name = 3;- Returns:
- The name.
-
hasIntValue
boolean hasIntValue()Because many sockopts take an int value.
int64 int_value = 4;- Returns:
- Whether the intValue field is set.
-
getIntValue
long getIntValue()Because many sockopts take an int value.
int64 int_value = 4;- Returns:
- The intValue.
-
hasBufValue
boolean hasBufValue()Otherwise it's a byte buffer.
bytes buf_value = 5;- Returns:
- Whether the bufValue field is set.
-
getBufValue
com.google.protobuf.ByteString getBufValue()Otherwise it's a byte buffer.
bytes buf_value = 5;- Returns:
- The bufValue.
-
getStateValue
int getStateValue()The state in which the option will be applied. When used in BindConfig STATE_PREBIND is currently the only valid value.
.envoy.config.core.v3.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }- Returns:
- The enum numeric value on the wire for state.
-
getState
SocketOption.SocketState getState()The state in which the option will be applied. When used in BindConfig STATE_PREBIND is currently the only valid value.
.envoy.config.core.v3.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }- Returns:
- The state.
-
hasType
boolean hasType()Apply the socket option to the specified `socket type <https://linux.die.net/man/2/socket>`_. If not specified, the socket option will be applied to all socket types.
.envoy.config.core.v3.SocketOption.SocketType type = 7;- Returns:
- Whether the type field is set.
-
getType
SocketOption.SocketType getType()Apply the socket option to the specified `socket type <https://linux.die.net/man/2/socket>`_. If not specified, the socket option will be applied to all socket types.
.envoy.config.core.v3.SocketOption.SocketType type = 7;- Returns:
- The type.
-
getTypeOrBuilder
SocketOption.SocketTypeOrBuilder getTypeOrBuilder()Apply the socket option to the specified `socket type <https://linux.die.net/man/2/socket>`_. If not specified, the socket option will be applied to all socket types.
.envoy.config.core.v3.SocketOption.SocketType type = 7; -
getValueCase
SocketOption.ValueCase getValueCase()
-