Class Channel.Builder

    • Method Detail

      • hasRef

        public boolean hasRef()
         The identifier for this channel. This should be set.
         
        .grpc.channelz.v1.ChannelRef ref = 1;
        Specified by:
        hasRef in interface ChannelOrBuilder
        Returns:
        Whether the ref field is set.
      • getRef

        public ChannelRef getRef()
         The identifier for this channel. This should be set.
         
        .grpc.channelz.v1.ChannelRef ref = 1;
        Specified by:
        getRef in interface ChannelOrBuilder
        Returns:
        The ref.
      • setRef

        public Channel.Builder setRef​(ChannelRef value)
         The identifier for this channel. This should be set.
         
        .grpc.channelz.v1.ChannelRef ref = 1;
      • setRef

        public Channel.Builder setRef​(ChannelRef.Builder builderForValue)
         The identifier for this channel. This should be set.
         
        .grpc.channelz.v1.ChannelRef ref = 1;
      • mergeRef

        public Channel.Builder mergeRef​(ChannelRef value)
         The identifier for this channel. This should be set.
         
        .grpc.channelz.v1.ChannelRef ref = 1;
      • clearRef

        public Channel.Builder clearRef()
         The identifier for this channel. This should be set.
         
        .grpc.channelz.v1.ChannelRef ref = 1;
      • getRefBuilder

        public ChannelRef.Builder getRefBuilder()
         The identifier for this channel. This should be set.
         
        .grpc.channelz.v1.ChannelRef ref = 1;
      • hasData

        public boolean hasData()
         Data specific to this channel.
         
        .grpc.channelz.v1.ChannelData data = 2;
        Specified by:
        hasData in interface ChannelOrBuilder
        Returns:
        Whether the data field is set.
      • getData

        public ChannelData getData()
         Data specific to this channel.
         
        .grpc.channelz.v1.ChannelData data = 2;
        Specified by:
        getData in interface ChannelOrBuilder
        Returns:
        The data.
      • setData

        public Channel.Builder setData​(ChannelData value)
         Data specific to this channel.
         
        .grpc.channelz.v1.ChannelData data = 2;
      • mergeData

        public Channel.Builder mergeData​(ChannelData value)
         Data specific to this channel.
         
        .grpc.channelz.v1.ChannelData data = 2;
      • clearData

        public Channel.Builder clearData()
         Data specific to this channel.
         
        .grpc.channelz.v1.ChannelData data = 2;
      • getDataBuilder

        public ChannelData.Builder getDataBuilder()
         Data specific to this channel.
         
        .grpc.channelz.v1.ChannelData data = 2;
      • getChannelRefList

        public List<ChannelRef> getChannelRefList()
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
        Specified by:
        getChannelRefList in interface ChannelOrBuilder
      • getChannelRefCount

        public int getChannelRefCount()
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
        Specified by:
        getChannelRefCount in interface ChannelOrBuilder
      • getChannelRef

        public ChannelRef getChannelRef​(int index)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
        Specified by:
        getChannelRef in interface ChannelOrBuilder
      • setChannelRef

        public Channel.Builder setChannelRef​(int index,
                                             ChannelRef value)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • setChannelRef

        public Channel.Builder setChannelRef​(int index,
                                             ChannelRef.Builder builderForValue)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • addChannelRef

        public Channel.Builder addChannelRef​(ChannelRef value)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • addChannelRef

        public Channel.Builder addChannelRef​(int index,
                                             ChannelRef value)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • addChannelRef

        public Channel.Builder addChannelRef​(ChannelRef.Builder builderForValue)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • addChannelRef

        public Channel.Builder addChannelRef​(int index,
                                             ChannelRef.Builder builderForValue)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • addAllChannelRef

        public Channel.Builder addAllChannelRef​(Iterable<? extends ChannelRef> values)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • clearChannelRef

        public Channel.Builder clearChannelRef()
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • removeChannelRef

        public Channel.Builder removeChannelRef​(int index)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • getChannelRefBuilder

        public ChannelRef.Builder getChannelRefBuilder​(int index)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • getChannelRefOrBuilder

        public ChannelRefOrBuilder getChannelRefOrBuilder​(int index)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
        Specified by:
        getChannelRefOrBuilder in interface ChannelOrBuilder
      • getChannelRefOrBuilderList

        public List<? extends ChannelRefOrBuilder> getChannelRefOrBuilderList()
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
        Specified by:
        getChannelRefOrBuilderList in interface ChannelOrBuilder
      • addChannelRefBuilder

        public ChannelRef.Builder addChannelRefBuilder()
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • addChannelRefBuilder

        public ChannelRef.Builder addChannelRefBuilder​(int index)
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • getChannelRefBuilderList

        public List<ChannelRef.Builder> getChannelRefBuilderList()
         There are no ordering guarantees on the order of channel refs.
         There may not be cycles in the ref graph.
         A channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
      • getSubchannelRefList

        public List<SubchannelRef> getSubchannelRefList()
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
        Specified by:
        getSubchannelRefList in interface ChannelOrBuilder
      • getSubchannelRefCount

        public int getSubchannelRefCount()
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
        Specified by:
        getSubchannelRefCount in interface ChannelOrBuilder
      • getSubchannelRef

        public SubchannelRef getSubchannelRef​(int index)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
        Specified by:
        getSubchannelRef in interface ChannelOrBuilder
      • setSubchannelRef

        public Channel.Builder setSubchannelRef​(int index,
                                                SubchannelRef value)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • setSubchannelRef

        public Channel.Builder setSubchannelRef​(int index,
                                                SubchannelRef.Builder builderForValue)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • addSubchannelRef

        public Channel.Builder addSubchannelRef​(SubchannelRef value)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • addSubchannelRef

        public Channel.Builder addSubchannelRef​(int index,
                                                SubchannelRef value)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • addSubchannelRef

        public Channel.Builder addSubchannelRef​(SubchannelRef.Builder builderForValue)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • addSubchannelRef

        public Channel.Builder addSubchannelRef​(int index,
                                                SubchannelRef.Builder builderForValue)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • addAllSubchannelRef

        public Channel.Builder addAllSubchannelRef​(Iterable<? extends SubchannelRef> values)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • clearSubchannelRef

        public Channel.Builder clearSubchannelRef()
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • removeSubchannelRef

        public Channel.Builder removeSubchannelRef​(int index)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • getSubchannelRefBuilder

        public SubchannelRef.Builder getSubchannelRefBuilder​(int index)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • getSubchannelRefOrBuilder

        public SubchannelRefOrBuilder getSubchannelRefOrBuilder​(int index)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
        Specified by:
        getSubchannelRefOrBuilder in interface ChannelOrBuilder
      • getSubchannelRefOrBuilderList

        public List<? extends SubchannelRefOrBuilder> getSubchannelRefOrBuilderList()
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
        Specified by:
        getSubchannelRefOrBuilderList in interface ChannelOrBuilder
      • addSubchannelRefBuilder

        public SubchannelRef.Builder addSubchannelRefBuilder()
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • addSubchannelRefBuilder

        public SubchannelRef.Builder addSubchannelRefBuilder​(int index)
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • getSubchannelRefBuilderList

        public List<SubchannelRef.Builder> getSubchannelRefBuilderList()
         At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
         There are no ordering guarantees on the order of subchannel refs.
         There may not be cycles in the ref graph.
         A sub channel ref may be present in more than one channel or subchannel.
         
        repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
      • getSocketRefList

        public List<SocketRef> getSocketRefList()
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
        Specified by:
        getSocketRefList in interface ChannelOrBuilder
      • getSocketRefCount

        public int getSocketRefCount()
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
        Specified by:
        getSocketRefCount in interface ChannelOrBuilder
      • getSocketRef

        public SocketRef getSocketRef​(int index)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
        Specified by:
        getSocketRef in interface ChannelOrBuilder
      • setSocketRef

        public Channel.Builder setSocketRef​(int index,
                                            SocketRef value)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • setSocketRef

        public Channel.Builder setSocketRef​(int index,
                                            SocketRef.Builder builderForValue)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • addSocketRef

        public Channel.Builder addSocketRef​(SocketRef value)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • addSocketRef

        public Channel.Builder addSocketRef​(int index,
                                            SocketRef value)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • addSocketRef

        public Channel.Builder addSocketRef​(SocketRef.Builder builderForValue)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • addSocketRef

        public Channel.Builder addSocketRef​(int index,
                                            SocketRef.Builder builderForValue)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • addAllSocketRef

        public Channel.Builder addAllSocketRef​(Iterable<? extends SocketRef> values)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • clearSocketRef

        public Channel.Builder clearSocketRef()
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • removeSocketRef

        public Channel.Builder removeSocketRef​(int index)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • getSocketRefBuilder

        public SocketRef.Builder getSocketRefBuilder​(int index)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • addSocketRefBuilder

        public SocketRef.Builder addSocketRefBuilder()
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • addSocketRefBuilder

        public SocketRef.Builder addSocketRefBuilder​(int index)
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
      • getSocketRefBuilderList

        public List<SocketRef.Builder> getSocketRefBuilderList()
         There are no ordering guarantees on the order of sockets.
         
        repeated .grpc.channelz.v1.SocketRef socket_ref = 5;