chat

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChatType_name = map[int32]string{
		0: "UNKNOWN_CHAT_TYPE",
		1: "NOTIFICATION",
		2: "TWO_WAY",
	}
	ChatType_value = map[string]int32{
		"UNKNOWN_CHAT_TYPE": 0,
		"NOTIFICATION":      1,
		"TWO_WAY":           2,
	}
)

Enum value maps for ChatType.

View Source
var (
	Platform_name = map[int32]string{
		0: "UNKNOWN_PLATFORM",
		1: "TWITTER",
	}
	Platform_value = map[string]int32{
		"UNKNOWN_PLATFORM": 0,
		"TWITTER":          1,
	}
)

Enum value maps for Platform.

View Source
var (
	PointerType_name = map[int32]string{
		0: "UNKNOWN_POINTER_TYPE",
		1: "SENT",
		2: "DELIVERED",
		3: "READ",
	}
	PointerType_value = map[string]int32{
		"UNKNOWN_POINTER_TYPE": 0,
		"SENT":                 1,
		"DELIVERED":            2,
		"READ":                 3,
	}
)

Enum value maps for PointerType.

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: "DENIED",
		2: "CHAT_NOT_FOUND",
		3: "MESSAGE_NOT_FOUND",
	}
	GetMessagesResponse_Result_value = map[string]int32{
		"OK":                0,
		"DENIED":            1,
		"CHAT_NOT_FOUND":    2,
		"MESSAGE_NOT_FOUND": 3,
	}
)

Enum value maps for GetMessagesResponse_Result.

View Source
var (
	ChatStreamEventError_Code_name = map[int32]string{
		0: "DENIED",
		1: "CHAT_NOT_FOUND",
	}
	ChatStreamEventError_Code_value = map[string]int32{
		"DENIED":         0,
		"CHAT_NOT_FOUND": 1,
	}
)

Enum value maps for ChatStreamEventError_Code.

View Source
var (
	StartChatResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
		2: "INVALID_PARAMETER",
	}
	StartChatResponse_Result_value = map[string]int32{
		"OK":                0,
		"DENIED":            1,
		"INVALID_PARAMETER": 2,
	}
)

Enum value maps for StartChatResponse_Result.

View Source
var (
	SendMessageResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
		2: "CHAT_NOT_FOUND",
		3: "INVALID_CHAT_TYPE",
		4: "INVALID_CONTENT_TYPE",
	}
	SendMessageResponse_Result_value = map[string]int32{
		"OK":                   0,
		"DENIED":               1,
		"CHAT_NOT_FOUND":       2,
		"INVALID_CHAT_TYPE":    3,
		"INVALID_CONTENT_TYPE": 4,
	}
)

Enum value maps for SendMessageResponse_Result.

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

Enum value maps for AdvancePointerResponse_Result.

View Source
var (
	RevealIdentityResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
		2: "CHAT_NOT_FOUND",
		3: "DIFFERENT_IDENTITY_REVEALED",
	}
	RevealIdentityResponse_Result_value = map[string]int32{
		"OK":                          0,
		"DENIED":                      1,
		"CHAT_NOT_FOUND":              2,
		"DIFFERENT_IDENTITY_REVEALED": 3,
	}
)

Enum value maps for RevealIdentityResponse_Result.

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

Enum value maps for SetMuteStateResponse_Result.

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

Enum value maps for SetSubscriptionStateResponse_Result.

View Source
var (
	NotifyIsTypingResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
		2: "CHAT_NOT_FOUND",
	}
	NotifyIsTypingResponse_Result_value = map[string]int32{
		"OK":             0,
		"DENIED":         1,
		"CHAT_NOT_FOUND": 2,
	}
)

Enum value maps for NotifyIsTypingResponse_Result.

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.v2.Chat",
	HandlerType: (*ChatServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetChats",
			Handler:    _Chat_GetChats_Handler,
		},
		{
			MethodName: "GetMessages",
			Handler:    _Chat_GetMessages_Handler,
		},
		{
			MethodName: "StartChat",
			Handler:    _Chat_StartChat_Handler,
		},
		{
			MethodName: "SendMessage",
			Handler:    _Chat_SendMessage_Handler,
		},
		{
			MethodName: "AdvancePointer",
			Handler:    _Chat_AdvancePointer_Handler,
		},
		{
			MethodName: "RevealIdentity",
			Handler:    _Chat_RevealIdentity_Handler,
		},
		{
			MethodName: "SetMuteState",
			Handler:    _Chat_SetMuteState_Handler,
		},
		{
			MethodName: "SetSubscriptionState",
			Handler:    _Chat_SetSubscriptionState_Handler,
		},
		{
			MethodName: "NotifyIsTyping",
			Handler:    _Chat_NotifyIsTyping_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamChatEvents",
			Handler:       _Chat_StreamChatEvents_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "chat/v2/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_v2_chat_service_proto protoreflect.FileDescriptor

Functions

func RegisterChatServer

func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer)

Types

type AdvancePointerRequest

