public static final class ChannelRef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChannelRef.Builder> implements ChannelRefOrBuilder
ChannelRef is a reference to a Channel.Protobuf type
grpc.channelz.v1.ChannelRef| Modifier and Type | Method and Description |
|---|---|
ChannelRef |
build() |
ChannelRef |
buildPartial() |
ChannelRef.Builder |
clear() |
ChannelRef.Builder |
clearChannelId()
The globally unique id for this channel.
|
ChannelRef.Builder |
clearName()
An optional name associated with the channel.
|
long |
getChannelId()
The globally unique id for this channel.
|
ChannelRef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
An optional name associated with the channel.
|
com.google.protobuf.ByteString |
getNameBytes()
An optional name associated with the channel.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ChannelRef.Builder |
mergeFrom(ChannelRef other) |
ChannelRef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ChannelRef.Builder |
mergeFrom(com.google.protobuf.Message other) |
ChannelRef.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ChannelRef.Builder |
setChannelId(long value)
The globally unique id for this channel.
|
ChannelRef.Builder |
setName(String value)
An optional name associated with the channel.
|
ChannelRef.Builder |
setNameBytes(com.google.protobuf.ByteString value)
An optional name associated with the channel.
|
ChannelRef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelRef.Builder>public ChannelRef.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelRef.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelRef.Builder>public ChannelRef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ChannelRef build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ChannelRef buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ChannelRef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChannelRef.Builder>public ChannelRef.Builder mergeFrom(ChannelRef other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelRef.Builder>public ChannelRef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChannelRef.Builder>IOExceptionpublic long getChannelId()
The globally unique id for this channel. Must be a positive number.
int64 channel_id = 1;getChannelId in interface ChannelRefOrBuilderpublic ChannelRef.Builder setChannelId(long value)
The globally unique id for this channel. Must be a positive number.
int64 channel_id = 1;value - The channelId to set.public ChannelRef.Builder clearChannelId()
The globally unique id for this channel. Must be a positive number.
int64 channel_id = 1;public String getName()
An optional name associated with the channel.
string name = 2;getName in interface ChannelRefOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
An optional name associated with the channel.
string name = 2;getNameBytes in interface ChannelRefOrBuilderpublic ChannelRef.Builder setName(String value)
An optional name associated with the channel.
string name = 2;value - The name to set.public ChannelRef.Builder clearName()
An optional name associated with the channel.
string name = 2;public ChannelRef.Builder setNameBytes(com.google.protobuf.ByteString value)
An optional name associated with the channel.
string name = 2;value - The bytes for name to set.public final ChannelRef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelRef.Builder>public final ChannelRef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelRef.Builder>