Help us shape the future of Go! Take the 2026 Go Developer Survey

spacewave_chat_content

package
v0.57.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatAnnotation

type ChatAnnotation struct {

	// TargetKey identifies the message receiving the annotation.
	TargetKey string `protobuf:"bytes,1,opt,name=target_key,json=targetKey,proto3" json:"targetKey,omitempty"`
	// Key is the reaction value, such as an emoji.
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

ChatAnnotation is an attributed public reaction to a channel message.

func (*ChatAnnotation) CloneMessageVT

func (m *ChatAnnotation) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ChatAnnotation) CloneVT

func (m *ChatAnnotation) CloneVT() *ChatAnnotation

func (*ChatAnnotation) EqualMessageVT

func (this *ChatAnnotation) EqualMessageVT(thatMsg any) bool

func (*ChatAnnotation) EqualVT

func (this *ChatAnnotation) EqualVT(that *ChatAnnotation) bool

func (*ChatAnnotation) GetKey

func (x *ChatAnnotation) GetKey() string

func (*ChatAnnotation) GetTargetKey

func (x *ChatAnnotation) GetTargetKey() string

func (*ChatAnnotation) MarshalJSON

func (x *ChatAnnotation) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ChatAnnotation to JSON.

func (*ChatAnnotation) MarshalProtoJSON

func (x *ChatAnnotation) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ChatAnnotation message to JSON.

func (*ChatAnnotation) MarshalProtoText

func (x *ChatAnnotation) MarshalProtoText() string

func (*ChatAnnotation) MarshalToSizedBufferVT

func (m *ChatAnnotation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatAnnotation) MarshalToVT

func (m *ChatAnnotation) MarshalToVT(dAtA []byte) (int, error)

func (*ChatAnnotation) MarshalVT

func (m *ChatAnnotation) MarshalVT() (dAtA []byte, err error)

func (*ChatAnnotation) ProtoMessage

func (*ChatAnnotation) ProtoMessage()

func (*ChatAnnotation) Reset

func (x *ChatAnnotation) Reset()

func (*ChatAnnotation) SizeVT

func (m *ChatAnnotation) SizeVT() (n int)

func (*ChatAnnotation) String

func (x *ChatAnnotation) String() string

func (*ChatAnnotation) UnmarshalJSON

func (x *ChatAnnotation) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ChatAnnotation from JSON.

func (*ChatAnnotation) UnmarshalProtoJSON

func (x *ChatAnnotation) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ChatAnnotation message from JSON.

func (*ChatAnnotation) UnmarshalVT

func (m *ChatAnnotation) UnmarshalVT(dAtA []byte) error

type ChatCiphertext

type ChatCiphertext struct {

	// Algorithm is the encryption scheme identifier, e.g. m.megolm.v1.
	Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
	// Ciphertext is the encrypted payload.
	Ciphertext string `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
	// SenderKey is the public key of the sending device.
	SenderKey string `protobuf:"bytes,3,opt,name=sender_key,json=senderKey,proto3" json:"senderKey,omitempty"`
	// SessionId identifies the encryption session.
	SessionId string `protobuf:"bytes,4,opt,name=session_id,json=sessionId,proto3" json:"sessionId,omitempty"`
	// DeviceId is the identifier of the sending device.
	DeviceId string `protobuf:"bytes,5,opt,name=device_id,json=deviceId,proto3" json:"deviceId,omitempty"`
	// Relation is public routing metadata carried beside the encrypted body.
	Relation *ChatRelation `protobuf:"bytes,6,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

ChatCiphertext is an opaque encrypted message body.

func (*ChatCiphertext) CloneMessageVT

func (m *ChatCiphertext) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ChatCiphertext) CloneVT

func (m *ChatCiphertext) CloneVT() *ChatCiphertext

func (*ChatCiphertext) EqualMessageVT

func (this *ChatCiphertext) EqualMessageVT(thatMsg any) bool

func (*ChatCiphertext) EqualVT

func (this *ChatCiphertext) EqualVT(that *ChatCiphertext) bool

func (*ChatCiphertext) GetAlgorithm

func (x *ChatCiphertext) GetAlgorithm() string

func (*ChatCiphertext) GetCiphertext

func (x *ChatCiphertext) GetCiphertext() string

func (*ChatCiphertext) GetDeviceId

func (x *ChatCiphertext) GetDeviceId() string

func (*ChatCiphertext) GetRelation

