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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.ByteStringgetBufValue()Otherwise it's a byte buffer.StringgetDescription()An optional name to give this socket option for debugging, etc.com.google.protobuf.ByteStringgetDescriptionBytes()An optional name to give this socket option for debugging, etc.longgetIntValue()Because 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 setsockoptSocketOption.SocketStategetState()The state in which the option will be applied.intgetStateValue()The state in which the option will be applied.SocketOption.ValueCasegetValueCase()booleanhasBufValue()Otherwise it's a byte buffer.booleanhasIntValue()Because many sockopts take an int value.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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.
-
getValueCase
SocketOption.ValueCase getValueCase()
-
-