Package io.grpc.channelz.v1
Interface ChannelRefOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ChannelRef
,ChannelRef.Builder
public interface ChannelRefOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong
The globally unique id for this channel.getName()
An optional name associated with the channel.com.google.protobuf.ByteString
An optional name associated with the channel.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
-
getChannelId
long getChannelId()The globally unique id for this channel. Must be a positive number.
int64 channel_id = 1;
- Returns:
- The channelId.
-
getName
String getName()An optional name associated with the channel.
string name = 2;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()An optional name associated with the channel.
string name = 2;
- Returns:
- The bytes for name.
-