Package io.envoyproxy.envoy.api.v2.core
Class SocketOption.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
- io.envoyproxy.envoy.api.v2.core.SocketOption.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SocketOptionOrBuilder,Cloneable
- Enclosing class:
- SocketOption
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 typeenvoy.api.v2.core.SocketOption
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketOption.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SocketOptionbuild()SocketOptionbuildPartial()SocketOption.Builderclear()SocketOption.BuilderclearBufValue()Otherwise it's a byte buffer.SocketOption.BuilderclearDescription()An optional name to give this socket option for debugging, etc.SocketOption.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SocketOption.BuilderclearIntValue()Because many sockopts take an int value.SocketOption.BuilderclearLevel()Corresponding to the level value passed to setsockopt, such as IPPROTO_TCPSocketOption.BuilderclearName()The numeric name as passed to setsockoptSocketOption.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SocketOption.BuilderclearState()The state in which the option will be applied.SocketOption.BuilderclearValue()SocketOption.Builderclone()com.google.protobuf.ByteStringgetBufValue()Otherwise it's a byte buffer.SocketOptiongetDefaultInstanceForType()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.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SocketOption.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SocketOption.BuildermergeFrom(com.google.protobuf.Message other)SocketOption.BuildermergeFrom(SocketOption other)SocketOption.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SocketOption.BuildersetBufValue(com.google.protobuf.ByteString value)Otherwise it's a byte buffer.SocketOption.BuildersetDescription(String value)An optional name to give this socket option for debugging, etc.SocketOption.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)An optional name to give this socket option for debugging, etc.SocketOption.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SocketOption.BuildersetIntValue(long value)Because many sockopts take an int value.SocketOption.BuildersetLevel(long value)Corresponding to the level value passed to setsockopt, such as IPPROTO_TCPSocketOption.BuildersetName(long value)The numeric name as passed to setsockoptSocketOption.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SocketOption.BuildersetState(SocketOption.SocketState value)The state in which the option will be applied.SocketOption.BuildersetStateValue(int value)The state in which the option will be applied.SocketOption.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
clear
public SocketOption.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
getDefaultInstanceForType
public SocketOption getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SocketOption build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SocketOption buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SocketOption.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
setField
public SocketOption.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
clearField
public SocketOption.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
clearOneof
public SocketOption.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
setRepeatedField
public SocketOption.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
addRepeatedField
public SocketOption.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
mergeFrom
public SocketOption.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SocketOption.Builder>
-
mergeFrom
public SocketOption.Builder mergeFrom(SocketOption other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
mergeFrom
public SocketOption.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SocketOption.Builder>- Throws:
IOException
-
getValueCase
public SocketOption.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceSocketOptionOrBuilder
-
clearValue
public SocketOption.Builder clearValue()
-
getDescription
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;- Specified by:
getDescriptionin interfaceSocketOptionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public 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;- Specified by:
getDescriptionBytesin interfaceSocketOptionOrBuilder- Returns:
- The bytes for description.
-
setDescription
public 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;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
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;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getLevel
public long getLevel()
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2;- Specified by:
getLevelin interfaceSocketOptionOrBuilder- Returns:
- The level.
-
setLevel
public SocketOption.Builder setLevel(long value)
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2;- Parameters:
value- The level to set.- Returns:
- This builder for chaining.
-
clearLevel
public SocketOption.Builder clearLevel()
Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
int64 level = 2;- Returns:
- This builder for chaining.
-
getName
public long getName()
The numeric name as passed to setsockopt
int64 name = 3;- Specified by:
getNamein interfaceSocketOptionOrBuilder- Returns:
- The name.
-
setName
public SocketOption.Builder setName(long value)
The numeric name as passed to setsockopt
int64 name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public SocketOption.Builder clearName()
The numeric name as passed to setsockopt
int64 name = 3;- Returns:
- This builder for chaining.
-
hasIntValue
public boolean hasIntValue()
Because many sockopts take an int value.
int64 int_value = 4;- Specified by:
hasIntValuein interfaceSocketOptionOrBuilder- Returns:
- Whether the intValue field is set.
-
getIntValue
public long getIntValue()
Because many sockopts take an int value.
int64 int_value = 4;- Specified by:
getIntValuein interfaceSocketOptionOrBuilder- Returns:
- The intValue.
-
setIntValue
public SocketOption.Builder setIntValue(long value)
Because many sockopts take an int value.
int64 int_value = 4;- Parameters:
value- The intValue to set.- Returns:
- This builder for chaining.
-
clearIntValue
public SocketOption.Builder clearIntValue()
Because many sockopts take an int value.
int64 int_value = 4;- Returns:
- This builder for chaining.
-
hasBufValue
public boolean hasBufValue()
Otherwise it's a byte buffer.
bytes buf_value = 5;- Specified by:
hasBufValuein interfaceSocketOptionOrBuilder- Returns:
- Whether the bufValue field is set.
-
getBufValue
public com.google.protobuf.ByteString getBufValue()
Otherwise it's a byte buffer.
bytes buf_value = 5;- Specified by:
getBufValuein interfaceSocketOptionOrBuilder- Returns:
- The bufValue.
-
setBufValue
public SocketOption.Builder setBufValue(com.google.protobuf.ByteString value)
Otherwise it's a byte buffer.
bytes buf_value = 5;- Parameters:
value- The bufValue to set.- Returns:
- This builder for chaining.
-
clearBufValue
public SocketOption.Builder clearBufValue()
Otherwise it's a byte buffer.
bytes buf_value = 5;- Returns:
- This builder for chaining.
-
getStateValue
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) = { ... }- Specified by:
getStateValuein interfaceSocketOptionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public 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) = { ... }- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
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.api.v2.core.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }- Specified by:
getStatein interfaceSocketOptionOrBuilder- Returns:
- The state.
-
setState
public 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.api.v2.core.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
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.api.v2.core.SocketOption.SocketState state = 6 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setUnknownFields
public final SocketOption.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
mergeUnknownFields
public final SocketOption.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
-