public static final class Base.SocketOption.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Base.SocketOption.Builder> implements Base.SocketOptionOrBuilder
Generic socket option message. This would be used to set socket options that might not exist in upstream kernels or precompiled Envoy binaries.
Protobuf type envoy.api.v2.core.SocketOption
| Modifier and Type | Method and Description |
|---|---|
Base.SocketOption.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Base.SocketOption |
build() |
Base.SocketOption |
buildPartial() |
Base.SocketOption.Builder |
clear() |
Base.SocketOption.Builder |
clearBufValue()
Otherwise it's a byte buffer.
|
Base.SocketOption.Builder |
clearDescription()
An optional name to give this socket option for debugging, etc.
|
Base.SocketOption.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Base.SocketOption.Builder |
clearIntValue()
Because many sockopts take an int value.
|
Base.SocketOption.Builder |
clearLevel()
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
|
Base.SocketOption.Builder |
clearName()
The numeric name as passed to setsockopt
|
Base.SocketOption.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Base.SocketOption.Builder |
clearState()
The state in which the option will be applied.
|
Base.SocketOption.Builder |
clearValue() |
Base.SocketOption.Builder |
clone() |
com.google.protobuf.ByteString |
getBufValue()
Otherwise it's a byte buffer.
|
Base.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
|
long |
getName()
The numeric name as passed to setsockopt
|
Base.SocketOption.SocketState |
getState()
The state in which the option will be applied.
|
int |
getStateValue()
The state in which the option will be applied.
|
Base.SocketOption.ValueCase |
getValueCase() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Base.SocketOption.Builder |
mergeFrom(Base.SocketOption other) |
Base.SocketOption.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Base.SocketOption.Builder |
mergeFrom(com.google.protobuf.Message other) |
Base.SocketOption.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Base.SocketOption.Builder |
setBufValue(com.google.protobuf.ByteString value)
Otherwise it's a byte buffer.
|
Base.SocketOption.Builder |
setDescription(String value)
An optional name to give this socket option for debugging, etc.
|
Base.SocketOption.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional name to give this socket option for debugging, etc.
|
Base.SocketOption.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Base.SocketOption.Builder |
setIntValue(long value)
Because many sockopts take an int value.
|
Base.SocketOption.Builder |
setLevel(long value)
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
|
Base.SocketOption.Builder |
setName(long value)
The numeric name as passed to setsockopt
|
Base.SocketOption.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Base.SocketOption.Builder |
setState(Base.SocketOption.SocketState value)
The state in which the option will be applied.
|
Base.SocketOption.Builder |
setStateValue(int value)
The state in which the option will be applied.
|
Base.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<Base.SocketOption.Builder>public Base.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<Base.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<Base.SocketOption.Builder>public Base.SocketOption getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Base.SocketOption build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Base.SocketOption buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Base.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<Base.SocketOption.Builder>public Base.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<Base.SocketOption.Builder>public Base.SocketOption.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Base.SocketOption.Builder>public Base.SocketOption.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Base.SocketOption.Builder>public Base.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<Base.SocketOption.Builder>public Base.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<Base.SocketOption.Builder>public Base.SocketOption.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Base.SocketOption.Builder>public Base.SocketOption.Builder mergeFrom(Base.SocketOption other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Base.SocketOption.Builder>public Base.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<Base.SocketOption.Builder>IOExceptionpublic Base.SocketOption.ValueCase getValueCase()
getValueCase in interface Base.SocketOptionOrBuilderpublic Base.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 Base.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 Base.SocketOptionOrBuilderpublic Base.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 Base.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 Base.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 Base.SocketOptionOrBuilderpublic Base.SocketOption.Builder setLevel(long value)
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2;public Base.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 Base.SocketOptionOrBuilderpublic Base.SocketOption.Builder setName(long value)
The numeric name as passed to setsockopt
int64 name = 3;public Base.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 Base.SocketOptionOrBuilderpublic Base.SocketOption.Builder setIntValue(long value)
Because many sockopts take an int value.
int64 int_value = 4;public Base.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 Base.SocketOptionOrBuilderpublic Base.SocketOption.Builder setBufValue(com.google.protobuf.ByteString value)
Otherwise it's a byte buffer.
bytes buf_value = 5;public Base.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.api.v2.core.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }getStateValue in interface Base.SocketOptionOrBuilderpublic Base.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.api.v2.core.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }public Base.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.api.v2.core.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }getState in interface Base.SocketOptionOrBuilderpublic Base.SocketOption.Builder setState(Base.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.api.v2.core.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }public Base.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.api.v2.core.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }public final Base.SocketOption.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Base.SocketOption.Builder>public final Base.SocketOption.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Base.SocketOption.Builder>Copyright © 2019 WSO2. All rights reserved.