chat

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 23 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetChatsRequest_Direction_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	GetChatsRequest_Direction_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for GetChatsRequest_Direction.

View Source
var (
	GetChatsResponse_Result_name = map[int32]string{
		0: "OK",
		1: "NOT_FOUND",
	}
	GetChatsResponse_Result_value = map[string]int32{
		"OK":        0,
		"NOT_FOUND": 1,
	}
)

Enum value maps for GetChatsResponse_Result.

View Source
var (
	GetMessagesRequest_Direction_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	GetMessagesRequest_Direction_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for GetMessagesRequest_Direction.

View Source
var (
	GetMessagesResponse_Result_name = map[int32]string{
		0: "OK",
		1: "NOT_FOUND",
	}
	GetMessagesResponse_Result_value = map[string]int32{
		"OK":        0,
		"NOT_FOUND": 1,
	}
)

Enum value maps for GetMessagesResponse_Result.

View Source
var (
	AdvancePointerResponse_Result_name = map[int32]string{
		0: "OK",
		1: "CHAT_NOT_FOUND",
		2: "MESSAGE_NOT_FOUND",
	}
	AdvancePointerResponse_Result_value = map[string]int32{
		"OK":                0,
		"CHAT_NOT_FOUND":    1,
		"MESSAGE_NOT_FOUND": 2,
	}
)

Enum value maps for AdvancePointerResponse_Result.

View Source
var (
	SetMuteStateResponse_Result_name = map[int32]string{
		0: "OK",
		1: "CHAT_NOT_FOUND",
		2: "CANT_MUTE",
	}
	SetMuteStateResponse_Result_value = map[string]int32{
		"OK":             0,
		"CHAT_NOT_FOUND": 1,
		"CANT_MUTE":      2,
	}
)

Enum value maps for SetMuteStateResponse_Result.

View Source
var (
	SetSubscriptionStateResponse_Result_name = map[int32]string{
		0: "OK",
		1: "CHAT_NOT_FOUND",
		2: "CANT_UNSUBSCRIBE",
	}
	SetSubscriptionStateResponse_Result_value = map[string]int32{
		"OK":               0,
		"CHAT_NOT_FOUND":   1,
		"CANT_UNSUBSCRIBE": 2,
	}
)

Enum value maps for SetSubscriptionStateResponse_Result.

View Source
var (
	SendMessageResponse_Result_name = map[int32]string{
		0: "OK",
	}
	SendMessageResponse_Result_value = map[string]int32{
		"OK": 0,
	}
)

Enum value maps for SendMessageResponse_Result.

View Source
var (
	Pointer_Kind_name = map[int32]string{
		0: "UNKNOWN",
		1: "READ",
		2: "DELIVERED",
		3: "SENT",
	}
	Pointer_Kind_value = map[string]int32{
		"UNKNOWN":   0,
		"READ":      1,
		"DELIVERED": 2,
		"SENT":      3,
	}
)

Enum value maps for Pointer_Kind.

View Source
var (
	ExchangeDataContent_Verb_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "GAVE",
		2:  "RECEIVED",
		3:  "WITHDREW",
		4:  "DEPOSITED",
		5:  "SENT",
		6:  "RETURNED",
		7:  "SPENT",
		8:  "PAID",
		9:  "PURCHASED",
		10: "RECEIVED_TIP",
		11: "SENT_TIP",
	}
	ExchangeDataContent_Verb_value = map[string]int32{
		"UNKNOWN":      0,
		"GAVE":         1,
		"RECEIVED":     2,
		"WITHDREW":     3,
		"DEPOSITED":    4,
		"SENT":         5,
		"RETURNED":     6,
		"SPENT":        7,
		"PAID":         8,
		"PURCHASED":    9,
		"RECEIVED_TIP": 10,
		"SENT_TIP":     11,
	}
)

Enum value maps for ExchangeDataContent_Verb.

View Source
var Chat_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "code.chat.v1.Chat",
	HandlerType: (*ChatServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetChats",
			Handler:    _Chat_GetChats_Handler,
		},
		{
			MethodName: "GetMessages",
			Handler:    _Chat_GetMessages_Handler,
		},
		{
			MethodName: "AdvancePointer",
			Handler:    _Chat_AdvancePointer_Handler,
		},
		{
			MethodName: "SetMuteState",
			Handler:    _Chat_SetMuteState_Handler,
		},
		{
			MethodName: "SetSubscriptionState",
			Handler:    _Chat_SetSubscriptionState_Handler,
		},
		{
			MethodName: "SendMessage",
			Handler:    _Chat_SendMessage_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamChatEvents",
			Handler:       _Chat_StreamChatEvents_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "chat/v1/chat_service.proto",
}

Chat_ServiceDesc is the grpc.ServiceDesc for Chat service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_chat_v1_chat_service_proto protoreflect.FileDescriptor

Functions

func RegisterChatServer

func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer)

Types

type AdvancePointerRequest

type AdvancePointerRequest struct {
	ChatId    *ChatId             `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	Pointer   *Pointer            `protobuf:"bytes,2,opt,name=pointer,proto3" json:"pointer,omitempty"`
	Owner     *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature       `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvancePointerRequest) Descriptor deprecated

func (*AdvancePointerRequest) Descriptor() ([]byte, []int)

Deprecated: Use AdvancePointerRequest.ProtoReflect.Descriptor instead.

func (*AdvancePointerRequest) GetChatId

func (x *AdvancePointerRequest) GetChatId() *ChatId

func (*AdvancePointerRequest) GetOwner

func (x *AdvancePointerRequest) GetOwner() *v1.SolanaAccountId

func (*AdvancePointerRequest) GetPointer

func (x *AdvancePointerRequest) GetPointer() *Pointer

func (*AdvancePointerRequest) GetSignature

func (x *AdvancePointerRequest) GetSignature() *v1.Signature

func (*AdvancePointerRequest) ProtoMessage

func (*AdvancePointerRequest) ProtoMessage()

func (*AdvancePointerRequest) ProtoReflect

func (x *AdvancePointerRequest) ProtoReflect() protoreflect.Message

func (*AdvancePointerRequest) Reset

func (x *AdvancePointerRequest) Reset()

func (*AdvancePointerRequest) String

func (x *AdvancePointerRequest) String() string

func (*AdvancePointerRequest) Validate

func (m *AdvancePointerRequest) Validate() error

Validate checks the field values on AdvancePointerRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type AdvancePointerRequestValidationError

type AdvancePointerRequestValidationError struct {
	// contains filtered or unexported fields
}

AdvancePointerRequestValidationError is the validation error returned by AdvancePointerRequest.Validate if the designated constraints aren't met.

func (AdvancePointerRequestValidationError) Cause

Cause function returns cause value.

func (AdvancePointerRequestValidationError) Error

Error satisfies the builtin error interface

func (AdvancePointerRequestValidationError) ErrorName

ErrorName returns error name.

func (AdvancePointerRequestValidationError) Field

Field function returns field value.

func (AdvancePointerRequestValidationError) Key

Key function returns key value.

func (AdvancePointerRequestValidationError) Reason

Reason function returns reason value.

type AdvancePointerResponse

type AdvancePointerResponse struct {
	Result AdvancePointerResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.chat.v1.AdvancePointerResponse_Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvancePointerResponse) Descriptor deprecated

func (*AdvancePointerResponse) Descriptor() ([]byte, []int)

Deprecated: Use AdvancePointerResponse.ProtoReflect.Descriptor instead.

func (*AdvancePointerResponse) GetResult

func (*AdvancePointerResponse) ProtoMessage

func (*AdvancePointerResponse) ProtoMessage()

func (*AdvancePointerResponse) ProtoReflect

func (x *AdvancePointerResponse) ProtoReflect() protoreflect.Message

func (*AdvancePointerResponse) Reset

func (x *AdvancePointerResponse) Reset()

func (*AdvancePointerResponse) String

func (x *AdvancePointerResponse) String() string

func (*AdvancePointerResponse) Validate

func (m *AdvancePointerResponse) Validate() error

Validate checks the field values on AdvancePointerResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type AdvancePointerResponseValidationError

type AdvancePointerResponseValidationError struct {
	// contains filtered or unexported fields
}

AdvancePointerResponseValidationError is the validation error returned by AdvancePointerResponse.Validate if the designated constraints aren't met.

func (AdvancePointerResponseValidationError) Cause

Cause function returns cause value.

func (AdvancePointerResponseValidationError) Error

Error satisfies the builtin error interface

func (AdvancePointerResponseValidationError) ErrorName

ErrorName returns error name.

func (AdvancePointerResponseValidationError) Field

Field function returns field value.

func (AdvancePointerResponseValidationError) Key

Key function returns key value.

func (AdvancePointerResponseValidationError) Reason

Reason function returns reason value.

type AdvancePointerResponse_Result

type AdvancePointerResponse_Result int32
const (
	AdvancePointerResponse_OK                AdvancePointerResponse_Result = 0
	AdvancePointerResponse_CHAT_NOT_FOUND    AdvancePointerResponse_Result = 1
	AdvancePointerResponse_MESSAGE_NOT_FOUND AdvancePointerResponse_Result = 2
)

func (AdvancePointerResponse_Result) Descriptor

func (AdvancePointerResponse_Result) Enum

func (AdvancePointerResponse_Result) EnumDescriptor deprecated

func (AdvancePointerResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use AdvancePointerResponse_Result.Descriptor instead.

func (AdvancePointerResponse_Result) Number

func (AdvancePointerResponse_Result) String

func (AdvancePointerResponse_Result) Type

type ChatClient

type ChatClient interface {
	// GetChats gets the set of chats for an owner account
	GetChats(ctx context.Context, in *GetChatsRequest, opts ...grpc.CallOption) (*GetChatsResponse, error)
	// GetMessages gets the set of messages for a chat
	GetMessages(ctx context.Context, in *GetMessagesRequest, opts ...grpc.CallOption) (*GetMessagesResponse, error)
	// AdvancePointer advances a pointer in chat history
	AdvancePointer(ctx context.Context, in *AdvancePointerRequest, opts ...grpc.CallOption) (*AdvancePointerResponse, error)
	// SetMuteState configures the mute state of a chat
	SetMuteState(ctx context.Context, in *SetMuteStateRequest, opts ...grpc.CallOption) (*SetMuteStateResponse, error)
	// SetSubscriptionState configures the susbscription state of a chat
	SetSubscriptionState(ctx context.Context, in *SetSubscriptionStateRequest, opts ...grpc.CallOption) (*SetSubscriptionStateResponse, error)
	StreamChatEvents(ctx context.Context, opts ...grpc.CallOption) (Chat_StreamChatEventsClient, error)
	SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*SendMessageResponse, error)
}

