Documentation
¶
Index ¶
- Variables
- type AcceptContactRequest
- func (*AcceptContactRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AcceptContactRequest) GetContactId() string
- func (x *AcceptContactRequest) GetUserId() *model.UUID
- func (*AcceptContactRequest) ProtoMessage()
- func (x *AcceptContactRequest) ProtoReflect() protoreflect.Message
- func (x *AcceptContactRequest) Reset()
- func (x *AcceptContactRequest) String() string
- type AcceptContactResponse
- type AddContactRequest
- func (*AddContactRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddContactRequest) GetFromUserId() *model.UUID
- func (x *AddContactRequest) GetToUserId() *model.UUID
- func (*AddContactRequest) ProtoMessage()
- func (x *AddContactRequest) ProtoReflect() protoreflect.Message
- func (x *AddContactRequest) Reset()
- func (x *AddContactRequest) String() string
- type AddContactResponse
- func (*AddContactResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddContactResponse) GetContact() *Contact
- func (*AddContactResponse) ProtoMessage()
- func (x *AddContactResponse) ProtoReflect() protoreflect.Message
- func (x *AddContactResponse) Reset()
- func (x *AddContactResponse) String() string
- type AuthMethod
- func (*AuthMethod) Descriptor() ([]byte, []int)deprecated
- func (x *AuthMethod) GetLoginType() model.LoginType
- func (m *AuthMethod) GetMethod() isAuthMethod_Method
- func (x *AuthMethod) GetOauthProvider() model.OauthProvider
- func (*AuthMethod) ProtoMessage()
- func (x *AuthMethod) ProtoReflect() protoreflect.Message
- func (x *AuthMethod) Reset()
- func (x *AuthMethod) String() string
- type AuthMethod_LoginType
- type AuthMethod_OauthProvider
- type Contact
- func (*Contact) Descriptor() ([]byte, []int)deprecated
- func (x *Contact) GetAccepted() bool
- func (x *Contact) GetAcceptedAt() *timestamppb.Timestamp
- func (x *Contact) GetFrom() *User
- func (x *Contact) GetFromUserId() string
- func (x *Contact) GetId() string
- func (x *Contact) GetSentAt() *timestamppb.Timestamp
- func (x *Contact) GetTo() *User
- func (x *Contact) GetToUserId() string
- func (*Contact) ProtoMessage()
- func (x *Contact) ProtoReflect() protoreflect.Message
- func (x *Contact) Reset()
- func (x *Contact) String() string
- type CreateRequest
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetUser() *User
- func (x *CreateResponse) GetUserId() *model.UUID
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type DeleteManyRequest
- func (*DeleteManyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteManyRequest) GetUserIds() []*model.UUID
- func (*DeleteManyRequest) ProtoMessage()
- func (x *DeleteManyRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteManyRequest) Reset()
- func (x *DeleteManyRequest) String() string
- type DeleteManyResponse
- func (*DeleteManyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteManyResponse) GetCount() uint64
- func (*DeleteManyResponse) ProtoMessage()
- func (x *DeleteManyResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteManyResponse) Reset()
- func (x *DeleteManyResponse) String() string
- type DeleteRequest
- type DeleteResponse
- type DeviceInfo
- type GetContactsRequest
- func (*GetContactsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetContactsRequest) GetAccepted() bool
- func (x *GetContactsRequest) GetFrom() uint32
- func (x *GetContactsRequest) GetTo() uint32
- func (x *GetContactsRequest) GetUserId() *model.UUID
- func (*GetContactsRequest) ProtoMessage()
- func (x *GetContactsRequest) ProtoReflect() protoreflect.Message
- func (x *GetContactsRequest) Reset()
- func (x *GetContactsRequest) String() string
- type GetContactsResponse
- func (*GetContactsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetContactsResponse) GetContacts() []*Contact
- func (x *GetContactsResponse) GetCount() uint64
- func (*GetContactsResponse) ProtoMessage()
- func (x *GetContactsResponse) ProtoReflect() protoreflect.Message
- func (x *GetContactsResponse) Reset()
- func (x *GetContactsResponse) String() string
- type GetManyRequest
- type GetManyResponse
- func (*GetManyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetManyResponse) GetCount() uint64
- func (x *GetManyResponse) GetUsers() []*User
- func (*GetManyResponse) ProtoMessage()
- func (x *GetManyResponse) ProtoReflect() protoreflect.Message
- func (x *GetManyResponse) Reset()
- func (x *GetManyResponse) String() string
- type GetRequest
- type GetResponse
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetPagination() *model.Pagination
- func (x *ListRequest) GetSearch() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetTotal() uint64
- func (x *ListResponse) GetUsers() []*model.UserEntry
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type ListSessionsRequest
- func (*ListSessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionsRequest) GetPagination() *model.Pagination
- func (x *ListSessionsRequest) GetUserId() *model.UUID
- func (*ListSessionsRequest) ProtoMessage()
- func (x *ListSessionsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSessionsRequest) Reset()
- func (x *ListSessionsRequest) String() string
- type ListSessionsResponse
- func (*ListSessionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionsResponse) GetSessions() []*SessionEntry
- func (x *ListSessionsResponse) GetTotal() uint64
- func (*ListSessionsResponse) ProtoMessage()
- func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSessionsResponse) Reset()
- func (x *ListSessionsResponse) String() string
- type LookupRequest
- type LookupResponse
- func (*LookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupResponse) GetUser() *User
- func (x *LookupResponse) GetUserId() *model.UUID
- func (*LookupResponse) ProtoMessage()
- func (x *LookupResponse) ProtoReflect() protoreflect.Message
- func (x *LookupResponse) Reset()
- func (x *LookupResponse) String() string
- type Oauth2ProviderLink
- func (*Oauth2ProviderLink) Descriptor() ([]byte, []int)deprecated
- func (x *Oauth2ProviderLink) GetCreatedAt() *timestamppb.Timestamp
- func (x *Oauth2ProviderLink) GetIssuer() string
- func (x *Oauth2ProviderLink) GetProvider() model.OauthProvider
- func (x *Oauth2ProviderLink) GetSubject() string
- func (*Oauth2ProviderLink) ProtoMessage()
- func (x *Oauth2ProviderLink) ProtoReflect() protoreflect.Message
- func (x *Oauth2ProviderLink) Reset()
- func (x *Oauth2ProviderLink) String() string
- type Permissionship
- func (Permissionship) Descriptor() protoreflect.EnumDescriptor
- func (x Permissionship) Enum() *Permissionship
- func (Permissionship) EnumDescriptor() ([]byte, []int)deprecated
- func (x Permissionship) Number() protoreflect.EnumNumber
- func (x Permissionship) String() string
- func (Permissionship) Type() protoreflect.EnumType
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetAvatarColor() model.AvatarColor
- func (x *Profile) GetCountry() string
- func (x *Profile) GetFirstName() string
- func (x *Profile) GetLastName() string
- func (x *Profile) GetPreferredLanguage() string
- func (x *Profile) GetProfileImage() *model.Image
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type RemoveContactRequest
- func (*RemoveContactRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveContactRequest) GetContactId() string
- func (*RemoveContactRequest) ProtoMessage()
- func (x *RemoveContactRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveContactRequest) Reset()
- func (x *RemoveContactRequest) String() string
- type RemoveContactResponse
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetFrom() uint32
- func (x *SearchRequest) GetGroupId() string
- func (x *SearchRequest) GetQuery() string
- func (x *SearchRequest) GetTo() uint32
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetCount() uint64
- func (x *SearchResponse) GetUsers() []*User
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetAuthMethod() *AuthMethod
- func (x *Session) GetCountry() string
- func (x *Session) GetCreatedAt() *timestamppb.Timestamp
- func (x *Session) GetDevice() DeviceInfo
- func (x *Session) GetExpiresAt() *timestamppb.Timestamp
- func (x *Session) GetInvalidatedAt() *timestamppb.Timestamp
- func (x *Session) GetIsInvalidated() bool
- func (x *Session) GetPostalCode() int32
- func (x *Session) GetRenewedAt() *timestamppb.Timestamp
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type SessionEntry
- func (*SessionEntry) Descriptor() ([]byte, []int)deprecated
- func (x *SessionEntry) GetSession() *Session
- func (x *SessionEntry) GetSessionId() *model.UUID
- func (*SessionEntry) ProtoMessage()
- func (x *SessionEntry) ProtoReflect() protoreflect.Message
- func (x *SessionEntry) Reset()
- func (x *SessionEntry) String() string
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetAvatarColor() model.AvatarColor
- func (x *Update) GetDeleteMetadataKey() string
- func (x *Update) GetEmail() string
- func (m *Update) GetField() isUpdate_Field
- func (x *Update) GetIsEmailVerified() bool
- func (x *Update) GetIsPhoneVerified() bool
- func (x *Update) GetPassword() string
- func (x *Update) GetPhoneNumber() string
- func (x *Update) GetProfile() *Profile
- func (x *Update) GetResetRessions() *Update_ResetRessions
- func (x *Update) GetSetMetadata() *model.Metadata
- func (x *Update) GetUsername() string
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetUpdates() []*Update
- func (x *UpdateRequest) GetUserId() *model.UUID
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
- type Update_AvatarColor
- type Update_DeleteMetadataKey
- type Update_Email
- type Update_IsEmailVerified
- type Update_IsPhoneVerified
- type Update_Password
- type Update_PhoneNumber
- type Update_Profile
- type Update_ResetRessions
- type Update_ResetRessions_
- type Update_SetMetadata
- type Update_Username
- type UploadProfileImageRequest
- func (*UploadProfileImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadProfileImageRequest) GetData() []byte
- func (x *UploadProfileImageRequest) GetUserId() *model.UUID
- func (*UploadProfileImageRequest) ProtoMessage()
- func (x *UploadProfileImageRequest) ProtoReflect() protoreflect.Message
- func (x *UploadProfileImageRequest) Reset()
- func (x *UploadProfileImageRequest) String() string
- type UploadProfileImageResponse
- func (*UploadProfileImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadProfileImageResponse) GetUrl() string
- func (*UploadProfileImageResponse) ProtoMessage()
- func (x *UploadProfileImageResponse) ProtoReflect() protoreflect.Message
- func (x *UploadProfileImageResponse) Reset()
- func (x *UploadProfileImageResponse) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetIsEmailVerified() bool
- func (x *User) GetIsPhoneVerified() bool
- func (x *User) GetMetadata() map[string][]byte
- func (x *User) GetNewSessionsSince() *timestamppb.Timestamp
- func (x *User) GetProfile() *Profile
- func (x *User) GetRegisterInfo() *model.RegisterInfo
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (x *User) GetUserInfo() *model.UserInfo
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type VerificationCode
- func (*VerificationCode) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationCode) GetAttempts() int32
- func (x *VerificationCode) GetCode() *model.HashingInstance
- func (x *VerificationCode) GetExpiresAt() *timestamppb.Timestamp
- func (x *VerificationCode) GetLastAttempt() *timestamppb.Timestamp
- func (x *VerificationCode) GetSentAt() *timestamppb.Timestamp
- func (x *VerificationCode) GetType() VerificationType
- func (x *VerificationCode) GetUserId() *model.UUID
- func (*VerificationCode) ProtoMessage()
- func (x *VerificationCode) ProtoReflect() protoreflect.Message
- func (x *VerificationCode) Reset()
- func (x *VerificationCode) String() string
- type VerificationType
- func (VerificationType) Descriptor() protoreflect.EnumDescriptor
- func (x VerificationType) Enum() *VerificationType
- func (VerificationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x VerificationType) Number() protoreflect.EnumNumber
- func (x VerificationType) String() string
- func (VerificationType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( VerificationType_name = map[int32]string{ 0: "VERIFICATION_TYPE_UNSPECIFIED", 1: "VERIFICATION_TYPE_EMAIL", 2: "VERIFICATION_TYPE_TEXT", 3: "VERIFICATION_TYPE_RESET_PASSWORD", 4: "VERIFICATION_TYPE_MAGIC_CODE", } VerificationType_value = map[string]int32{ "VERIFICATION_TYPE_UNSPECIFIED": 0, "VERIFICATION_TYPE_EMAIL": 1, "VERIFICATION_TYPE_TEXT": 2, "VERIFICATION_TYPE_RESET_PASSWORD": 3, "VERIFICATION_TYPE_MAGIC_CODE": 4, } )
Enum value maps for VerificationType.
var ( DeviceInfo_name = map[int32]string{ 0: "DEVICE_INFO_UNSPECIFIED", 1: "DEVICE_INFO_IOS", 2: "DEVICE_INFO_MACOS", 3: "DEVICE_INFO_WINDOWS", 4: "DEVICE_INFO_WEB", 5: "DEVICE_INFO_LINUX", 6: "DEVICE_INFO_ANDROID", } DeviceInfo_value = map[string]int32{ "DEVICE_INFO_UNSPECIFIED": 0, "DEVICE_INFO_IOS": 1, "DEVICE_INFO_MACOS": 2, "DEVICE_INFO_WINDOWS": 3, "DEVICE_INFO_WEB": 4, "DEVICE_INFO_LINUX": 5, "DEVICE_INFO_ANDROID": 6, } )
Enum value maps for DeviceInfo.
var ( Permissionship_name = map[int32]string{ 0: "PERMISSIONSHIP_UNSPECIFIED", 1: "PERMISSIONSHIP_NO_PERMISSION", 2: "PERMISSIONSHIP_HAS_PERMISSION", 3: "PERMISSIONSHIP_CONDITIONAL_PERMISSION", } Permissionship_value = map[string]int32{ "PERMISSIONSHIP_UNSPECIFIED": 0, "PERMISSIONSHIP_NO_PERMISSION": 1, "PERMISSIONSHIP_HAS_PERMISSION": 2, "PERMISSIONSHIP_CONDITIONAL_PERMISSION": 3, } )
Enum value maps for Permissionship.
var File_api_v1_user_service_proto protoreflect.FileDescriptor
var File_api_v1_user_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AcceptContactRequest ¶
type AcceptContactRequest struct { ContactId string `protobuf:"bytes,1,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` UserId *model.UUID `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
The request of a Users.AcceptContact RPC
func (*AcceptContactRequest) Descriptor
deprecated
func (*AcceptContactRequest) Descriptor() ([]byte, []int)
Deprecated: Use AcceptContactRequest.ProtoReflect.Descriptor instead.
func (*AcceptContactRequest) GetContactId ¶
func (x *AcceptContactRequest) GetContactId() string
func (*AcceptContactRequest) GetUserId ¶
func (x *AcceptContactRequest) GetUserId() *model.UUID
func (*AcceptContactRequest) ProtoMessage ¶
func (*AcceptContactRequest) ProtoMessage()
func (*AcceptContactRequest) ProtoReflect ¶
func (x *AcceptContactRequest) ProtoReflect() protoreflect.Message
func (*AcceptContactRequest) Reset ¶
func (x *AcceptContactRequest) Reset()
func (*AcceptContactRequest) String ¶
func (x *AcceptContactRequest) String() string
type AcceptContactResponse ¶
type AcceptContactResponse struct {
// contains filtered or unexported fields
}
The response of a Users.AcceptContact RPC
func (*AcceptContactResponse) Descriptor
deprecated
func (*AcceptContactResponse) Descriptor() ([]byte, []int)
Deprecated: Use AcceptContactResponse.ProtoReflect.Descriptor instead.
func (*AcceptContactResponse) ProtoMessage ¶
func (*AcceptContactResponse) ProtoMessage()
func (*AcceptContactResponse) ProtoReflect ¶
func (x *AcceptContactResponse) ProtoReflect() protoreflect.Message
func (*AcceptContactResponse) Reset ¶
func (x *AcceptContactResponse) Reset()
func (*AcceptContactResponse) String ¶
func (x *AcceptContactResponse) String() string
type AddContactRequest ¶
type AddContactRequest struct { FromUserId *model.UUID `protobuf:"bytes,1,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"` ToUserId *model.UUID `protobuf:"bytes,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // contains filtered or unexported fields }
The request of a Users.AddContact RPC
func (*AddContactRequest) Descriptor
deprecated
func (*AddContactRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddContactRequest.ProtoReflect.Descriptor instead.
func (*AddContactRequest) GetFromUserId ¶
func (x *AddContactRequest) GetFromUserId() *model.UUID
func (*AddContactRequest) GetToUserId ¶
func (x *AddContactRequest) GetToUserId() *model.UUID
func (*AddContactRequest) ProtoMessage ¶
func (*AddContactRequest) ProtoMessage()
func (*AddContactRequest) ProtoReflect ¶
func (x *AddContactRequest) ProtoReflect() protoreflect.Message
func (*AddContactRequest) Reset ¶
func (x *AddContactRequest) Reset()
func (*AddContactRequest) String ¶
func (x *AddContactRequest) String() string
type AddContactResponse ¶
type AddContactResponse struct { Contact *Contact `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"` // contains filtered or unexported fields }
The response of a Users.AddContact RPC
func (*AddContactResponse) Descriptor
deprecated
func (*AddContactResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddContactResponse.ProtoReflect.Descriptor instead.
func (*AddContactResponse) GetContact ¶
func (x *AddContactResponse) GetContact() *Contact
func (*AddContactResponse) ProtoMessage ¶
func (*AddContactResponse) ProtoMessage()
func (*AddContactResponse) ProtoReflect ¶
func (x *AddContactResponse) ProtoReflect() protoreflect.Message
func (*AddContactResponse) Reset ¶
func (x *AddContactResponse) Reset()
func (*AddContactResponse) String ¶
func (x *AddContactResponse) String() string
type AuthMethod ¶
type AuthMethod struct { // Types that are assignable to Method: // // *AuthMethod_LoginType // *AuthMethod_OauthProvider Method isAuthMethod_Method `protobuf_oneof:"method"` // contains filtered or unexported fields }
func (*AuthMethod) Descriptor
deprecated
func (*AuthMethod) Descriptor() ([]byte, []int)
Deprecated: Use AuthMethod.ProtoReflect.Descriptor instead.
func (*AuthMethod) GetLoginType ¶
func (x *AuthMethod) GetLoginType() model.LoginType
func (*AuthMethod) GetMethod ¶
func (m *AuthMethod) GetMethod() isAuthMethod_Method
func (*AuthMethod) GetOauthProvider ¶
func (x *AuthMethod) GetOauthProvider() model.OauthProvider
func (*AuthMethod) ProtoMessage ¶
func (*AuthMethod) ProtoMessage()
func (*AuthMethod) ProtoReflect ¶
func (x *AuthMethod) ProtoReflect() protoreflect.Message
func (*AuthMethod) Reset ¶
func (x *AuthMethod) Reset()
func (*AuthMethod) String ¶
func (x *AuthMethod) String() string
type AuthMethod_LoginType ¶
type AuthMethod_OauthProvider ¶
type AuthMethod_OauthProvider struct {
OauthProvider model.OauthProvider `protobuf:"varint,2,opt,name=oauth_provider,json=oauthProvider,proto3,enum=model.OauthProvider,oneof"`
}
type Contact ¶
type Contact struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FromUserId string `protobuf:"bytes,2,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"` ToUserId string `protobuf:"bytes,3,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` From *User `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"` To *User `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"` Accepted bool `protobuf:"varint,6,opt,name=accepted,proto3" json:"accepted,omitempty"` AcceptedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=accepted_at,json=acceptedAt,proto3" json:"accepted_at,omitempty"` SentAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"` // contains filtered or unexported fields }
func (*Contact) Descriptor
deprecated
func (*Contact) GetAccepted ¶
func (*Contact) GetAcceptedAt ¶
func (x *Contact) GetAcceptedAt() *timestamppb.Timestamp
func (*Contact) GetFromUserId ¶
func (*Contact) GetSentAt ¶
func (x *Contact) GetSentAt() *timestamppb.Timestamp
func (*Contact) GetToUserId ¶
func (*Contact) ProtoMessage ¶
func (*Contact) ProtoMessage()
func (*Contact) ProtoReflect ¶
func (x *Contact) ProtoReflect() protoreflect.Message
type CreateRequest ¶
type CreateRequest struct { // Initial fields to set. Initializers []*Update `protobuf:"bytes,1,rep,name=initializers,proto3" json:"initializers,omitempty"` // contains filtered or unexported fields }
The request of a Users.Create RPC
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetInitializers ¶
func (x *CreateRequest) GetInitializers() []*Update
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { UserId *model.UUID `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The created user. User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
The response of a Users.Create RPC
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetUser ¶
func (x *CreateResponse) GetUser() *User
func (*CreateResponse) GetUserId ¶
func (x *CreateResponse) GetUserId() *model.UUID
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteManyRequest ¶
type DeleteManyRequest struct { UserIds []*model.UUID `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
The request of a Users.DeleteMany RPC
func (*DeleteManyRequest) Descriptor
deprecated
func (*DeleteManyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteManyRequest.ProtoReflect.Descriptor instead.
func (*DeleteManyRequest) GetUserIds ¶
func (x *DeleteManyRequest) GetUserIds() []*model.UUID
func (*DeleteManyRequest) ProtoMessage ¶
func (*DeleteManyRequest) ProtoMessage()
func (*DeleteManyRequest) ProtoReflect ¶
func (x *DeleteManyRequest) ProtoReflect() protoreflect.Message
func (*DeleteManyRequest) Reset ¶
func (x *DeleteManyRequest) Reset()
func (*DeleteManyRequest) String ¶
func (x *DeleteManyRequest) String() string
type DeleteManyResponse ¶
type DeleteManyResponse struct { // number of users deleted Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
The response of a Users.DeleteMany RPC
func (*DeleteManyResponse) Descriptor
deprecated
func (*DeleteManyResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteManyResponse.ProtoReflect.Descriptor instead.
func (*DeleteManyResponse) GetCount ¶
func (x *DeleteManyResponse) GetCount() uint64
func (*DeleteManyResponse) ProtoMessage ¶
func (*DeleteManyResponse) ProtoMessage()
func (*DeleteManyResponse) ProtoReflect ¶
func (x *DeleteManyResponse) ProtoReflect() protoreflect.Message
func (*DeleteManyResponse) Reset ¶
func (x *DeleteManyResponse) Reset()
func (*DeleteManyResponse) String ¶
func (x *DeleteManyResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { // The user identifier to fetch the user UserId *model.UUID `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
The request of an Users.Delete RPC
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetUserId ¶
func (x *DeleteRequest) GetUserId() *model.UUID
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
The response of an Users.Delete RPC
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type DeviceInfo ¶
type DeviceInfo int32
const ( DeviceInfo_DEVICE_INFO_UNSPECIFIED DeviceInfo = 0 DeviceInfo_DEVICE_INFO_IOS DeviceInfo = 1 DeviceInfo_DEVICE_INFO_MACOS DeviceInfo = 2 DeviceInfo_DEVICE_INFO_WINDOWS DeviceInfo = 3 DeviceInfo_DEVICE_INFO_WEB DeviceInfo = 4 DeviceInfo_DEVICE_INFO_LINUX DeviceInfo = 5 DeviceInfo_DEVICE_INFO_ANDROID DeviceInfo = 6 )
func (DeviceInfo) Descriptor ¶
func (DeviceInfo) Descriptor() protoreflect.EnumDescriptor
func (DeviceInfo) Enum ¶
func (x DeviceInfo) Enum() *DeviceInfo
func (DeviceInfo) EnumDescriptor
deprecated
func (DeviceInfo) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeviceInfo.Descriptor instead.
func (DeviceInfo) Number ¶
func (x DeviceInfo) Number() protoreflect.EnumNumber
func (DeviceInfo) String ¶
func (x DeviceInfo) String() string
func (DeviceInfo) Type ¶
func (DeviceInfo) Type() protoreflect.EnumType
type GetContactsRequest ¶
type GetContactsRequest struct { // The user identifier to fetch the user UserId *model.UUID `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Where to start getting contacts from From uint32 `protobuf:"varint,2,opt,name=from,proto3" json:"from,omitempty"` // Where to stop getting contacts to To uint32 `protobuf:"varint,3,opt,name=to,proto3" json:"to,omitempty"` // Set to true to only include accepted or false to only include not // accepted Accepted *bool `protobuf:"varint,4,opt,name=accepted,proto3,oneof" json:"accepted,omitempty"` // contains filtered or unexported fields }
The request of an Users.GetContacts RPC
func (*GetContactsRequest) Descriptor
deprecated
func (*GetContactsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetContactsRequest.ProtoReflect.Descriptor instead.
func (*GetContactsRequest) GetAccepted ¶
func (x *GetContactsRequest) GetAccepted() bool
func (*GetContactsRequest) GetFrom ¶
func (x *GetContactsRequest) GetFrom() uint32
func (*GetContactsRequest) GetTo ¶
func (x *GetContactsRequest) GetTo() uint32
func (*GetContactsRequest) GetUserId ¶
func (x *GetContactsRequest) GetUserId() *model.UUID
func (*GetContactsRequest) ProtoMessage ¶
func (*GetContactsRequest) ProtoMessage()
func (*GetContactsRequest) ProtoReflect ¶
func (x *GetContactsRequest) ProtoReflect() protoreflect.Message
func (*GetContactsRequest) Reset ¶
func (x *GetContactsRequest) Reset()
func (*GetContactsRequest) String ¶
func (x *GetContactsRequest) String() string
type GetContactsResponse ¶
type GetContactsResponse struct { Contacts []*Contact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"` // Return number of users in database Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
The request of a Users.GetContacts RPC
func (*GetContactsResponse) Descriptor
deprecated
func (*GetContactsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetContactsResponse.ProtoReflect.Descriptor instead.
func (*GetContactsResponse) GetContacts ¶
func (x *GetContactsResponse) GetContacts() []*Contact
func (*GetContactsResponse) GetCount ¶
func (x *GetContactsResponse) GetCount() uint64
func (*GetContactsResponse) ProtoMessage ¶
func (*GetContactsResponse) ProtoMessage()
func (*GetContactsResponse) ProtoReflect ¶
func (x *GetContactsResponse) ProtoReflect() protoreflect.Message
func (*GetContactsResponse) Reset ¶
func (x *GetContactsResponse) Reset()
func (*GetContactsResponse) String ¶
func (x *GetContactsResponse) String() string
type GetManyRequest ¶
type GetManyRequest struct { UserIds []*model.UUID `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
The request of a Users.GetMany RPC
func (*GetManyRequest) Descriptor
deprecated
func (*GetManyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetManyRequest.ProtoReflect.Descriptor instead.
func (*GetManyRequest) GetUserIds ¶
func (x *GetManyRequest) GetUserIds() []*model.UUID
func (*GetManyRequest) ProtoMessage ¶
func (*GetManyRequest) ProtoMessage()
func (*GetManyRequest) ProtoReflect ¶
func (x *GetManyRequest) ProtoReflect() protoreflect.Message
func (*GetManyRequest) Reset ¶
func (x *GetManyRequest) Reset()
func (*GetManyRequest) String ¶
func (x *GetManyRequest) String() string
type GetManyResponse ¶
type GetManyResponse struct { // The users returned Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // Return number of users in database Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
The response of a Users.GetMany RPC
func (*GetManyResponse) Descriptor
deprecated
func (*GetManyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetManyResponse.ProtoReflect.Descriptor instead.
func (*GetManyResponse) GetCount ¶
func (x *GetManyResponse) GetCount() uint64
func (*GetManyResponse) GetUsers ¶
func (x *GetManyResponse) GetUsers() []*User
func (*GetManyResponse) ProtoMessage ¶
func (*GetManyResponse) ProtoMessage()
func (*GetManyResponse) ProtoReflect ¶
func (x *GetManyResponse) ProtoReflect() protoreflect.Message
func (*GetManyResponse) Reset ¶
func (x *GetManyResponse) Reset()
func (*GetManyResponse) String ¶
func (x *GetManyResponse) String() string
type GetRequest ¶
type GetRequest struct { // The user identifier to fetch the user UserId *model.UUID `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
The request of an Users.Get RPC
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetUserId ¶
func (x *GetRequest) GetUserId() *model.UUID
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
The response of an Users.Get RPC
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetUser ¶
func (x *GetResponse) GetUser() *User
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type ListRequest ¶
type ListRequest struct { Pagination *model.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
The request of a Users.List RPC
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetPagination ¶
func (x *ListRequest) GetPagination() *model.Pagination
func (*ListRequest) GetSearch ¶
func (x *ListRequest) GetSearch() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { // The users returned Users []*model.UserEntry `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // Return number of users in database Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
The response of a Users.List RPC
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() uint64
func (*ListResponse) GetUsers ¶
func (x *ListResponse) GetUsers() []*model.UserEntry
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type ListSessionsRequest ¶
type ListSessionsRequest struct { UserId *model.UUID `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Pagination *model.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
The request of an Users.ListSessions RPC
func (*ListSessionsRequest) Descriptor
deprecated
func (*ListSessionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSessionsRequest.ProtoReflect.Descriptor instead.
func (*ListSessionsRequest) GetPagination ¶
func (x *ListSessionsRequest) GetPagination() *model.Pagination
func (*ListSessionsRequest) GetUserId ¶
func (x *ListSessionsRequest) GetUserId() *model.UUID
func (*ListSessionsRequest) ProtoMessage ¶
func (*ListSessionsRequest) ProtoMessage()
func (*ListSessionsRequest) ProtoReflect ¶
func (x *ListSessionsRequest) ProtoReflect() protoreflect.Message
func (*ListSessionsRequest) Reset ¶
func (x *ListSessionsRequest) Reset()
func (*ListSessionsRequest) String ¶
func (x *ListSessionsRequest) String() string
type ListSessionsResponse ¶
type ListSessionsResponse struct { Sessions []*SessionEntry `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
The response of a Users.ListSessions RPC
func (*ListSessionsResponse) Descriptor
deprecated
func (*ListSessionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead.
func (*ListSessionsResponse) GetSessions ¶
func (x *ListSessionsResponse) GetSessions() []*SessionEntry
func (*ListSessionsResponse) GetTotal ¶
func (x *ListSessionsResponse) GetTotal() uint64
func (*ListSessionsResponse) ProtoMessage ¶
func (*ListSessionsResponse) ProtoMessage()
func (*ListSessionsResponse) ProtoReflect ¶
func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message
func (*ListSessionsResponse) Reset ¶
func (x *ListSessionsResponse) Reset()
func (*ListSessionsResponse) String ¶
func (x *ListSessionsResponse) String() string
type LookupRequest ¶
type LookupRequest struct { Identifier *model.UserIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // contains filtered or unexported fields }
func (*LookupRequest) Descriptor
deprecated
func (*LookupRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.
func (*LookupRequest) GetIdentifier ¶
func (x *LookupRequest) GetIdentifier() *model.UserIdentifier
func (*LookupRequest) ProtoMessage ¶
func (*LookupRequest) ProtoMessage()
func (*LookupRequest) ProtoReflect ¶
func (x *LookupRequest) ProtoReflect() protoreflect.Message
func (*LookupRequest) Reset ¶
func (x *LookupRequest) Reset()
func (*LookupRequest) String ¶
func (x *LookupRequest) String() string
type LookupResponse ¶
type LookupResponse struct { UserId *model.UUID `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*LookupResponse) Descriptor
deprecated
func (*LookupResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.
func (*LookupResponse) GetUser ¶
func (x *LookupResponse) GetUser() *User
func (*LookupResponse) GetUserId ¶
func (x *LookupResponse) GetUserId() *model.UUID
func (*LookupResponse) ProtoMessage ¶
func (*LookupResponse) ProtoMessage()
func (*LookupResponse) ProtoReflect ¶
func (x *LookupResponse) ProtoReflect() protoreflect.Message
func (*LookupResponse) Reset ¶
func (x *LookupResponse) Reset()
func (*LookupResponse) String ¶
func (x *LookupResponse) String() string
type Oauth2ProviderLink ¶
type Oauth2ProviderLink struct { Provider model.OauthProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=model.OauthProvider" json:"provider,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"` Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
func (*Oauth2ProviderLink) Descriptor
deprecated
func (*Oauth2ProviderLink) Descriptor() ([]byte, []int)
Deprecated: Use Oauth2ProviderLink.ProtoReflect.Descriptor instead.
func (*Oauth2ProviderLink) GetCreatedAt ¶
func (x *Oauth2ProviderLink) GetCreatedAt() *timestamppb.Timestamp
func (*Oauth2ProviderLink) GetIssuer ¶
func (x *Oauth2ProviderLink) GetIssuer() string
func (*Oauth2ProviderLink) GetProvider ¶
func (x *Oauth2ProviderLink) GetProvider() model.OauthProvider
func (*Oauth2ProviderLink) GetSubject ¶
func (x *Oauth2ProviderLink) GetSubject() string
func (*Oauth2ProviderLink) ProtoMessage ¶
func (*Oauth2ProviderLink) ProtoMessage()
func (*Oauth2ProviderLink) ProtoReflect ¶
func (x *Oauth2ProviderLink) ProtoReflect() protoreflect.Message
func (*Oauth2ProviderLink) Reset ¶
func (x *Oauth2ProviderLink) Reset()
func (*Oauth2ProviderLink) String ¶
func (x *Oauth2ProviderLink) String() string
type Permissionship ¶
type Permissionship int32
const ( Permissionship_PERMISSIONSHIP_UNSPECIFIED Permissionship = 0 Permissionship_PERMISSIONSHIP_NO_PERMISSION Permissionship = 1 Permissionship_PERMISSIONSHIP_HAS_PERMISSION Permissionship = 2 Permissionship_PERMISSIONSHIP_CONDITIONAL_PERMISSION Permissionship = 3 )
func (Permissionship) Descriptor ¶
func (Permissionship) Descriptor() protoreflect.EnumDescriptor
func (Permissionship) Enum ¶
func (x Permissionship) Enum() *Permissionship
func (Permissionship) EnumDescriptor
deprecated
func (Permissionship) EnumDescriptor() ([]byte, []int)
Deprecated: Use Permissionship.Descriptor instead.
func (Permissionship) Number ¶
func (x Permissionship) Number() protoreflect.EnumNumber
func (Permissionship) String ¶
func (x Permissionship) String() string
func (Permissionship) Type ¶
func (Permissionship) Type() protoreflect.EnumType
type Profile ¶
type Profile struct { ProfileImage *model.Image `protobuf:"bytes,1,opt,name=profile_image,json=profileImage,proto3" json:"profile_image,omitempty"` AvatarColor model.AvatarColor `protobuf:"varint,2,opt,name=avatar_color,json=avatarColor,proto3,enum=model.AvatarColor" json:"avatar_color,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` PreferredLanguage string `protobuf:"bytes,5,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetAvatarColor ¶
func (x *Profile) GetAvatarColor() model.AvatarColor
func (*Profile) GetCountry ¶
func (*Profile) GetFirstName ¶
func (*Profile) GetLastName ¶
func (*Profile) GetPreferredLanguage ¶
func (*Profile) GetProfileImage ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type RemoveContactRequest ¶
type RemoveContactRequest struct { ContactId string `protobuf:"bytes,1,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` // contains filtered or unexported fields }
The request of a Users.RemoveContact RPC
func (*RemoveContactRequest) Descriptor
deprecated
func (*RemoveContactRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveContactRequest.ProtoReflect.Descriptor instead.
func (*RemoveContactRequest) GetContactId ¶
func (x *RemoveContactRequest) GetContactId() string
func (*RemoveContactRequest) ProtoMessage ¶
func (*RemoveContactRequest) ProtoMessage()
func (*RemoveContactRequest) ProtoReflect ¶
func (x *RemoveContactRequest) ProtoReflect() protoreflect.Message
func (*RemoveContactRequest) Reset ¶
func (x *RemoveContactRequest) Reset()
func (*RemoveContactRequest) String ¶
func (x *RemoveContactRequest) String() string
type RemoveContactResponse ¶
type RemoveContactResponse struct {
// contains filtered or unexported fields
}
The response of a Users.RemoveContact RPC
func (*RemoveContactResponse) Descriptor
deprecated
func (*RemoveContactResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveContactResponse.ProtoReflect.Descriptor instead.
func (*RemoveContactResponse) ProtoMessage ¶
func (*RemoveContactResponse) ProtoMessage()
func (*RemoveContactResponse) ProtoReflect ¶
func (x *RemoveContactResponse) ProtoReflect() protoreflect.Message
func (*RemoveContactResponse) Reset ¶
func (x *RemoveContactResponse) Reset()
func (*RemoveContactResponse) String ¶
func (x *RemoveContactResponse) String() string
type SearchRequest ¶
type SearchRequest struct { // The query to search for Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // Where to start getting contacts from From uint32 `protobuf:"varint,2,opt,name=from,proto3" json:"from,omitempty"` // Where to stop getting contacts to To uint32 `protobuf:"varint,3,opt,name=to,proto3" json:"to,omitempty"` // To list only within a group GroupId *string `protobuf:"bytes,4,opt,name=group_id,json=groupId,proto3,oneof" json:"group_id,omitempty"` // contains filtered or unexported fields }
The request of a Users.Search RPC
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetFrom ¶
func (x *SearchRequest) GetFrom() uint32
func (*SearchRequest) GetGroupId ¶
func (x *SearchRequest) GetGroupId() string
func (*SearchRequest) GetQuery ¶
func (x *SearchRequest) GetQuery() string
func (*SearchRequest) GetTo ¶
func (x *SearchRequest) GetTo() uint32
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct { // The users returned Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // Return number of users in database Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
The response of a Users.Search RPC
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetCount ¶
func (x *SearchResponse) GetCount() uint64
func (*SearchResponse) GetUsers ¶
func (x *SearchResponse) GetUsers() []*User
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type Session ¶
type Session struct { AuthMethod *AuthMethod `protobuf:"bytes,1,opt,name=auth_method,json=authMethod,proto3" json:"auth_method,omitempty"` IsInvalidated bool `protobuf:"varint,2,opt,name=is_invalidated,json=isInvalidated,proto3" json:"is_invalidated,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` InvalidatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=invalidated_at,json=invalidatedAt,proto3" json:"invalidated_at,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` RenewedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=renewed_at,json=renewedAt,proto3" json:"renewed_at,omitempty"` Country string `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty"` PostalCode int32 `protobuf:"varint,8,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` Device DeviceInfo `protobuf:"varint,9,opt,name=device,proto3,enum=api.v1.user.DeviceInfo" json:"device,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
func (*Session) GetAuthMethod ¶
func (x *Session) GetAuthMethod() *AuthMethod
func (*Session) GetCountry ¶
func (*Session) GetCreatedAt ¶
func (x *Session) GetCreatedAt() *timestamppb.Timestamp
func (*Session) GetDevice ¶
func (x *Session) GetDevice() DeviceInfo
func (*Session) GetExpiresAt ¶
func (x *Session) GetExpiresAt() *timestamppb.Timestamp
func (*Session) GetInvalidatedAt ¶
func (x *Session) GetInvalidatedAt() *timestamppb.Timestamp
func (*Session) GetIsInvalidated ¶
func (*Session) GetPostalCode ¶
func (*Session) GetRenewedAt ¶
func (x *Session) GetRenewedAt() *timestamppb.Timestamp
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type SessionEntry ¶
type SessionEntry struct { SessionId *model.UUID `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"` // contains filtered or unexported fields }
func (*SessionEntry) Descriptor
deprecated
func (*SessionEntry) Descriptor() ([]byte, []int)
Deprecated: Use SessionEntry.ProtoReflect.Descriptor instead.
func (*SessionEntry) GetSession ¶
func (x *SessionEntry) GetSession() *Session
func (*SessionEntry) GetSessionId ¶
func (x *SessionEntry) GetSessionId() *model.UUID
func (*SessionEntry) ProtoMessage ¶
func (*SessionEntry) ProtoMessage()
func (*SessionEntry) ProtoReflect ¶
func (x *SessionEntry) ProtoReflect() protoreflect.Message
func (*SessionEntry) Reset ¶
func (x *SessionEntry) Reset()
func (*SessionEntry) String ¶
func (x *SessionEntry) String() string
type Update ¶
type Update struct { // Types that are assignable to Field: // // *Update_Email // *Update_Username // *Update_PhoneNumber // *Update_Password // *Update_Profile // *Update_IsEmailVerified // *Update_IsPhoneVerified // *Update_ResetRessions_ // *Update_SetMetadata // *Update_DeleteMetadataKey // *Update_AvatarColor Field isUpdate_Field `protobuf_oneof:"field"` // contains filtered or unexported fields }
func (*Update) Descriptor
deprecated
func (*Update) GetAvatarColor ¶
func (x *Update) GetAvatarColor() model.AvatarColor
func (*Update) GetDeleteMetadataKey ¶
func (*Update) GetIsEmailVerified ¶
func (*Update) GetIsPhoneVerified ¶
func (*Update) GetPassword ¶
func (*Update) GetPhoneNumber ¶
func (*Update) GetProfile ¶
func (*Update) GetResetRessions ¶
func (x *Update) GetResetRessions() *Update_ResetRessions
func (*Update) GetSetMetadata ¶
func (*Update) GetUsername ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶
func (x *Update) ProtoReflect() protoreflect.Message
type UpdateRequest ¶
type UpdateRequest struct { // The user identifier to fetch the user UserId *model.UUID `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Updates []*Update `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"` // contains filtered or unexported fields }
The request of a Users.Update RPC
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetUpdates ¶
func (x *UpdateRequest) GetUpdates() []*Update
func (*UpdateRequest) GetUserId ¶
func (x *UpdateRequest) GetUserId() *model.UUID
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
The response of a Users.Update RPC
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
type Update_AvatarColor ¶
type Update_AvatarColor struct {
AvatarColor model.AvatarColor `protobuf:"varint,11,opt,name=avatar_color,json=avatarColor,proto3,enum=model.AvatarColor,oneof"`
}
type Update_DeleteMetadataKey ¶
type Update_DeleteMetadataKey struct {
DeleteMetadataKey string `protobuf:"bytes,10,opt,name=delete_metadata_key,json=deleteMetadataKey,proto3,oneof"`
}
type Update_Email ¶
type Update_Email struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3,oneof"`
}
type Update_IsEmailVerified ¶
type Update_IsEmailVerified struct {
IsEmailVerified bool `protobuf:"varint,6,opt,name=is_email_verified,json=isEmailVerified,proto3,oneof"`
}
type Update_IsPhoneVerified ¶
type Update_IsPhoneVerified struct {
IsPhoneVerified bool `protobuf:"varint,7,opt,name=is_phone_verified,json=isPhoneVerified,proto3,oneof"`
}
type Update_Password ¶
type Update_Password struct {
Password string `protobuf:"bytes,4,opt,name=password,proto3,oneof"`
}
type Update_PhoneNumber ¶
type Update_PhoneNumber struct {
PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3,oneof"`
}
type Update_Profile ¶
type Update_Profile struct {
Profile *Profile `protobuf:"bytes,5,opt,name=profile,proto3,oneof"`
}
type Update_ResetRessions ¶
type Update_ResetRessions struct {
// contains filtered or unexported fields
}
func (*Update_ResetRessions) Descriptor
deprecated
func (*Update_ResetRessions) Descriptor() ([]byte, []int)
Deprecated: Use Update_ResetRessions.ProtoReflect.Descriptor instead.
func (*Update_ResetRessions) ProtoMessage ¶
func (*Update_ResetRessions) ProtoMessage()
func (*Update_ResetRessions) ProtoReflect ¶
func (x *Update_ResetRessions) ProtoReflect() protoreflect.Message
func (*Update_ResetRessions) Reset ¶
func (x *Update_ResetRessions) Reset()
func (*Update_ResetRessions) String ¶
func (x *Update_ResetRessions) String() string
type Update_ResetRessions_ ¶
type Update_ResetRessions_ struct {
ResetRessions *Update_ResetRessions `protobuf:"bytes,8,opt,name=reset_ressions,json=resetRessions,proto3,oneof"`
}
type Update_SetMetadata ¶
type Update_Username ¶
type Update_Username struct {
Username string `protobuf:"bytes,2,opt,name=username,proto3,oneof"`
}
type UploadProfileImageRequest ¶
type UploadProfileImageRequest struct { // The bytes of data to upload Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // The user to upload a profile image to. UserId *model.UUID `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
The request of an Users.UploadProfileImage RPC
func (*UploadProfileImageRequest) Descriptor
deprecated
func (*UploadProfileImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadProfileImageRequest.ProtoReflect.Descriptor instead.
func (*UploadProfileImageRequest) GetData ¶
func (x *UploadProfileImageRequest) GetData() []byte
func (*UploadProfileImageRequest) GetUserId ¶
func (x *UploadProfileImageRequest) GetUserId() *model.UUID
func (*UploadProfileImageRequest) ProtoMessage ¶
func (*UploadProfileImageRequest) ProtoMessage()
func (*UploadProfileImageRequest) ProtoReflect ¶
func (x *UploadProfileImageRequest) ProtoReflect() protoreflect.Message
func (*UploadProfileImageRequest) Reset ¶
func (x *UploadProfileImageRequest) Reset()
func (*UploadProfileImageRequest) String ¶
func (x *UploadProfileImageRequest) String() string
type UploadProfileImageResponse ¶
type UploadProfileImageResponse struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
The response of an Users.UploadProfileImage RPC
func (*UploadProfileImageResponse) Descriptor
deprecated
func (*UploadProfileImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadProfileImageResponse.ProtoReflect.Descriptor instead.
func (*UploadProfileImageResponse) GetUrl ¶
func (x *UploadProfileImageResponse) GetUrl() string
func (*UploadProfileImageResponse) ProtoMessage ¶
func (*UploadProfileImageResponse) ProtoMessage()
func (*UploadProfileImageResponse) ProtoReflect ¶
func (x *UploadProfileImageResponse) ProtoReflect() protoreflect.Message
func (*UploadProfileImageResponse) Reset ¶
func (x *UploadProfileImageResponse) Reset()
func (*UploadProfileImageResponse) String ¶
func (x *UploadProfileImageResponse) String() string
type User ¶
type User struct { UserInfo *model.UserInfo `protobuf:"bytes,1,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` Profile *Profile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` RegisterInfo *model.RegisterInfo `protobuf:"bytes,4,opt,name=register_info,json=registerInfo,proto3" json:"register_info,omitempty"` IsPhoneVerified bool `protobuf:"varint,5,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` IsEmailVerified bool `protobuf:"varint,6,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` NewSessionsSince *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=new_sessions_since,json=newSessionsSince,proto3" json:"new_sessions_since,omitempty"` Metadata map[string][]byte `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetIsEmailVerified ¶
func (*User) GetIsPhoneVerified ¶
func (*User) GetMetadata ¶
func (*User) GetNewSessionsSince ¶
func (x *User) GetNewSessionsSince() *timestamppb.Timestamp
func (*User) GetProfile ¶
func (*User) GetRegisterInfo ¶
func (x *User) GetRegisterInfo() *model.RegisterInfo
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) GetUserInfo ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type VerificationCode ¶
type VerificationCode struct { Code *model.HashingInstance `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` SentAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` Attempts int32 `protobuf:"varint,4,opt,name=attempts,proto3" json:"attempts,omitempty"` LastAttempt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_attempt,json=lastAttempt,proto3" json:"last_attempt,omitempty"` Type VerificationType `protobuf:"varint,6,opt,name=type,proto3,enum=api.v1.user.VerificationType" json:"type,omitempty"` UserId *model.UUID `protobuf:"bytes,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*VerificationCode) Descriptor
deprecated
func (*VerificationCode) Descriptor() ([]byte, []int)
Deprecated: Use VerificationCode.ProtoReflect.Descriptor instead.
func (*VerificationCode) GetAttempts ¶
func (x *VerificationCode) GetAttempts() int32
func (*VerificationCode) GetCode ¶
func (x *VerificationCode) GetCode() *model.HashingInstance
func (*VerificationCode) GetExpiresAt ¶
func (x *VerificationCode) GetExpiresAt() *timestamppb.Timestamp
func (*VerificationCode) GetLastAttempt ¶
func (x *VerificationCode) GetLastAttempt() *timestamppb.Timestamp
func (*VerificationCode) GetSentAt ¶
func (x *VerificationCode) GetSentAt() *timestamppb.Timestamp
func (*VerificationCode) GetType ¶
func (x *VerificationCode) GetType() VerificationType
func (*VerificationCode) GetUserId ¶
func (x *VerificationCode) GetUserId() *model.UUID
func (*VerificationCode) ProtoMessage ¶
func (*VerificationCode) ProtoMessage()
func (*VerificationCode) ProtoReflect ¶
func (x *VerificationCode) ProtoReflect() protoreflect.Message
func (*VerificationCode) Reset ¶
func (x *VerificationCode) Reset()
func (*VerificationCode) String ¶
func (x *VerificationCode) String() string
type VerificationType ¶
type VerificationType int32
const ( VerificationType_VERIFICATION_TYPE_UNSPECIFIED VerificationType = 0 VerificationType_VERIFICATION_TYPE_EMAIL VerificationType = 1 VerificationType_VERIFICATION_TYPE_TEXT VerificationType = 2 VerificationType_VERIFICATION_TYPE_RESET_PASSWORD VerificationType = 3 VerificationType_VERIFICATION_TYPE_MAGIC_CODE VerificationType = 4 )
func (VerificationType) Descriptor ¶
func (VerificationType) Descriptor() protoreflect.EnumDescriptor
func (VerificationType) Enum ¶
func (x VerificationType) Enum() *VerificationType
func (VerificationType) EnumDescriptor
deprecated
func (VerificationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use VerificationType.Descriptor instead.
func (VerificationType) Number ¶
func (x VerificationType) Number() protoreflect.EnumNumber
func (VerificationType) String ¶
func (x VerificationType) String() string
func (VerificationType) Type ¶
func (VerificationType) Type() protoreflect.EnumType