Package io.grpc.channelz.v1
Class Socket.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Socket.Builder>
-
- io.grpc.channelz.v1.Socket.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,SocketOrBuilder
,Cloneable
- Enclosing class:
- Socket
public static final class Socket.Builder extends GeneratedMessageV3.Builder<Socket.Builder> implements SocketOrBuilder
Information about an actual connection. Pronounced "sock-ay".
Protobuf typegrpc.channelz.v1.Socket
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Socket.Builder
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Socket
build()
Socket
buildPartial()
Socket.Builder
clear()
Socket.Builder
clearData()
Data specific to this Socket.Socket.Builder
clearField(Descriptors.FieldDescriptor field)
Socket.Builder
clearLocal()
The locally bound address.Socket.Builder
clearOneof(Descriptors.OneofDescriptor oneof)
Socket.Builder
clearRef()
The identifier for the Socket.Socket.Builder
clearRemote()
The remote bound address.Socket.Builder
clearRemoteName()
Optional, represents the name of the remote endpoint, if different than the original target name.Socket.Builder
clearSecurity()
Security details for this socket.Socket.Builder
clone()
SocketData
getData()
Data specific to this Socket.SocketData.Builder
getDataBuilder()
Data specific to this Socket.SocketDataOrBuilder
getDataOrBuilder()
Data specific to this Socket.Socket
getDefaultInstanceForType()
static Descriptors.Descriptor
getDescriptor()
Descriptors.Descriptor
getDescriptorForType()
Address
getLocal()
The locally bound address.Address.Builder
getLocalBuilder()
The locally bound address.AddressOrBuilder
getLocalOrBuilder()
The locally bound address.SocketRef
getRef()
The identifier for the Socket.SocketRef.Builder
getRefBuilder()
The identifier for the Socket.SocketRefOrBuilder
getRefOrBuilder()
The identifier for the Socket.Address
getRemote()
The remote bound address.Address.Builder
getRemoteBuilder()
The remote bound address.String
getRemoteName()
Optional, represents the name of the remote endpoint, if different than the original target name.ByteString
getRemoteNameBytes()
Optional, represents the name of the remote endpoint, if different than the original target name.AddressOrBuilder
getRemoteOrBuilder()
The remote bound address.Security
getSecurity()
Security details for this socket.Security.Builder
getSecurityBuilder()
Security details for this socket.SecurityOrBuilder
getSecurityOrBuilder()
Security details for this socket.boolean
hasData()
Data specific to this Socket.boolean
hasLocal()
The locally bound address.boolean
hasRef()
The identifier for the Socket.boolean
hasRemote()
The remote bound address.boolean
hasSecurity()
Security details for this socket.protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Socket.Builder
mergeData(SocketData value)
Data specific to this Socket.Socket.Builder
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Socket.Builder
mergeFrom(Message other)
Socket.Builder
mergeFrom(Socket other)
Socket.Builder
mergeLocal(Address value)
The locally bound address.Socket.Builder
mergeRef(SocketRef value)
The identifier for the Socket.Socket.Builder
mergeRemote(Address value)
The remote bound address.Socket.Builder
mergeSecurity(Security value)
Security details for this socket.Socket.Builder
mergeUnknownFields(UnknownFieldSet unknownFields)
Socket.Builder
setData(SocketData value)
Data specific to this Socket.Socket.Builder
setData(SocketData.Builder builderForValue)
Data specific to this Socket.Socket.Builder
setField(Descriptors.FieldDescriptor field, Object value)
Socket.Builder
setLocal(Address value)
The locally bound address.Socket.Builder
setLocal(Address.Builder builderForValue)
The locally bound address.Socket.Builder
setRef(SocketRef value)
The identifier for the Socket.Socket.Builder
setRef(SocketRef.Builder builderForValue)
The identifier for the Socket.Socket.Builder
setRemote(Address value)
The remote bound address.Socket.Builder
setRemote(Address.Builder builderForValue)
The remote bound address.Socket.Builder
setRemoteName(String value)
Optional, represents the name of the remote endpoint, if different than the original target name.Socket.Builder
setRemoteNameBytes(ByteString value)
Optional, represents the name of the remote endpoint, if different than the original target name.Socket.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Socket.Builder
setSecurity(Security value)
Security details for this socket.Socket.Builder
setSecurity(Security.Builder builderForValue)
Security details for this socket.Socket.Builder
setUnknownFields(UnknownFieldSet unknownFields)
-
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<Socket.Builder>
-
clear
public Socket.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<Socket.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<Socket.Builder>
-
getDefaultInstanceForType
public Socket getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public Socket build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public Socket buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public Socket.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<Socket.Builder>
-
setField
public Socket.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<Socket.Builder>
-
clearField
public Socket.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<Socket.Builder>
-
clearOneof
public Socket.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<Socket.Builder>
-
setRepeatedField
public Socket.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<Socket.Builder>
-
addRepeatedField
public Socket.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<Socket.Builder>
-
mergeFrom
public Socket.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<Socket.Builder>
-
mergeFrom
public Socket.Builder mergeFrom(Socket other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<Socket.Builder>
-
mergeFrom
public Socket.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<Socket.Builder>
- Throws:
IOException
-
hasRef
public boolean hasRef()
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
- Specified by:
hasRef
in interfaceSocketOrBuilder
- Returns:
- Whether the ref field is set.
-
getRef
public SocketRef getRef()
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
- Specified by:
getRef
in interfaceSocketOrBuilder
- Returns:
- The ref.
-
setRef
public Socket.Builder setRef(SocketRef value)
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
setRef
public Socket.Builder setRef(SocketRef.Builder builderForValue)
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
mergeRef
public Socket.Builder mergeRef(SocketRef value)
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
clearRef
public Socket.Builder clearRef()
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
getRefBuilder
public SocketRef.Builder getRefBuilder()
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
-
getRefOrBuilder
public SocketRefOrBuilder getRefOrBuilder()
The identifier for the Socket.
.grpc.channelz.v1.SocketRef ref = 1;
- Specified by:
getRefOrBuilder
in interfaceSocketOrBuilder
-
hasData
public boolean hasData()
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
- Specified by:
hasData
in interfaceSocketOrBuilder
- Returns:
- Whether the data field is set.
-
getData
public SocketData getData()
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
- Specified by:
getData
in interfaceSocketOrBuilder
- Returns:
- The data.
-
setData
public Socket.Builder setData(SocketData value)
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
setData
public Socket.Builder setData(SocketData.Builder builderForValue)
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
mergeData
public Socket.Builder mergeData(SocketData value)
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
clearData
public Socket.Builder clearData()
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
getDataBuilder
public SocketData.Builder getDataBuilder()
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
-
getDataOrBuilder
public SocketDataOrBuilder getDataOrBuilder()
Data specific to this Socket.
.grpc.channelz.v1.SocketData data = 2;
- Specified by:
getDataOrBuilder
in interfaceSocketOrBuilder
-
hasLocal
public boolean hasLocal()
The locally bound address.
.grpc.channelz.v1.Address local = 3;
- Specified by:
hasLocal
in interfaceSocketOrBuilder
- Returns:
- Whether the local field is set.
-
getLocal
public Address getLocal()
The locally bound address.
.grpc.channelz.v1.Address local = 3;
- Specified by:
getLocal
in interfaceSocketOrBuilder
- Returns:
- The local.
-
setLocal
public Socket.Builder setLocal(Address value)
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
setLocal
public Socket.Builder setLocal(Address.Builder builderForValue)
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
mergeLocal
public Socket.Builder mergeLocal(Address value)
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
clearLocal
public Socket.Builder clearLocal()
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
getLocalBuilder
public Address.Builder getLocalBuilder()
The locally bound address.
.grpc.channelz.v1.Address local = 3;
-
getLocalOrBuilder
public AddressOrBuilder getLocalOrBuilder()
The locally bound address.
.grpc.channelz.v1.Address local = 3;
- Specified by:
getLocalOrBuilder
in interfaceSocketOrBuilder
-
hasRemote
public boolean hasRemote()
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
- Specified by:
hasRemote
in interfaceSocketOrBuilder
- Returns:
- Whether the remote field is set.
-
getRemote
public Address getRemote()
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
- Specified by:
getRemote
in interfaceSocketOrBuilder
- Returns:
- The remote.
-
setRemote
public Socket.Builder setRemote(Address value)
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
setRemote
public Socket.Builder setRemote(Address.Builder builderForValue)
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
mergeRemote
public Socket.Builder mergeRemote(Address value)
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
clearRemote
public Socket.Builder clearRemote()
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
getRemoteBuilder
public Address.Builder getRemoteBuilder()
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
-
getRemoteOrBuilder
public AddressOrBuilder getRemoteOrBuilder()
The remote bound address. May be absent.
.grpc.channelz.v1.Address remote = 4;
- Specified by:
getRemoteOrBuilder
in interfaceSocketOrBuilder
-
hasSecurity
public boolean hasSecurity()
Security details for this socket. May be absent if not available, or there is no security on the socket.
.grpc.channelz.v1.Security security = 5;
- Specified by:
hasSecurity
in interfaceSocketOrBuilder
- Returns:
- Whether the security field is set.
-
getSecurity
public Security getSecurity()
Security details for this socket. May be absent if not available, or there is no security on the socket.
.grpc.channelz.v1.Security security = 5;
- Specified by:
getSecurity
in interfaceSocketOrBuilder
- Returns:
- The security.
-
setSecurity
public Socket.Builder setSecurity(Security value)
Security details for this socket. May be absent if not available, or there is no security on the socket.
.grpc.channelz.v1.Security security = 5;
-
setSecurity
public Socket.Builder setSecurity(Security.Builder builderForValue)
Security details for this socket. May be absent if not available, or there is no security on the socket.
.grpc.channelz.v1.Security security = 5;
-
mergeSecurity
public Socket.Builder mergeSecurity(Security value)
Security details for this socket. May be absent if not available, or there is no security on the socket.
.grpc.channelz.v1.Security security = 5;
-
clearSecurity
public Socket.Builder clearSecurity()
Security details for this socket. May be absent if not available, or there is no security on the socket.
.grpc.channelz.v1.Security security = 5;
-
getSecurityBuilder
public Security.Builder getSecurityBuilder()
Security details for this socket. May be absent if not available, or there is no security on the socket.
.grpc.channelz.v1.Security security = 5;
-
getSecurityOrBuilder
public SecurityOrBuilder getSecurityOrBuilder()
Security details for this socket. May be absent if not available, or there is no security on the socket.
.grpc.channelz.v1.Security security = 5;
- Specified by:
getSecurityOrBuilder
in interfaceSocketOrBuilder
-
getRemoteName
public String getRemoteName()
Optional, represents the name of the remote endpoint, if different than the original target name.
string remote_name = 6;
- Specified by:
getRemoteName
in interfaceSocketOrBuilder
- Returns:
- The remoteName.
-
getRemoteNameBytes
public ByteString getRemoteNameBytes()
Optional, represents the name of the remote endpoint, if different than the original target name.
string remote_name = 6;
- Specified by:
getRemoteNameBytes
in interfaceSocketOrBuilder
- Returns:
- The bytes for remoteName.
-
setRemoteName
public Socket.Builder setRemoteName(String value)
Optional, represents the name of the remote endpoint, if different than the original target name.
string remote_name = 6;
- Parameters:
value
- The remoteName to set.- Returns:
- This builder for chaining.
-
clearRemoteName
public Socket.Builder clearRemoteName()
Optional, represents the name of the remote endpoint, if different than the original target name.
string remote_name = 6;
- Returns:
- This builder for chaining.
-
setRemoteNameBytes
public Socket.Builder setRemoteNameBytes(ByteString value)
Optional, represents the name of the remote endpoint, if different than the original target name.
string remote_name = 6;
- Parameters:
value
- The bytes for remoteName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Socket.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<Socket.Builder>
-
mergeUnknownFields
public final Socket.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<Socket.Builder>
-
-