ChatClient is the client API for Chat service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewChatClient

func NewChatClient(cc grpc.ClientConnInterface) ChatClient

type ChatId

type ChatId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatId) Descriptor deprecated

func (*ChatId) Descriptor() ([]byte, []int)

Deprecated: Use ChatId.ProtoReflect.Descriptor instead.

func (*ChatId) GetValue

func (x *ChatId) GetValue() []byte

func (*ChatId) ProtoMessage

func (*ChatId) ProtoMessage()

func (*ChatId) ProtoReflect

func (x *ChatId) ProtoReflect() protoreflect.Message

func (*ChatId) Reset

func (x *ChatId) Reset()

func (*ChatId) String

func (x *ChatId) String() string

func (*ChatId) Validate

func (m *ChatId) Validate() error

Validate checks the field values on ChatId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ChatIdValidationError

type ChatIdValidationError struct {
	// contains filtered or unexported fields
}

ChatIdValidationError is the validation error returned by ChatId.Validate if the designated constraints aren't met.

func (ChatIdValidationError) Cause

func (e ChatIdValidationError) Cause() error

Cause function returns cause value.

func (ChatIdValidationError) Error

func (e ChatIdValidationError) Error() string

Error satisfies the builtin error interface

func (ChatIdValidationError) ErrorName

func (e ChatIdValidationError) ErrorName() string

ErrorName returns error name.

func (ChatIdValidationError) Field

func (e ChatIdValidationError) Field() string

Field function returns field value.

func (ChatIdValidationError) Key

func (e ChatIdValidationError) Key() bool

Key function returns key value.

func (ChatIdValidationError) Reason

func (e ChatIdValidationError) Reason() string

Reason function returns reason value.

type ChatMemberId added in v1.17.0

type ChatMemberId struct {

	// todo: Public key for now
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatMemberId) Descriptor deprecated added in v1.17.0

func (*ChatMemberId) Descriptor() ([]byte, []int)

Deprecated: Use ChatMemberId.ProtoReflect.Descriptor instead.

func (*ChatMemberId) GetValue added in v1.17.0

func (x *ChatMemberId) GetValue() []byte

func (*ChatMemberId) ProtoMessage added in v1.17.0

func (*ChatMemberId) ProtoMessage()

func (*ChatMemberId) ProtoReflect added in v1.17.0

func (x *ChatMemberId) ProtoReflect() protoreflect.Message

func (*ChatMemberId) Reset added in v1.17.0

func (x *ChatMemberId) Reset()

func (*ChatMemberId) String added in v1.17.0

func (x *ChatMemberId) String() string

func (*ChatMemberId) Validate added in v1.17.0

func (m *ChatMemberId) Validate() error

Validate checks the field values on ChatMemberId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ChatMemberIdValidationError added in v1.17.0

type ChatMemberIdValidationError struct {
	// contains filtered or unexported fields
}

ChatMemberIdValidationError is the validation error returned by ChatMemberId.Validate if the designated constraints aren't met.

