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.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
,java.lang.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 typegrpc.channelz.v1.SocketOption
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.protobuf.Any
additional_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder>
additionalBuilder_
private int
bitField0_
private java.lang.Object
name_
private java.lang.Object
value_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketOption
build()
SocketOption
buildPartial()
private void
buildPartial0(SocketOption result)
SocketOption.Builder
clear()
SocketOption.Builder
clearAdditional()
Additional data associated with the socket option.SocketOption.Builder
clearName()
The full name of the socket option.SocketOption.Builder
clearValue()
The human readable value of this socket option.com.google.protobuf.Any
getAdditional()
Additional data associated with the socket option.com.google.protobuf.Any.Builder
getAdditionalBuilder()
Additional data associated with the socket option.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder>
getAdditionalFieldBuilder()
Additional data associated with the socket option.com.google.protobuf.AnyOrBuilder
getAdditionalOrBuilder()
Additional data associated with the socket option.SocketOption
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getName()
The full name of the socket option.com.google.protobuf.ByteString
getNameBytes()
The full name of the socket option.java.lang.String
getValue()
The human readable value of this socket option.com.google.protobuf.ByteString
getValueBytes()
The human readable value of this socket option.boolean
hasAdditional()
Additional data associated with the socket option.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
SocketOption.Builder
mergeAdditional(com.google.protobuf.Any value)
Additional data associated with the socket option.SocketOption.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SocketOption.Builder
mergeFrom(com.google.protobuf.Message other)
SocketOption.Builder
mergeFrom(SocketOption other)
SocketOption.Builder
setAdditional(com.google.protobuf.Any value)
Additional data associated with the socket option.SocketOption.Builder
setAdditional(com.google.protobuf.Any.Builder builderForValue)
Additional data associated with the socket option.SocketOption.Builder
setName(java.lang.String value)
The full name of the socket option.SocketOption.Builder
setNameBytes(com.google.protobuf.ByteString value)
The full name of the socket option.SocketOption.Builder
setValue(java.lang.String value)
The human readable value of this socket option.SocketOption.Builder
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, 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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
name_
private java.lang.Object name_
-
value_
private java.lang.Object 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_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<SocketOption.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public SocketOption.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<SocketOption.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<SocketOption.Builder>
-
getDefaultInstanceForType
public SocketOption getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SocketOption build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SocketOption buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(SocketOption result)
-
mergeFrom
public SocketOption.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SocketOption.Builder>
-
mergeFrom
public SocketOption.Builder mergeFrom(SocketOption other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<SocketOption.Builder>
-
mergeFrom
public SocketOption.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getValue
in 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:
getValueBytes
in 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:
hasAdditional
in 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:
getAdditional
in 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:
getAdditionalOrBuilder
in interfaceSocketOptionOrBuilder
-
getAdditionalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> getAdditionalFieldBuilder()
Additional data associated with the socket option. At least one of value or additional will be set.
.google.protobuf.Any additional = 3;
-
-