public static final class SocketOption.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder> implements SocketOptionOrBuilder
Generic socket option message. This would be used to set socket options that might not exist in upstream kernels or precompiled Envoy binaries. [#next-free-field: 7]Protobuf type
envoy.config.core.v4alpha.SocketOption| Modifier and Type | Method and Description |
|---|---|
SocketOption.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SocketOption |
build() |
SocketOption |
buildPartial() |
SocketOption.Builder |
clear() |
SocketOption.Builder |
clearBufValue()
Otherwise it's a byte buffer.
|
SocketOption.Builder |
clearDescription()
An optional name to give this socket option for debugging, etc.
|
SocketOption.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SocketOption.Builder |
clearIntValue()
Because many sockopts take an int value.
|
SocketOption.Builder |
clearLevel()
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2; |
SocketOption.Builder |
clearName()
The numeric name as passed to setsockopt
int64 name = 3; |
SocketOption.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SocketOption.Builder |
clearState()
The state in which the option will be applied.
|
SocketOption.Builder |
clearValue() |
SocketOption.Builder |
clone() |
com.google.protobuf.ByteString |
getBufValue()
Otherwise it's a byte buffer.
|
SocketOption |
getDefaultInstanceForType() |
String |
getDescription()
An optional name to give this socket option for debugging, etc.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional name to give this socket option for debugging, etc.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getIntValue()
Because many sockopts take an int value.
|
long |
getLevel()
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2; |
long |
getName()
The numeric name as passed to setsockopt
int64 name = 3; |
SocketOption.SocketState |
getState()
The state in which the option will be applied.
|
int |
getStateValue()
The state in which the option will be applied.
|
SocketOption.ValueCase |
getValueCase() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SocketOption.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SocketOption.Builder |
mergeFrom(com.google.protobuf.Message other) |
SocketOption.Builder |
mergeFrom(SocketOption other) |
SocketOption.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SocketOption.Builder |
setBufValue(com.google.protobuf.ByteString value)
Otherwise it's a byte buffer.
|
SocketOption.Builder |
setDescription(String value)
An optional name to give this socket option for debugging, etc.
|
SocketOption.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional name to give this socket option for debugging, etc.
|
SocketOption.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SocketOption.Builder |
setIntValue(long value)
Because many sockopts take an int value.
|
SocketOption.Builder |
setLevel(long value)
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2; |
SocketOption.Builder |
setName(long value)
The numeric name as passed to setsockopt
int64 name = 3; |
SocketOption.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SocketOption.Builder |
setState(SocketOption.SocketState value)
The state in which the option will be applied.
|
SocketOption.Builder |
setStateValue(int value)
The state in which the option will be applied.
|
SocketOption.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public SocketOption.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public SocketOption getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SocketOption build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SocketOption buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SocketOption.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public SocketOption.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public SocketOption.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public SocketOption.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public SocketOption.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public SocketOption.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public SocketOption.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SocketOption.Builder>public SocketOption.Builder mergeFrom(SocketOption other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public SocketOption.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SocketOption.Builder>IOExceptionpublic SocketOption.ValueCase getValueCase()
getValueCase in interface SocketOptionOrBuilderpublic SocketOption.Builder clearValue()
public 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;getDescription in interface SocketOptionOrBuilderpublic 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;getDescriptionBytes in interface SocketOptionOrBuilderpublic SocketOption.Builder setDescription(String value)
An optional name to give this socket option for debugging, etc. Uniqueness is not required and no special meaning is assumed.
string description = 1;public SocketOption.Builder clearDescription()
An optional name to give this socket option for debugging, etc. Uniqueness is not required and no special meaning is assumed.
string description = 1;public SocketOption.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional name to give this socket option for debugging, etc. Uniqueness is not required and no special meaning is assumed.
string description = 1;public long getLevel()
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2;getLevel in interface SocketOptionOrBuilderpublic SocketOption.Builder setLevel(long value)
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2;public SocketOption.Builder clearLevel()
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2;public long getName()
The numeric name as passed to setsockopt
int64 name = 3;getName in interface SocketOptionOrBuilderpublic SocketOption.Builder setName(long value)
The numeric name as passed to setsockopt
int64 name = 3;public SocketOption.Builder clearName()
The numeric name as passed to setsockopt
int64 name = 3;public long getIntValue()
Because many sockopts take an int value.
int64 int_value = 4;getIntValue in interface SocketOptionOrBuilderpublic SocketOption.Builder setIntValue(long value)
Because many sockopts take an int value.
int64 int_value = 4;public SocketOption.Builder clearIntValue()
Because many sockopts take an int value.
int64 int_value = 4;public com.google.protobuf.ByteString getBufValue()
Otherwise it's a byte buffer.
bytes buf_value = 5;getBufValue in interface SocketOptionOrBuilderpublic SocketOption.Builder setBufValue(com.google.protobuf.ByteString value)
Otherwise it's a byte buffer.
bytes buf_value = 5;public SocketOption.Builder clearBufValue()
Otherwise it's a byte buffer.
bytes buf_value = 5;public 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.v4alpha.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }getStateValue in interface SocketOptionOrBuilderpublic SocketOption.Builder setStateValue(int value)
The state in which the option will be applied. When used in BindConfig STATE_PREBIND is currently the only valid value.
.envoy.config.core.v4alpha.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }public 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.v4alpha.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }getState in interface SocketOptionOrBuilderpublic SocketOption.Builder setState(SocketOption.SocketState value)
The state in which the option will be applied. When used in BindConfig STATE_PREBIND is currently the only valid value.
.envoy.config.core.v4alpha.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }public SocketOption.Builder clearState()
The state in which the option will be applied. When used in BindConfig STATE_PREBIND is currently the only valid value.
.envoy.config.core.v4alpha.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }public final SocketOption.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>public final SocketOption.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.