func (ChatMemberIdValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (ChatMemberIdValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (ChatMemberIdValidationError) ErrorName added in v1.17.0

func (e ChatMemberIdValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMemberIdValidationError) Field added in v1.17.0

Field function returns field value.

func (ChatMemberIdValidationError) Key added in v1.17.0

Key function returns key value.

func (ChatMemberIdValidationError) Reason added in v1.17.0

Reason function returns reason value.

type ChatMessage

type ChatMessage struct {

	// Unique ID for this message
	MessageId *ChatMessageId `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// Timestamp this message was generated at
	Ts *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ts,proto3" json:"ts,omitempty"`
	// Ordered message content. A message may have more than one piece of content.
	Content []*Content `protobuf:"bytes,3,rep,name=content,proto3" json:"content,omitempty"`
	// Cursor value for this message for reference in subsequent GetMessagesRequest
	Cursor *Cursor       `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"`
	Sender *ChatMemberId `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatMessage) Descriptor deprecated

func (*ChatMessage) Descriptor() ([]byte, []int)

Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead.

func (*ChatMessage) GetContent

func (x *ChatMessage) GetContent() []*Content

func (*ChatMessage) GetCursor

func (x *ChatMessage) GetCursor() *Cursor

func (*ChatMessage) GetMessageId

func (x *ChatMessage) GetMessageId() *ChatMessageId

func (*ChatMessage) GetSender added in v1.17.0

func (x *ChatMessage) GetSender() *ChatMemberId

func (*ChatMessage) GetTs

func (x *ChatMessage) GetTs() *timestamppb.Timestamp

func (*ChatMessage) ProtoMessage

func (*ChatMessage) ProtoMessage()

func (*ChatMessage) ProtoReflect

func (x *ChatMessage) ProtoReflect() protoreflect.Message

func (*ChatMessage) Reset

func (x *ChatMessage) Reset()

func (*ChatMessage) String

func (x *ChatMessage) String() string

func (*ChatMessage) Validate

func (m *ChatMessage) Validate() error

Validate checks the field values on ChatMessage with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ChatMessageId

type ChatMessageId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatMessageId) Descriptor deprecated

func (*ChatMessageId) Descriptor() ([]byte, []int)

Deprecated: Use ChatMessageId.ProtoReflect.Descriptor instead.

func (*ChatMessageId) GetValue

func (x *ChatMessageId) GetValue() []byte

func (*ChatMessageId) ProtoMessage

func (*ChatMessageId) ProtoMessage()

func (*ChatMessageId) ProtoReflect

func (x *ChatMessageId) ProtoReflect() protoreflect.Message

func (*ChatMessageId) Reset

func (x *ChatMessageId) Reset()

func (*ChatMessageId) String

func (x *ChatMessageId) String() string

func (*ChatMessageId) Validate

func (m *ChatMessageId) Validate() error

Validate checks the field values on ChatMessageId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ChatMessageIdValidationError

type ChatMessageIdValidationError struct {
	// contains filtered or unexported fields
}

ChatMessageIdValidationError is the validation error returned by ChatMessageId.Validate if the designated constraints aren't met.

func (ChatMessageIdValidationError) Cause

Cause function returns cause value.

func (ChatMessageIdValidationError) Error

Error satisfies the builtin error interface

func (ChatMessageIdValidationError) ErrorName

func (e ChatMessageIdValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMessageIdValidationError) Field

Field function returns field value.

func (ChatMessageIdValidationError) Key

Key function returns key value.

func (ChatMessageIdValidationError) Reason

Reason function returns reason value.

type ChatMessageValidationError

type ChatMessageValidationError struct {
	// contains filtered or unexported fields
}

ChatMessageValidationError is the validation error returned by ChatMessage.Validate if the designated constraints aren't met.

func (ChatMessageValidationError) Cause

Cause function returns cause value.

func (ChatMessageValidationError) Error

Error satisfies the builtin error interface

func (ChatMessageValidationError) ErrorName

func (e ChatMessageValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMessageValidationError) Field

Field function returns field value.

func (ChatMessageValidationError) Key

Key function returns key value.

func (ChatMessageValidationError) Reason

Reason function returns reason value.

type ChatMetadata

type ChatMetadata struct {
	ChatId *ChatId `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	// Recommended chat title inferred by the type of chat
	//
	// Types that are assignable to Title:
	//
	//	*ChatMetadata_Localized
	//	*ChatMetadata_Domain
	Title isChatMetadata_Title `protobuf_oneof:"title"`
	// Pointer in the chat indicating the most recently read message by the user
	ReadPointer *Pointer `protobuf:"bytes,4,opt,name=read_pointer,json=readPointer,proto3" json:"read_pointer,omitempty"`
	// Estimated number of unread messages in this chat
	NumUnread uint32 `protobuf:"varint,5,opt,name=num_unread,json=numUnread,proto3" json:"num_unread,omitempty"`
	// Has the user muted this chat?
	IsMuted bool `protobuf:"varint,6,opt,name=is_muted,json=isMuted,proto3" json:"is_muted,omitempty"`
	// Is the user subscribed to this chat?
	IsSubscribed bool `protobuf:"varint,7,opt,name=is_subscribed,json=isSubscribed,proto3" json:"is_subscribed,omitempty"`
	// Can the user mute this chat?
	CanMute bool `protobuf:"varint,8,opt,name=can_mute,json=canMute,proto3" json:"can_mute,omitempty"`
	// Can the user unsubscribe from this chat?
	CanUnsubscribe bool `protobuf:"varint,9,opt,name=can_unsubscribe,json=canUnsubscribe,proto3" json:"can_unsubscribe,omitempty"`
	// Cursor value for this chat for reference in subsequent GetChatsRequest
	Cursor *Cursor `protobuf:"bytes,10,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// Is this a verified chat?
	//
	// Note: It's possible to have two chats with the same title, but with
	// different verification statuses. They should be treated separately.
	IsVerified bool `protobuf:"varint,11,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatMetadata) Descriptor deprecated

func (*ChatMetadata) Descriptor() ([]byte, []int)

Deprecated: Use ChatMetadata.ProtoReflect.Descriptor instead.

func (*ChatMetadata) GetCanMute

func (x *ChatMetadata) GetCanMute() bool

func (*ChatMetadata) GetCanUnsubscribe

func (x *ChatMetadata) GetCanUnsubscribe() bool

func (*ChatMetadata) GetChatId

func (x *ChatMetadata) GetChatId() *ChatId

func (*ChatMetadata) GetCursor

func (x *ChatMetadata) GetCursor() *Cursor

func (*ChatMetadata) GetDomain

func (x *ChatMetadata) GetDomain() *v1.Domain

func (*ChatMetadata) GetIsMuted

func (x *ChatMetadata) GetIsMuted() bool

func (*ChatMetadata) GetIsSubscribed

func (x *ChatMetadata) GetIsSubscribed() bool

func (*ChatMetadata) GetIsVerified

func (x *ChatMetadata) GetIsVerified() bool

func (*ChatMetadata) GetLocalized

func (x *ChatMetadata) GetLocalized() *ServerLocalizedContent

func (*ChatMetadata) GetNumUnread

func (x *ChatMetadata) GetNumUnread() uint32

func (*ChatMetadata) GetReadPointer

func (x *ChatMetadata) GetReadPointer() *Pointer

func (*ChatMetadata) GetTitle

func (m *ChatMetadata) GetTitle() isChatMetadata_Title

func (*ChatMetadata) ProtoMessage

func (*ChatMetadata) ProtoMessage()

func (*ChatMetadata) ProtoReflect

func (x *ChatMetadata) ProtoReflect() protoreflect.Message

func (*ChatMetadata) Reset

func (x *ChatMetadata) Reset()

func (*ChatMetadata) String

func (x *ChatMetadata) String() string

func (*ChatMetadata) Validate

func (m *ChatMetadata) Validate() error

Validate checks the field values on ChatMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ChatMetadataValidationError

type ChatMetadataValidationError struct {
	// contains filtered or unexported fields
}

ChatMetadataValidationError is the validation error returned by ChatMetadata.Validate if the designated constraints aren't met.

func (ChatMetadataValidationError) Cause

Cause function returns cause value.

func (ChatMetadataValidationError) Error

Error satisfies the builtin error interface

func (ChatMetadataValidationError) ErrorName

func (e ChatMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMetadataValidationError) Field

Field function returns field value.

func (ChatMetadataValidationError) Key

Key function returns key value.

func (ChatMetadataValidationError) Reason

Reason function returns reason value.

type ChatMetadata_Domain

type ChatMetadata_Domain struct {
	Domain *v1.Domain `protobuf:"bytes,3,opt,name=domain,proto3,oneof"`
}

type ChatMetadata_Localized

type ChatMetadata_Localized struct {
	Localized *ServerLocalizedContent `protobuf:"bytes,2,opt,name=localized,proto3,oneof"`
}

type ChatServer

type ChatServer interface {
	// GetChats gets the set of chats for an owner account
	GetChats(context.Context, *GetChatsRequest) (*GetChatsResponse, error)
	// GetMessages gets the set of messages for a chat
	GetMessages(context.Context, *GetMessagesRequest) (*GetMessagesResponse, error)
	// AdvancePointer advances a pointer in chat history
	AdvancePointer(context.Context, *AdvancePointerRequest) (*AdvancePointerResponse, error)
	// SetMuteState configures the mute state of a chat
	SetMuteState(context.Context, *SetMuteStateRequest) (*SetMuteStateResponse, error)
	// SetSubscriptionState configures the susbscription state of a chat
	SetSubscriptionState(context.Context, *SetSubscriptionStateRequest) (*SetSubscriptionStateResponse, error)
	StreamChatEvents(Chat_StreamChatEventsServer) error
	SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
	// contains filtered or unexported methods
}

ChatServer is the server API for Chat service. All implementations must embed UnimplementedChatServer for forward compatibility

type ChatStreamEvent added in v1.17.0

type ChatStreamEvent struct {
	Messages []*ChatMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	Pointers []*Pointer     `protobuf:"bytes,2,rep,name=pointers,proto3" json:"pointers,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatStreamEvent) Descriptor deprecated added in v1.17.0

func (*ChatStreamEvent) Descriptor() ([]byte, []int)

Deprecated: Use ChatStreamEvent.ProtoReflect.Descriptor instead.

func (*ChatStreamEvent) GetMessages added in v1.17.0

func (x *ChatStreamEvent) GetMessages() []*ChatMessage

func (*ChatStreamEvent) GetPointers added in v1.17.0

func (x *ChatStreamEvent) GetPointers() []*Pointer

func (*ChatStreamEvent) ProtoMessage added in v1.17.0

func (*ChatStreamEvent) ProtoMessage()

func (*ChatStreamEvent) ProtoReflect added in v1.17.0

func (x *ChatStreamEvent) ProtoReflect() protoreflect.Message

func (*ChatStreamEvent) Reset added in v1.17.0

func (x *ChatStreamEvent) Reset()

func (*ChatStreamEvent) String added in v1.17.0

func (x *ChatStreamEvent) String() string

func (*ChatStreamEvent) Validate added in v1.17.0

func (m *ChatStreamEvent) Validate() error

Validate checks the field values on ChatStreamEvent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ChatStreamEventBatch added in v1.17.0

type ChatStreamEventBatch struct {
	Events []*ChatStreamEvent `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatStreamEventBatch) Descriptor deprecated added in v1.17.0

func (*ChatStreamEventBatch) Descriptor() ([]byte, []int)

Deprecated: Use ChatStreamEventBatch.ProtoReflect.Descriptor instead.

func (*ChatStreamEventBatch) GetEvents added in v1.17.0

func (x *ChatStreamEventBatch) GetEvents() []*ChatStreamEvent

func (*ChatStreamEventBatch) ProtoMessage added in v1.17.0

func (*ChatStreamEventBatch) ProtoMessage()

func (*ChatStreamEventBatch) ProtoReflect added in v1.17.0

func (x *ChatStreamEventBatch) ProtoReflect() protoreflect.Message

func (*ChatStreamEventBatch) Reset added in v1.17.0

func (x *ChatStreamEventBatch) Reset()

func (*ChatStreamEventBatch) String added in v1.17.0

func (x *ChatStreamEventBatch) String() string

func (*ChatStreamEventBatch) Validate added in v1.17.0

func (m *ChatStreamEventBatch) Validate() error

Validate checks the field values on ChatStreamEventBatch with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ChatStreamEventBatchValidationError added in v1.17.0

type ChatStreamEventBatchValidationError struct {
	// contains filtered or unexported fields
}

ChatStreamEventBatchValidationError is the validation error returned by ChatStreamEventBatch.Validate if the designated constraints aren't met.

func (ChatStreamEventBatchValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (ChatStreamEventBatchValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (ChatStreamEventBatchValidationError) ErrorName added in v1.17.0

ErrorName returns error name.

func (ChatStreamEventBatchValidationError) Field added in v1.17.0

Field function returns field value.

func (ChatStreamEventBatchValidationError) Key added in v1.17.0

Key function returns key value.

func (ChatStreamEventBatchValidationError) Reason added in v1.17.0

Reason function returns reason value.

type ChatStreamEventValidationError added in v1.17.0

type ChatStreamEventValidationError struct {
	// contains filtered or unexported fields
}

ChatStreamEventValidationError is the validation error returned by ChatStreamEvent.Validate if the designated constraints aren't met.

func (ChatStreamEventValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (ChatStreamEventValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (ChatStreamEventValidationError) ErrorName added in v1.17.0

func (e ChatStreamEventValidationError) ErrorName() string

ErrorName returns error name.

func (ChatStreamEventValidationError) Field added in v1.17.0

Field function returns field value.

func (ChatStreamEventValidationError) Key added in v1.17.0

Key function returns key value.

func (ChatStreamEventValidationError) Reason added in v1.17.0

Reason function returns reason value.

type Chat_StreamChatEventsClient added in v1.17.0

type Chat_StreamChatEventsClient interface {
	Send(*StreamChatEventsRequest) error
	Recv() (*StreamChatEventsResponse, error)
	grpc.ClientStream
}

type Chat_StreamChatEventsServer added in v1.17.0

type Chat_StreamChatEventsServer interface {
	Send(*StreamChatEventsResponse) error
	Recv() (*StreamChatEventsRequest, error)
	grpc.ServerStream
}

type Content

type Content struct {

	// Types that are assignable to Type:
	//
	//	*Content_ServerLocalized
	//	*Content_ExchangeData
	//	*Content_NaclBox
	//	*Content_Text
	//	*Content_ThankYou
	Type isContent_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Content) Descriptor deprecated

func (*Content) Descriptor() ([]byte, []int)

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetExchangeData

func (x *Content) GetExchangeData() *ExchangeDataContent

func (*Content) GetNaclBox

func (x *Content) GetNaclBox() *NaclBoxEncryptedContent

func (*Content) GetServerLocalized added in v1.17.0

func (x *Content) GetServerLocalized() *ServerLocalizedContent

func (*Content) GetText added in v1.17.0

func (x *Content) GetText() *TextContent

func (*Content) GetThankYou added in v1.17.0

func (x *Content) GetThankYou() *ThankYouContent

func (*Content) GetType

func (m *Content) GetType() isContent_Type

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

func (x *Content) ProtoReflect() protoreflect.Message

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

func (*Content) Validate

func (m *Content) Validate() error

Validate checks the field values on Content with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ContentValidationError

type ContentValidationError struct {
	// contains filtered or unexported fields
}

ContentValidationError is the validation error returned by Content.Validate if the designated constraints aren't met.

func (ContentValidationError) Cause

func (e ContentValidationError) Cause() error

Cause function returns cause value.

func (ContentValidationError) Error

func (e ContentValidationError) Error() string

Error satisfies the builtin error interface

func (ContentValidationError) ErrorName

func (e ContentValidationError) ErrorName() string

ErrorName returns error name.

func (ContentValidationError) Field

func (e ContentValidationError) Field() string

Field function returns field value.

func (ContentValidationError) Key

func (e ContentValidationError) Key() bool

Key function returns key value.

func (ContentValidationError) Reason

func (e ContentValidationError) Reason() string

Reason function returns reason value.

type Content_ExchangeData

type Content_ExchangeData struct {
	ExchangeData *ExchangeDataContent `protobuf:"bytes,2,opt,name=exchange_data,json=exchangeData,proto3,oneof"`
}

type Content_NaclBox

type Content_NaclBox struct {
	NaclBox *NaclBoxEncryptedContent `protobuf:"bytes,3,opt,name=nacl_box,json=naclBox,proto3,oneof"`
}

type Content_ServerLocalized added in v1.17.0

type Content_ServerLocalized struct {
	ServerLocalized *ServerLocalizedContent `protobuf:"bytes,1,opt,name=server_localized,json=serverLocalized,proto3,oneof"`
}

type Content_Text added in v1.17.0

type Content_Text struct {
	Text *TextContent `protobuf:"bytes,4,opt,name=text,proto3,oneof"`
}

type Content_ThankYou added in v1.17.0

type Content_ThankYou struct {
	ThankYou *ThankYouContent `protobuf:"bytes,5,opt,name=thank_you,json=thankYou,proto3,oneof"`
}

type Cursor

type Cursor struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Opaque cursor used across paged APIs. Underlying bytes may change as paging strategies evolve.

func (*Cursor) Descriptor deprecated

func (*Cursor) Descriptor() ([]byte, []int)

Deprecated: Use Cursor.ProtoReflect.Descriptor instead.

func (*Cursor) GetValue

func (x *Cursor) GetValue() []byte

func (*Cursor) ProtoMessage

func (*Cursor) ProtoMessage()

func (*Cursor) ProtoReflect

func (x *Cursor) ProtoReflect() protoreflect.Message

func (*Cursor) Reset

func (x *Cursor) Reset()

func (*Cursor) String

func (x *Cursor) String() string

func (*Cursor) Validate

func (m *Cursor) Validate() error

Validate checks the field values on Cursor with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CursorValidationError

type CursorValidationError struct {
	// contains filtered or unexported fields
}

CursorValidationError is the validation error returned by Cursor.Validate if the designated constraints aren't met.

func (CursorValidationError) Cause

func (e CursorValidationError) Cause() error

Cause function returns cause value.

func (CursorValidationError) Error

func (e CursorValidationError) Error() string

Error satisfies the builtin error interface

func (CursorValidationError) ErrorName

func (e CursorValidationError) ErrorName() string

ErrorName returns error name.

func (CursorValidationError) Field

func (e CursorValidationError) Field() string

Field function returns field value.

func (CursorValidationError) Key

func (e CursorValidationError) Key() bool

Key function returns key value.

func (CursorValidationError) Reason

func (e CursorValidationError) Reason() string

Reason function returns reason value.

type ExchangeDataContent

type ExchangeDataContent struct {
	Verb ExchangeDataContent_Verb `protobuf:"varint,1,opt,name=verb,proto3,enum=code.chat.v1.ExchangeDataContent_Verb" json:"verb,omitempty"`
	// Types that are assignable to ExchangeData:
	//
	//	*ExchangeDataContent_Exact
	//	*ExchangeDataContent_Partial
	ExchangeData isExchangeDataContent_ExchangeData `protobuf_oneof:"exchange_data"`
	// contains filtered or unexported fields
}

func (*ExchangeDataContent) Descriptor deprecated

func (*ExchangeDataContent) Descriptor() ([]byte, []int)

Deprecated: Use ExchangeDataContent.ProtoReflect.Descriptor instead.

func (*ExchangeDataContent) GetExact

func (x *ExchangeDataContent) GetExact() *v2.ExchangeData

func (*ExchangeDataContent) GetExchangeData

func (m *ExchangeDataContent) GetExchangeData() isExchangeDataContent_ExchangeData

func (*ExchangeDataContent) GetPartial

func (*ExchangeDataContent) GetVerb

func (*ExchangeDataContent) ProtoMessage

func (*ExchangeDataContent) ProtoMessage()

func (*ExchangeDataContent) ProtoReflect

func (x *ExchangeDataContent) ProtoReflect() protoreflect.Message

func (*ExchangeDataContent) Reset

func (x *ExchangeDataContent) Reset()

func (*ExchangeDataContent) String

func (x *ExchangeDataContent) String() string

func (*ExchangeDataContent) Validate

func (m *ExchangeDataContent) Validate() error

Validate checks the field values on ExchangeDataContent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ExchangeDataContentValidationError

type ExchangeDataContentValidationError struct {
	// contains filtered or unexported fields
}

ExchangeDataContentValidationError is the validation error returned by ExchangeDataContent.Validate if the designated constraints aren't met.

func (ExchangeDataContentValidationError) Cause

Cause function returns cause value.

func (ExchangeDataContentValidationError) Error

Error satisfies the builtin error interface

func (ExchangeDataContentValidationError) ErrorName

ErrorName returns error name.

func (ExchangeDataContentValidationError) Field

Field function returns field value.

func (ExchangeDataContentValidationError) Key

Key function returns key value.

func (ExchangeDataContentValidationError) Reason

Reason function returns reason value.

type ExchangeDataContent_Exact

type ExchangeDataContent_Exact struct {
	Exact *v2.ExchangeData `protobuf:"bytes,2,opt,name=exact,proto3,oneof"`
}

type ExchangeDataContent_Partial

type ExchangeDataContent_Partial struct {
	Partial *v2.ExchangeDataWithoutRate `protobuf:"bytes,3,opt,name=partial,proto3,oneof"`
}

type ExchangeDataContent_Verb

type ExchangeDataContent_Verb int32
const (
	ExchangeDataContent_UNKNOWN      ExchangeDataContent_Verb = 0
	ExchangeDataContent_GAVE         ExchangeDataContent_Verb = 1
	ExchangeDataContent_RECEIVED     ExchangeDataContent_Verb = 2
	ExchangeDataContent_WITHDREW     ExchangeDataContent_Verb = 3
	ExchangeDataContent_DEPOSITED    ExchangeDataContent_Verb = 4
	ExchangeDataContent_SENT         ExchangeDataContent_Verb = 5
	ExchangeDataContent_RETURNED     ExchangeDataContent_Verb = 6
	ExchangeDataContent_SPENT        ExchangeDataContent_Verb = 7
	ExchangeDataContent_PAID         ExchangeDataContent_Verb = 8
	ExchangeDataContent_PURCHASED    ExchangeDataContent_Verb = 9
	ExchangeDataContent_RECEIVED_TIP ExchangeDataContent_Verb = 10
	ExchangeDataContent_SENT_TIP     ExchangeDataContent_Verb = 11
)

func (ExchangeDataContent_Verb) Descriptor

func (ExchangeDataContent_Verb) Enum

func (ExchangeDataContent_Verb) EnumDescriptor deprecated

func (ExchangeDataContent_Verb) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExchangeDataContent_Verb.Descriptor instead.

func (ExchangeDataContent_Verb) Number

func (ExchangeDataContent_Verb) String

func (x ExchangeDataContent_Verb) String() string

func (ExchangeDataContent_Verb) Type

type GetChatsRequest

type GetChatsRequest struct {
	Owner     *v1.SolanaAccountId       `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature             `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	PageSize  uint32                    `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Cursor    *Cursor                   `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"`
	Direction GetChatsRequest_Direction `protobuf:"varint,5,opt,name=direction,proto3,enum=code.chat.v1.GetChatsRequest_Direction" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*GetChatsRequest) Descriptor deprecated

func (*GetChatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetChatsRequest.ProtoReflect.Descriptor instead.

func (*GetChatsRequest) GetCursor

func (x *GetChatsRequest) GetCursor() *Cursor

func (*GetChatsRequest) GetDirection

func (x *GetChatsRequest) GetDirection() GetChatsRequest_Direction

func (*GetChatsRequest) GetOwner

func (x *GetChatsRequest) GetOwner() *v1.SolanaAccountId

func (*GetChatsRequest) GetPageSize

func (x *GetChatsRequest) GetPageSize() uint32

func (*GetChatsRequest) GetSignature

func (x *GetChatsRequest) GetSignature() *v1.Signature

func (*GetChatsRequest) ProtoMessage

func (*GetChatsRequest) ProtoMessage()

func (*GetChatsRequest) ProtoReflect

func (x *GetChatsRequest) ProtoReflect() protoreflect.Message

func (*GetChatsRequest) Reset

func (x *GetChatsRequest) Reset()

func (*GetChatsRequest) String

func (x *GetChatsRequest) String() string

func (*GetChatsRequest) Validate

func (m *GetChatsRequest) Validate() error

Validate checks the field values on GetChatsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetChatsRequestValidationError

type GetChatsRequestValidationError struct {
	// contains filtered or unexported fields
}

GetChatsRequestValidationError is the validation error returned by GetChatsRequest.Validate if the designated constraints aren't met.

func (GetChatsRequestValidationError) Cause

Cause function returns cause value.

func (GetChatsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetChatsRequestValidationError) ErrorName

func (e GetChatsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetChatsRequestValidationError) Field

Field function returns field value.

func (GetChatsRequestValidationError) Key

Key function returns key value.

func (GetChatsRequestValidationError) Reason

Reason function returns reason value.

type GetChatsRequest_Direction

type GetChatsRequest_Direction int32
const (
	GetChatsRequest_ASC  GetChatsRequest_Direction = 0
	GetChatsRequest_DESC GetChatsRequest_Direction = 1
)

func (GetChatsRequest_Direction) Descriptor

func (GetChatsRequest_Direction) Enum

func (GetChatsRequest_Direction) EnumDescriptor deprecated

func (GetChatsRequest_Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetChatsRequest_Direction.Descriptor instead.

func (GetChatsRequest_Direction) Number

func (GetChatsRequest_Direction) String

func (x GetChatsRequest_Direction) String() string

func (GetChatsRequest_Direction) Type

type GetChatsResponse

type GetChatsResponse struct {
	Result GetChatsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.chat.v1.GetChatsResponse_Result" json:"result,omitempty"`
	Chats  []*ChatMetadata         `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"`
	// contains filtered or unexported fields
}

func (*GetChatsResponse) Descriptor deprecated

func (*GetChatsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetChatsResponse.ProtoReflect.Descriptor instead.

func (*GetChatsResponse) GetChats

func (x *GetChatsResponse) GetChats() []*ChatMetadata

func (*GetChatsResponse) GetResult

func (*GetChatsResponse) ProtoMessage

func (*GetChatsResponse) ProtoMessage()

func (*GetChatsResponse) ProtoReflect

func (x *GetChatsResponse) ProtoReflect() protoreflect.Message

func (*GetChatsResponse) Reset

func (x *GetChatsResponse) Reset()

func (*GetChatsResponse) String

func (x *GetChatsResponse) String() string

func (*GetChatsResponse) Validate

func (m *GetChatsResponse) Validate() error

Validate checks the field values on GetChatsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetChatsResponseValidationError

type GetChatsResponseValidationError struct {
	// contains filtered or unexported fields
}

GetChatsResponseValidationError is the validation error returned by GetChatsResponse.Validate if the designated constraints aren't met.

func (GetChatsResponseValidationError) Cause

Cause function returns cause value.

func (GetChatsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetChatsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetChatsResponseValidationError) Field

Field function returns field value.

func (GetChatsResponseValidationError) Key

Key function returns key value.

func (GetChatsResponseValidationError) Reason

Reason function returns reason value.

type GetChatsResponse_Result

type GetChatsResponse_Result int32
const (
	GetChatsResponse_OK        GetChatsResponse_Result = 0
	GetChatsResponse_NOT_FOUND GetChatsResponse_Result = 1
)

func (GetChatsResponse_Result) Descriptor

func (GetChatsResponse_Result) Enum

func (GetChatsResponse_Result) EnumDescriptor deprecated

func (GetChatsResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetChatsResponse_Result.Descriptor instead.

func (GetChatsResponse_Result) Number

func (GetChatsResponse_Result) String

func (x GetChatsResponse_Result) String() string

func (GetChatsResponse_Result) Type

type GetMessagesRequest

type GetMessagesRequest struct {
	ChatId    *ChatId                      `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	Owner     *v1.SolanaAccountId          `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature                `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	PageSize  uint32                       `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Cursor    *Cursor                      `protobuf:"bytes,5,opt,name=cursor,proto3" json:"cursor,omitempty"`
	Direction GetMessagesRequest_Direction `protobuf:"varint,6,opt,name=direction,proto3,enum=code.chat.v1.GetMessagesRequest_Direction" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMessagesRequest) Descriptor deprecated

func (*GetMessagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMessagesRequest.ProtoReflect.Descriptor instead.

func (*GetMessagesRequest) GetChatId

func (x *GetMessagesRequest) GetChatId() *ChatId

func (*GetMessagesRequest) GetCursor

func (x *GetMessagesRequest) GetCursor() *Cursor

func (*GetMessagesRequest) GetDirection

func (*GetMessagesRequest) GetOwner

func (x *GetMessagesRequest) GetOwner() *v1.SolanaAccountId

func (*GetMessagesRequest) GetPageSize

func (x *GetMessagesRequest) GetPageSize() uint32

func (*GetMessagesRequest) GetSignature

func (x *GetMessagesRequest) GetSignature() *v1.Signature

func (*GetMessagesRequest) ProtoMessage

func (*GetMessagesRequest) ProtoMessage()

func (*GetMessagesRequest) ProtoReflect

func (x *GetMessagesRequest) ProtoReflect() protoreflect.Message

func (*GetMessagesRequest) Reset

func (x *GetMessagesRequest) Reset()

func (*GetMessagesRequest) String

func (x *GetMessagesRequest) String() string

func (*GetMessagesRequest) Validate

func (m *GetMessagesRequest) Validate() error

Validate checks the field values on GetMessagesRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetMessagesRequestValidationError

type GetMessagesRequestValidationError struct {
	// contains filtered or unexported fields
}

GetMessagesRequestValidationError is the validation error returned by GetMessagesRequest.Validate if the designated constraints aren't met.

func (GetMessagesRequestValidationError) Cause

Cause function returns cause value.

func (GetMessagesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMessagesRequestValidationError) ErrorName

ErrorName returns error name.

func (GetMessagesRequestValidationError) Field

Field function returns field value.

func (GetMessagesRequestValidationError) Key

Key function returns key value.

func (GetMessagesRequestValidationError) Reason

Reason function returns reason value.

type GetMessagesRequest_Direction

type GetMessagesRequest_Direction int32
const (
	GetMessagesRequest_ASC  GetMessagesRequest_Direction = 0
	GetMessagesRequest_DESC GetMessagesRequest_Direction = 1
)

func (GetMessagesRequest_Direction) Descriptor

func (GetMessagesRequest_Direction) Enum

func (GetMessagesRequest_Direction) EnumDescriptor deprecated

func (GetMessagesRequest_Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetMessagesRequest_Direction.Descriptor instead.

func (GetMessagesRequest_Direction) Number

func (GetMessagesRequest_Direction) String

func (GetMessagesRequest_Direction) Type

type GetMessagesResponse

type GetMessagesResponse struct {
	Result   GetMessagesResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.chat.v1.GetMessagesResponse_Result" json:"result,omitempty"`
	Messages []*ChatMessage             `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMessagesResponse) Descriptor deprecated

func (*GetMessagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMessagesResponse.ProtoReflect.Descriptor instead.

func (*GetMessagesResponse) GetMessages

func (x *GetMessagesResponse) GetMessages() []*ChatMessage

func (*GetMessagesResponse) GetResult

func (*GetMessagesResponse) ProtoMessage

func (*GetMessagesResponse) ProtoMessage()

func (*GetMessagesResponse) ProtoReflect

func (x *GetMessagesResponse) ProtoReflect() protoreflect.Message

func (*GetMessagesResponse) Reset

func (x *GetMessagesResponse) Reset()

func (*GetMessagesResponse) String

func (x *GetMessagesResponse) String() string

func (*GetMessagesResponse) Validate

func (m *GetMessagesResponse) Validate() error

Validate checks the field values on GetMessagesResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetMessagesResponseValidationError

type GetMessagesResponseValidationError struct {
	// contains filtered or unexported fields
}

GetMessagesResponseValidationError is the validation error returned by GetMessagesResponse.Validate if the designated constraints aren't met.

func (GetMessagesResponseValidationError) Cause

Cause function returns cause value.

func (GetMessagesResponseValidationError) Error

Error satisfies the builtin error interface

func (GetMessagesResponseValidationError) ErrorName

ErrorName returns error name.

func (GetMessagesResponseValidationError) Field

Field function returns field value.

func (GetMessagesResponseValidationError) Key

Key function returns key value.

func (GetMessagesResponseValidationError) Reason

Reason function returns reason value.

type GetMessagesResponse_Result

type GetMessagesResponse_Result int32
const (
	GetMessagesResponse_OK        GetMessagesResponse_Result = 0
	GetMessagesResponse_NOT_FOUND GetMessagesResponse_Result = 1
)

func (GetMessagesResponse_Result) Descriptor

func (GetMessagesResponse_Result) Enum

func (GetMessagesResponse_Result) EnumDescriptor deprecated

func (GetMessagesResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetMessagesResponse_Result.Descriptor instead.

func (GetMessagesResponse_Result) Number

func (GetMessagesResponse_Result) String

func (GetMessagesResponse_Result) Type

type NaclBoxEncryptedContent

type NaclBoxEncryptedContent struct {
	PeerPublicKey    *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=peer_public_key,json=peerPublicKey,proto3" json:"peer_public_key,omitempty"`
	Nonce            []byte              `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	EncryptedPayload []byte              `protobuf:"bytes,3,opt,name=encrypted_payload,json=encryptedPayload,proto3" json:"encrypted_payload,omitempty"`
	// contains filtered or unexported fields
}

func (*NaclBoxEncryptedContent) Descriptor deprecated

func (*NaclBoxEncryptedContent) Descriptor() ([]byte, []int)

Deprecated: Use NaclBoxEncryptedContent.ProtoReflect.Descriptor instead.

func (*NaclBoxEncryptedContent) GetEncryptedPayload

func (x *NaclBoxEncryptedContent) GetEncryptedPayload() []byte

func (*NaclBoxEncryptedContent) GetNonce

func (x *NaclBoxEncryptedContent) GetNonce() []byte

func (*NaclBoxEncryptedContent) GetPeerPublicKey

func (x *NaclBoxEncryptedContent) GetPeerPublicKey() *v1.SolanaAccountId

func (*NaclBoxEncryptedContent) ProtoMessage

func (*NaclBoxEncryptedContent) ProtoMessage()

func (*NaclBoxEncryptedContent) ProtoReflect

func (x *NaclBoxEncryptedContent) ProtoReflect() protoreflect.Message

func (*NaclBoxEncryptedContent) Reset

func (x *NaclBoxEncryptedContent) Reset()

func (*NaclBoxEncryptedContent) String

func (x *NaclBoxEncryptedContent) String() string

func (*NaclBoxEncryptedContent) Validate

func (m *NaclBoxEncryptedContent) Validate() error

Validate checks the field values on NaclBoxEncryptedContent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type NaclBoxEncryptedContentValidationError

type NaclBoxEncryptedContentValidationError struct {
	// contains filtered or unexported fields
}

NaclBoxEncryptedContentValidationError is the validation error returned by NaclBoxEncryptedContent.Validate if the designated constraints aren't met.

func (NaclBoxEncryptedContentValidationError) Cause

Cause function returns cause value.

func (NaclBoxEncryptedContentValidationError) Error

Error satisfies the builtin error interface

func (NaclBoxEncryptedContentValidationError) ErrorName

ErrorName returns error name.

func (NaclBoxEncryptedContentValidationError) Field

Field function returns field value.

func (NaclBoxEncryptedContentValidationError) Key

Key function returns key value.

func (NaclBoxEncryptedContentValidationError) Reason

Reason function returns reason value.

type OpenChatEventStream added in v1.17.0

type OpenChatEventStream struct {
	ChatId    *ChatId             `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	Owner     *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature       `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*OpenChatEventStream) Descriptor deprecated added in v1.17.0

func (*OpenChatEventStream) Descriptor() ([]byte, []int)

Deprecated: Use OpenChatEventStream.ProtoReflect.Descriptor instead.

func (*OpenChatEventStream) GetChatId added in v1.17.0

func (x *OpenChatEventStream) GetChatId() *ChatId

func (*OpenChatEventStream) GetOwner added in v1.17.0

func (x *OpenChatEventStream) GetOwner() *v1.SolanaAccountId

func (*OpenChatEventStream) GetSignature added in v1.17.0

func (x *OpenChatEventStream) GetSignature() *v1.Signature

func (*OpenChatEventStream) ProtoMessage added in v1.17.0

func (*OpenChatEventStream) ProtoMessage()

func (*OpenChatEventStream) ProtoReflect added in v1.17.0

func (x *OpenChatEventStream) ProtoReflect() protoreflect.Message

func (*OpenChatEventStream) Reset added in v1.17.0

func (x *OpenChatEventStream) Reset()

func (*OpenChatEventStream) String added in v1.17.0

func (x *OpenChatEventStream) String() string

func (*OpenChatEventStream) Validate added in v1.17.0

func (m *OpenChatEventStream) Validate() error

Validate checks the field values on OpenChatEventStream with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OpenChatEventStreamValidationError added in v1.17.0

type OpenChatEventStreamValidationError struct {
	// contains filtered or unexported fields
}

OpenChatEventStreamValidationError is the validation error returned by OpenChatEventStream.Validate if the designated constraints aren't met.

func (OpenChatEventStreamValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (OpenChatEventStreamValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (OpenChatEventStreamValidationError) ErrorName added in v1.17.0

ErrorName returns error name.

func (OpenChatEventStreamValidationError) Field added in v1.17.0

Field function returns field value.

func (OpenChatEventStreamValidationError) Key added in v1.17.0

Key function returns key value.

func (OpenChatEventStreamValidationError) Reason added in v1.17.0

Reason function returns reason value.

type Pointer

type Pointer struct {
	Kind  Pointer_Kind   `protobuf:"varint,1,opt,name=kind,proto3,enum=code.chat.v1.Pointer_Kind" json:"kind,omitempty"`
	Value *ChatMessageId `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	User  *ChatMemberId  `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*Pointer) Descriptor deprecated

func (*Pointer) Descriptor() ([]byte, []int)

Deprecated: Use Pointer.ProtoReflect.Descriptor instead.

func (*Pointer) GetKind

func (x *Pointer) GetKind() Pointer_Kind

func (*Pointer) GetUser added in v1.17.0

func (x *Pointer) GetUser() *ChatMemberId

func (*Pointer) GetValue

func (x *Pointer) GetValue() *ChatMessageId

func (*Pointer) ProtoMessage

func (*Pointer) ProtoMessage()

func (*Pointer) ProtoReflect

func (x *Pointer) ProtoReflect() protoreflect.Message

func (*Pointer) Reset

func (x *Pointer) Reset()

func (*Pointer) String

func (x *Pointer) String() string

func (*Pointer) Validate

func (m *Pointer) Validate() error

Validate checks the field values on Pointer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PointerValidationError

type PointerValidationError struct {
	// contains filtered or unexported fields
}

PointerValidationError is the validation error returned by Pointer.Validate if the designated constraints aren't met.

func (PointerValidationError) Cause

func (e PointerValidationError) Cause() error

Cause function returns cause value.

func (PointerValidationError) Error

func (e PointerValidationError) Error() string

Error satisfies the builtin error interface

func (PointerValidationError) ErrorName

func (e PointerValidationError) ErrorName() string

ErrorName returns error name.

func (PointerValidationError) Field

func (e PointerValidationError) Field() string

Field function returns field value.

func (PointerValidationError) Key

func (e PointerValidationError) Key() bool

Key function returns key value.

func (PointerValidationError) Reason

func (e PointerValidationError) Reason() string

Reason function returns reason value.

type Pointer_Kind

type Pointer_Kind int32
const (
	Pointer_UNKNOWN   Pointer_Kind = 0
	Pointer_READ      Pointer_Kind = 1
	Pointer_DELIVERED Pointer_Kind = 2
	Pointer_SENT      Pointer_Kind = 3 // Probably always inferred by OK result in SendMessageResponse
)

func (Pointer_Kind) Descriptor

func (Pointer_Kind) Enum

func (x Pointer_Kind) Enum() *Pointer_Kind

func (Pointer_Kind) EnumDescriptor deprecated

func (Pointer_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Pointer_Kind.Descriptor instead.

func (Pointer_Kind) Number

func (Pointer_Kind) String

func (x Pointer_Kind) String() string

func (Pointer_Kind) Type

type SendMessageRequest added in v1.17.0

type SendMessageRequest struct {
	Owner     *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature       `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	ChatId    *ChatId             `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	// todo: What field type should this be? Maybe the chat message itself with fields missing?
	Content []*Content `protobuf:"bytes,4,rep,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*SendMessageRequest) Descriptor deprecated added in v1.17.0

func (*SendMessageRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.

func (*SendMessageRequest) GetChatId added in v1.17.0

func (x *SendMessageRequest) GetChatId() *ChatId

func (*SendMessageRequest) GetContent added in v1.17.0

func (x *SendMessageRequest) GetContent() []*Content

func (*SendMessageRequest) GetOwner added in v1.17.0

func (x *SendMessageRequest) GetOwner() *v1.SolanaAccountId

func (*SendMessageRequest) GetSignature added in v1.17.0

func (x *SendMessageRequest) GetSignature() *v1.Signature

func (*SendMessageRequest) ProtoMessage added in v1.17.0

func (*SendMessageRequest) ProtoMessage()

func (*SendMessageRequest) ProtoReflect added in v1.17.0

func (x *SendMessageRequest) ProtoReflect() protoreflect.Message

func (*SendMessageRequest) Reset added in v1.17.0

func (x *SendMessageRequest) Reset()

func (*SendMessageRequest) String added in v1.17.0

func (x *SendMessageRequest) String() string

func (*SendMessageRequest) Validate added in v1.17.0

func (m *SendMessageRequest) Validate() error

Validate checks the field values on SendMessageRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SendMessageRequestValidationError added in v1.17.0

type SendMessageRequestValidationError struct {
	// contains filtered or unexported fields
}

SendMessageRequestValidationError is the validation error returned by SendMessageRequest.Validate if the designated constraints aren't met.

func (SendMessageRequestValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (SendMessageRequestValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (SendMessageRequestValidationError) ErrorName added in v1.17.0

ErrorName returns error name.

func (SendMessageRequestValidationError) Field added in v1.17.0

Field function returns field value.

func (SendMessageRequestValidationError) Key added in v1.17.0

Key function returns key value.

func (SendMessageRequestValidationError) Reason added in v1.17.0

Reason function returns reason value.

type SendMessageResponse added in v1.17.0

type SendMessageResponse struct {
	Result  SendMessageResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.chat.v1.SendMessageResponse_Result" json:"result,omitempty"`
	Message *ChatMessage               `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*SendMessageResponse) Descriptor deprecated added in v1.17.0

func (*SendMessageResponse) Descriptor() ([]byte, []int)

Deprecated: Use SendMessageResponse.ProtoReflect.Descriptor instead.

func (*SendMessageResponse) GetMessage added in v1.17.0

func (x *SendMessageResponse) GetMessage() *ChatMessage

func (*SendMessageResponse) GetResult added in v1.17.0

func (*SendMessageResponse) ProtoMessage added in v1.17.0

func (*SendMessageResponse) ProtoMessage()

func (*SendMessageResponse) ProtoReflect added in v1.17.0

func (x *SendMessageResponse) ProtoReflect() protoreflect.Message

func (*SendMessageResponse) Reset added in v1.17.0

func (x *SendMessageResponse) Reset()

func (*SendMessageResponse) String added in v1.17.0

func (x *SendMessageResponse) String() string

func (*SendMessageResponse) Validate added in v1.17.0

func (m *SendMessageResponse) Validate() error

Validate checks the field values on SendMessageResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SendMessageResponseValidationError added in v1.17.0

type SendMessageResponseValidationError struct {
	// contains filtered or unexported fields
}

SendMessageResponseValidationError is the validation error returned by SendMessageResponse.Validate if the designated constraints aren't met.

func (SendMessageResponseValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (SendMessageResponseValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (SendMessageResponseValidationError) ErrorName added in v1.17.0

ErrorName returns error name.

func (SendMessageResponseValidationError) Field added in v1.17.0

Field function returns field value.

func (SendMessageResponseValidationError) Key added in v1.17.0

Key function returns key value.

func (SendMessageResponseValidationError) Reason added in v1.17.0

Reason function returns reason value.

type SendMessageResponse_Result added in v1.17.0

type SendMessageResponse_Result int32
const (
	SendMessageResponse_OK SendMessageResponse_Result = 0
)

func (SendMessageResponse_Result) Descriptor added in v1.17.0

func (SendMessageResponse_Result) Enum added in v1.17.0

func (SendMessageResponse_Result) EnumDescriptor deprecated added in v1.17.0

func (SendMessageResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use SendMessageResponse_Result.Descriptor instead.

func (SendMessageResponse_Result) Number added in v1.17.0

func (SendMessageResponse_Result) String added in v1.17.0

func (SendMessageResponse_Result) Type added in v1.17.0

type ServerLocalizedContent added in v1.17.0

type ServerLocalizedContent struct {

	// When server-side localization is in place, clients will always see the
	// localized text.
	KeyOrText string `protobuf:"bytes,1,opt,name=key_or_text,json=keyOrText,proto3" json:"key_or_text,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerLocalizedContent) Descriptor deprecated added in v1.17.0

func (*ServerLocalizedContent) Descriptor() ([]byte, []int)

Deprecated: Use ServerLocalizedContent.ProtoReflect.Descriptor instead.

func (*ServerLocalizedContent) GetKeyOrText added in v1.17.0

func (x *ServerLocalizedContent) GetKeyOrText() string

func (*ServerLocalizedContent) ProtoMessage added in v1.17.0

func (*ServerLocalizedContent) ProtoMessage()

func (*ServerLocalizedContent) ProtoReflect added in v1.17.0

func (x *ServerLocalizedContent) ProtoReflect() protoreflect.Message

func (*ServerLocalizedContent) Reset added in v1.17.0

func (x *ServerLocalizedContent) Reset()

func (*ServerLocalizedContent) String added in v1.17.0

func (x *ServerLocalizedContent) String() string

func (*ServerLocalizedContent) Validate added in v1.17.0

func (m *ServerLocalizedContent) Validate() error

Validate checks the field values on ServerLocalizedContent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ServerLocalizedContentValidationError added in v1.17.0

type ServerLocalizedContentValidationError struct {
	// contains filtered or unexported fields
}

ServerLocalizedContentValidationError is the validation error returned by ServerLocalizedContent.Validate if the designated constraints aren't met.

func (ServerLocalizedContentValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (ServerLocalizedContentValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (ServerLocalizedContentValidationError) ErrorName added in v1.17.0

ErrorName returns error name.

func (ServerLocalizedContentValidationError) Field added in v1.17.0

Field function returns field value.

func (ServerLocalizedContentValidationError) Key added in v1.17.0

Key function returns key value.

func (ServerLocalizedContentValidationError) Reason added in v1.17.0

Reason function returns reason value.

type SetMuteStateRequest

type SetMuteStateRequest struct {
	ChatId    *ChatId             `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	IsMuted   bool                `protobuf:"varint,2,opt,name=is_muted,json=isMuted,proto3" json:"is_muted,omitempty"`
	Owner     *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature       `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMuteStateRequest) Descriptor deprecated

func (*SetMuteStateRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetMuteStateRequest.ProtoReflect.Descriptor instead.

func (*SetMuteStateRequest) GetChatId

func (x *SetMuteStateRequest) GetChatId() *ChatId

func (*SetMuteStateRequest) GetIsMuted

func (x *SetMuteStateRequest) GetIsMuted() bool

func (*SetMuteStateRequest) GetOwner

func (x *SetMuteStateRequest) GetOwner() *v1.SolanaAccountId

func (*SetMuteStateRequest) GetSignature

func (x *SetMuteStateRequest) GetSignature() *v1.Signature

func (*SetMuteStateRequest) ProtoMessage

func (*SetMuteStateRequest) ProtoMessage()

func (*SetMuteStateRequest) ProtoReflect

func (x *SetMuteStateRequest) ProtoReflect() protoreflect.Message

func (*SetMuteStateRequest) Reset

func (x *SetMuteStateRequest) Reset()

func (*SetMuteStateRequest) String

func (x *SetMuteStateRequest) String() string

func (*SetMuteStateRequest) Validate

func (m *SetMuteStateRequest) Validate() error

Validate checks the field values on SetMuteStateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SetMuteStateRequestValidationError

type SetMuteStateRequestValidationError struct {
	// contains filtered or unexported fields
}

SetMuteStateRequestValidationError is the validation error returned by SetMuteStateRequest.Validate if the designated constraints aren't met.

func (SetMuteStateRequestValidationError) Cause

Cause function returns cause value.

func (SetMuteStateRequestValidationError) Error

Error satisfies the builtin error interface

func (SetMuteStateRequestValidationError) ErrorName

ErrorName returns error name.

func (SetMuteStateRequestValidationError) Field

Field function returns field value.

func (SetMuteStateRequestValidationError) Key

Key function returns key value.

func (SetMuteStateRequestValidationError) Reason

Reason function returns reason value.

type SetMuteStateResponse

type SetMuteStateResponse struct {
	Result SetMuteStateResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.chat.v1.SetMuteStateResponse_Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMuteStateResponse) Descriptor deprecated

func (*SetMuteStateResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetMuteStateResponse.ProtoReflect.Descriptor instead.

func (*SetMuteStateResponse) GetResult

func (*SetMuteStateResponse) ProtoMessage

func (*SetMuteStateResponse) ProtoMessage()

func (*SetMuteStateResponse) ProtoReflect

func (x *SetMuteStateResponse) ProtoReflect() protoreflect.Message

func (*SetMuteStateResponse) Reset

func (x *SetMuteStateResponse) Reset()

func (*SetMuteStateResponse) String

func (x *SetMuteStateResponse) String() string

func (*SetMuteStateResponse) Validate

func (m *SetMuteStateResponse) Validate() error

Validate checks the field values on SetMuteStateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SetMuteStateResponseValidationError

type SetMuteStateResponseValidationError struct {
	// contains filtered or unexported fields
}

SetMuteStateResponseValidationError is the validation error returned by SetMuteStateResponse.Validate if the designated constraints aren't met.

func (SetMuteStateResponseValidationError) Cause

Cause function returns cause value.

func (SetMuteStateResponseValidationError) Error

Error satisfies the builtin error interface

func (SetMuteStateResponseValidationError) ErrorName

ErrorName returns error name.

func (SetMuteStateResponseValidationError) Field

Field function returns field value.

func (SetMuteStateResponseValidationError) Key

Key function returns key value.

func (SetMuteStateResponseValidationError) Reason

Reason function returns reason value.

type SetMuteStateResponse_Result

type SetMuteStateResponse_Result int32
const (
	SetMuteStateResponse_OK             SetMuteStateResponse_Result = 0
	SetMuteStateResponse_CHAT_NOT_FOUND SetMuteStateResponse_Result = 1
	SetMuteStateResponse_CANT_MUTE      SetMuteStateResponse_Result = 2
)

func (SetMuteStateResponse_Result) Descriptor

func (SetMuteStateResponse_Result) Enum

func (SetMuteStateResponse_Result) EnumDescriptor deprecated

func (SetMuteStateResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use SetMuteStateResponse_Result.Descriptor instead.

func (SetMuteStateResponse_Result) Number

func (SetMuteStateResponse_Result) String

func (SetMuteStateResponse_Result) Type

type SetSubscriptionStateRequest

type SetSubscriptionStateRequest struct {
	ChatId       *ChatId             `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	IsSubscribed bool                `protobuf:"varint,2,opt,name=is_subscribed,json=isSubscribed,proto3" json:"is_subscribed,omitempty"`
	Owner        *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature    *v1.Signature       `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSubscriptionStateRequest) Descriptor deprecated

func (*SetSubscriptionStateRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetSubscriptionStateRequest.ProtoReflect.Descriptor instead.

func (*SetSubscriptionStateRequest) GetChatId

func (x *SetSubscriptionStateRequest) GetChatId() *ChatId

func (*SetSubscriptionStateRequest) GetIsSubscribed

func (x *SetSubscriptionStateRequest) GetIsSubscribed() bool

func (*SetSubscriptionStateRequest) GetOwner

func (*SetSubscriptionStateRequest) GetSignature

func (x *SetSubscriptionStateRequest) GetSignature() *v1.Signature

func (*SetSubscriptionStateRequest) ProtoMessage

func (*SetSubscriptionStateRequest) ProtoMessage()

func (*SetSubscriptionStateRequest) ProtoReflect

func (*SetSubscriptionStateRequest) Reset

func (x *SetSubscriptionStateRequest) Reset()

func (*SetSubscriptionStateRequest) String

func (x *SetSubscriptionStateRequest) String() string

func (*SetSubscriptionStateRequest) Validate

func (m *SetSubscriptionStateRequest) Validate() error

Validate checks the field values on SetSubscriptionStateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SetSubscriptionStateRequestValidationError

type SetSubscriptionStateRequestValidationError struct {
	// contains filtered or unexported fields
}

SetSubscriptionStateRequestValidationError is the validation error returned by SetSubscriptionStateRequest.Validate if the designated constraints aren't met.

func (SetSubscriptionStateRequestValidationError) Cause

Cause function returns cause value.

func (SetSubscriptionStateRequestValidationError) Error

Error satisfies the builtin error interface

func (SetSubscriptionStateRequestValidationError) ErrorName

ErrorName returns error name.

func (SetSubscriptionStateRequestValidationError) Field

Field function returns field value.

func (SetSubscriptionStateRequestValidationError) Key

Key function returns key value.

func (SetSubscriptionStateRequestValidationError) Reason

Reason function returns reason value.

type SetSubscriptionStateResponse

type SetSubscriptionStateResponse struct {
	Result SetSubscriptionStateResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.chat.v1.SetSubscriptionStateResponse_Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSubscriptionStateResponse) Descriptor deprecated

func (*SetSubscriptionStateResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetSubscriptionStateResponse.ProtoReflect.Descriptor instead.

func (*SetSubscriptionStateResponse) GetResult

func (*SetSubscriptionStateResponse) ProtoMessage

func (*SetSubscriptionStateResponse) ProtoMessage()

func (*SetSubscriptionStateResponse) ProtoReflect

func (*SetSubscriptionStateResponse) Reset

func (x *SetSubscriptionStateResponse) Reset()

func (*SetSubscriptionStateResponse) String

func (*SetSubscriptionStateResponse) Validate

func (m *SetSubscriptionStateResponse) Validate() error

Validate checks the field values on SetSubscriptionStateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SetSubscriptionStateResponseValidationError

type SetSubscriptionStateResponseValidationError struct {
	// contains filtered or unexported fields
}

SetSubscriptionStateResponseValidationError is the validation error returned by SetSubscriptionStateResponse.Validate if the designated constraints aren't met.

func (SetSubscriptionStateResponseValidationError) Cause

Cause function returns cause value.

func (SetSubscriptionStateResponseValidationError) Error

Error satisfies the builtin error interface

func (SetSubscriptionStateResponseValidationError) ErrorName

ErrorName returns error name.

func (SetSubscriptionStateResponseValidationError) Field

Field function returns field value.

func (SetSubscriptionStateResponseValidationError) Key

Key function returns key value.

func (SetSubscriptionStateResponseValidationError) Reason

Reason function returns reason value.

type SetSubscriptionStateResponse_Result

type SetSubscriptionStateResponse_Result int32
const (
	SetSubscriptionStateResponse_OK               SetSubscriptionStateResponse_Result = 0
	SetSubscriptionStateResponse_CHAT_NOT_FOUND   SetSubscriptionStateResponse_Result = 1
	SetSubscriptionStateResponse_CANT_UNSUBSCRIBE SetSubscriptionStateResponse_Result = 2
)

func (SetSubscriptionStateResponse_Result) Descriptor

func (SetSubscriptionStateResponse_Result) Enum

func (SetSubscriptionStateResponse_Result) EnumDescriptor deprecated

func (SetSubscriptionStateResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use SetSubscriptionStateResponse_Result.Descriptor instead.

func (SetSubscriptionStateResponse_Result) Number

func (SetSubscriptionStateResponse_Result) String

func (SetSubscriptionStateResponse_Result) Type

type StreamChatEventsRequest added in v1.17.0

type StreamChatEventsRequest struct {

	// Types that are assignable to Type:
	//
	//	*StreamChatEventsRequest_OpenStream
	//	*StreamChatEventsRequest_Pong
	Type isStreamChatEventsRequest_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*StreamChatEventsRequest) Descriptor deprecated added in v1.17.0

func (*StreamChatEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use StreamChatEventsRequest.ProtoReflect.Descriptor instead.

func (*StreamChatEventsRequest) GetOpenStream added in v1.17.0

func (x *StreamChatEventsRequest) GetOpenStream() *OpenChatEventStream

func (*StreamChatEventsRequest) GetPong added in v1.17.0

func (x *StreamChatEventsRequest) GetPong() *v1.ClientPong

func (*StreamChatEventsRequest) GetType added in v1.17.0

func (m *StreamChatEventsRequest) GetType() isStreamChatEventsRequest_Type

func (*StreamChatEventsRequest) ProtoMessage added in v1.17.0

func (*StreamChatEventsRequest) ProtoMessage()

func (*StreamChatEventsRequest) ProtoReflect added in v1.17.0

func (x *StreamChatEventsRequest) ProtoReflect() protoreflect.Message

func (*StreamChatEventsRequest) Reset added in v1.17.0

func (x *StreamChatEventsRequest) Reset()

func (*StreamChatEventsRequest) String added in v1.17.0

func (x *StreamChatEventsRequest) String() string

func (*StreamChatEventsRequest) Validate added in v1.17.0

func (m *StreamChatEventsRequest) Validate() error

Validate checks the field values on StreamChatEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type StreamChatEventsRequestValidationError added in v1.17.0

type StreamChatEventsRequestValidationError struct {
	// contains filtered or unexported fields
}

StreamChatEventsRequestValidationError is the validation error returned by StreamChatEventsRequest.Validate if the designated constraints aren't met.

func (StreamChatEventsRequestValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (StreamChatEventsRequestValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (StreamChatEventsRequestValidationError) ErrorName added in v1.17.0

ErrorName returns error name.

func (StreamChatEventsRequestValidationError) Field added in v1.17.0

Field function returns field value.

func (StreamChatEventsRequestValidationError) Key added in v1.17.0

Key function returns key value.

func (StreamChatEventsRequestValidationError) Reason added in v1.17.0

Reason function returns reason value.

type StreamChatEventsRequest_OpenStream added in v1.17.0

type StreamChatEventsRequest_OpenStream struct {
	OpenStream *OpenChatEventStream `protobuf:"bytes,1,opt,name=open_stream,json=openStream,proto3,oneof"`
}

type StreamChatEventsRequest_Pong added in v1.17.0

type StreamChatEventsRequest_Pong struct {
	Pong *v1.ClientPong `protobuf:"bytes,2,opt,name=pong,proto3,oneof"`
}

type StreamChatEventsResponse added in v1.17.0

type StreamChatEventsResponse struct {

	// Types that are assignable to Type:
	//
	//	*StreamChatEventsResponse_Events
	//	*StreamChatEventsResponse_Ping
	Type isStreamChatEventsResponse_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*StreamChatEventsResponse) Descriptor deprecated added in v1.17.0

func (*StreamChatEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use StreamChatEventsResponse.ProtoReflect.Descriptor instead.

func (*StreamChatEventsResponse) GetEvents added in v1.17.0

func (*StreamChatEventsResponse) GetPing added in v1.17.0

func (x *StreamChatEventsResponse) GetPing() *v1.ServerPing

func (*StreamChatEventsResponse) GetType added in v1.17.0

func (m *StreamChatEventsResponse) GetType() isStreamChatEventsResponse_Type

func (*StreamChatEventsResponse) ProtoMessage added in v1.17.0

func (*StreamChatEventsResponse) ProtoMessage()

func (*StreamChatEventsResponse) ProtoReflect added in v1.17.0

func (x *StreamChatEventsResponse) ProtoReflect() protoreflect.Message

func (*StreamChatEventsResponse) Reset added in v1.17.0

func (x *StreamChatEventsResponse) Reset()

func (*StreamChatEventsResponse) String added in v1.17.0

func (x *StreamChatEventsResponse) String() string

func (*StreamChatEventsResponse) Validate added in v1.17.0

func (m *StreamChatEventsResponse) Validate() error

Validate checks the field values on StreamChatEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type StreamChatEventsResponseValidationError added in v1.17.0

type StreamChatEventsResponseValidationError struct {
	// contains filtered or unexported fields
}

StreamChatEventsResponseValidationError is the validation error returned by StreamChatEventsResponse.Validate if the designated constraints aren't met.

func (StreamChatEventsResponseValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (StreamChatEventsResponseValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (StreamChatEventsResponseValidationError) ErrorName added in v1.17.0

ErrorName returns error name.

func (StreamChatEventsResponseValidationError) Field added in v1.17.0

Field function returns field value.

func (StreamChatEventsResponseValidationError) Key added in v1.17.0

Key function returns key value.

func (StreamChatEventsResponseValidationError) Reason added in v1.17.0

Reason function returns reason value.

type StreamChatEventsResponse_Events added in v1.17.0

type StreamChatEventsResponse_Events struct {
	Events *ChatStreamEventBatch `protobuf:"bytes,1,opt,name=events,proto3,oneof"`
}

type StreamChatEventsResponse_Ping added in v1.17.0

type StreamChatEventsResponse_Ping struct {
	Ping *v1.ServerPing `protobuf:"bytes,2,opt,name=ping,proto3,oneof"`
}

type TextContent added in v1.17.0

type TextContent struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*TextContent) Descriptor deprecated added in v1.17.0

func (*TextContent) Descriptor() ([]byte, []int)

Deprecated: Use TextContent.ProtoReflect.Descriptor instead.

func (*TextContent) GetText added in v1.17.0

func (x *TextContent) GetText() string

func (*TextContent) ProtoMessage added in v1.17.0

func (*TextContent) ProtoMessage()

func (*TextContent) ProtoReflect added in v1.17.0

func (x *TextContent) ProtoReflect() protoreflect.Message

func (*TextContent) Reset added in v1.17.0

func (x *TextContent) Reset()

func (*TextContent) String added in v1.17.0

func (x *TextContent) String() string

func (*TextContent) Validate added in v1.17.0

func (m *TextContent) Validate() error

Validate checks the field values on TextContent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type TextContentValidationError added in v1.17.0

type TextContentValidationError struct {
	// contains filtered or unexported fields
}

TextContentValidationError is the validation error returned by TextContent.Validate if the designated constraints aren't met.

func (TextContentValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (TextContentValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (TextContentValidationError) ErrorName added in v1.17.0

func (e TextContentValidationError) ErrorName() string

ErrorName returns error name.

func (TextContentValidationError) Field added in v1.17.0

Field function returns field value.

func (TextContentValidationError) Key added in v1.17.0

Key function returns key value.

func (TextContentValidationError) Reason added in v1.17.0

Reason function returns reason value.

type ThankYouContent added in v1.17.0

type ThankYouContent struct {
	// contains filtered or unexported fields
}

func (*ThankYouContent) Descriptor deprecated added in v1.17.0

func (*ThankYouContent) Descriptor() ([]byte, []int)

Deprecated: Use ThankYouContent.ProtoReflect.Descriptor instead.

func (*ThankYouContent) ProtoMessage added in v1.17.0

func (*ThankYouContent) ProtoMessage()

func (*ThankYouContent) ProtoReflect added in v1.17.0

func (x *ThankYouContent) ProtoReflect() protoreflect.Message

func (*ThankYouContent) Reset added in v1.17.0

func (x *ThankYouContent) Reset()

func (*ThankYouContent) String added in v1.17.0

func (x *ThankYouContent) String() string

func (*ThankYouContent) Validate added in v1.17.0

func (m *ThankYouContent) Validate() error

Validate checks the field values on ThankYouContent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ThankYouContentValidationError added in v1.17.0

type ThankYouContentValidationError struct {
	// contains filtered or unexported fields
}

ThankYouContentValidationError is the validation error returned by ThankYouContent.Validate if the designated constraints aren't met.

func (ThankYouContentValidationError) Cause added in v1.17.0

Cause function returns cause value.

func (ThankYouContentValidationError) Error added in v1.17.0

Error satisfies the builtin error interface

func (ThankYouContentValidationError) ErrorName added in v1.17.0

func (e ThankYouContentValidationError) ErrorName() string

ErrorName returns error name.

func (ThankYouContentValidationError) Field added in v1.17.0

Field function returns field value.

func (ThankYouContentValidationError) Key added in v1.17.0

Key function returns key value.

func (ThankYouContentValidationError) Reason added in v1.17.0

Reason function returns reason value.

type UnimplementedChatServer

type UnimplementedChatServer struct {
}

UnimplementedChatServer must be embedded to have forward compatible implementations.

func (UnimplementedChatServer) AdvancePointer

func (UnimplementedChatServer) GetChats

func (UnimplementedChatServer) GetMessages

func (UnimplementedChatServer) SendMessage added in v1.17.0

func (UnimplementedChatServer) SetMuteState

func (UnimplementedChatServer) StreamChatEvents added in v1.17.0

type UnsafeChatServer

type UnsafeChatServer interface {
	// contains filtered or unexported methods
}

UnsafeChatServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChatServer will result in compilation errors.

Jump to

Keyboard shortcuts

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