public static final class SocketOptionLinger.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionLinger.Builder> implements SocketOptionLingerOrBuilder
For use with SocketOption's additional field. This is primarily used for SO_LINGER.Protobuf type
grpc.channelz.v1.SocketOptionLinger| Modifier and Type | Method and Description |
|---|---|
SocketOptionLinger.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SocketOptionLinger |
build() |
SocketOptionLinger |
buildPartial() |
SocketOptionLinger.Builder |
clear() |
SocketOptionLinger.Builder |
clearActive()
active maps to `struct linger.l_onoff`
|
SocketOptionLinger.Builder |
clearDuration()
duration maps to `struct linger.l_linger`
|
SocketOptionLinger.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SocketOptionLinger.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SocketOptionLinger.Builder |
clone() |
boolean |
getActive()
active maps to `struct linger.l_onoff`
|
SocketOptionLinger |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getDuration()
duration maps to `struct linger.l_linger`
|
com.google.protobuf.Duration.Builder |
getDurationBuilder()
duration maps to `struct linger.l_linger`
|
com.google.protobuf.DurationOrBuilder |
getDurationOrBuilder()
duration maps to `struct linger.l_linger`
|
boolean |
hasDuration()
duration maps to `struct linger.l_linger`
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SocketOptionLinger.Builder |
mergeDuration(com.google.protobuf.Duration value)
duration maps to `struct linger.l_linger`
|
SocketOptionLinger.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SocketOptionLinger.Builder |
mergeFrom(com.google.protobuf.Message other) |
SocketOptionLinger.Builder |
mergeFrom(SocketOptionLinger other) |
SocketOptionLinger.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SocketOptionLinger.Builder |
setActive(boolean value)
active maps to `struct linger.l_onoff`
|
SocketOptionLinger.Builder |
setDuration(com.google.protobuf.Duration.Builder builderForValue)
duration maps to `struct linger.l_linger`
|
SocketOptionLinger.Builder |
setDuration(com.google.protobuf.Duration value)
duration maps to `struct linger.l_linger`
|
SocketOptionLinger.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SocketOptionLinger.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SocketOptionLinger.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionLinger.Builder>public SocketOptionLinger.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionLinger.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<SocketOptionLinger.Builder>public SocketOptionLinger getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SocketOptionLinger build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SocketOptionLinger buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SocketOptionLinger.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionLinger.Builder>public SocketOptionLinger.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<SocketOptionLinger.Builder>public SocketOptionLinger.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionLinger.Builder>public SocketOptionLinger.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionLinger.Builder>public SocketOptionLinger.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<SocketOptionLinger.Builder>public SocketOptionLinger.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<SocketOptionLinger.Builder>public SocketOptionLinger.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SocketOptionLinger.Builder>public SocketOptionLinger.Builder mergeFrom(SocketOptionLinger other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionLinger.Builder>public SocketOptionLinger.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<SocketOptionLinger.Builder>IOExceptionpublic boolean getActive()
active maps to `struct linger.l_onoff`
bool active = 1;getActive in interface SocketOptionLingerOrBuilderpublic SocketOptionLinger.Builder setActive(boolean value)
active maps to `struct linger.l_onoff`
bool active = 1;value - The active to set.public SocketOptionLinger.Builder clearActive()
active maps to `struct linger.l_onoff`
bool active = 1;public boolean hasDuration()
duration maps to `struct linger.l_linger`
.google.protobuf.Duration duration = 2;hasDuration in interface SocketOptionLingerOrBuilderpublic com.google.protobuf.Duration getDuration()
duration maps to `struct linger.l_linger`
.google.protobuf.Duration duration = 2;getDuration in interface SocketOptionLingerOrBuilderpublic SocketOptionLinger.Builder setDuration(com.google.protobuf.Duration value)
duration maps to `struct linger.l_linger`
.google.protobuf.Duration duration = 2;public SocketOptionLinger.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
duration maps to `struct linger.l_linger`
.google.protobuf.Duration duration = 2;public SocketOptionLinger.Builder mergeDuration(com.google.protobuf.Duration value)
duration maps to `struct linger.l_linger`
.google.protobuf.Duration duration = 2;public SocketOptionLinger.Builder clearDuration()
duration maps to `struct linger.l_linger`
.google.protobuf.Duration duration = 2;public com.google.protobuf.Duration.Builder getDurationBuilder()
duration maps to `struct linger.l_linger`
.google.protobuf.Duration duration = 2;public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
duration maps to `struct linger.l_linger`
.google.protobuf.Duration duration = 2;getDurationOrBuilder in interface SocketOptionLingerOrBuilderpublic final SocketOptionLinger.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionLinger.Builder>public final SocketOptionLinger.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SocketOptionLinger.Builder>