Package io.grpc.channelz.v1
Class SocketOption.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder>
-
- io.grpc.channelz.v1.SocketOption.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SocketOptionOrBuilder,java.lang.Cloneable
- Enclosing class:
- SocketOption
public static final class SocketOption.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SocketOption.Builder> implements SocketOptionOrBuilder
SocketOption represents socket options for a socket. Specifically, these are the options returned by getsockopt().
Protobuf typegrpc.channelz.v1.SocketOption
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketOption.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SocketOptionbuild()SocketOptionbuildPartial()SocketOption.Builderclear()SocketOption.BuilderclearAdditional()Additional data associated with the socket option.SocketOption.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SocketOption.BuilderclearName()The full name of the socket option.SocketOption.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SocketOption.BuilderclearValue()The human readable value of this socket option.SocketOption.Builderclone()com.google.protobuf.AnygetAdditional()Additional data associated with the socket option.com.google.protobuf.Any.BuildergetAdditionalBuilder()Additional data associated with the socket option.com.google.protobuf.AnyOrBuildergetAdditionalOrBuilder()Additional data associated with the socket option.SocketOptiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetName()The full name of the socket option.com.google.protobuf.ByteStringgetNameBytes()The full name of the socket option.java.lang.StringgetValue()The human readable value of this socket option.com.google.protobuf.ByteStringgetValueBytes()The human readable value of this socket option.booleanhasAdditional()Additional data associated with the socket option.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SocketOption.BuildermergeAdditional(com.google.protobuf.Any value)Additional data associated with the socket option.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.BuildersetAdditional(com.google.protobuf.Any value)Additional data associated with the socket option.SocketOption.BuildersetAdditional(com.google.protobuf.Any.Builder builderForValue)Additional data associated with the socket option.SocketOption.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SocketOption.BuildersetName(java.lang.String value)The full name of the socket option.SocketOption.BuildersetNameBytes(com.google.protobuf.ByteString value)The full name of the socket option.SocketOption.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)SocketOption.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SocketOption.BuildersetValue(java.lang.String value)The human readable value of this socket option.SocketOption.BuildersetValueBytes(com.google.protobuf.ByteString value)The human readable value of this socket option.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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, java.lang.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, java.lang.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, java.lang.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 java.io.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:
java.io.IOException
-
getName
public java.lang.String getName()
The full name of the socket option. Typically this will be the upper case name, such as "SO_REUSEPORT".
string name = 1;- Specified by:
getNamein interfaceSocketOptionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The full name of the socket option. Typically this will be the upper case name, such as "SO_REUSEPORT".
string name = 1;- Specified by:
getNameBytesin interfaceSocketOptionOrBuilder- Returns:
- The bytes for name.
-
setName
public SocketOption.Builder setName(java.lang.String value)
The full name of the socket option. Typically this will be the upper case name, such as "SO_REUSEPORT".
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public SocketOption.Builder clearName()
The full name of the socket option. Typically this will be the upper case name, such as "SO_REUSEPORT".
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public SocketOption.Builder setNameBytes(com.google.protobuf.ByteString value)
The full name of the socket option. Typically this will be the upper case name, such as "SO_REUSEPORT".
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getValue
public java.lang.String getValue()
The human readable value of this socket option. At least one of value or additional will be set.
string value = 2;- Specified by:
getValuein interfaceSocketOptionOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()
The human readable value of this socket option. At least one of value or additional will be set.
string value = 2;- Specified by:
getValueBytesin interfaceSocketOptionOrBuilder- Returns:
- The bytes for value.
-
setValue
public SocketOption.Builder setValue(java.lang.String value)
The human readable value of this socket option. At least one of value or additional will be set.
string value = 2;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public SocketOption.Builder clearValue()
The human readable value of this socket option. At least one of value or additional will be set.
string value = 2;- Returns:
- This builder for chaining.
-
setValueBytes
public SocketOption.Builder setValueBytes(com.google.protobuf.ByteString value)
The human readable value of this socket option. At least one of value or additional will be set.
string value = 2;- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
hasAdditional
public boolean hasAdditional()
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;- Specified by:
hasAdditionalin interfaceSocketOptionOrBuilder- Returns:
- Whether the additional field is set.
-
getAdditional
public com.google.protobuf.Any getAdditional()
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;- Specified by:
getAdditionalin interfaceSocketOptionOrBuilder- Returns:
- The additional.
-
setAdditional
public SocketOption.Builder setAdditional(com.google.protobuf.Any value)
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;
-
setAdditional
public SocketOption.Builder setAdditional(com.google.protobuf.Any.Builder builderForValue)
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;
-
mergeAdditional
public SocketOption.Builder mergeAdditional(com.google.protobuf.Any value)
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;
-
clearAdditional
public SocketOption.Builder clearAdditional()
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;
-
getAdditionalBuilder
public com.google.protobuf.Any.Builder getAdditionalBuilder()
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;
-
getAdditionalOrBuilder
public com.google.protobuf.AnyOrBuilder getAdditionalOrBuilder()
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;- Specified by:
getAdditionalOrBuilderin interfaceSocketOptionOrBuilder
-
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>
-
-