type AdvancePointerRequest struct {
	ChatId    *v1.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() *v1.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.v2.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_DENIED               AdvancePointerResponse_Result = 1
	AdvancePointerResponse_CHAT_NOT_FOUND       AdvancePointerResponse_Result = 2
	AdvancePointerResponse_MESSAGE_NOT_FOUND    AdvancePointerResponse_Result = 3
	AdvancePointerResponse_INVALID_POINTER_TYPE AdvancePointerResponse_Result = 4
)

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 using a paged API.
	// This RPC is aware of all identities tied to the owner account.
	GetChats(ctx context.Context, in *GetChatsRequest, opts ...grpc.CallOption) (*GetChatsResponse, error)
	// GetMessages gets the set of messages for a chat member using a paged API
	GetMessages(ctx context.Context, in *GetMessagesRequest, opts ...grpc.CallOption) (*GetMessagesResponse, error)
	// StreamChatEvents streams chat events in real-time. Chat events include
	// messages, pointer updates, etc.
	//
	// The streaming protocol is follows:
	//  1. Client initiates a stream by sending an OpenChatEventStream message.
	//  2. If an error is encoutered, a ChatStreamEventError message will be
	//     returned by server and the stream will be closed.
	//  3. Server will immediately flush initial chat state.
	//  4. New chat events will be pushed to the stream in real time as they
	//     are received.
	//
	// This RPC supports a keepalive protocol as follows:
	//  1. Client initiates a stream by sending an OpenChatEventStream message.
	//  2. Upon stream initialization, server begins the keepalive protocol.
	//  3. Server sends a ping to the client.
	//  4. Client responds with a pong as fast as possible, making note of
	//     the delay for when to expect the next ping.
	//  5. Steps 3 and 4 are repeated until the stream is explicitly terminated
	//     or is deemed to be unhealthy.
	//
	// Client notes:
	//   - Client should be careful to process events async, so any responses to pings are
	//     not delayed.
	//   - Clients should implement a reasonable backoff strategy upon continued timeout
	//     failures.
	//   - Clients that abuse pong messages may have their streams terminated by server.
	//
	// At any point in the stream, server will respond with events in real time as
	// they are observed. Events sent over the stream should not affect the ping/pong
	// protocol timings.
	StreamChatEvents(ctx context.Context, opts ...grpc.CallOption) (Chat_StreamChatEventsClient, error)
	// StartChat starts a chat. The RPC call is idempotent and will use existing
	// chats whenever applicable within the context of message routing.
	StartChat(ctx context.Context, in *StartChatRequest, opts ...grpc.CallOption) (*StartChatResponse, error)
	// SendMessage sends a message to a chat
	SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*SendMessageResponse, error)
	// AdvancePointer advances a pointer in message history for a chat member
	AdvancePointer(ctx context.Context, in *AdvancePointerRequest, opts ...grpc.CallOption) (*AdvancePointerResponse, error)
	// RevealIdentity reveals a chat member's identity if it is anonymous. A chat
	// message will be inserted on success.
	RevealIdentity(ctx context.Context, in *RevealIdentityRequest, opts ...grpc.CallOption) (*RevealIdentityResponse, error)
	// SetMuteState configures a chat member's mute state
	SetMuteState(ctx context.Context, in *SetMuteStateRequest, opts ...grpc.CallOption) (*SetMuteStateResponse, error)
	// SetSubscriptionState configures a chat member's susbscription state
	SetSubscriptionState(ctx context.Context, in *SetSubscriptionStateRequest, opts ...grpc.CallOption) (*SetSubscriptionStateResponse, error)
	// NotifyIsTypingRequest notifies a chat that the sending member is typing.
	//
	// These requests are transient, and may be dropped at any point.
	NotifyIsTyping(ctx context.Context, in *NotifyIsTypingRequest, opts ...grpc.CallOption) (*NotifyIsTypingResponse, 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 ChatMember

type ChatMember struct {

	// Globally unique ID for this chat member
	MemberId *ChatMemberId `protobuf:"bytes,1,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// Is this chat member yourself? This enables client to identify which member_id
	// is themselves.
	IsSelf bool `protobuf:"varint,2,opt,name=is_self,json=isSelf,proto3" json:"is_self,omitempty"`
	// The chat member's identity if it has been revealed.
	Identity *ChatMemberIdentity `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
	// Chat message state for this member. This list will have DELIVERED and READ
	// pointers, if they exist. SENT pointers should be inferred by persistence
	// on server.
	Pointers []*Pointer `protobuf:"bytes,4,rep,name=pointers,proto3" json:"pointers,omitempty"`
	// Estimated number of unread messages for the chat member in this chat
	//
	// Only valid when is_self = true
	NumUnread uint32 `protobuf:"varint,5,opt,name=num_unread,json=numUnread,proto3" json:"num_unread,omitempty"`
	// Has the chat member muted this chat?
	//
	// Only valid when is_self = true
	IsMuted bool `protobuf:"varint,6,opt,name=is_muted,json=isMuted,proto3" json:"is_muted,omitempty"`
	// Is the chat member subscribed to this chat?
	//
	// Only valid when is_self = true
	IsSubscribed bool `protobuf:"varint,7,opt,name=is_subscribed,json=isSubscribed,proto3" json:"is_subscribed,omitempty"`
	// contains filtered or unexported fields
}

A user in a chat

func (*ChatMember) Descriptor deprecated

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

Deprecated: Use ChatMember.ProtoReflect.Descriptor instead.

func (*ChatMember) GetIdentity

func (x *ChatMember) GetIdentity() *ChatMemberIdentity

func (*ChatMember) GetIsMuted

func (x *ChatMember) GetIsMuted() bool

func (*ChatMember) GetIsSelf

func (x *ChatMember) GetIsSelf() bool

func (*ChatMember) GetIsSubscribed

func (x *ChatMember) GetIsSubscribed() bool

func (*ChatMember) GetMemberId

func (x *ChatMember) GetMemberId() *ChatMemberId

func (*ChatMember) GetNumUnread

func (x *ChatMember) GetNumUnread() uint32

func (*ChatMember) GetPointers

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

func (*ChatMember) ProtoMessage

func (*ChatMember) ProtoMessage()

func (*ChatMember) ProtoReflect

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

func (*ChatMember) Reset

func (x *ChatMember) Reset()

func (*ChatMember) String

func (x *ChatMember) String() string

func (*ChatMember) Validate

func (m *ChatMember) Validate() error

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

type ChatMemberId

type ChatMemberId struct {

	// Globally random UUID
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatMemberId) Descriptor deprecated

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

Deprecated: Use ChatMemberId.ProtoReflect.Descriptor instead.

func (*ChatMemberId) GetValue

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

func (*ChatMemberId) ProtoMessage

func (*ChatMemberId) ProtoMessage()

func (*ChatMemberId) ProtoReflect

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

func (*ChatMemberId) Reset

func (x *ChatMemberId) Reset()

func (*ChatMemberId) String

func (x *ChatMemberId) String() string

func (*ChatMemberId) Validate

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

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

Cause function returns cause value.

func (ChatMemberIdValidationError) Error

Error satisfies the builtin error interface

func (ChatMemberIdValidationError) ErrorName

func (e ChatMemberIdValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMemberIdValidationError) Field

Field function returns field value.

func (ChatMemberIdValidationError) Key

Key function returns key value.

func (ChatMemberIdValidationError) Reason

Reason function returns reason value.

type ChatMemberIdentity

type ChatMemberIdentity struct {

	// The external social platform linked to this chat member
	Platform Platform `protobuf:"varint,1,opt,name=platform,proto3,enum=code.chat.v2.Platform" json:"platform,omitempty"`
	// The chat member's username on the external social platform
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// If present, the URL of the users profile pic.
	ProfilePicUrl string `protobuf:"bytes,3,opt,name=profile_pic_url,json=profilePicUrl,proto3" json:"profile_pic_url,omitempty"`
	// contains filtered or unexported fields
}

Identity to an external social platform that can be linked to a Code account

func (*ChatMemberIdentity) Descriptor deprecated

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

Deprecated: Use ChatMemberIdentity.ProtoReflect.Descriptor instead.

func (*ChatMemberIdentity) GetPlatform

func (x *ChatMemberIdentity) GetPlatform() Platform

func (*ChatMemberIdentity) GetProfilePicUrl added in v1.17.1

func (x *ChatMemberIdentity) GetProfilePicUrl() string

func (*ChatMemberIdentity) GetUsername

func (x *ChatMemberIdentity) GetUsername() string

func (*ChatMemberIdentity) ProtoMessage

func (*ChatMemberIdentity) ProtoMessage()

func (*ChatMemberIdentity) ProtoReflect

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

func (*ChatMemberIdentity) Reset

func (x *ChatMemberIdentity) Reset()

func (*ChatMemberIdentity) String

func (x *ChatMemberIdentity) String() string

func (*ChatMemberIdentity) Validate

func (m *ChatMemberIdentity) Validate() error

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

type ChatMemberIdentityValidationError

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

ChatMemberIdentityValidationError is the validation error returned by ChatMemberIdentity.Validate if the designated constraints aren't met.

func (ChatMemberIdentityValidationError) Cause

Cause function returns cause value.

func (ChatMemberIdentityValidationError) Error

Error satisfies the builtin error interface

func (ChatMemberIdentityValidationError) ErrorName

ErrorName returns error name.

func (ChatMemberIdentityValidationError) Field

Field function returns field value.

func (ChatMemberIdentityValidationError) Key

Key function returns key value.

func (ChatMemberIdentityValidationError) Reason

Reason function returns reason value.

type ChatMemberValidationError

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

ChatMemberValidationError is the validation error returned by ChatMember.Validate if the designated constraints aren't met.

func (ChatMemberValidationError) Cause

func (e ChatMemberValidationError) Cause() error

Cause function returns cause value.

func (ChatMemberValidationError) Error

Error satisfies the builtin error interface

func (ChatMemberValidationError) ErrorName

func (e ChatMemberValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMemberValidationError) Field

Field function returns field value.

func (ChatMemberValidationError) Key

Key function returns key value.

func (ChatMemberValidationError) Reason

func (e ChatMemberValidationError) Reason() string

Reason function returns reason value.

type ChatMessage

type ChatMessage struct {

	// Globally unique ID for this message
	MessageId *ChatMessageId `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// The chat member that sent the message. For NOTIFICATION chats, this field
	// is omitted since the chat has exactly 1 member.
	SenderId *ChatMemberId `protobuf:"bytes,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,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"`
	// Timestamp this message was generated at. This value is also encoded in
	// any time-based UUID message IDs.
	Ts *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=ts,proto3" json:"ts,omitempty"`
	// Cursor value for this message for reference in a paged GetMessagesRequest
	Cursor *Cursor `protobuf:"bytes,5,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

A message in a chat

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) GetSenderId

func (x *ChatMessage) GetSenderId() *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 {

	// Guaranteed to be a time-based UUID. This should be used to construct a
	// consistently ordered message history based on time using a simple byte
	// comparison.
	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 {

	// Globally unique ID for this chat
	ChatId *v1.ChatId `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	// The type of chat
	Type ChatType `protobuf:"varint,2,opt,name=type,proto3,enum=code.chat.v2.ChatType" json:"type,omitempty"`
	// The chat title, which will be localized by server when applicable
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// The members in this chat
	//
	// For NOTIFICATION chats, this list has exactly 1 item
	// For TWO_WAY chats, this list has exactly 2 items
	//
	// todo: If we support group chats, then we'll likely return the first page
	//
	//	or a prioritized list. The remaining members would be fetched via
	//	a new RPC.
	Members []*ChatMember `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"`
	// Can the user mute this chat?
	CanMute bool `protobuf:"varint,5,opt,name=can_mute,json=canMute,proto3" json:"can_mute,omitempty"`
	// Can the user unsubscribe from this chat?
	CanUnsubscribe bool `protobuf:"varint,6,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,7,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

A chat

todo: Support is_verified in a clean way

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() *v1.ChatId

func (*ChatMetadata) GetCursor

func (x *ChatMetadata) GetCursor() *Cursor

func (*ChatMetadata) GetMembers

func (x *ChatMetadata) GetMembers() []*ChatMember

func (*ChatMetadata) GetTitle

func (x *ChatMetadata) GetTitle() string

func (*ChatMetadata) GetType

func (x *ChatMetadata) GetType() ChatType

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 ChatServer

type ChatServer interface {
	// GetChats gets the set of chats for an owner account using a paged API.
	// This RPC is aware of all identities tied to the owner account.
	GetChats(context.Context, *GetChatsRequest) (*GetChatsResponse, error)
	// GetMessages gets the set of messages for a chat member using a paged API
	GetMessages(context.Context, *GetMessagesRequest) (*GetMessagesResponse, error)
	// StreamChatEvents streams chat events in real-time. Chat events include
	// messages, pointer updates, etc.
	//
	// The streaming protocol is follows:
	//  1. Client initiates a stream by sending an OpenChatEventStream message.
	//  2. If an error is encoutered, a ChatStreamEventError message will be
	//     returned by server and the stream will be closed.
	//  3. Server will immediately flush initial chat state.
	//  4. New chat events will be pushed to the stream in real time as they
	//     are received.
	//
	// This RPC supports a keepalive protocol as follows:
	//  1. Client initiates a stream by sending an OpenChatEventStream message.
	//  2. Upon stream initialization, server begins the keepalive protocol.
	//  3. Server sends a ping to the client.
	//  4. Client responds with a pong as fast as possible, making note of
	//     the delay for when to expect the next ping.
	//  5. Steps 3 and 4 are repeated until the stream is explicitly terminated
	//     or is deemed to be unhealthy.
	//
	// Client notes:
	//   - Client should be careful to process events async, so any responses to pings are
	//     not delayed.
	//   - Clients should implement a reasonable backoff strategy upon continued timeout
	//     failures.
	//   - Clients that abuse pong messages may have their streams terminated by server.
	//
	// At any point in the stream, server will respond with events in real time as
	// they are observed. Events sent over the stream should not affect the ping/pong
	// protocol timings.
	StreamChatEvents(Chat_StreamChatEventsServer) error
	// StartChat starts a chat. The RPC call is idempotent and will use existing
	// chats whenever applicable within the context of message routing.
	StartChat(context.Context, *StartChatRequest) (*StartChatResponse, error)
	// SendMessage sends a message to a chat
	SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
	// AdvancePointer advances a pointer in message history for a chat member
	AdvancePointer(context.Context, *AdvancePointerRequest) (*AdvancePointerResponse, error)
	// RevealIdentity reveals a chat member's identity if it is anonymous. A chat
	// message will be inserted on success.
	RevealIdentity(context.Context, *RevealIdentityRequest) (*RevealIdentityResponse, error)
	// SetMuteState configures a chat member's mute state
	SetMuteState(context.Context, *SetMuteStateRequest) (*SetMuteStateResponse, error)
	// SetSubscriptionState configures a chat member's susbscription state
	SetSubscriptionState(context.Context, *SetSubscriptionStateRequest) (*SetSubscriptionStateResponse, error)
	// NotifyIsTypingRequest notifies a chat that the sending member is typing.
	//
	// These requests are transient, and may be dropped at any point.
	NotifyIsTyping(context.Context, *NotifyIsTypingRequest) (*NotifyIsTypingResponse, error)
	// contains filtered or unexported methods
}

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

type ChatStreamEvent

type ChatStreamEvent struct {

	// Types that are assignable to Type:
	//
	//	*ChatStreamEvent_Message
	//	*ChatStreamEvent_Pointer
	//	*ChatStreamEvent_IsTyping
	Type isChatStreamEvent_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*ChatStreamEvent) Descriptor deprecated

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

Deprecated: Use ChatStreamEvent.ProtoReflect.Descriptor instead.

func (*ChatStreamEvent) GetIsTyping added in v1.17.2

func (x *ChatStreamEvent) GetIsTyping() *IsTyping

func (*ChatStreamEvent) GetMessage

func (x *ChatStreamEvent) GetMessage() *ChatMessage

func (*ChatStreamEvent) GetPointer

func (x *ChatStreamEvent) GetPointer() *Pointer

func (*ChatStreamEvent) GetType

func (m *ChatStreamEvent) GetType() isChatStreamEvent_Type

func (*ChatStreamEvent) ProtoMessage

func (*ChatStreamEvent) ProtoMessage()

func (*ChatStreamEvent) ProtoReflect

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

func (*ChatStreamEvent) Reset

func (x *ChatStreamEvent) Reset()

func (*ChatStreamEvent) String

func (x *ChatStreamEvent) String() string

func (*ChatStreamEvent) Validate

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

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

func (*ChatStreamEventBatch) Descriptor deprecated

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

Deprecated: Use ChatStreamEventBatch.ProtoReflect.Descriptor instead.

func (*ChatStreamEventBatch) GetEvents

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

func (*ChatStreamEventBatch) ProtoMessage

func (*ChatStreamEventBatch) ProtoMessage()

func (*ChatStreamEventBatch) ProtoReflect

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

func (*ChatStreamEventBatch) Reset

func (x *ChatStreamEventBatch) Reset()

func (*ChatStreamEventBatch) String

func (x *ChatStreamEventBatch) String() string

func (*ChatStreamEventBatch) Validate

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

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

Cause function returns cause value.

func (ChatStreamEventBatchValidationError) Error

Error satisfies the builtin error interface

func (ChatStreamEventBatchValidationError) ErrorName

ErrorName returns error name.

func (ChatStreamEventBatchValidationError) Field

Field function returns field value.

func (ChatStreamEventBatchValidationError) Key

Key function returns key value.

func (ChatStreamEventBatchValidationError) Reason

Reason function returns reason value.

type ChatStreamEventError

type ChatStreamEventError struct {
	Code ChatStreamEventError_Code `protobuf:"varint,1,opt,name=code,proto3,enum=code.chat.v2.ChatStreamEventError_Code" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatStreamEventError) Descriptor deprecated

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

Deprecated: Use ChatStreamEventError.ProtoReflect.Descriptor instead.

func (*ChatStreamEventError) GetCode

func (*ChatStreamEventError) ProtoMessage

func (*ChatStreamEventError) ProtoMessage()

func (*ChatStreamEventError) ProtoReflect

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

func (*ChatStreamEventError) Reset

func (x *ChatStreamEventError) Reset()

func (*ChatStreamEventError) String

func (x *ChatStreamEventError) String() string

func (*ChatStreamEventError) Validate

func (m *ChatStreamEventError) Validate() error

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

type ChatStreamEventErrorValidationError

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

ChatStreamEventErrorValidationError is the validation error returned by ChatStreamEventError.Validate if the designated constraints aren't met.

func (ChatStreamEventErrorValidationError) Cause

Cause function returns cause value.

func (ChatStreamEventErrorValidationError) Error

Error satisfies the builtin error interface

func (ChatStreamEventErrorValidationError) ErrorName

ErrorName returns error name.

func (ChatStreamEventErrorValidationError) Field

Field function returns field value.

func (ChatStreamEventErrorValidationError) Key

Key function returns key value.

func (ChatStreamEventErrorValidationError) Reason

Reason function returns reason value.

type ChatStreamEventError_Code

type ChatStreamEventError_Code int32
const (
	ChatStreamEventError_DENIED         ChatStreamEventError_Code = 0
	ChatStreamEventError_CHAT_NOT_FOUND ChatStreamEventError_Code = 1
)

func (ChatStreamEventError_Code) Descriptor

func (ChatStreamEventError_Code) Enum

func (ChatStreamEventError_Code) EnumDescriptor deprecated

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

Deprecated: Use ChatStreamEventError_Code.Descriptor instead.

func (ChatStreamEventError_Code) Number

func (ChatStreamEventError_Code) String

func (x ChatStreamEventError_Code) String() string

func (ChatStreamEventError_Code) Type

type ChatStreamEventValidationError

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

Cause function returns cause value.

func (ChatStreamEventValidationError) Error

Error satisfies the builtin error interface

func (ChatStreamEventValidationError) ErrorName

func (e ChatStreamEventValidationError) ErrorName() string

ErrorName returns error name.

func (ChatStreamEventValidationError) Field

Field function returns field value.

func (ChatStreamEventValidationError) Key

Key function returns key value.

func (ChatStreamEventValidationError) Reason

Reason function returns reason value.

type ChatStreamEvent_IsTyping added in v1.17.2

type ChatStreamEvent_IsTyping struct {
	IsTyping *IsTyping `protobuf:"bytes,3,opt,name=is_typing,json=isTyping,proto3,oneof"`
}

type ChatStreamEvent_Message

type ChatStreamEvent_Message struct {
	Message *ChatMessage `protobuf:"bytes,1,opt,name=message,proto3,oneof"`
}

type ChatStreamEvent_Pointer

type ChatStreamEvent_Pointer struct {
	Pointer *Pointer `protobuf:"bytes,2,opt,name=pointer,proto3,oneof"`
}

type ChatType

type ChatType int32
const (
	ChatType_UNKNOWN_CHAT_TYPE ChatType = 0
	ChatType_NOTIFICATION      ChatType = 1
	ChatType_TWO_WAY           ChatType = 2 // GROUP             = 3;
)

func (ChatType) Descriptor

func (ChatType) Descriptor() protoreflect.EnumDescriptor

func (ChatType) Enum

func (x ChatType) Enum() *ChatType

func (ChatType) EnumDescriptor deprecated

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

Deprecated: Use ChatType.Descriptor instead.

func (ChatType) Number

func (x ChatType) Number() protoreflect.EnumNumber

func (ChatType) String

func (x ChatType) String() string

func (ChatType) Type

type Chat_StreamChatEventsClient

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

type Chat_StreamChatEventsServer

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

type Content

type Content struct {

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

Content for a chat message

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) GetIdentityRevealed

func (x *Content) GetIdentityRevealed() *IdentityRevealedContent

func (*Content) GetLocalized

func (x *Content) GetLocalized() *LocalizedContent

func (*Content) GetNaclBox

func (x *Content) GetNaclBox() *NaclBoxEncryptedContent

func (*Content) GetText

func (x *Content) GetText() *TextContent

func (*Content) GetThankYou

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,3,opt,name=exchange_data,json=exchangeData,proto3,oneof"`
}

