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:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,SocketOptionOrBuilder
,Cloneable
- Enclosing class:
- SocketOption
public static final class SocketOption.Builder extends 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
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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
-
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
clear
public SocketOption.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
getDefaultInstanceForType
public SocketOption getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public SocketOption build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public SocketOption buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public SocketOption.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
setField
public SocketOption.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
clearField
public SocketOption.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
clearOneof
public SocketOption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
setRepeatedField
public SocketOption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
addRepeatedField
public SocketOption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
mergeFrom
public SocketOption.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<SocketOption.Builder>
-
mergeFrom
public SocketOption.Builder mergeFrom(SocketOption other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
mergeFrom
public SocketOption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<SocketOption.Builder>
- Throws:
IOException
-
getName
public 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:
getName
in interfaceSocketOptionOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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:
getNameBytes
in interfaceSocketOptionOrBuilder
- Returns:
- The bytes for name.
-
setName
public SocketOption.Builder setName(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(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 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:
getValue
in interfaceSocketOptionOrBuilder
- Returns:
- The value.
-
getValueBytes
public 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:
getValueBytes
in interfaceSocketOptionOrBuilder
- Returns:
- The bytes for value.
-
setValue
public SocketOption.Builder setValue(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(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:
hasAdditional
in interfaceSocketOptionOrBuilder
- Returns:
- Whether the additional field is set.
-
getAdditional
public 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:
getAdditional
in interfaceSocketOptionOrBuilder
- Returns:
- The additional.
-
setAdditional
public SocketOption.Builder setAdditional(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(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(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 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 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:
getAdditionalOrBuilder
in interfaceSocketOptionOrBuilder
-
setUnknownFields
public final SocketOption.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
mergeUnknownFields
public final SocketOption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<SocketOption.Builder>
-
-