Documentation ¶
Index ¶
- Variables
- type Capabilities
- func (*Capabilities) Descriptor() ([]byte, []int)deprecated
- func (x *Capabilities) GetFeatures() []string
- func (x *Capabilities) GetNode() string
- func (x *Capabilities) GetVer() string
- func (c *Capabilities) HasFeature(f string) bool
- func (x *Capabilities) MarshalBinary() (data []byte, err error)
- func (*Capabilities) ProtoMessage()
- func (x *Capabilities) ProtoReflect() protoreflect.Message
- func (x *Capabilities) Reset()
- func (x *Capabilities) String() string
- func (x *Capabilities) UnmarshalBinary(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_model_v1_caps_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
type Capabilities struct { Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` Ver string `protobuf:"bytes,2,opt,name=ver,proto3" json:"ver,omitempty"` Features []string `protobuf:"bytes,3,rep,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
Capabilities represents presence capabilities info.
func (*Capabilities) Descriptor
deprecated
added in
v0.56.0
func (*Capabilities) Descriptor() ([]byte, []int)
Deprecated: Use Capabilities.ProtoReflect.Descriptor instead.
func (*Capabilities) GetFeatures ¶ added in v0.56.0
func (x *Capabilities) GetFeatures() []string
func (*Capabilities) GetNode ¶ added in v0.56.0
func (x *Capabilities) GetNode() string
func (*Capabilities) GetVer ¶ added in v0.56.0
func (x *Capabilities) GetVer() string
func (*Capabilities) HasFeature ¶
func (c *Capabilities) HasFeature(f string) bool
HasFeature returns whether a Capabilities instance contains f feature.
func (*Capabilities) MarshalBinary ¶ added in v0.58.0
func (x *Capabilities) MarshalBinary() (data []byte, err error)
MarshalBinary satisfies encoding.BinaryMarshaler interface.
func (*Capabilities) ProtoMessage ¶ added in v0.56.0
func (*Capabilities) ProtoMessage()
func (*Capabilities) ProtoReflect ¶ added in v0.56.0
func (x *Capabilities) ProtoReflect() protoreflect.Message
func (*Capabilities) Reset ¶ added in v0.56.0
func (x *Capabilities) Reset()
func (*Capabilities) String ¶ added in v0.56.0
func (x *Capabilities) String() string
func (*Capabilities) UnmarshalBinary ¶ added in v0.58.0
func (x *Capabilities) UnmarshalBinary(data []byte) error
UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.