type Content_IdentityRevealed

type Content_IdentityRevealed struct {
	IdentityRevealed *IdentityRevealedContent `protobuf:"bytes,6,opt,name=identity_revealed,json=identityRevealed,proto3,oneof"`
}

type Content_Localized

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

type Content_NaclBox

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

type Content_Text

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

type Content_ThankYou

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. Expected length value will vary based on the RPC being executed.

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 describing how the amount of Kin was exchanged
	//
	// Note: The current definition is not suitable outside a NOTIFICATION chat
	//
	//	as not enough context is provided as to which member this verb is
	//	associated with.
	Verb ExchangeDataContent_Verb `protobuf:"varint,1,opt,name=verb,proto3,enum=code.chat.v2.ExchangeDataContent_Verb" json:"verb,omitempty"`
	// An amount of Kin being exchanged
	//
	// Types that are assignable to ExchangeData:
	//
	//	*ExchangeDataContent_Exact
	//	*ExchangeDataContent_Partial
	ExchangeData isExchangeDataContent_ExchangeData `protobuf_oneof:"exchange_data"`
	// An ID that can be referenced to the source of the exchange of Kin
	//
	// Types that are assignable to Reference:
	//
	//	*ExchangeDataContent_Intent
	//	*ExchangeDataContent_Signature
	Reference isExchangeDataContent_Reference `protobuf_oneof:"reference"`
	// contains filtered or unexported fields
}

