Package io.grpc.channelz.v1
Interface Address.TcpIpAddressOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Address.TcpIpAddress
,Address.TcpIpAddress.Builder
- Enclosing class:
Address
public static interface Address.TcpIpAddressOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteString
Either the IPv4 or IPv6 address in bytes.int
getPort()
0-64k, or -1 if not appropriate.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getIpAddress
com.google.protobuf.ByteString getIpAddress()Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16 bytes in length.
bytes ip_address = 1;
- Returns:
- The ipAddress.
-
getPort
int getPort()0-64k, or -1 if not appropriate.
int32 port = 2;
- Returns:
- The port.
-