func (x *ChatCiphertext) GetRelation() *ChatRelation

func (*ChatCiphertext) GetSenderKey

func (x *ChatCiphertext) GetSenderKey() string

func (*ChatCiphertext) GetSessionId

func (x *ChatCiphertext) GetSessionId() string

func (*ChatCiphertext) MarshalJSON

func (x *ChatCiphertext) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ChatCiphertext to JSON.

func (*ChatCiphertext) MarshalProtoJSON

func (x *ChatCiphertext) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ChatCiphertext message to JSON.

func (*ChatCiphertext) MarshalProtoText

func (x *ChatCiphertext) MarshalProtoText() string

func (*ChatCiphertext) MarshalToSizedBufferVT

func (m *ChatCiphertext) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatCiphertext) MarshalToVT

func (m *ChatCiphertext) MarshalToVT(dAtA []byte) (int, error)

func (*ChatCiphertext) MarshalVT

func (m *ChatCiphertext) MarshalVT() (dAtA []byte, err error)

func (*ChatCiphertext) ProtoMessage

func (*ChatCiphertext) ProtoMessage()

func (*ChatCiphertext) Reset

func (x *ChatCiphertext) Reset()

func (*ChatCiphertext) SizeVT

func (m *ChatCiphertext) SizeVT() (n int)

func (*ChatCiphertext) String

func (x *ChatCiphertext) String() string

func (*ChatCiphertext) UnmarshalJSON

func (x *ChatCiphertext) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ChatCiphertext from JSON.

func (*ChatCiphertext) UnmarshalProtoJSON

func (x *ChatCiphertext) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ChatCiphertext message from JSON.

func (*ChatCiphertext) UnmarshalVT

func (m *ChatCiphertext) UnmarshalVT(dAtA []byte) error

type ChatEvent