Exchange data content for movement of a value of Kin

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) GetIntent

func (x *ExchangeDataContent) GetIntent() *v1.IntentId

func (*ExchangeDataContent) GetPartial

func (*ExchangeDataContent) GetReference

func (m *ExchangeDataContent) GetReference() isExchangeDataContent_Reference

func (*ExchangeDataContent) GetSignature

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

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_Intent

type ExchangeDataContent_Intent struct {
	Intent *v1.IntentId `protobuf:"bytes,4,opt,name=intent,proto3,oneof"`
}

type ExchangeDataContent_Partial

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

type ExchangeDataContent_Signature

type ExchangeDataContent_Signature struct {
	Signature *v1.Signature `protobuf:"bytes,5,opt,name=signature,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.v2.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.v2.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    *v1.ChatId                   `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	MemberId  *ChatMemberId                `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,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"`
	PageSize  uint32                       `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Cursor    *Cursor                      `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
	Direction GetMessagesRequest_Direction `protobuf:"varint,7,opt,name=direction,proto3,enum=code.chat.v2.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() *v1.ChatId

func (*GetMessagesRequest) GetCursor

func (x *GetMessagesRequest) GetCursor() *Cursor

func (*GetMessagesRequest) GetDirection

func (*GetMessagesRequest) GetMemberId

func (x *GetMessagesRequest) GetMemberId() *ChatMemberId

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.v2.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_DENIED            GetMessagesResponse_Result = 1
	GetMessagesResponse_CHAT_NOT_FOUND    GetMessagesResponse_Result = 2
	GetMessagesResponse_MESSAGE_NOT_FOUND GetMessagesResponse_Result = 3
)

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 IdentityRevealedContent

type IdentityRevealedContent struct {

	// The chat member who revealed their identity
	MemberId *ChatMemberId `protobuf:"bytes,1,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// The identity that was revealed
	Identity *ChatMemberIdentity `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

Identity revealed content that is inserted into chat whenever a chat member reveals their identity

func (*IdentityRevealedContent) Descriptor deprecated

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

Deprecated: Use IdentityRevealedContent.ProtoReflect.Descriptor instead.

func (*IdentityRevealedContent) GetIdentity

func (x *IdentityRevealedContent) GetIdentity() *ChatMemberIdentity

func (*IdentityRevealedContent) GetMemberId

func (x *IdentityRevealedContent) GetMemberId() *ChatMemberId

func (*IdentityRevealedContent) ProtoMessage

func (*IdentityRevealedContent) ProtoMessage()

func (*IdentityRevealedContent) ProtoReflect

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

func (*IdentityRevealedContent) Reset

func (x *IdentityRevealedContent) Reset()

func (*IdentityRevealedContent) String

func (x *IdentityRevealedContent) String() string

func (*IdentityRevealedContent) Validate

func (m *IdentityRevealedContent) Validate() error

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

type IdentityRevealedContentValidationError

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

IdentityRevealedContentValidationError is the validation error returned by IdentityRevealedContent.Validate if the designated constraints aren't met.

func (IdentityRevealedContentValidationError) Cause

Cause function returns cause value.

func (IdentityRevealedContentValidationError) Error

Error satisfies the builtin error interface

func (IdentityRevealedContentValidationError) ErrorName

ErrorName returns error name.

func (IdentityRevealedContentValidationError) Field

Field function returns field value.

func (IdentityRevealedContentValidationError) Key

Key function returns key value.

func (IdentityRevealedContentValidationError) Reason

Reason function returns reason value.

type IsTyping added in v1.17.2

type IsTyping struct {
	MemberId *ChatMemberId `protobuf:"bytes,1,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// is_typing indicates whether or not the user is typing.
	// If false, the user has explicitly stopped typing.
	IsTyping bool `protobuf:"varint,2,opt,name=is_typing,json=isTyping,proto3" json:"is_typing,omitempty"`
	// contains filtered or unexported fields
}

func (*IsTyping) Descriptor deprecated added in v1.17.2

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

Deprecated: Use IsTyping.ProtoReflect.Descriptor instead.

func (*IsTyping) GetIsTyping added in v1.17.2

func (x *IsTyping) GetIsTyping() bool

func (*IsTyping) GetMemberId added in v1.17.2

func (x *IsTyping) GetMemberId() *ChatMemberId

func (*IsTyping) ProtoMessage added in v1.17.2

func (*IsTyping) ProtoMessage()

func (*IsTyping) ProtoReflect added in v1.17.2

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

func (*IsTyping) Reset added in v1.17.2

func (x *IsTyping) Reset()

func (*IsTyping) String added in v1.17.2

func (x *IsTyping) String() string

func (*IsTyping) Validate added in v1.17.2

func (m *IsTyping) Validate() error

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

type IsTypingValidationError added in v1.17.2

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

