Package io.grpc.channelz.v1
Class Socket
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.channelz.v1.Socket
-
- All Implemented Interfaces:
Message
,MessageLite
,MessageLiteOrBuilder
,MessageOrBuilder
,SocketOrBuilder
,Serializable
public final class Socket extends GeneratedMessageV3 implements SocketOrBuilder
Information about an actual connection. Pronounced "sock-ay".
Protobuf typegrpc.channelz.v1.Socket
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Socket.Builder
Information about an actual connection.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, GeneratedMessageV3.ExtendableMessage<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static int
DATA_FIELD_NUMBER
static int
LOCAL_FIELD_NUMBER
static int
REF_FIELD_NUMBER
static int
REMOTE_FIELD_NUMBER
static int
REMOTE_NAME_FIELD_NUMBER
static int
SECURITY_FIELD_NUMBER
-
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
SocketData
getData()
Data specific to this Socket.SocketDataOrBuilder
getDataOrBuilder()
Data specific to this Socket.static Socket
getDefaultInstance()
Socket
getDefaultInstanceForType()
static Descriptors.Descriptor
getDescriptor()
Address
getLocal()
The locally bound address.AddressOrBuilder
getLocalOrBuilder()
The locally bound address.Parser<Socket>
getParserForType()
SocketRef
getRef()
The identifier for the Socket.SocketRefOrBuilder
getRefOrBuilder()
The identifier for the Socket.Address
getRemote()
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.SecurityOrBuilder
getSecurityOrBuilder()
Security details for this socket.int
getSerializedSize()
boolean
hasData()
Data specific to this Socket.int
hashCode()
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()
static Socket.Builder
newBuilder()
static Socket.Builder
newBuilder(Socket prototype)
Socket.Builder
newBuilderForType()
protected Socket.Builder
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
static Socket
parseDelimitedFrom(InputStream input)
static Socket
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
static Socket
parseFrom(byte[] data)
static Socket
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
static Socket
parseFrom(ByteString data)
static Socket
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static Socket
parseFrom(CodedInputStream input)
static Socket
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
static Socket
parseFrom(InputStream input)
static Socket
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
static Socket
parseFrom(ByteBuffer data)
static Socket
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
static Parser<Socket>
parser()
Socket.Builder
toBuilder()
void
writeTo(CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Field Detail
-
REF_FIELD_NUMBER
public static final int REF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCAL_FIELD_NUMBER
public static final int LOCAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REMOTE_FIELD_NUMBER
public static final int REMOTE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECURITY_FIELD_NUMBER
public static final int SECURITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REMOTE_NAME_FIELD_NUMBER
public static final int REMOTE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classGeneratedMessageV3
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3
-
writeTo
public void writeTo(CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfaceMessageLite
- Overrides:
writeTo
in classGeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfaceMessageLite
- Overrides:
getSerializedSize
in classGeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceMessage
- Overrides:
equals
in classAbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceMessage
- Overrides:
hashCode
in classAbstractMessage
-
parseFrom
public static Socket parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Socket parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Socket parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Socket parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Socket parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Socket parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Socket parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Socket parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Socket parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Socket parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Socket parseFrom(CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Socket parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Socket.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfaceMessage
- Specified by:
newBuilderForType
in interfaceMessageLite
-
newBuilder
public static Socket.Builder newBuilder()
-
newBuilder
public static Socket.Builder newBuilder(Socket prototype)
-
toBuilder
public Socket.Builder toBuilder()
- Specified by:
toBuilder
in interfaceMessage
- Specified by:
toBuilder
in interfaceMessageLite
-
newBuilderForType
protected Socket.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classGeneratedMessageV3
-
getDefaultInstance
public static Socket getDefaultInstance()
-
getParserForType
public Parser<Socket> getParserForType()
- Specified by:
getParserForType
in interfaceMessage
- Specified by:
getParserForType
in interfaceMessageLite
- Overrides:
getParserForType
in classGeneratedMessageV3
-
getDefaultInstanceForType
public Socket getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
-