Class SocketOption.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SocketOption.Builder>
com.google.protobuf.GeneratedMessage.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, Cloneable
- Enclosing class:
SocketOption
public static final class SocketOption.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SocketOption.Builder>
implements SocketOptionOrBuilder
SocketOption represents socket options for a socket. Specifically, these are the options returned by getsockopt().Protobuf type
grpc.channelz.v1.SocketOption-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(SocketOption result) clear()Additional data associated with the socket option.The full name of the socket option.The human readable value of this socket option.com.google.protobuf.AnyAdditional data associated with the socket option.com.google.protobuf.Any.BuilderAdditional data associated with the socket option.com.google.protobuf.AnyOrBuilderAdditional data associated with the socket option.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The full name of the socket option.com.google.protobuf.ByteStringThe full name of the socket option.getValue()The human readable value of this socket option.com.google.protobuf.ByteStringThe human readable value of this socket option.booleanAdditional data associated with the socket option.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> Additional data associated with the socket option.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanprivate voidmergeAdditional(com.google.protobuf.Any value) Additional data associated with the socket option.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(SocketOption other) setAdditional(com.google.protobuf.Any value) Additional data associated with the socket option.setAdditional(com.google.protobuf.Any.Builder builderForValue) Additional data associated with the socket option.The full name of the socket option.setNameBytes(com.google.protobuf.ByteString value) The full name of the socket option.The human readable value of this socket option.setValueBytes(com.google.protobuf.ByteString value) The human readable value of this socket option.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
name_
-
value_
-
additional_
private com.google.protobuf.Any additional_ -
additionalBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> additionalBuilder_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SocketOption.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<SocketOption.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SocketOption.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
-
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
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
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
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
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
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
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
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
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3; -
setAdditional
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3; -
mergeAdditional
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3; -
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
-
internalGetAdditionalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> internalGetAdditionalFieldBuilder()Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;
-