IsTypingValidationError is the validation error returned by IsTyping.Validate if the designated constraints aren't met.

func (IsTypingValidationError) Cause added in v1.17.2

func (e IsTypingValidationError) Cause() error

Cause function returns cause value.

func (IsTypingValidationError) Error added in v1.17.2

func (e IsTypingValidationError) Error() string

Error satisfies the builtin error interface

func (IsTypingValidationError) ErrorName added in v1.17.2

func (e IsTypingValidationError) ErrorName() string

ErrorName returns error name.

func (IsTypingValidationError) Field added in v1.17.2

func (e IsTypingValidationError) Field() string

Field function returns field value.

func (IsTypingValidationError) Key added in v1.17.2

func (e IsTypingValidationError) Key() bool

Key function returns key value.

func (IsTypingValidationError) Reason added in v1.17.2

func (e IsTypingValidationError) Reason() string

Reason function returns reason value.

type LocalizedContent

type LocalizedContent struct {
	KeyOrText string `protobuf:"bytes,1,opt,name=key_or_text,json=keyOrText,proto3" json:"key_or_text,omitempty"`
	// contains filtered or unexported fields
}

Text content that is either a localization key that should be translated on client, or a server-side translated piece of text.

func (*LocalizedContent) Descriptor deprecated

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

Deprecated: Use LocalizedContent.ProtoReflect.Descriptor instead.

func (*LocalizedContent) GetKeyOrText

func (x *LocalizedContent) GetKeyOrText() string

func (*LocalizedContent) ProtoMessage

func (*LocalizedContent) ProtoMessage()

func (*LocalizedContent) ProtoReflect

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

func (*LocalizedContent) Reset

func (x *LocalizedContent) Reset()

func (*LocalizedContent) String

func (x *LocalizedContent) String() string

func (*LocalizedContent) Validate

func (m *LocalizedContent) Validate() error

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

type LocalizedContentValidationError

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

LocalizedContentValidationError is the validation error returned by LocalizedContent.Validate if the designated constraints aren't met.

func (LocalizedContentValidationError) Cause

Cause function returns cause value.

func (LocalizedContentValidationError) Error

Error satisfies the builtin error interface

func (LocalizedContentValidationError) ErrorName

ErrorName returns error name.

func (LocalizedContentValidationError) Field

Field function returns field value.

func (LocalizedContentValidationError) Key

Key function returns key value.

func (LocalizedContentValidationError) Reason

Reason function returns reason value.

type NaclBoxEncryptedContent

type NaclBoxEncryptedContent struct {

	// The sender's public key that is used to derive the shared private key for
	// decryption for message content.
	PeerPublicKey *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=peer_public_key,json=peerPublicKey,proto3" json:"peer_public_key,omitempty"`
	// Globally random nonce that is unique to this encrypted piece of content
	Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// The encrypted piece of message content
	EncryptedPayload []byte `protobuf:"bytes,3,opt,name=encrypted_payload,json=encryptedPayload,proto3" json:"encrypted_payload,omitempty"`
	// contains filtered or unexported fields
}

Encrypted piece of content using NaCl box encryption

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 NotifyIsTypingRequest added in v1.17.1