type ChatEvent struct {

	// Type is an open protocol vocabulary identifying the message schema.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// ContentJson is a complete JSON object, bounded to 64 KiB.
	// The producing protocol validates its schema and canonicalizes its encoding.
	ContentJson string `protobuf:"bytes,2,opt,name=content_json,json=contentJson,proto3" json:"contentJson,omitempty"`
	// Relation is protocol-neutral routing metadata expressed in native message keys.
	Relation *ChatRelation `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

ChatEvent retains a message from an extensible external protocol.

func (*ChatEvent) CloneMessageVT

func (m *ChatEvent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ChatEvent) CloneVT

func (m *ChatEvent) CloneVT() *ChatEvent

func (*ChatEvent) EqualMessageVT

func (this *ChatEvent) EqualMessageVT(thatMsg any) bool

func (*ChatEvent) EqualVT

func (this *ChatEvent) EqualVT(that *ChatEvent) bool

func (*ChatEvent) GetContentJson

func (x *ChatEvent) GetContentJson() string

func (*ChatEvent) GetRelation

func (x *ChatEvent) GetRelation() *ChatRelation

func (*ChatEvent) GetType

func (x *ChatEvent) GetType() string

func (*ChatEvent) MarshalJSON

func (x *ChatEvent) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ChatEvent to JSON.

func (*ChatEvent) MarshalProtoJSON

func (x *ChatEvent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ChatEvent message to JSON.

func (*ChatEvent) MarshalProtoText

func (x *ChatEvent) MarshalProtoText() string

func (*ChatEvent) MarshalToSizedBufferVT

func (m *ChatEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatEvent) MarshalToVT

func (m *ChatEvent) MarshalToVT(dAtA []byte) (int, error)

func (*ChatEvent) MarshalVT

func (m *ChatEvent) MarshalVT() (dAtA []byte, err error)

func (*ChatEvent) ProtoMessage

func (*ChatEvent) ProtoMessage()

func (*ChatEvent) Reset

func (x *ChatEvent) Reset()

func (*ChatEvent) SizeVT

func (m *ChatEvent) SizeVT() (n int)

func (*ChatEvent) String

func (x *ChatEvent) String() string

func (*ChatEvent) UnmarshalJSON

func (x *ChatEvent) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ChatEvent from JSON.

func (*ChatEvent) UnmarshalProtoJSON

func (x *ChatEvent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ChatEvent message from JSON.

func (*ChatEvent) UnmarshalVT

func (m *ChatEvent) UnmarshalVT(dAtA []byte) error

func (*ChatEvent) Validate

func (e *ChatEvent) Validate() error

Validate checks the protocol type and bounded JSON body before storage.

type ChatMessageContent

type ChatMessageContent struct {

	// Types that are assignable to Content:
	//	*ChatMessageContent_Text
	//	*ChatMessageContent_Ciphertext
	//	*ChatMessageContent_Annotation
	//	*ChatMessageContent_StateChange
	//	*ChatMessageContent_Event
	//	*ChatMessageContent_Redaction
	Content isChatMessageContent_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

ChatMessageContent contains the message body.

func (*ChatMessageContent) CloneMessageVT

func (m *ChatMessageContent) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ChatMessageContent) CloneVT

func (m *ChatMessageContent) CloneVT() *ChatMessageContent

func (*ChatMessageContent) EqualMessageVT

func (this *ChatMessageContent) EqualMessageVT(thatMsg any) bool

func (*ChatMessageContent) EqualVT

func (this *ChatMessageContent) EqualVT(that *ChatMessageContent) bool

func (*ChatMessageContent) GetAnnotation

func (x *ChatMessageContent) GetAnnotation() *ChatAnnotation

func (*ChatMessageContent) GetCiphertext

func (x *ChatMessageContent) GetCiphertext() *ChatCiphertext

func (*ChatMessageContent) GetContent

func (m *ChatMessageContent) GetContent() isChatMessageContent_Content

func (*ChatMessageContent) GetEvent

func (x *ChatMessageContent) GetEvent() *ChatEvent

func (*ChatMessageContent) GetRedaction

func (x *ChatMessageContent) GetRedaction() *ChatRedaction

func (*ChatMessageContent) GetStateChange

func (x *ChatMessageContent) GetStateChange() *ChatStateChange

func (*ChatMessageContent) GetText

func (x *ChatMessageContent) GetText() string

func (*ChatMessageContent) MarshalJSON

func (x *ChatMessageContent) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ChatMessageContent to JSON.

func (*ChatMessageContent) MarshalProtoJSON

func (x *ChatMessageContent) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ChatMessageContent message to JSON.

func (*ChatMessageContent) MarshalProtoText

func (x *ChatMessageContent) MarshalProtoText() string

func (*ChatMessageContent) MarshalToSizedBufferVT

func (m *ChatMessageContent) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatMessageContent) MarshalToVT

func (m *ChatMessageContent) MarshalToVT(dAtA []byte) (int, error)

func (*ChatMessageContent) MarshalVT

func (m *ChatMessageContent) MarshalVT() (dAtA []byte, err error)

func (*ChatMessageContent) ProtoMessage

func (*ChatMessageContent) ProtoMessage()

func (*ChatMessageContent) Reset

func (x *ChatMessageContent) Reset()

func (*ChatMessageContent) SizeVT

func (m *ChatMessageContent) SizeVT() (n int)

func (*ChatMessageContent) String

func (x *ChatMessageContent) String() string

func (*ChatMessageContent) UnmarshalJSON

func (x *ChatMessageContent) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ChatMessageContent from JSON.

func (*ChatMessageContent) UnmarshalProtoJSON

func (x *ChatMessageContent) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ChatMessageContent message from JSON.

func (*ChatMessageContent) UnmarshalVT

func (m *ChatMessageContent) UnmarshalVT(dAtA []byte) error

type ChatMessageContent_Annotation

type ChatMessageContent_Annotation struct {
	// Annotation is public metadata even when message bodies require encryption.
	Annotation *ChatAnnotation `protobuf:"bytes,3,opt,name=annotation,proto3,oneof"`
}

func (*ChatMessageContent_Annotation) CloneOneofVT

func (m *ChatMessageContent_Annotation) CloneOneofVT() isChatMessageContent_Content

func (*ChatMessageContent_Annotation) CloneVT

func (*ChatMessageContent_Annotation) EqualVT

func (this *ChatMessageContent_Annotation) EqualVT(thatIface isChatMessageContent_Content) bool

func (*ChatMessageContent_Annotation) MarshalToSizedBufferVT

func (m *ChatMessageContent_Annotation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Annotation) MarshalToVT

func (m *ChatMessageContent_Annotation) MarshalToVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Annotation) SizeVT

func (m *ChatMessageContent_Annotation) SizeVT() (n int)

type ChatMessageContent_Ciphertext

type ChatMessageContent_Ciphertext struct {
	// Ciphertext is an encrypted message body.
	Ciphertext *ChatCiphertext `protobuf:"bytes,2,opt,name=ciphertext,proto3,oneof"`
}

func (*ChatMessageContent_Ciphertext) CloneOneofVT

func (m *ChatMessageContent_Ciphertext) CloneOneofVT() isChatMessageContent_Content

func (*ChatMessageContent_Ciphertext) CloneVT

func (*ChatMessageContent_Ciphertext) EqualVT

func (this *ChatMessageContent_Ciphertext) EqualVT(thatIface isChatMessageContent_Content) bool

func (*ChatMessageContent_Ciphertext) MarshalToSizedBufferVT

func (m *ChatMessageContent_Ciphertext) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Ciphertext) MarshalToVT

func (m *ChatMessageContent_Ciphertext) MarshalToVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Ciphertext) SizeVT

func (m *ChatMessageContent_Ciphertext) SizeVT() (n int)

type ChatMessageContent_Event

type ChatMessageContent_Event struct {
	// Event is a protocol message body subject to channel encryption policy.
	Event *ChatEvent `protobuf:"bytes,5,opt,name=event,proto3,oneof"`
}

func (*ChatMessageContent_Event) CloneOneofVT

func (m *ChatMessageContent_Event) CloneOneofVT() isChatMessageContent_Content

func (*ChatMessageContent_Event) CloneVT

func (*ChatMessageContent_Event) EqualVT

func (this *ChatMessageContent_Event) EqualVT(thatIface isChatMessageContent_Content) bool

func (*ChatMessageContent_Event) MarshalToSizedBufferVT

func (m *ChatMessageContent_Event) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Event) MarshalToVT

func (m *ChatMessageContent_Event) MarshalToVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Event) SizeVT

func (m *ChatMessageContent_Event) SizeVT() (n int)

type ChatMessageContent_Redaction

type ChatMessageContent_Redaction struct {
	// Redaction removes an earlier body while keeping its history position.
	Redaction *ChatRedaction `protobuf:"bytes,6,opt,name=redaction,proto3,oneof"`
}

func (*ChatMessageContent_Redaction) CloneOneofVT

func (m *ChatMessageContent_Redaction) CloneOneofVT() isChatMessageContent_Content

func (*ChatMessageContent_Redaction) CloneVT

func (*ChatMessageContent_Redaction) EqualVT

func (this *ChatMessageContent_Redaction) EqualVT(thatIface isChatMessageContent_Content) bool

func (*ChatMessageContent_Redaction) MarshalToSizedBufferVT

func (m *ChatMessageContent_Redaction) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Redaction) MarshalToVT

func (m *ChatMessageContent_Redaction) MarshalToVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Redaction) SizeVT

func (m *ChatMessageContent_Redaction) SizeVT() (n int)

type ChatMessageContent_StateChange

type ChatMessageContent_StateChange struct {
	// StateChange is public channel metadata retained in message history.
	StateChange *ChatStateChange `protobuf:"bytes,4,opt,name=state_change,json=stateChange,proto3,oneof"`
}

func (*ChatMessageContent_StateChange) CloneOneofVT

func (m *ChatMessageContent_StateChange) CloneOneofVT() isChatMessageContent_Content

func (*ChatMessageContent_StateChange) CloneVT

func (*ChatMessageContent_StateChange) EqualVT

func (this *ChatMessageContent_StateChange) EqualVT(thatIface isChatMessageContent_Content) bool

func (*ChatMessageContent_StateChange) MarshalToSizedBufferVT

func (m *ChatMessageContent_StateChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatMessageContent_StateChange) MarshalToVT

func (m *ChatMessageContent_StateChange) MarshalToVT(dAtA []byte) (int, error)

func (*ChatMessageContent_StateChange) SizeVT

func (m *ChatMessageContent_StateChange) SizeVT() (n int)

type ChatMessageContent_Text

type ChatMessageContent_Text struct {
	// Text is a plain text message.
	Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}

func (*ChatMessageContent_Text) CloneOneofVT

func (m *ChatMessageContent_Text) CloneOneofVT() isChatMessageContent_Content

func (*ChatMessageContent_Text) CloneVT

func (*ChatMessageContent_Text) EqualVT

func (this *ChatMessageContent_Text) EqualVT(thatIface isChatMessageContent_Content) bool

func (*ChatMessageContent_Text) MarshalToSizedBufferVT

func (m *ChatMessageContent_Text) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Text) MarshalToVT

func (m *ChatMessageContent_Text) MarshalToVT(dAtA []byte) (int, error)

func (*ChatMessageContent_Text) SizeVT

func (m *ChatMessageContent_Text) SizeVT() (n int)

type ChatRedaction

type ChatRedaction struct {

	// TargetKey identifies the message whose body is removed.
	TargetKey string `protobuf:"bytes,1,opt,name=target_key,json=targetKey,proto3" json:"targetKey,omitempty"`
	// Reason is an optional public explanation.
	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

ChatRedaction removes the body of an earlier message by the same person. The redaction is public metadata even when message bodies require encryption.

func (*ChatRedaction) CloneMessageVT

func (m *ChatRedaction) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ChatRedaction) CloneVT

func (m *ChatRedaction) CloneVT() *ChatRedaction

func (*ChatRedaction) EqualMessageVT

func (this *ChatRedaction) EqualMessageVT(thatMsg any) bool

func (*ChatRedaction) EqualVT

func (this *ChatRedaction) EqualVT(that *ChatRedaction) bool

func (*ChatRedaction) GetReason

func (x *ChatRedaction) GetReason() string

func (*ChatRedaction) GetTargetKey

func (x *ChatRedaction) GetTargetKey() string

func (*ChatRedaction) MarshalJSON

func (x *ChatRedaction) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ChatRedaction to JSON.

func (*ChatRedaction) MarshalProtoJSON

func (x *ChatRedaction) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ChatRedaction message to JSON.

func (*ChatRedaction) MarshalProtoText

func (x *ChatRedaction) MarshalProtoText() string

func (*ChatRedaction) MarshalToSizedBufferVT

func (m *ChatRedaction) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatRedaction) MarshalToVT

func (m *ChatRedaction) MarshalToVT(dAtA []byte) (int, error)

func (*ChatRedaction) MarshalVT

func (m *ChatRedaction) MarshalVT() (dAtA []byte, err error)

func (*ChatRedaction) ProtoMessage

func (*ChatRedaction) ProtoMessage()

func (*ChatRedaction) Reset

func (x *ChatRedaction) Reset()

func (*ChatRedaction) SizeVT

func (m *ChatRedaction) SizeVT() (n int)

func (*ChatRedaction) String

func (x *ChatRedaction) String() string

func (*ChatRedaction) UnmarshalJSON

func (x *ChatRedaction) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ChatRedaction from JSON.

func (*ChatRedaction) UnmarshalProtoJSON

func (x *ChatRedaction) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ChatRedaction message from JSON.

func (*ChatRedaction) UnmarshalVT

func (m *ChatRedaction) UnmarshalVT(dAtA []byte) error

type ChatRelation

type ChatRelation struct {

	// Type identifies the relationship, such as m.replace or m.thread.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// TargetKey identifies the message being edited or the thread root.
	TargetKey string `protobuf:"bytes,2,opt,name=target_key,json=targetKey,proto3" json:"targetKey,omitempty"`
	// ReplyToKey identifies an explicit reply or a thread's fallback reply.
	ReplyToKey string `protobuf:"bytes,3,opt,name=reply_to_key,json=replyToKey,proto3" json:"replyToKey,omitempty"`
	// IsFallingBack marks a reply used only for clients without thread support.
	IsFallingBack bool `protobuf:"varint,4,opt,name=is_falling_back,json=isFallingBack,proto3" json:"isFallingBack,omitempty"`
	// Key is an optional public annotation value.
	Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

ChatRelation links a message to earlier messages in the same channel.

func (*ChatRelation) CloneMessageVT

func (m *ChatRelation) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ChatRelation) CloneVT

func (m *ChatRelation) CloneVT() *ChatRelation

func (*ChatRelation) EqualMessageVT

func (this *ChatRelation) EqualMessageVT(thatMsg any) bool

func (*ChatRelation) EqualVT

func (this *ChatRelation) EqualVT(that *ChatRelation) bool

func (*ChatRelation) GetIsFallingBack

func (x *ChatRelation) GetIsFallingBack() bool

func (*ChatRelation) GetKey

func (x *ChatRelation) GetKey() string

func (*ChatRelation) GetReplyToKey

func (x *ChatRelation) GetReplyToKey() string

func (*ChatRelation) GetTargetKey

func (x *ChatRelation) GetTargetKey() string

func (*ChatRelation) GetType

func (x *ChatRelation) GetType() string

func (*ChatRelation) MarshalJSON

func (x *ChatRelation) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ChatRelation to JSON.

func (*ChatRelation) MarshalProtoJSON

func (x *ChatRelation) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ChatRelation message to JSON.

func (*ChatRelation) MarshalProtoText

func (x *ChatRelation) MarshalProtoText() string

func (*ChatRelation) MarshalToSizedBufferVT

func (m *ChatRelation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatRelation) MarshalToVT

func (m *ChatRelation) MarshalToVT(dAtA []byte) (int, error)

func (*ChatRelation) MarshalVT

func (m *ChatRelation) MarshalVT() (dAtA []byte, err error)

func (*ChatRelation) ProtoMessage

func (*ChatRelation) ProtoMessage()

func (*ChatRelation) Reset

func (x *ChatRelation) Reset()

func (*ChatRelation) SizeVT

func (m *ChatRelation) SizeVT() (n int)

func (*ChatRelation) String

func (x *ChatRelation) String() string

func (*ChatRelation) UnmarshalJSON

func (x *ChatRelation) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ChatRelation from JSON.

func (*ChatRelation) UnmarshalProtoJSON

func (x *ChatRelation) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ChatRelation message from JSON.

func (*ChatRelation) UnmarshalVT

func (m *ChatRelation) UnmarshalVT(dAtA []byte) error

func (*ChatRelation) Validate

func (r *ChatRelation) Validate() error

Validate checks one optional relationship expressed in native message keys.

type ChatStateChange

type ChatStateChange struct {

	// Type is an open protocol vocabulary identifying the state schema.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// StateKey is an external state identity within Type, not a World object key.
	StateKey string `protobuf:"bytes,2,opt,name=state_key,json=stateKey,proto3" json:"stateKey,omitempty"`
	// ContentJson is a complete JSON object, bounded to 64 KiB.
	// The producing protocol validates its schema and canonicalizes its encoding.
	ContentJson string `protobuf:"bytes,3,opt,name=content_json,json=contentJson,proto3" json:"contentJson,omitempty"`
	// contains filtered or unexported fields
}

ChatStateChange replaces one channel state value while retaining its history.

func (*ChatStateChange) CloneMessageVT

func (m *ChatStateChange) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ChatStateChange) CloneVT

func (m *ChatStateChange) CloneVT() *ChatStateChange

func (*ChatStateChange) EqualMessageVT

func (this *ChatStateChange) EqualMessageVT(thatMsg any) bool

func (*ChatStateChange) EqualVT

func (this *ChatStateChange) EqualVT(that *ChatStateChange) bool

func (*ChatStateChange) GetContentJson

func (x *ChatStateChange) GetContentJson() string

func (*ChatStateChange) GetStateKey

func (x *ChatStateChange) GetStateKey() string

func (*ChatStateChange) GetType

func (x *ChatStateChange) GetType() string

func (*ChatStateChange) MarshalJSON

func (x *ChatStateChange) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ChatStateChange to JSON.

func (*ChatStateChange) MarshalProtoJSON

func (x *ChatStateChange) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ChatStateChange message to JSON.

func (*ChatStateChange) MarshalProtoText

func (x *ChatStateChange) MarshalProtoText() string

func (*ChatStateChange) MarshalToSizedBufferVT

func (m *ChatStateChange) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ChatStateChange) MarshalToVT

func (m *ChatStateChange) MarshalToVT(dAtA []byte) (int, error)

func (*ChatStateChange) MarshalVT

func (m *ChatStateChange) MarshalVT() (dAtA []byte, err error)

func (*ChatStateChange) ProtoMessage

func (*ChatStateChange) ProtoMessage()

func (*ChatStateChange) Reset

func (x *ChatStateChange) Reset()

func (*ChatStateChange) SizeVT

func (m *ChatStateChange) SizeVT() (n int)

func (*ChatStateChange) String

func (x *ChatStateChange) String() string

func (*ChatStateChange) UnmarshalJSON

func (x *ChatStateChange) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ChatStateChange from JSON.

func (*ChatStateChange) UnmarshalProtoJSON

func (x *ChatStateChange) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ChatStateChange message from JSON.

func (*ChatStateChange) UnmarshalVT

func (m *ChatStateChange) UnmarshalVT(dAtA []byte) error

func (*ChatStateChange) Validate

func (s *ChatStateChange) Validate() error

Validate checks the state identity and bounded external JSON object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL