chat

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 23 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

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

Enum value maps for GetChatsRequest_Direction.

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

Enum value maps for GetChatsResponse_Result.

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

Enum value maps for GetMessagesRequest_Direction.

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

Enum value maps for GetMessagesResponse_Result.

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

Enum value maps for AdvancePointerResponse_Result.

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

Enum value maps for SetMuteStateResponse_Result.

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

Enum value maps for SetSubscriptionStateResponse_Result.

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

Enum value maps for Pointer_Kind.

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

Enum value maps for ExchangeDataContent_Verb.

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

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

View Source
var File_chat_v1_chat_service_proto protoreflect.FileDescriptor

Functions

func RegisterChatServer

func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer)

Types

type AdvancePointerRequest

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

func (*AdvancePointerRequest) Descriptor deprecated

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

Deprecated: Use AdvancePointerRequest.ProtoReflect.Descriptor instead.

func (*AdvancePointerRequest) GetChatId

func (x *AdvancePointerRequest) GetChatId() *ChatId

func (*AdvancePointerRequest) GetOwner

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

func (*AdvancePointerRequest) GetPointer

func (x *AdvancePointerRequest) GetPointer() *Pointer

func (*AdvancePointerRequest) GetSignature

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

func (*AdvancePointerRequest) ProtoMessage

func (*AdvancePointerRequest) ProtoMessage()

func (*AdvancePointerRequest) ProtoReflect

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

func (*AdvancePointerRequest) Reset

func (x *AdvancePointerRequest) Reset()

func (*AdvancePointerRequest) String

func (x *AdvancePointerRequest) String() string

func (*AdvancePointerRequest) Validate

func (m *AdvancePointerRequest) Validate() error

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

type AdvancePointerRequestValidationError

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

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

func (AdvancePointerRequestValidationError) Cause

Cause function returns cause value.

func (AdvancePointerRequestValidationError) Error

Error satisfies the builtin error interface

func (AdvancePointerRequestValidationError) ErrorName

ErrorName returns error name.

func (AdvancePointerRequestValidationError) Field

Field function returns field value.

func (AdvancePointerRequestValidationError) Key

Key function returns key value.

func (AdvancePointerRequestValidationError) Reason

Reason function returns reason value.

type AdvancePointerResponse

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

func (*AdvancePointerResponse) Descriptor deprecated

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

Deprecated: Use AdvancePointerResponse.ProtoReflect.Descriptor instead.

func (*AdvancePointerResponse) GetResult

func (*AdvancePointerResponse) ProtoMessage

func (*AdvancePointerResponse) ProtoMessage()

func (*AdvancePointerResponse) ProtoReflect

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

func (*AdvancePointerResponse) Reset

func (x *AdvancePointerResponse) Reset()

func (*AdvancePointerResponse) String

func (x *AdvancePointerResponse) String() string

func (*AdvancePointerResponse) Validate

func (m *AdvancePointerResponse) Validate() error

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

type AdvancePointerResponseValidationError

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

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

func (AdvancePointerResponseValidationError) Cause

Cause function returns cause value.

func (AdvancePointerResponseValidationError) Error

Error satisfies the builtin error interface

func (AdvancePointerResponseValidationError) ErrorName

ErrorName returns error name.

func (AdvancePointerResponseValidationError) Field

Field function returns field value.

func (AdvancePointerResponseValidationError) Key

Key function returns key value.

func (AdvancePointerResponseValidationError) Reason

Reason function returns reason value.

type AdvancePointerResponse_Result

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

func (AdvancePointerResponse_Result) Descriptor

func (AdvancePointerResponse_Result) Enum

func (AdvancePointerResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use AdvancePointerResponse_Result.Descriptor instead.

func (AdvancePointerResponse_Result) Number

func (AdvancePointerResponse_Result) String

func (AdvancePointerResponse_Result) Type

type ChatClient

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

ChatClient is the client API for Chat service.

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

func NewChatClient

func NewChatClient(cc grpc.ClientConnInterface) ChatClient

type ChatId

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

func (*ChatId) Descriptor deprecated

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

Deprecated: Use ChatId.ProtoReflect.Descriptor instead.

func (*ChatId) GetValue

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

func (*ChatId) ProtoMessage

func (*ChatId) ProtoMessage()

func (*ChatId) ProtoReflect

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

func (*ChatId) Reset

func (x *ChatId) Reset()

func (*ChatId) String

func (x *ChatId) String() string

func (*ChatId) Validate

func (m *ChatId) Validate() error

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

type ChatIdValidationError

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

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

func (ChatIdValidationError) Cause

func (e ChatIdValidationError) Cause() error

Cause function returns cause value.

func (ChatIdValidationError) Error

func (e ChatIdValidationError) Error() string

Error satisfies the builtin error interface

func (ChatIdValidationError) ErrorName

func (e ChatIdValidationError) ErrorName() string

ErrorName returns error name.

func (ChatIdValidationError) Field

func (e ChatIdValidationError) Field() string

Field function returns field value.

func (ChatIdValidationError) Key

func (e ChatIdValidationError) Key() bool

Key function returns key value.

func (ChatIdValidationError) Reason

func (e ChatIdValidationError) Reason() string

Reason function returns reason value.

type ChatMessage

type ChatMessage struct {

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

func (*ChatMessage) Descriptor deprecated

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

Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead.

func (*ChatMessage) GetContent

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

func (*ChatMessage) GetCursor

func (x *ChatMessage) GetCursor() *Cursor

func (*ChatMessage) GetMessageId

func (x *ChatMessage) GetMessageId() *ChatMessageId

func (*ChatMessage) GetTs

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

func (*ChatMessage) ProtoMessage

func (*ChatMessage) ProtoMessage()

func (*ChatMessage) ProtoReflect

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

func (*ChatMessage) Reset

func (x *ChatMessage) Reset()

func (*ChatMessage) String

func (x *ChatMessage) String() string

func (*ChatMessage) Validate

func (m *ChatMessage) Validate() error

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

type ChatMessageId

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

func (*ChatMessageId) Descriptor deprecated

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

Deprecated: Use ChatMessageId.ProtoReflect.Descriptor instead.

func (*ChatMessageId) GetValue

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

func (*ChatMessageId) ProtoMessage

func (*ChatMessageId) ProtoMessage()

func (*ChatMessageId) ProtoReflect

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

func (*ChatMessageId) Reset

func (x *ChatMessageId) Reset()

func (*ChatMessageId) String

func (x *ChatMessageId) String() string

func (*ChatMessageId) Validate

func (m *ChatMessageId) Validate() error

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

type ChatMessageIdValidationError

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

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

func (ChatMessageIdValidationError) Cause

Cause function returns cause value.

func (ChatMessageIdValidationError) Error

Error satisfies the builtin error interface

func (ChatMessageIdValidationError) ErrorName

func (e ChatMessageIdValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMessageIdValidationError) Field

Field function returns field value.

func (ChatMessageIdValidationError) Key

Key function returns key value.

func (ChatMessageIdValidationError) Reason

Reason function returns reason value.

type ChatMessageValidationError

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

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

func (ChatMessageValidationError) Cause

Cause function returns cause value.

func (ChatMessageValidationError) Error

Error satisfies the builtin error interface

func (ChatMessageValidationError) ErrorName

func (e ChatMessageValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMessageValidationError) Field

Field function returns field value.

func (ChatMessageValidationError) Key

Key function returns key value.

func (ChatMessageValidationError) Reason

Reason function returns reason value.

type ChatMetadata

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

func (*ChatMetadata) Descriptor deprecated

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

Deprecated: Use ChatMetadata.ProtoReflect.Descriptor instead.

func (*ChatMetadata) GetCanMute

func (x *ChatMetadata) GetCanMute() bool

func (*ChatMetadata) GetCanUnsubscribe

func (x *ChatMetadata) GetCanUnsubscribe() bool

func (*ChatMetadata) GetChatId

func (x *ChatMetadata) GetChatId() *ChatId

func (*ChatMetadata) GetCursor

func (x *ChatMetadata) GetCursor() *Cursor

func (*ChatMetadata) GetDomain

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

func (*ChatMetadata) GetIsMuted

func (x *ChatMetadata) GetIsMuted() bool

func (*ChatMetadata) GetIsSubscribed

func (x *ChatMetadata) GetIsSubscribed() bool

func (*ChatMetadata) GetIsVerified

func (x *ChatMetadata) GetIsVerified() bool

func (*ChatMetadata) GetLocalized

func (x *ChatMetadata) GetLocalized() *LocalizedContent

func (*ChatMetadata) GetNumUnread

func (x *ChatMetadata) GetNumUnread() uint32

func (*ChatMetadata) GetReadPointer

func (x *ChatMetadata) GetReadPointer() *Pointer

func (*ChatMetadata) GetTitle

func (m *ChatMetadata) GetTitle() isChatMetadata_Title

func (*ChatMetadata) ProtoMessage

func (*ChatMetadata) ProtoMessage()

func (*ChatMetadata) ProtoReflect

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

func (*ChatMetadata) Reset

func (x *ChatMetadata) Reset()

func (*ChatMetadata) String

func (x *ChatMetadata) String() string

func (*ChatMetadata) Validate

func (m *ChatMetadata) Validate() error

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

type ChatMetadataValidationError

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

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

func (ChatMetadataValidationError) Cause

Cause function returns cause value.

func (ChatMetadataValidationError) Error

Error satisfies the builtin error interface

func (ChatMetadataValidationError) ErrorName

func (e ChatMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMetadataValidationError) Field

Field function returns field value.

func (ChatMetadataValidationError) Key

Key function returns key value.

func (ChatMetadataValidationError) Reason

Reason function returns reason value.

type ChatMetadata_Domain

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

type ChatMetadata_Localized

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

type ChatServer

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

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

type Content

type Content struct {

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

func (*Content) Descriptor deprecated

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

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetExchangeData

func (x *Content) GetExchangeData() *ExchangeDataContent

func (*Content) GetLocalized

func (x *Content) GetLocalized() *LocalizedContent

func (*Content) GetNaclBox

func (x *Content) GetNaclBox() *NaclBoxEncryptedContent

func (*Content) GetType

func (m *Content) GetType() isContent_Type

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

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

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

func (*Content) Validate

func (m *Content) Validate() error

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

type ContentValidationError

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

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

func (ContentValidationError) Cause

func (e ContentValidationError) Cause() error

Cause function returns cause value.

func (ContentValidationError) Error

func (e ContentValidationError) Error() string

Error satisfies the builtin error interface

func (ContentValidationError) ErrorName

func (e ContentValidationError) ErrorName() string

ErrorName returns error name.

func (ContentValidationError) Field

func (e ContentValidationError) Field() string

Field function returns field value.

func (ContentValidationError) Key

func (e ContentValidationError) Key() bool

Key function returns key value.

func (ContentValidationError) Reason

func (e ContentValidationError) Reason() string

Reason function returns reason value.

type Content_ExchangeData

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

type Content_Localized

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

type Content_NaclBox

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

type Cursor

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

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

func (*Cursor) Descriptor deprecated

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

Deprecated: Use Cursor.ProtoReflect.Descriptor instead.

func (*Cursor) GetValue

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

func (*Cursor) ProtoMessage

func (*Cursor) ProtoMessage()

func (*Cursor) ProtoReflect

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

func (*Cursor) Reset

func (x *Cursor) Reset()

func (*Cursor) String

func (x *Cursor) String() string

func (*Cursor) Validate

func (m *Cursor) Validate() error

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

type CursorValidationError

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

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

func (CursorValidationError) Cause

func (e CursorValidationError) Cause() error

Cause function returns cause value.

func (CursorValidationError) Error

func (e CursorValidationError) Error() string

Error satisfies the builtin error interface

func (CursorValidationError) ErrorName

func (e CursorValidationError) ErrorName() string

ErrorName returns error name.

func (CursorValidationError) Field

func (e CursorValidationError) Field() string

Field function returns field value.

func (CursorValidationError) Key

func (e CursorValidationError) Key() bool

Key function returns key value.

func (CursorValidationError) Reason

func (e CursorValidationError) Reason() string

Reason function returns reason value.

type ExchangeDataContent

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

func (*ExchangeDataContent) Descriptor deprecated

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

Deprecated: Use ExchangeDataContent.ProtoReflect.Descriptor instead.

func (*ExchangeDataContent) GetExact

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

func (*ExchangeDataContent) GetExchangeData

func (m *ExchangeDataContent) GetExchangeData() isExchangeDataContent_ExchangeData

func (*ExchangeDataContent) GetPartial

func (*ExchangeDataContent) GetVerb

func (*ExchangeDataContent) ProtoMessage

func (*ExchangeDataContent) ProtoMessage()

func (*ExchangeDataContent) ProtoReflect

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

func (*ExchangeDataContent) Reset

func (x *ExchangeDataContent) Reset()

func (*ExchangeDataContent) String

func (x *ExchangeDataContent) String() string

func (*ExchangeDataContent) Validate

func (m *ExchangeDataContent) Validate() error

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

type ExchangeDataContentValidationError

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

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

func (ExchangeDataContentValidationError) Cause

Cause function returns cause value.

func (ExchangeDataContentValidationError) Error

Error satisfies the builtin error interface

func (ExchangeDataContentValidationError) ErrorName

ErrorName returns error name.

func (ExchangeDataContentValidationError) Field

Field function returns field value.

func (ExchangeDataContentValidationError) Key

Key function returns key value.

func (ExchangeDataContentValidationError) Reason

Reason function returns reason value.

type ExchangeDataContent_Exact

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

type ExchangeDataContent_Partial

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

type ExchangeDataContent_Verb

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

func (ExchangeDataContent_Verb) Descriptor

func (ExchangeDataContent_Verb) Enum

func (ExchangeDataContent_Verb) EnumDescriptor deprecated

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

Deprecated: Use ExchangeDataContent_Verb.Descriptor instead.

func (ExchangeDataContent_Verb) Number

func (ExchangeDataContent_Verb) String

func (x ExchangeDataContent_Verb) String() string

func (ExchangeDataContent_Verb) Type

type GetChatsRequest

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

func (*GetChatsRequest) Descriptor deprecated

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

Deprecated: Use GetChatsRequest.ProtoReflect.Descriptor instead.

func (*GetChatsRequest) GetCursor

func (x *GetChatsRequest) GetCursor() *Cursor

func (*GetChatsRequest) GetDirection

func (x *GetChatsRequest) GetDirection() GetChatsRequest_Direction

func (*GetChatsRequest) GetOwner

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

func (*GetChatsRequest) GetPageSize

func (x *GetChatsRequest) GetPageSize() uint32

func (*GetChatsRequest) GetSignature

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

func (*GetChatsRequest) ProtoMessage

func (*GetChatsRequest) ProtoMessage()

func (*GetChatsRequest) ProtoReflect

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

func (*GetChatsRequest) Reset

func (x *GetChatsRequest) Reset()

func (*GetChatsRequest) String

func (x *GetChatsRequest) String() string

func (*GetChatsRequest) Validate

func (m *GetChatsRequest) Validate() error

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

type GetChatsRequestValidationError

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

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

func (GetChatsRequestValidationError) Cause

Cause function returns cause value.

func (GetChatsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetChatsRequestValidationError) ErrorName

func (e GetChatsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetChatsRequestValidationError) Field

Field function returns field value.

func (GetChatsRequestValidationError) Key

Key function returns key value.

func (GetChatsRequestValidationError) Reason

Reason function returns reason value.

type GetChatsRequest_Direction

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

func (GetChatsRequest_Direction) Descriptor

func (GetChatsRequest_Direction) Enum

func (GetChatsRequest_Direction) EnumDescriptor deprecated

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

Deprecated: Use GetChatsRequest_Direction.Descriptor instead.

func (GetChatsRequest_Direction) Number

func (GetChatsRequest_Direction) String

func (x GetChatsRequest_Direction) String() string

func (GetChatsRequest_Direction) Type

type GetChatsResponse

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

func (*GetChatsResponse) Descriptor deprecated

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

Deprecated: Use GetChatsResponse.ProtoReflect.Descriptor instead.

func (*GetChatsResponse) GetChats

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

func (*GetChatsResponse) GetResult

func (*GetChatsResponse) ProtoMessage

func (*GetChatsResponse) ProtoMessage()

func (*GetChatsResponse) ProtoReflect

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

func (*GetChatsResponse) Reset

func (x *GetChatsResponse) Reset()

func (*GetChatsResponse) String

func (x *GetChatsResponse) String() string

func (*GetChatsResponse) Validate

func (m *GetChatsResponse) Validate() error

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

type GetChatsResponseValidationError

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

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

func (GetChatsResponseValidationError) Cause

Cause function returns cause value.

func (GetChatsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetChatsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetChatsResponseValidationError) Field

Field function returns field value.

func (GetChatsResponseValidationError) Key

Key function returns key value.

func (GetChatsResponseValidationError) Reason

Reason function returns reason value.

type GetChatsResponse_Result

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

func (GetChatsResponse_Result) Descriptor

func (GetChatsResponse_Result) Enum

func (GetChatsResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetChatsResponse_Result.Descriptor instead.

func (GetChatsResponse_Result) Number

func (GetChatsResponse_Result) String

func (x GetChatsResponse_Result) String() string

func (GetChatsResponse_Result) Type

type GetMessagesRequest

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

func (*GetMessagesRequest) Descriptor deprecated

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

Deprecated: Use GetMessagesRequest.ProtoReflect.Descriptor instead.

func (*GetMessagesRequest) GetChatId

func (x *GetMessagesRequest) GetChatId() *ChatId

func (*GetMessagesRequest) GetCursor

func (x *GetMessagesRequest) GetCursor() *Cursor

func (*GetMessagesRequest) GetDirection

func (*GetMessagesRequest) GetOwner

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

func (*GetMessagesRequest) GetPageSize

func (x *GetMessagesRequest) GetPageSize() uint32

func (*GetMessagesRequest) GetSignature

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

func (*GetMessagesRequest) ProtoMessage

func (*GetMessagesRequest) ProtoMessage()

func (*GetMessagesRequest) ProtoReflect

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

func (*GetMessagesRequest) Reset

func (x *GetMessagesRequest) Reset()

func (*GetMessagesRequest) String

func (x *GetMessagesRequest) String() string

func (*GetMessagesRequest) Validate

func (m *GetMessagesRequest) Validate() error

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

type GetMessagesRequestValidationError

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

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

func (GetMessagesRequestValidationError) Cause

Cause function returns cause value.

func (GetMessagesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMessagesRequestValidationError) ErrorName

ErrorName returns error name.

func (GetMessagesRequestValidationError) Field

Field function returns field value.

func (GetMessagesRequestValidationError) Key

Key function returns key value.

func (GetMessagesRequestValidationError) Reason

Reason function returns reason value.

type GetMessagesRequest_Direction

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

func (GetMessagesRequest_Direction) Descriptor

func (GetMessagesRequest_Direction) Enum

func (GetMessagesRequest_Direction) EnumDescriptor deprecated

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

Deprecated: Use GetMessagesRequest_Direction.Descriptor instead.

func (GetMessagesRequest_Direction) Number

func (GetMessagesRequest_Direction) String

func (GetMessagesRequest_Direction) Type

type GetMessagesResponse

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

func (*GetMessagesResponse) Descriptor deprecated

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

Deprecated: Use GetMessagesResponse.ProtoReflect.Descriptor instead.

func (*GetMessagesResponse) GetMessages

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

func (*GetMessagesResponse) GetResult

func (*GetMessagesResponse) ProtoMessage

func (*GetMessagesResponse) ProtoMessage()

func (*GetMessagesResponse) ProtoReflect

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

func (*GetMessagesResponse) Reset

func (x *GetMessagesResponse) Reset()

func (*GetMessagesResponse) String

func (x *GetMessagesResponse) String() string

func (*GetMessagesResponse) Validate

func (m *GetMessagesResponse) Validate() error

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

type GetMessagesResponseValidationError

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

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

func (GetMessagesResponseValidationError) Cause

Cause function returns cause value.

func (GetMessagesResponseValidationError) Error

Error satisfies the builtin error interface

func (GetMessagesResponseValidationError) ErrorName

ErrorName returns error name.

func (GetMessagesResponseValidationError) Field

Field function returns field value.

func (GetMessagesResponseValidationError) Key

Key function returns key value.

func (GetMessagesResponseValidationError) Reason

Reason function returns reason value.

type GetMessagesResponse_Result

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

func (GetMessagesResponse_Result) Descriptor

func (GetMessagesResponse_Result) Enum

func (GetMessagesResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetMessagesResponse_Result.Descriptor instead.

func (GetMessagesResponse_Result) Number

func (GetMessagesResponse_Result) String

func (GetMessagesResponse_Result) Type

type LocalizedContent

type LocalizedContent struct {

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

func (*LocalizedContent) Descriptor deprecated

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

Deprecated: Use LocalizedContent.ProtoReflect.Descriptor instead.

func (*LocalizedContent) GetKeyOrText added in v1.12.3

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 {
	PeerPublicKey    *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=peer_public_key,json=peerPublicKey,proto3" json:"peer_public_key,omitempty"`
	Nonce            []byte              `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	EncryptedPayload []byte              `protobuf:"bytes,3,opt,name=encrypted_payload,json=encryptedPayload,proto3" json:"encrypted_payload,omitempty"`
	// contains filtered or unexported fields
}

func (*NaclBoxEncryptedContent) Descriptor deprecated

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

Deprecated: Use NaclBoxEncryptedContent.ProtoReflect.Descriptor instead.

func (*NaclBoxEncryptedContent) GetEncryptedPayload

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

func (*NaclBoxEncryptedContent) GetNonce

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

func (*NaclBoxEncryptedContent) GetPeerPublicKey

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

func (*NaclBoxEncryptedContent) ProtoMessage

func (*NaclBoxEncryptedContent) ProtoMessage()

func (*NaclBoxEncryptedContent) ProtoReflect

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

func (*NaclBoxEncryptedContent) Reset

func (x *NaclBoxEncryptedContent) Reset()

func (*NaclBoxEncryptedContent) String

func (x *NaclBoxEncryptedContent) String() string

func (*NaclBoxEncryptedContent) Validate

func (m *NaclBoxEncryptedContent) Validate() error

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

type NaclBoxEncryptedContentValidationError

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

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

func (NaclBoxEncryptedContentValidationError) Cause

Cause function returns cause value.

func (NaclBoxEncryptedContentValidationError) Error

Error satisfies the builtin error interface

func (NaclBoxEncryptedContentValidationError) ErrorName

ErrorName returns error name.

func (NaclBoxEncryptedContentValidationError) Field

Field function returns field value.

func (NaclBoxEncryptedContentValidationError) Key

Key function returns key value.

func (NaclBoxEncryptedContentValidationError) Reason

Reason function returns reason value.

type Pointer

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

func (*Pointer) Descriptor deprecated

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

Deprecated: Use Pointer.ProtoReflect.Descriptor instead.

func (*Pointer) GetKind

func (x *Pointer) GetKind() Pointer_Kind

func (*Pointer) GetValue

func (x *Pointer) GetValue() *ChatMessageId

func (*Pointer) ProtoMessage

func (*Pointer) ProtoMessage()

func (*Pointer) ProtoReflect

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

func (*Pointer) Reset

func (x *Pointer) Reset()

func (*Pointer) String

func (x *Pointer) String() string

func (*Pointer) Validate

func (m *Pointer) Validate() error

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

type PointerValidationError

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

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

func (PointerValidationError) Cause

func (e PointerValidationError) Cause() error

Cause function returns cause value.

func (PointerValidationError) Error

func (e PointerValidationError) Error() string

Error satisfies the builtin error interface

func (PointerValidationError) ErrorName

func (e PointerValidationError) ErrorName() string

ErrorName returns error name.

func (PointerValidationError) Field

func (e PointerValidationError) Field() string

Field function returns field value.

func (PointerValidationError) Key

func (e PointerValidationError) Key() bool

Key function returns key value.

func (PointerValidationError) Reason

func (e PointerValidationError) Reason() string

Reason function returns reason value.

type Pointer_Kind

type Pointer_Kind int32
const (
	Pointer_UNKNOWN Pointer_Kind = 0
	Pointer_READ    Pointer_Kind = 1
)

func (Pointer_Kind) Descriptor

func (Pointer_Kind) Enum

func (x Pointer_Kind) Enum() *Pointer_Kind

func (Pointer_Kind) EnumDescriptor deprecated

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

Deprecated: Use Pointer_Kind.Descriptor instead.

func (Pointer_Kind) Number

func (Pointer_Kind) String

func (x Pointer_Kind) String() string

func (Pointer_Kind) Type

type SetMuteStateRequest

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

func (*SetMuteStateRequest) Descriptor deprecated

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

Deprecated: Use SetMuteStateRequest.ProtoReflect.Descriptor instead.

func (*SetMuteStateRequest) GetChatId

func (x *SetMuteStateRequest) GetChatId() *ChatId

func (*SetMuteStateRequest) GetIsMuted

func (x *SetMuteStateRequest) GetIsMuted() bool

func (*SetMuteStateRequest) GetOwner

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

func (*SetMuteStateRequest) GetSignature

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

func (*SetMuteStateRequest) ProtoMessage

func (*SetMuteStateRequest) ProtoMessage()

func (*SetMuteStateRequest) ProtoReflect

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

func (*SetMuteStateRequest) Reset

func (x *SetMuteStateRequest) Reset()

func (*SetMuteStateRequest) String

func (x *SetMuteStateRequest) String() string

func (*SetMuteStateRequest) Validate

func (m *SetMuteStateRequest) Validate() error

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

type SetMuteStateRequestValidationError

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

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

func (SetMuteStateRequestValidationError) Cause

Cause function returns cause value.

func (SetMuteStateRequestValidationError) Error

Error satisfies the builtin error interface

func (SetMuteStateRequestValidationError) ErrorName

ErrorName returns error name.

func (SetMuteStateRequestValidationError) Field

Field function returns field value.

func (SetMuteStateRequestValidationError) Key

Key function returns key value.

func (SetMuteStateRequestValidationError) Reason

Reason function returns reason value.

type SetMuteStateResponse

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

func (*SetMuteStateResponse) Descriptor deprecated

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

Deprecated: Use SetMuteStateResponse.ProtoReflect.Descriptor instead.

func (*SetMuteStateResponse) GetResult

func (*SetMuteStateResponse) ProtoMessage

func (*SetMuteStateResponse) ProtoMessage()

func (*SetMuteStateResponse) ProtoReflect

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

func (*SetMuteStateResponse) Reset

func (x *SetMuteStateResponse) Reset()

func (*SetMuteStateResponse) String

func (x *SetMuteStateResponse) String() string

func (*SetMuteStateResponse) Validate

func (m *SetMuteStateResponse) Validate() error

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

type SetMuteStateResponseValidationError

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

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

func (SetMuteStateResponseValidationError) Cause

Cause function returns cause value.

func (SetMuteStateResponseValidationError) Error

Error satisfies the builtin error interface

func (SetMuteStateResponseValidationError) ErrorName

ErrorName returns error name.

func (SetMuteStateResponseValidationError) Field

Field function returns field value.

func (SetMuteStateResponseValidationError) Key

Key function returns key value.

func (SetMuteStateResponseValidationError) Reason

Reason function returns reason value.

type SetMuteStateResponse_Result

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

func (SetMuteStateResponse_Result) Descriptor

func (SetMuteStateResponse_Result) Enum

func (SetMuteStateResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use SetMuteStateResponse_Result.Descriptor instead.

func (SetMuteStateResponse_Result) Number

func (SetMuteStateResponse_Result) String

func (SetMuteStateResponse_Result) Type

type SetSubscriptionStateRequest

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

func (*SetSubscriptionStateRequest) Descriptor deprecated

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

Deprecated: Use SetSubscriptionStateRequest.ProtoReflect.Descriptor instead.

func (*SetSubscriptionStateRequest) GetChatId

func (x *SetSubscriptionStateRequest) GetChatId() *ChatId

func (*SetSubscriptionStateRequest) GetIsSubscribed

func (x *SetSubscriptionStateRequest) GetIsSubscribed() bool

func (*SetSubscriptionStateRequest) GetOwner

func (*SetSubscriptionStateRequest) GetSignature

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

func (*SetSubscriptionStateRequest) ProtoMessage

func (*SetSubscriptionStateRequest) ProtoMessage()

func (*SetSubscriptionStateRequest) ProtoReflect

func (*SetSubscriptionStateRequest) Reset

func (x *SetSubscriptionStateRequest) Reset()

func (*SetSubscriptionStateRequest) String

func (x *SetSubscriptionStateRequest) String() string

func (*SetSubscriptionStateRequest) Validate

func (m *SetSubscriptionStateRequest) Validate() error

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

type SetSubscriptionStateRequestValidationError

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

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

func (SetSubscriptionStateRequestValidationError) Cause

Cause function returns cause value.

func (SetSubscriptionStateRequestValidationError) Error

Error satisfies the builtin error interface

func (SetSubscriptionStateRequestValidationError) ErrorName

ErrorName returns error name.

func (SetSubscriptionStateRequestValidationError) Field

Field function returns field value.

func (SetSubscriptionStateRequestValidationError) Key

Key function returns key value.

func (SetSubscriptionStateRequestValidationError) Reason

Reason function returns reason value.

type SetSubscriptionStateResponse

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

func (*SetSubscriptionStateResponse) Descriptor deprecated

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

Deprecated: Use SetSubscriptionStateResponse.ProtoReflect.Descriptor instead.

func (*SetSubscriptionStateResponse) GetResult

func (*SetSubscriptionStateResponse) ProtoMessage

func (*SetSubscriptionStateResponse) ProtoMessage()

func (*SetSubscriptionStateResponse) ProtoReflect

func (*SetSubscriptionStateResponse) Reset

func (x *SetSubscriptionStateResponse) Reset()

func (*SetSubscriptionStateResponse) String

func (*SetSubscriptionStateResponse) Validate

func (m *SetSubscriptionStateResponse) Validate() error

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

type SetSubscriptionStateResponseValidationError

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

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

func (SetSubscriptionStateResponseValidationError) Cause

Cause function returns cause value.

func (SetSubscriptionStateResponseValidationError) Error

Error satisfies the builtin error interface

func (SetSubscriptionStateResponseValidationError) ErrorName

ErrorName returns error name.

func (SetSubscriptionStateResponseValidationError) Field

Field function returns field value.

func (SetSubscriptionStateResponseValidationError) Key

Key function returns key value.

func (SetSubscriptionStateResponseValidationError) Reason

Reason function returns reason value.

type SetSubscriptionStateResponse_Result

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

func (SetSubscriptionStateResponse_Result) Descriptor

func (SetSubscriptionStateResponse_Result) Enum

func (SetSubscriptionStateResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use SetSubscriptionStateResponse_Result.Descriptor instead.

func (SetSubscriptionStateResponse_Result) Number

func (SetSubscriptionStateResponse_Result) String

func (SetSubscriptionStateResponse_Result) Type

type UnimplementedChatServer

type UnimplementedChatServer struct {
}

UnimplementedChatServer must be embedded to have forward compatible implementations.

func (UnimplementedChatServer) AdvancePointer

func (UnimplementedChatServer) GetChats

func (UnimplementedChatServer) GetMessages

func (UnimplementedChatServer) SetMuteState

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