type NotifyIsTypingRequest struct {
	ChatId    *v1.ChatId          `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	MemberId  *ChatMemberId       `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	IsTyping  bool                `protobuf:"varint,3,opt,name=is_typing,json=isTyping,proto3" json:"is_typing,omitempty"`
	Owner     *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature       `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyIsTypingRequest) Descriptor deprecated added in v1.17.1

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

Deprecated: Use NotifyIsTypingRequest.ProtoReflect.Descriptor instead.

func (*NotifyIsTypingRequest) GetChatId added in v1.17.1

func (x *NotifyIsTypingRequest) GetChatId() *v1.ChatId

func (*NotifyIsTypingRequest) GetIsTyping added in v1.17.1

func (x *NotifyIsTypingRequest) GetIsTyping() bool

func (*NotifyIsTypingRequest) GetMemberId added in v1.17.1

func (x *NotifyIsTypingRequest) GetMemberId() *ChatMemberId

func (*NotifyIsTypingRequest) GetOwner added in v1.17.1

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

func (*NotifyIsTypingRequest) GetSignature added in v1.17.1

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

func (*NotifyIsTypingRequest) ProtoMessage added in v1.17.1

func (*NotifyIsTypingRequest) ProtoMessage()

func (*NotifyIsTypingRequest) ProtoReflect added in v1.17.1

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

func (*NotifyIsTypingRequest) Reset added in v1.17.1

func (x *NotifyIsTypingRequest) Reset()

func (*NotifyIsTypingRequest) String added in v1.17.1

func (x *NotifyIsTypingRequest) String() string

func (*NotifyIsTypingRequest) Validate added in v1.17.1

func (m *NotifyIsTypingRequest) Validate() error

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

type NotifyIsTypingRequestValidationError added in v1.17.1

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

NotifyIsTypingRequestValidationError is the validation error returned by NotifyIsTypingRequest.Validate if the designated constraints aren't met.

func (NotifyIsTypingRequestValidationError) Cause added in v1.17.1

Cause function returns cause value.

func (NotifyIsTypingRequestValidationError) Error added in v1.17.1

Error satisfies the builtin error interface

func (NotifyIsTypingRequestValidationError) ErrorName added in v1.17.1

ErrorName returns error name.

func (NotifyIsTypingRequestValidationError) Field added in v1.17.1

Field function returns field value.

func (NotifyIsTypingRequestValidationError) Key added in v1.17.1

Key function returns key value.

func (NotifyIsTypingRequestValidationError) Reason added in v1.17.1

Reason function returns reason value.

type NotifyIsTypingResponse added in v1.17.1

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

func (*NotifyIsTypingResponse) Descriptor deprecated added in v1.17.1

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

Deprecated: Use NotifyIsTypingResponse.ProtoReflect.Descriptor instead.

func (*NotifyIsTypingResponse) GetResult added in v1.17.1

func (*NotifyIsTypingResponse) ProtoMessage added in v1.17.1

func (*NotifyIsTypingResponse) ProtoMessage()

func (*NotifyIsTypingResponse) ProtoReflect added in v1.17.1

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

func (*NotifyIsTypingResponse) Reset added in v1.17.1

func (x *NotifyIsTypingResponse) Reset()

func (*NotifyIsTypingResponse) String added in v1.17.1

func (x *NotifyIsTypingResponse) String() string

func (*NotifyIsTypingResponse) Validate added in v1.17.1

func (m *NotifyIsTypingResponse) Validate() error

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

type NotifyIsTypingResponseValidationError added in v1.17.1

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

NotifyIsTypingResponseValidationError is the validation error returned by NotifyIsTypingResponse.Validate if the designated constraints aren't met.

func (NotifyIsTypingResponseValidationError) Cause added in v1.17.1

Cause function returns cause value.

func (NotifyIsTypingResponseValidationError) Error added in v1.17.1

Error satisfies the builtin error interface

func (NotifyIsTypingResponseValidationError) ErrorName added in v1.17.1

ErrorName returns error name.

func (NotifyIsTypingResponseValidationError) Field added in v1.17.1

Field function returns field value.

func (NotifyIsTypingResponseValidationError) Key added in v1.17.1

Key function returns key value.

func (NotifyIsTypingResponseValidationError) Reason added in v1.17.1

Reason function returns reason value.

type NotifyIsTypingResponse_Result added in v1.17.1

type NotifyIsTypingResponse_Result int32
const (
	NotifyIsTypingResponse_OK             NotifyIsTypingResponse_Result = 0
	NotifyIsTypingResponse_DENIED         NotifyIsTypingResponse_Result = 1
	NotifyIsTypingResponse_CHAT_NOT_FOUND NotifyIsTypingResponse_Result = 2
)

func (NotifyIsTypingResponse_Result) Descriptor added in v1.17.1

func (NotifyIsTypingResponse_Result) Enum added in v1.17.1

func (NotifyIsTypingResponse_Result) EnumDescriptor deprecated added in v1.17.1

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

Deprecated: Use NotifyIsTypingResponse_Result.Descriptor instead.

func (NotifyIsTypingResponse_Result) Number added in v1.17.1

func (NotifyIsTypingResponse_Result) String added in v1.17.1

func (NotifyIsTypingResponse_Result) Type added in v1.17.1

type OpenChatEventStream

type OpenChatEventStream struct {
	ChatId    *v1.ChatId          `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	MemberId  *ChatMemberId       `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,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 (*OpenChatEventStream) Descriptor deprecated

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

Deprecated: Use OpenChatEventStream.ProtoReflect.Descriptor instead.

func (*OpenChatEventStream) GetChatId

func (x *OpenChatEventStream) GetChatId() *v1.ChatId

func (*OpenChatEventStream) GetMemberId

func (x *OpenChatEventStream) GetMemberId() *ChatMemberId

func (*OpenChatEventStream) GetOwner

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

func (*OpenChatEventStream) GetSignature

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

func (*OpenChatEventStream) ProtoMessage

func (*OpenChatEventStream) ProtoMessage()

func (*OpenChatEventStream) ProtoReflect

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

func (*OpenChatEventStream) Reset

func (x *OpenChatEventStream) Reset()

func (*OpenChatEventStream) String

func (x *OpenChatEventStream) String() string

func (*OpenChatEventStream) Validate

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

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

Cause function returns cause value.

func (OpenChatEventStreamValidationError) Error

Error satisfies the builtin error interface

func (OpenChatEventStreamValidationError) ErrorName

ErrorName returns error name.

func (OpenChatEventStreamValidationError) Field

Field function returns field value.

func (OpenChatEventStreamValidationError) Key

Key function returns key value.

func (OpenChatEventStreamValidationError) Reason

Reason function returns reason value.

type Platform

type Platform int32
const (
	Platform_UNKNOWN_PLATFORM Platform = 0
	Platform_TWITTER          Platform = 1
)

func (Platform) Descriptor

func (Platform) Descriptor() protoreflect.EnumDescriptor

func (Platform) Enum

func (x Platform) Enum() *Platform

func (Platform) EnumDescriptor deprecated

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

Deprecated: Use Platform.Descriptor instead.

func (Platform) Number

func (x Platform) Number() protoreflect.EnumNumber

func (Platform) String

func (x Platform) String() string

func (Platform) Type

type Pointer

type Pointer struct {

	// The type of pointer indicates which user's message history state can be
	// inferred from the pointer value. It is also possible to infer cross-pointer
	// state. For example, if a chat member has a READ pointer for a message with
	// ID N, then the DELIVERED pointer must be at least N.
	Type PointerType `protobuf:"varint,1,opt,name=type,proto3,enum=code.chat.v2.PointerType" json:"type,omitempty"`
	// Everything at or before this message ID is considered to have the state
	// inferred by the type of pointer.
	Value *ChatMessageId `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// The chat member associated with this pointer state
	MemberId *ChatMemberId `protobuf:"bytes,3,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// contains filtered or unexported fields
}

Pointer in a chat indicating a user's message history state in a chat.

func (*Pointer) Descriptor deprecated

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

Deprecated: Use Pointer.ProtoReflect.Descriptor instead.

func (*Pointer) GetMemberId

func (x *Pointer) GetMemberId() *ChatMemberId

func (*Pointer) GetType

func (x *Pointer) GetType() PointerType

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 PointerType

type PointerType int32
const (
	PointerType_UNKNOWN_POINTER_TYPE PointerType = 0
	PointerType_SENT                 PointerType = 1 // Always inferred by OK result in SendMessageResponse or message presence in a chat
	PointerType_DELIVERED            PointerType = 2
	PointerType_READ                 PointerType = 3
)

func (PointerType) Descriptor

func (PointerType) Enum

func (x PointerType) Enum() *PointerType

func (PointerType) EnumDescriptor deprecated

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

Deprecated: Use PointerType.Descriptor instead.

func (PointerType) Number

func (x PointerType) Number() protoreflect.EnumNumber

func (PointerType) String

func (x PointerType) String() string

func (PointerType) Type

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 RevealIdentityRequest

type RevealIdentityRequest struct {
	ChatId    *v1.ChatId          `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	MemberId  *ChatMemberId       `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	Identity  *ChatMemberIdentity `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
	Owner     *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature       `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*RevealIdentityRequest) Descriptor deprecated

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

Deprecated: Use RevealIdentityRequest.ProtoReflect.Descriptor instead.

func (*RevealIdentityRequest) GetChatId

func (x *RevealIdentityRequest) GetChatId() *v1.ChatId

func (*RevealIdentityRequest) GetIdentity

func (x *RevealIdentityRequest) GetIdentity() *ChatMemberIdentity

func (*RevealIdentityRequest) GetMemberId

func (x *RevealIdentityRequest) GetMemberId() *ChatMemberId

func (*RevealIdentityRequest) GetOwner

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

func (*RevealIdentityRequest) GetSignature

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

func (*RevealIdentityRequest) ProtoMessage

func (*RevealIdentityRequest) ProtoMessage()

func (*RevealIdentityRequest) ProtoReflect

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

func (*RevealIdentityRequest) Reset

func (x *RevealIdentityRequest) Reset()

func (*RevealIdentityRequest) String

func (x *RevealIdentityRequest) String() string

func (*RevealIdentityRequest) Validate

func (m *RevealIdentityRequest) Validate() error

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

type RevealIdentityRequestValidationError

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

RevealIdentityRequestValidationError is the validation error returned by RevealIdentityRequest.Validate if the designated constraints aren't met.

func (RevealIdentityRequestValidationError) Cause

Cause function returns cause value.

func (RevealIdentityRequestValidationError) Error

Error satisfies the builtin error interface

func (RevealIdentityRequestValidationError) ErrorName

ErrorName returns error name.

func (RevealIdentityRequestValidationError) Field

Field function returns field value.

func (RevealIdentityRequestValidationError) Key

Key function returns key value.

func (RevealIdentityRequestValidationError) Reason

Reason function returns reason value.

type RevealIdentityResponse

type RevealIdentityResponse struct {
	Result RevealIdentityResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.chat.v2.RevealIdentityResponse_Result" json:"result,omitempty"`
	// The chat message that was sent if the RPC was successful
	Message *ChatMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*RevealIdentityResponse) Descriptor deprecated

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

Deprecated: Use RevealIdentityResponse.ProtoReflect.Descriptor instead.

func (*RevealIdentityResponse) GetMessage

func (x *RevealIdentityResponse) GetMessage() *ChatMessage

func (*RevealIdentityResponse) GetResult

func (*RevealIdentityResponse) ProtoMessage

func (*RevealIdentityResponse) ProtoMessage()

func (*RevealIdentityResponse) ProtoReflect

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

func (*RevealIdentityResponse) Reset

func (x *RevealIdentityResponse) Reset()

func (*RevealIdentityResponse) String

func (x *RevealIdentityResponse) String() string

func (*RevealIdentityResponse) Validate

func (m *RevealIdentityResponse) Validate() error

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

type RevealIdentityResponseValidationError

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

RevealIdentityResponseValidationError is the validation error returned by RevealIdentityResponse.Validate if the designated constraints aren't met.

func (RevealIdentityResponseValidationError) Cause

Cause function returns cause value.

func (RevealIdentityResponseValidationError) Error

Error satisfies the builtin error interface

func (RevealIdentityResponseValidationError) ErrorName

ErrorName returns error name.

func (RevealIdentityResponseValidationError) Field

Field function returns field value.

func (RevealIdentityResponseValidationError) Key

Key function returns key value.

func (RevealIdentityResponseValidationError) Reason

Reason function returns reason value.

type RevealIdentityResponse_Result

type RevealIdentityResponse_Result int32
const (
	RevealIdentityResponse_OK                          RevealIdentityResponse_Result = 0
	RevealIdentityResponse_DENIED                      RevealIdentityResponse_Result = 1
	RevealIdentityResponse_CHAT_NOT_FOUND              RevealIdentityResponse_Result = 2
	RevealIdentityResponse_DIFFERENT_IDENTITY_REVEALED RevealIdentityResponse_Result = 3
)

func (RevealIdentityResponse_Result) Descriptor

func (RevealIdentityResponse_Result) Enum

func (RevealIdentityResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use RevealIdentityResponse_Result.Descriptor instead.

func (RevealIdentityResponse_Result) Number

func (RevealIdentityResponse_Result) String

func (RevealIdentityResponse_Result) Type

type SendMessageRequest

type SendMessageRequest struct {
	ChatId   *v1.ChatId    `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	MemberId *ChatMemberId `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	// Allowed content types that can be sent by client:
	//   - TextContent
	//   - ThankYouContent
	Content   []*Content          `protobuf:"bytes,3,rep,name=content,proto3" json:"content,omitempty"`
	Owner     *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature       `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*SendMessageRequest) Descriptor deprecated

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

Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.

func (*SendMessageRequest) GetChatId

func (x *SendMessageRequest) GetChatId() *v1.ChatId

func (*SendMessageRequest) GetContent

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

func (*SendMessageRequest) GetMemberId

func (x *SendMessageRequest) GetMemberId() *ChatMemberId

func (*SendMessageRequest) GetOwner

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

func (*SendMessageRequest) GetSignature

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

func (*SendMessageRequest) ProtoMessage

func (*SendMessageRequest) ProtoMessage()

func (*SendMessageRequest) ProtoReflect

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

func (*SendMessageRequest) Reset

func (x *SendMessageRequest) Reset()

func (*SendMessageRequest) String

func (x *SendMessageRequest) String() string

func (*SendMessageRequest) Validate

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

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

Cause function returns cause value.

func (SendMessageRequestValidationError) Error

Error satisfies the builtin error interface

func (SendMessageRequestValidationError) ErrorName

ErrorName returns error name.

func (SendMessageRequestValidationError) Field

Field function returns field value.

func (SendMessageRequestValidationError) Key

Key function returns key value.

func (SendMessageRequestValidationError) Reason

Reason function returns reason value.

type SendMessageResponse

type SendMessageResponse struct {
	Result SendMessageResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.chat.v2.SendMessageResponse_Result" json:"result,omitempty"`
	// The chat message that was sent if the RPC was succesful, which includes
	// server-side metadata like the generated message ID and official timestamp
	Message *ChatMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*SendMessageResponse) Descriptor deprecated

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

Deprecated: Use SendMessageResponse.ProtoReflect.Descriptor instead.

func (*SendMessageResponse) GetMessage

func (x *SendMessageResponse) GetMessage() *ChatMessage

func (*SendMessageResponse) GetResult

func (*SendMessageResponse) ProtoMessage

func (*SendMessageResponse) ProtoMessage()

func (*SendMessageResponse) ProtoReflect

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

func (*SendMessageResponse) Reset

func (x *SendMessageResponse) Reset()

func (*SendMessageResponse) String

func (x *SendMessageResponse) String() string

func (*SendMessageResponse) Validate

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

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

Cause function returns cause value.

func (SendMessageResponseValidationError) Error

Error satisfies the builtin error interface

func (SendMessageResponseValidationError) ErrorName

ErrorName returns error name.

func (SendMessageResponseValidationError) Field

Field function returns field value.

func (SendMessageResponseValidationError) Key

Key function returns key value.

func (SendMessageResponseValidationError) Reason

Reason function returns reason value.

type SendMessageResponse_Result

type SendMessageResponse_Result int32
const (
	SendMessageResponse_OK                   SendMessageResponse_Result = 0
	SendMessageResponse_DENIED               SendMessageResponse_Result = 1
	SendMessageResponse_CHAT_NOT_FOUND       SendMessageResponse_Result = 2
	SendMessageResponse_INVALID_CHAT_TYPE    SendMessageResponse_Result = 3
	SendMessageResponse_INVALID_CONTENT_TYPE SendMessageResponse_Result = 4
)

func (SendMessageResponse_Result) Descriptor

func (SendMessageResponse_Result) Enum

func (SendMessageResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use SendMessageResponse_Result.Descriptor instead.

func (SendMessageResponse_Result) Number

func (SendMessageResponse_Result) String

func (SendMessageResponse_Result) Type

type SetMuteStateRequest

type SetMuteStateRequest struct {
	ChatId    *v1.ChatId          `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	MemberId  *ChatMemberId       `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	IsMuted   bool                `protobuf:"varint,3,opt,name=is_muted,json=isMuted,proto3" json:"is_muted,omitempty"`
	Owner     *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature *v1.Signature       `protobuf:"bytes,5,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() *v1.ChatId

func (*SetMuteStateRequest) GetIsMuted

func (x *SetMuteStateRequest) GetIsMuted() bool

func (*SetMuteStateRequest) GetMemberId

func (x *SetMuteStateRequest) GetMemberId() *ChatMemberId

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.v2.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_DENIED         SetMuteStateResponse_Result = 1
	SetMuteStateResponse_CHAT_NOT_FOUND SetMuteStateResponse_Result = 2
	SetMuteStateResponse_CANT_MUTE      SetMuteStateResponse_Result = 3
)

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       *v1.ChatId          `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	MemberId     *ChatMemberId       `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
	IsSubscribed bool                `protobuf:"varint,3,opt,name=is_subscribed,json=isSubscribed,proto3" json:"is_subscribed,omitempty"`
	Owner        *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	Signature    *v1.Signature       `protobuf:"bytes,5,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() *v1.ChatId

func (*SetSubscriptionStateRequest) GetIsSubscribed

func (x *SetSubscriptionStateRequest) GetIsSubscribed() bool

func (*SetSubscriptionStateRequest) GetMemberId

func (x *SetSubscriptionStateRequest) GetMemberId() *ChatMemberId

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.v2.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_DENIED           SetSubscriptionStateResponse_Result = 1
	SetSubscriptionStateResponse_CHAT_NOT_FOUND   SetSubscriptionStateResponse_Result = 2
	SetSubscriptionStateResponse_CANT_UNSUBSCRIBE SetSubscriptionStateResponse_Result = 3
)

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 StartChatRequest

type StartChatRequest 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"`
	// Types that are assignable to Parameters:
	//
	//	*StartChatRequest_TipChat
	Parameters isStartChatRequest_Parameters `protobuf_oneof:"parameters"`
	// contains filtered or unexported fields
}

func (*StartChatRequest) Descriptor deprecated

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

Deprecated: Use StartChatRequest.ProtoReflect.Descriptor instead.

func (*StartChatRequest) GetOwner

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

func (*StartChatRequest) GetParameters

func (m *StartChatRequest) GetParameters() isStartChatRequest_Parameters

func (*StartChatRequest) GetSignature

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

func (*StartChatRequest) GetTipChat

func (x *StartChatRequest) GetTipChat() *StartTipChatParameters

func (*StartChatRequest) ProtoMessage

func (*StartChatRequest) ProtoMessage()

func (*StartChatRequest) ProtoReflect

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

func (*StartChatRequest) Reset

func (x *StartChatRequest) Reset()

func (*StartChatRequest) String

func (x *StartChatRequest) String() string

func (*StartChatRequest) Validate

func (m *StartChatRequest) Validate() error

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

type StartChatRequestValidationError

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

StartChatRequestValidationError is the validation error returned by StartChatRequest.Validate if the designated constraints aren't met.

func (StartChatRequestValidationError) Cause

Cause function returns cause value.

func (StartChatRequestValidationError) Error

Error satisfies the builtin error interface

func (StartChatRequestValidationError) ErrorName

ErrorName returns error name.

func (StartChatRequestValidationError) Field

Field function returns field value.

func (StartChatRequestValidationError) Key

Key function returns key value.

func (StartChatRequestValidationError) Reason

Reason function returns reason value.

type StartChatRequest_TipChat

type StartChatRequest_TipChat struct {
	TipChat *StartTipChatParameters `protobuf:"bytes,3,opt,name=tip_chat,json=tipChat,proto3,oneof"` // GroupChatParameters group_chat  = 4;
}

type StartChatResponse

type StartChatResponse struct {
	Result StartChatResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.chat.v2.StartChatResponse_Result" json:"result,omitempty"`
	// The chat to use if the RPC was successful
	Chat *ChatMetadata `protobuf:"bytes,2,opt,name=chat,proto3" json:"chat,omitempty"`
	// contains filtered or unexported fields
}

func (*StartChatResponse) Descriptor deprecated

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

Deprecated: Use StartChatResponse.ProtoReflect.Descriptor instead.

func (*StartChatResponse) GetChat

func (x *StartChatResponse) GetChat() *ChatMetadata

func (*StartChatResponse) GetResult

func (*StartChatResponse) ProtoMessage

func (*StartChatResponse) ProtoMessage()

func (*StartChatResponse) ProtoReflect

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

func (*StartChatResponse) Reset

func (x *StartChatResponse) Reset()

func (*StartChatResponse) String

func (x *StartChatResponse) String() string

func (*StartChatResponse) Validate

func (m *StartChatResponse) Validate() error

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

type StartChatResponseValidationError

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

StartChatResponseValidationError is the validation error returned by StartChatResponse.Validate if the designated constraints aren't met.

func (StartChatResponseValidationError) Cause

Cause function returns cause value.

func (StartChatResponseValidationError) Error

Error satisfies the builtin error interface

func (StartChatResponseValidationError) ErrorName

ErrorName returns error name.

func (StartChatResponseValidationError) Field

Field function returns field value.

func (StartChatResponseValidationError) Key

Key function returns key value.

func (StartChatResponseValidationError) Reason

Reason function returns reason value.

type StartChatResponse_Result

type StartChatResponse_Result int32
const (
	StartChatResponse_OK                StartChatResponse_Result = 0
	StartChatResponse_DENIED            StartChatResponse_Result = 1
	StartChatResponse_INVALID_PARAMETER StartChatResponse_Result = 2
)

func (StartChatResponse_Result) Descriptor

func (StartChatResponse_Result) Enum

func (StartChatResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use StartChatResponse_Result.Descriptor instead.

func (StartChatResponse_Result) Number

func (StartChatResponse_Result) String

func (x StartChatResponse_Result) String() string

func (StartChatResponse_Result) Type

type StartTipChatParameters

type StartTipChatParameters struct {

	// The tip's intent ID, which can be extracted from the reference in
	// an ExchangeDataContent message content where the verb is RECEIVED_TIP.
	IntentId *v1.IntentId `protobuf:"bytes,1,opt,name=intent_id,json=intentId,proto3" json:"intent_id,omitempty"`
	// contains filtered or unexported fields
}

Starts a two-way chat between a tipper and tippee. Chat members are inferred from the 12 word public keys involved in the intent. Only the tippee can start the chat, and the tipper is anonymous if this is the first between the involved Code users.

func (*StartTipChatParameters) Descriptor deprecated

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

Deprecated: Use StartTipChatParameters.ProtoReflect.Descriptor instead.

func (*StartTipChatParameters) GetIntentId

func (x *StartTipChatParameters) GetIntentId() *v1.IntentId

func (*StartTipChatParameters) ProtoMessage

func (*StartTipChatParameters) ProtoMessage()

func (*StartTipChatParameters) ProtoReflect

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

func (*StartTipChatParameters) Reset

func (x *StartTipChatParameters) Reset()

func (*StartTipChatParameters) String

func (x *StartTipChatParameters) String() string

func (*StartTipChatParameters) Validate

func (m *StartTipChatParameters) Validate() error

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

type StartTipChatParametersValidationError

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

StartTipChatParametersValidationError is the validation error returned by StartTipChatParameters.Validate if the designated constraints aren't met.

func (StartTipChatParametersValidationError) Cause

Cause function returns cause value.

func (StartTipChatParametersValidationError) Error

Error satisfies the builtin error interface

func (StartTipChatParametersValidationError) ErrorName

ErrorName returns error name.

func (StartTipChatParametersValidationError) Field

Field function returns field value.

func (StartTipChatParametersValidationError) Key

Key function returns key value.

func (StartTipChatParametersValidationError) Reason

Reason function returns reason value.

type StreamChatEventsRequest

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

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

Deprecated: Use StreamChatEventsRequest.ProtoReflect.Descriptor instead.

func (*StreamChatEventsRequest) GetOpenStream

func (x *StreamChatEventsRequest) GetOpenStream() *OpenChatEventStream

func (*StreamChatEventsRequest) GetPong

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

func (*StreamChatEventsRequest) GetType

func (m *StreamChatEventsRequest) GetType() isStreamChatEventsRequest_Type

func (*StreamChatEventsRequest) ProtoMessage

func (*StreamChatEventsRequest) ProtoMessage()

func (*StreamChatEventsRequest) ProtoReflect

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

func (*StreamChatEventsRequest) Reset

func (x *StreamChatEventsRequest) Reset()

func (*StreamChatEventsRequest) String

func (x *StreamChatEventsRequest) String() string

func (*StreamChatEventsRequest) Validate

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

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

Cause function returns cause value.

func (StreamChatEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (StreamChatEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (StreamChatEventsRequestValidationError) Field

Field function returns field value.

func (StreamChatEventsRequestValidationError) Key

Key function returns key value.

func (StreamChatEventsRequestValidationError) Reason

Reason function returns reason value.

type StreamChatEventsRequest_OpenStream

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

type StreamChatEventsRequest_Pong

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

type StreamChatEventsResponse

type StreamChatEventsResponse struct {

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

func (*StreamChatEventsResponse) Descriptor deprecated

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

Deprecated: Use StreamChatEventsResponse.ProtoReflect.Descriptor instead.

func (*StreamChatEventsResponse) GetError

func (*StreamChatEventsResponse) GetEvents

func (*StreamChatEventsResponse) GetPing

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

func (*StreamChatEventsResponse) GetType

func (m *StreamChatEventsResponse) GetType() isStreamChatEventsResponse_Type

func (*StreamChatEventsResponse) ProtoMessage

func (*StreamChatEventsResponse) ProtoMessage()

func (*StreamChatEventsResponse) ProtoReflect

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

func (*StreamChatEventsResponse) Reset

func (x *StreamChatEventsResponse) Reset()

func (*StreamChatEventsResponse) String

func (x *StreamChatEventsResponse) String() string

func (*StreamChatEventsResponse) Validate

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

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

Cause function returns cause value.

func (StreamChatEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (StreamChatEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (StreamChatEventsResponseValidationError) Field

Field function returns field value.

func (StreamChatEventsResponseValidationError) Key

Key function returns key value.

func (StreamChatEventsResponseValidationError) Reason

Reason function returns reason value.

type StreamChatEventsResponse_Error

type StreamChatEventsResponse_Error struct {
	Error *ChatStreamEventError `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type StreamChatEventsResponse_Events

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

type StreamChatEventsResponse_Ping

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

type TextContent

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

Raw text content

func (*TextContent) Descriptor deprecated

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

Deprecated: Use TextContent.ProtoReflect.Descriptor instead.

func (*TextContent) GetText

func (x *TextContent) GetText() string

func (*TextContent) ProtoMessage

func (*TextContent) ProtoMessage()

func (*TextContent) ProtoReflect

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

func (*TextContent) Reset

func (x *TextContent) Reset()

func (*TextContent) String

func (x *TextContent) String() string

func (*TextContent) Validate

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

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

Cause function returns cause value.

func (TextContentValidationError) Error

Error satisfies the builtin error interface

func (TextContentValidationError) ErrorName

func (e TextContentValidationError) ErrorName() string

ErrorName returns error name.

func (TextContentValidationError) Field

Field function returns field value.

func (TextContentValidationError) Key

Key function returns key value.

func (TextContentValidationError) Reason

Reason function returns reason value.

type ThankYouContent

type ThankYouContent struct {

	// The tip intent that is being thanked.
	TipIntent *v1.IntentId `protobuf:"bytes,1,opt,name=tip_intent,json=tipIntent,proto3" json:"tip_intent,omitempty"`
	// contains filtered or unexported fields
}

Thank you content that is used to thank Code users for tips

func (*ThankYouContent) Descriptor deprecated

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

Deprecated: Use ThankYouContent.ProtoReflect.Descriptor instead.

func (*ThankYouContent) GetTipIntent

func (x *ThankYouContent) GetTipIntent() *v1.IntentId

func (*ThankYouContent) ProtoMessage

func (*ThankYouContent) ProtoMessage()

func (*ThankYouContent) ProtoReflect

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

func (*ThankYouContent) Reset

func (x *ThankYouContent) Reset()

func (*ThankYouContent) String

func (x *ThankYouContent) String() string

func (*ThankYouContent) Validate

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

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

Cause function returns cause value.

func (ThankYouContentValidationError) Error

Error satisfies the builtin error interface

func (ThankYouContentValidationError) ErrorName

func (e ThankYouContentValidationError) ErrorName() string

ErrorName returns error name.

func (ThankYouContentValidationError) Field

Field function returns field value.

func (ThankYouContentValidationError) Key

Key function returns key value.

func (ThankYouContentValidationError) Reason

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) NotifyIsTyping added in v1.17.1

func (UnimplementedChatServer) RevealIdentity

func (UnimplementedChatServer) SendMessage

func (UnimplementedChatServer) SetMuteState

func (UnimplementedChatServer) StartChat

func (UnimplementedChatServer) StreamChatEvents

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