pb

package
v0.0.0-...-748ecea Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 37 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Stream = "user"

	TopicAdd             = version + "add"
	TopicDel             = version + "del"
	TopicUpdate          = version + "update"
	SubscribeToAllEvents = version + "*"
)

Topics.

View Source
const (
	UserExternalAPI_VerificationEmail_FullMethodName    = "/api.user.v1.UserExternalAPI/VerificationEmail"
	UserExternalAPI_VerificationUsername_FullMethodName = "/api.user.v1.UserExternalAPI/VerificationUsername"
	UserExternalAPI_CreateUser_FullMethodName           = "/api.user.v1.UserExternalAPI/CreateUser"
	UserExternalAPI_Login_FullMethodName                = "/api.user.v1.UserExternalAPI/Login"
	UserExternalAPI_Logout_FullMethodName               = "/api.user.v1.UserExternalAPI/Logout"
	UserExternalAPI_GetUser_FullMethodName              = "/api.user.v1.UserExternalAPI/GetUser"
	UserExternalAPI_SearchUsers_FullMethodName          = "/api.user.v1.UserExternalAPI/SearchUsers"
	UserExternalAPI_UpdatePassword_FullMethodName       = "/api.user.v1.UserExternalAPI/UpdatePassword"
	UserExternalAPI_UpdateUser_FullMethodName           = "/api.user.v1.UserExternalAPI/UpdateUser"
	UserExternalAPI_RemoveAvatar_FullMethodName         = "/api.user.v1.UserExternalAPI/RemoveAvatar"
	UserExternalAPI_ListUserAvatar_FullMethodName       = "/api.user.v1.UserExternalAPI/ListUserAvatar"
	UserExternalAPI_GetUsersByIDs_FullMethodName        = "/api.user.v1.UserExternalAPI/GetUsersByIDs"
)

Variables

View Source
var File_api_user_v1_user_events_proto protoreflect.FileDescriptor
View Source
var File_api_user_v1_user_proto protoreflect.FileDescriptor
View Source
var OpenAPI embed.FS
View Source
var UserExternalAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.user.v1.UserExternalAPI",
	HandlerType: (*UserExternalAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "VerificationEmail",
			Handler:    _UserExternalAPI_VerificationEmail_Handler,
		},
		{
			MethodName: "VerificationUsername",
			Handler:    _UserExternalAPI_VerificationUsername_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserExternalAPI_CreateUser_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _UserExternalAPI_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _UserExternalAPI_Logout_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserExternalAPI_GetUser_Handler,
		},
		{
			MethodName: "SearchUsers",
			Handler:    _UserExternalAPI_SearchUsers_Handler,
		},
		{
			MethodName: "UpdatePassword",
			Handler:    _UserExternalAPI_UpdatePassword_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserExternalAPI_UpdateUser_Handler,
		},
		{
			MethodName: "RemoveAvatar",
			Handler:    _UserExternalAPI_RemoveAvatar_Handler,
		},
		{
			MethodName: "ListUserAvatar",
			Handler:    _UserExternalAPI_ListUserAvatar_Handler,
		},
		{
			MethodName: "GetUsersByIDs",
			Handler:    _UserExternalAPI_GetUsersByIDs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/user/v1/user.proto",
}

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

Functions

func Migrate

func Migrate(js nats.JetStreamManager) error

Migrate for init streams.

func RegisterUserExternalAPIHandler

func RegisterUserExternalAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserExternalAPIHandler registers the http handlers for service UserExternalAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserExternalAPIHandlerClient

func RegisterUserExternalAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserExternalAPIClient) error

RegisterUserExternalAPIHandlerClient registers the http handlers for service UserExternalAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserExternalAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserExternalAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserExternalAPIClient" to call the correct interceptors.

func RegisterUserExternalAPIHandlerFromEndpoint

func RegisterUserExternalAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserExternalAPIHandlerFromEndpoint is same as RegisterUserExternalAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserExternalAPIHandlerServer

func RegisterUserExternalAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserExternalAPIServer) error

RegisterUserExternalAPIHandlerServer registers the http handlers for service UserExternalAPI to "mux". UnaryRPC :call UserExternalAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserExternalAPIHandlerFromEndpoint instead.

func RegisterUserExternalAPIServer

func RegisterUserExternalAPIServer(s grpc.ServiceRegistrar, srv UserExternalAPIServer)

Types

type Add

type Add struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*Add) Descriptor deprecated

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

Deprecated: Use Add.ProtoReflect.Descriptor instead.

func (*Add) GetUser

func (x *Add) GetUser() *User

func (*Add) MarshalJSON

func (msg *Add) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Add) ProtoMessage

func (*Add) ProtoMessage()

func (*Add) ProtoReflect

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

func (*Add) Reset

func (x *Add) Reset()

func (*Add) String

func (x *Add) String() string

func (*Add) UnmarshalJSON

func (msg *Add) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Add) Validate

func (m *Add) Validate() error

Validate checks the field values on Add with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Add) ValidateAll

func (m *Add) ValidateAll() error

ValidateAll checks the field values on Add with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddMultiError, or nil if none found.

type AddMultiError

type AddMultiError []error

AddMultiError is an error wrapping multiple validation errors returned by Add.ValidateAll() if the designated constraints aren't met.

func (AddMultiError) AllErrors

func (m AddMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddMultiError) Error

func (m AddMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AddValidationError

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

AddValidationError is the validation error returned by Add.Validate if the designated constraints aren't met.

func (AddValidationError) Cause

func (e AddValidationError) Cause() error

Cause function returns cause value.

func (AddValidationError) Error

func (e AddValidationError) Error() string

Error satisfies the builtin error interface

func (AddValidationError) ErrorName

func (e AddValidationError) ErrorName() string

ErrorName returns error name.

func (AddValidationError) Field

func (e AddValidationError) Field() string

Field function returns field value.

func (AddValidationError) Key

func (e AddValidationError) Key() bool

Key function returns key value.

func (AddValidationError) Reason

func (e AddValidationError) Reason() string

Reason function returns reason value.

type CreateUserRequest

type CreateUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetFullName

func (x *CreateUserRequest) GetFullName() string

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) MarshalJSON

func (msg *CreateUserRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*CreateUserRequest) Matches

func (x *CreateUserRequest) Matches(y interface{}) bool

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

func (*CreateUserRequest) UnmarshalJSON

func (msg *CreateUserRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserRequest) ValidateAll

func (m *CreateUserRequest) ValidateAll() error

ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserRequestValidationError

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

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type CreateUserResponse

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

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetId

func (x *CreateUserResponse) GetId() string

func (*CreateUserResponse) MarshalJSON

func (msg *CreateUserResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

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

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

func (*CreateUserResponse) UnmarshalJSON

func (msg *CreateUserResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*CreateUserResponse) Validate

func (m *CreateUserResponse) Validate() error

Validate checks the field values on CreateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserResponse) ValidateAll

func (m *CreateUserResponse) ValidateAll() error

ValidateAll checks the field values on CreateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserResponseMultiError, or nil if none found.

type CreateUserResponseMultiError

type CreateUserResponseMultiError []error

CreateUserResponseMultiError is an error wrapping multiple validation errors returned by CreateUserResponse.ValidateAll() if the designated constraints aren't met.

func (CreateUserResponseMultiError) AllErrors

func (m CreateUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserResponseValidationError

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

CreateUserResponseValidationError is the validation error returned by CreateUserResponse.Validate if the designated constraints aren't met.

func (CreateUserResponseValidationError) Cause

Cause function returns cause value.

func (CreateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateUserResponseValidationError) Field

Field function returns field value.

func (CreateUserResponseValidationError) Key

Key function returns key value.

func (CreateUserResponseValidationError) Reason

Reason function returns reason value.

type Delete

type Delete struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Delete) Descriptor deprecated

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

Deprecated: Use Delete.ProtoReflect.Descriptor instead.

func (*Delete) GetUserId

func (x *Delete) GetUserId() string

func (*Delete) MarshalJSON

func (msg *Delete) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Delete) ProtoMessage

func (*Delete) ProtoMessage()

func (*Delete) ProtoReflect

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

func (*Delete) Reset

func (x *Delete) Reset()

func (*Delete) String

func (x *Delete) String() string

func (*Delete) UnmarshalJSON

func (msg *Delete) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Delete) Validate

func (m *Delete) Validate() error

Validate checks the field values on Delete with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Delete) ValidateAll

func (m *Delete) ValidateAll() error

ValidateAll checks the field values on Delete with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteMultiError, or nil if none found.

type DeleteMultiError

type DeleteMultiError []error

DeleteMultiError is an error wrapping multiple validation errors returned by Delete.ValidateAll() if the designated constraints aren't met.

func (DeleteMultiError) AllErrors

func (m DeleteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteMultiError) Error

func (m DeleteMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteValidationError

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

DeleteValidationError is the validation error returned by Delete.Validate if the designated constraints aren't met.

func (DeleteValidationError) Cause

func (e DeleteValidationError) Cause() error

Cause function returns cause value.

func (DeleteValidationError) Error

func (e DeleteValidationError) Error() string

Error satisfies the builtin error interface

func (DeleteValidationError) ErrorName

func (e DeleteValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteValidationError) Field

func (e DeleteValidationError) Field() string

Field function returns field value.

func (DeleteValidationError) Key

func (e DeleteValidationError) Key() bool

Key function returns key value.

func (DeleteValidationError) Reason

func (e DeleteValidationError) Reason() string

Reason function returns reason value.

type Event

type Event struct {

	// Contains event body.
	//
	// Types that are assignable to Body:
	//
	//	*Event_Add
	//	*Event_Update
	//	*Event_Delete
	Body isEvent_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAdd

func (x *Event) GetAdd() *Add

func (*Event) GetBody

func (m *Event) GetBody() isEvent_Body

func (*Event) GetDelete

func (x *Event) GetDelete() *Delete

func (*Event) GetUpdate

func (x *Event) GetUpdate() *Update

func (*Event) MarshalJSON

func (msg *Event) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

func (*Event) UnmarshalJSON

func (msg *Event) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Event) Validate

func (m *Event) Validate() error

Validate checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Event) ValidateAll

func (m *Event) ValidateAll() error

ValidateAll checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventMultiError, or nil if none found.

type EventMultiError

type EventMultiError []error

EventMultiError is an error wrapping multiple validation errors returned by Event.ValidateAll() if the designated constraints aren't met.

func (EventMultiError) AllErrors

func (m EventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventMultiError) Error

func (m EventMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EventValidationError

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

EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.

func (EventValidationError) Cause

func (e EventValidationError) Cause() error

Cause function returns cause value.

func (EventValidationError) Error

func (e EventValidationError) Error() string

Error satisfies the builtin error interface

func (EventValidationError) ErrorName

func (e EventValidationError) ErrorName() string

ErrorName returns error name.

func (EventValidationError) Field

func (e EventValidationError) Field() string

Field function returns field value.

func (EventValidationError) Key

func (e EventValidationError) Key() bool

Key function returns key value.

func (EventValidationError) Reason

func (e EventValidationError) Reason() string

Reason function returns reason value.

type Event_Add

type Event_Add struct {
	Add *Add `protobuf:"bytes,1,opt,name=add,proto3,oneof"`
}

type Event_Delete

type Event_Delete struct {
	Delete *Delete `protobuf:"bytes,3,opt,name=delete,proto3,oneof"`
}

type Event_Update

type Event_Update struct {
	Update *Update `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
}

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

func (*GetUserRequest) MarshalJSON

func (msg *GetUserRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*GetUserRequest) Matches

func (x *GetUserRequest) Matches(y interface{}) bool

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

func (*GetUserRequest) UnmarshalJSON

func (msg *GetUserRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserRequestMultiError, or nil if none found.

type GetUserRequestMultiError

type GetUserRequestMultiError []error

GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserRequestValidationError

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

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type GetUserResponse

type GetUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) MarshalJSON

func (msg *GetUserResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

func (*GetUserResponse) UnmarshalJSON

func (msg *GetUserResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*GetUserResponse) Validate

func (m *GetUserResponse) Validate() error

Validate checks the field values on GetUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserResponse) ValidateAll

func (m *GetUserResponse) ValidateAll() error

ValidateAll checks the field values on GetUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserResponseMultiError, or nil if none found.

type GetUserResponseMultiError

type GetUserResponseMultiError []error

GetUserResponseMultiError is an error wrapping multiple validation errors returned by GetUserResponse.ValidateAll() if the designated constraints aren't met.

func (GetUserResponseMultiError) AllErrors

func (m GetUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserResponseValidationError

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

GetUserResponseValidationError is the validation error returned by GetUserResponse.Validate if the designated constraints aren't met.

func (GetUserResponseValidationError) Cause

Cause function returns cause value.

func (GetUserResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserResponseValidationError) ErrorName

func (e GetUserResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserResponseValidationError) Field

Field function returns field value.

func (GetUserResponseValidationError) Key

Key function returns key value.

func (GetUserResponseValidationError) Reason

Reason function returns reason value.

type GetUsersByIDsRequest

type GetUsersByIDsRequest struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersByIDsRequest) Descriptor deprecated

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

Deprecated: Use GetUsersByIDsRequest.ProtoReflect.Descriptor instead.

func (*GetUsersByIDsRequest) GetIds

func (x *GetUsersByIDsRequest) GetIds() []string

func (*GetUsersByIDsRequest) MarshalJSON

func (msg *GetUsersByIDsRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*GetUsersByIDsRequest) Matches

func (x *GetUsersByIDsRequest) Matches(y interface{}) bool

func (*GetUsersByIDsRequest) ProtoMessage

func (*GetUsersByIDsRequest) ProtoMessage()

func (*GetUsersByIDsRequest) ProtoReflect

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

func (*GetUsersByIDsRequest) Reset

func (x *GetUsersByIDsRequest) Reset()

func (*GetUsersByIDsRequest) String

func (x *GetUsersByIDsRequest) String() string

func (*GetUsersByIDsRequest) UnmarshalJSON

func (msg *GetUsersByIDsRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*GetUsersByIDsRequest) Validate

func (m *GetUsersByIDsRequest) Validate() error

Validate checks the field values on GetUsersByIDsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUsersByIDsRequest) ValidateAll

func (m *GetUsersByIDsRequest) ValidateAll() error

ValidateAll checks the field values on GetUsersByIDsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUsersByIDsRequestMultiError, or nil if none found.

type GetUsersByIDsRequestMultiError

type GetUsersByIDsRequestMultiError []error

GetUsersByIDsRequestMultiError is an error wrapping multiple validation errors returned by GetUsersByIDsRequest.ValidateAll() if the designated constraints aren't met.

func (GetUsersByIDsRequestMultiError) AllErrors

func (m GetUsersByIDsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUsersByIDsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUsersByIDsRequestValidationError

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

GetUsersByIDsRequestValidationError is the validation error returned by GetUsersByIDsRequest.Validate if the designated constraints aren't met.

func (GetUsersByIDsRequestValidationError) Cause

Cause function returns cause value.

func (GetUsersByIDsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUsersByIDsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUsersByIDsRequestValidationError) Field

Field function returns field value.

func (GetUsersByIDsRequestValidationError) Key

Key function returns key value.

func (GetUsersByIDsRequestValidationError) Reason

Reason function returns reason value.

type GetUsersByIDsResponse

type GetUsersByIDsResponse struct {
	Result []*User `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersByIDsResponse) Descriptor deprecated

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

Deprecated: Use GetUsersByIDsResponse.ProtoReflect.Descriptor instead.

func (*GetUsersByIDsResponse) GetResult

func (x *GetUsersByIDsResponse) GetResult() []*User

func (*GetUsersByIDsResponse) MarshalJSON

func (msg *GetUsersByIDsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*GetUsersByIDsResponse) ProtoMessage

func (*GetUsersByIDsResponse) ProtoMessage()

func (*GetUsersByIDsResponse) ProtoReflect

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

func (*GetUsersByIDsResponse) Reset

func (x *GetUsersByIDsResponse) Reset()

func (*GetUsersByIDsResponse) String

func (x *GetUsersByIDsResponse) String() string

func (*GetUsersByIDsResponse) UnmarshalJSON

func (msg *GetUsersByIDsResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*GetUsersByIDsResponse) Validate

func (m *GetUsersByIDsResponse) Validate() error

Validate checks the field values on GetUsersByIDsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUsersByIDsResponse) ValidateAll

func (m *GetUsersByIDsResponse) ValidateAll() error

ValidateAll checks the field values on GetUsersByIDsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUsersByIDsResponseMultiError, or nil if none found.

type GetUsersByIDsResponseMultiError

type GetUsersByIDsResponseMultiError []error

GetUsersByIDsResponseMultiError is an error wrapping multiple validation errors returned by GetUsersByIDsResponse.ValidateAll() if the designated constraints aren't met.

func (GetUsersByIDsResponseMultiError) AllErrors

func (m GetUsersByIDsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUsersByIDsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUsersByIDsResponseValidationError

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

GetUsersByIDsResponseValidationError is the validation error returned by GetUsersByIDsResponse.Validate if the designated constraints aren't met.

func (GetUsersByIDsResponseValidationError) Cause

Cause function returns cause value.

func (GetUsersByIDsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUsersByIDsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetUsersByIDsResponseValidationError) Field

Field function returns field value.

func (GetUsersByIDsResponseValidationError) Key

Key function returns key value.

func (GetUsersByIDsResponseValidationError) Reason

Reason function returns reason value.

type ListUserAvatarRequest

type ListUserAvatarRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserAvatarRequest) Descriptor deprecated

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

Deprecated: Use ListUserAvatarRequest.ProtoReflect.Descriptor instead.

func (*ListUserAvatarRequest) GetUserId

func (x *ListUserAvatarRequest) GetUserId() string

func (*ListUserAvatarRequest) MarshalJSON

func (msg *ListUserAvatarRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ListUserAvatarRequest) Matches

func (x *ListUserAvatarRequest) Matches(y interface{}) bool

func (*ListUserAvatarRequest) ProtoMessage

func (*ListUserAvatarRequest) ProtoMessage()

func (*ListUserAvatarRequest) ProtoReflect

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

func (*ListUserAvatarRequest) Reset

func (x *ListUserAvatarRequest) Reset()

func (*ListUserAvatarRequest) String

func (x *ListUserAvatarRequest) String() string

func (*ListUserAvatarRequest) UnmarshalJSON

func (msg *ListUserAvatarRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*ListUserAvatarRequest) Validate

func (m *ListUserAvatarRequest) Validate() error

Validate checks the field values on ListUserAvatarRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUserAvatarRequest) ValidateAll

func (m *ListUserAvatarRequest) ValidateAll() error

ValidateAll checks the field values on ListUserAvatarRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserAvatarRequestMultiError, or nil if none found.

type ListUserAvatarRequestMultiError

type ListUserAvatarRequestMultiError []error

ListUserAvatarRequestMultiError is an error wrapping multiple validation errors returned by ListUserAvatarRequest.ValidateAll() if the designated constraints aren't met.

func (ListUserAvatarRequestMultiError) AllErrors

func (m ListUserAvatarRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserAvatarRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUserAvatarRequestValidationError

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

ListUserAvatarRequestValidationError is the validation error returned by ListUserAvatarRequest.Validate if the designated constraints aren't met.

func (ListUserAvatarRequestValidationError) Cause

Cause function returns cause value.

func (ListUserAvatarRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserAvatarRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUserAvatarRequestValidationError) Field

Field function returns field value.

func (ListUserAvatarRequestValidationError) Key

Key function returns key value.

func (ListUserAvatarRequestValidationError) Reason

Reason function returns reason value.

type ListUserAvatarResponse

type ListUserAvatarResponse struct {
	Avatars []*UserAvatar `protobuf:"bytes,1,rep,name=avatars,proto3" json:"avatars,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserAvatarResponse) Descriptor deprecated

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

Deprecated: Use ListUserAvatarResponse.ProtoReflect.Descriptor instead.

func (*ListUserAvatarResponse) GetAvatars

func (x *ListUserAvatarResponse) GetAvatars() []*UserAvatar

func (*ListUserAvatarResponse) MarshalJSON

func (msg *ListUserAvatarResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ListUserAvatarResponse) ProtoMessage

func (*ListUserAvatarResponse) ProtoMessage()

func (*ListUserAvatarResponse) ProtoReflect

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

func (*ListUserAvatarResponse) Reset

func (x *ListUserAvatarResponse) Reset()

func (*ListUserAvatarResponse) String

func (x *ListUserAvatarResponse) String() string

func (*ListUserAvatarResponse) UnmarshalJSON

func (msg *ListUserAvatarResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*ListUserAvatarResponse) Validate

func (m *ListUserAvatarResponse) Validate() error

Validate checks the field values on ListUserAvatarResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUserAvatarResponse) ValidateAll

func (m *ListUserAvatarResponse) ValidateAll() error

ValidateAll checks the field values on ListUserAvatarResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserAvatarResponseMultiError, or nil if none found.

type ListUserAvatarResponseMultiError

type ListUserAvatarResponseMultiError []error

ListUserAvatarResponseMultiError is an error wrapping multiple validation errors returned by ListUserAvatarResponse.ValidateAll() if the designated constraints aren't met.

func (ListUserAvatarResponseMultiError) AllErrors

func (m ListUserAvatarResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserAvatarResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUserAvatarResponseValidationError

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

ListUserAvatarResponseValidationError is the validation error returned by ListUserAvatarResponse.Validate if the designated constraints aren't met.

func (ListUserAvatarResponseValidationError) Cause

Cause function returns cause value.

func (ListUserAvatarResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUserAvatarResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUserAvatarResponseValidationError) Field

Field function returns field value.

func (ListUserAvatarResponseValidationError) Key

Key function returns key value.

func (ListUserAvatarResponseValidationError) Reason

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) MarshalJSON

func (msg *LoginRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*LoginRequest) Matches

func (x *LoginRequest) Matches(y interface{}) bool

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) UnmarshalJSON

func (msg *LoginRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

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

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetUserId

func (x *LoginResponse) GetUserId() string

func (*LoginResponse) MarshalJSON

func (msg *LoginResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) UnmarshalJSON

func (msg *LoginResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.

type LoginResponseMultiError

type LoginResponseMultiError []error

LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginResponseValidationError

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

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type LogoutRequest

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

func (*LogoutRequest) Descriptor deprecated

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

Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.

func (*LogoutRequest) MarshalJSON

func (msg *LogoutRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*LogoutRequest) Matches

func (x *LogoutRequest) Matches(y interface{}) bool

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) ProtoReflect

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

func (*LogoutRequest) Reset

func (x *LogoutRequest) Reset()

func (*LogoutRequest) String

func (x *LogoutRequest) String() string

func (*LogoutRequest) UnmarshalJSON

func (msg *LogoutRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*LogoutRequest) Validate

func (m *LogoutRequest) Validate() error

Validate checks the field values on LogoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LogoutRequest) ValidateAll

func (m *LogoutRequest) ValidateAll() error

ValidateAll checks the field values on LogoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutRequestMultiError, or nil if none found.

type LogoutRequestMultiError

type LogoutRequestMultiError []error

LogoutRequestMultiError is an error wrapping multiple validation errors returned by LogoutRequest.ValidateAll() if the designated constraints aren't met.

func (LogoutRequestMultiError) AllErrors

func (m LogoutRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutRequestMultiError) Error

func (m LogoutRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LogoutRequestValidationError

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

LogoutRequestValidationError is the validation error returned by LogoutRequest.Validate if the designated constraints aren't met.

func (LogoutRequestValidationError) Cause

Cause function returns cause value.

func (LogoutRequestValidationError) Error

Error satisfies the builtin error interface

func (LogoutRequestValidationError) ErrorName

func (e LogoutRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRequestValidationError) Field

Field function returns field value.

func (LogoutRequestValidationError) Key

Key function returns key value.

func (LogoutRequestValidationError) Reason

Reason function returns reason value.

type LogoutResponse

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

func (*LogoutResponse) Descriptor deprecated

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

Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.

func (*LogoutResponse) MarshalJSON

func (msg *LogoutResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*LogoutResponse) ProtoMessage

func (*LogoutResponse) ProtoMessage()

func (*LogoutResponse) ProtoReflect

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

func (*LogoutResponse) Reset

func (x *LogoutResponse) Reset()

func (*LogoutResponse) String

func (x *LogoutResponse) String() string

func (*LogoutResponse) UnmarshalJSON

func (msg *LogoutResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*LogoutResponse) Validate

func (m *LogoutResponse) Validate() error

Validate checks the field values on LogoutResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LogoutResponse) ValidateAll

func (m *LogoutResponse) ValidateAll() error

ValidateAll checks the field values on LogoutResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutResponseMultiError, or nil if none found.

type LogoutResponseMultiError

type LogoutResponseMultiError []error

LogoutResponseMultiError is an error wrapping multiple validation errors returned by LogoutResponse.ValidateAll() if the designated constraints aren't met.

func (LogoutResponseMultiError) AllErrors

func (m LogoutResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutResponseMultiError) Error

func (m LogoutResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LogoutResponseValidationError

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

LogoutResponseValidationError is the validation error returned by LogoutResponse.Validate if the designated constraints aren't met.

func (LogoutResponseValidationError) Cause

Cause function returns cause value.

func (LogoutResponseValidationError) Error

Error satisfies the builtin error interface

func (LogoutResponseValidationError) ErrorName

func (e LogoutResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutResponseValidationError) Field

Field function returns field value.

func (LogoutResponseValidationError) Key

Key function returns key value.

func (LogoutResponseValidationError) Reason

Reason function returns reason value.

type RemoveAvatarRequest

type RemoveAvatarRequest struct {
	FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveAvatarRequest) Descriptor deprecated

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

Deprecated: Use RemoveAvatarRequest.ProtoReflect.Descriptor instead.

func (*RemoveAvatarRequest) GetFileId

func (x *RemoveAvatarRequest) GetFileId() string

func (*RemoveAvatarRequest) MarshalJSON

func (msg *RemoveAvatarRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*RemoveAvatarRequest) Matches

func (x *RemoveAvatarRequest) Matches(y interface{}) bool

func (*RemoveAvatarRequest) ProtoMessage

func (*RemoveAvatarRequest) ProtoMessage()

func (*RemoveAvatarRequest) ProtoReflect

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

func (*RemoveAvatarRequest) Reset

func (x *RemoveAvatarRequest) Reset()

func (*RemoveAvatarRequest) String

func (x *RemoveAvatarRequest) String() string

func (*RemoveAvatarRequest) UnmarshalJSON

func (msg *RemoveAvatarRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*RemoveAvatarRequest) Validate

func (m *RemoveAvatarRequest) Validate() error

Validate checks the field values on RemoveAvatarRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RemoveAvatarRequest) ValidateAll

func (m *RemoveAvatarRequest) ValidateAll() error

ValidateAll checks the field values on RemoveAvatarRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RemoveAvatarRequestMultiError, or nil if none found.

type RemoveAvatarRequestMultiError

type RemoveAvatarRequestMultiError []error

RemoveAvatarRequestMultiError is an error wrapping multiple validation errors returned by RemoveAvatarRequest.ValidateAll() if the designated constraints aren't met.

func (RemoveAvatarRequestMultiError) AllErrors

func (m RemoveAvatarRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoveAvatarRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RemoveAvatarRequestValidationError

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

RemoveAvatarRequestValidationError is the validation error returned by RemoveAvatarRequest.Validate if the designated constraints aren't met.

func (RemoveAvatarRequestValidationError) Cause

Cause function returns cause value.

func (RemoveAvatarRequestValidationError) Error

Error satisfies the builtin error interface

func (RemoveAvatarRequestValidationError) ErrorName

ErrorName returns error name.

func (RemoveAvatarRequestValidationError) Field

Field function returns field value.

func (RemoveAvatarRequestValidationError) Key

Key function returns key value.

func (RemoveAvatarRequestValidationError) Reason

Reason function returns reason value.

type RemoveAvatarResponse

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

func (*RemoveAvatarResponse) Descriptor deprecated

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

Deprecated: Use RemoveAvatarResponse.ProtoReflect.Descriptor instead.

func (*RemoveAvatarResponse) MarshalJSON

func (msg *RemoveAvatarResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*RemoveAvatarResponse) ProtoMessage

func (*RemoveAvatarResponse) ProtoMessage()

func (*RemoveAvatarResponse) ProtoReflect

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

func (*RemoveAvatarResponse) Reset

func (x *RemoveAvatarResponse) Reset()

func (*RemoveAvatarResponse) String

func (x *RemoveAvatarResponse) String() string

func (*RemoveAvatarResponse) UnmarshalJSON

func (msg *RemoveAvatarResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*RemoveAvatarResponse) Validate

func (m *RemoveAvatarResponse) Validate() error

Validate checks the field values on RemoveAvatarResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RemoveAvatarResponse) ValidateAll

func (m *RemoveAvatarResponse) ValidateAll() error

ValidateAll checks the field values on RemoveAvatarResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RemoveAvatarResponseMultiError, or nil if none found.

type RemoveAvatarResponseMultiError

type RemoveAvatarResponseMultiError []error

RemoveAvatarResponseMultiError is an error wrapping multiple validation errors returned by RemoveAvatarResponse.ValidateAll() if the designated constraints aren't met.

func (RemoveAvatarResponseMultiError) AllErrors

func (m RemoveAvatarResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoveAvatarResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RemoveAvatarResponseValidationError

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

RemoveAvatarResponseValidationError is the validation error returned by RemoveAvatarResponse.Validate if the designated constraints aren't met.

func (RemoveAvatarResponseValidationError) Cause

Cause function returns cause value.

func (RemoveAvatarResponseValidationError) Error

Error satisfies the builtin error interface

func (RemoveAvatarResponseValidationError) ErrorName

ErrorName returns error name.

func (RemoveAvatarResponseValidationError) Field

Field function returns field value.

func (RemoveAvatarResponseValidationError) Key

Key function returns key value.

func (RemoveAvatarResponseValidationError) Reason

Reason function returns reason value.

type SearchUsersRequest

type SearchUsersRequest struct {

	// We are using this field for searching users by username and full name.
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Limit  int32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int32  `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchUsersRequest) Descriptor deprecated

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

Deprecated: Use SearchUsersRequest.ProtoReflect.Descriptor instead.

func (*SearchUsersRequest) GetLimit

func (x *SearchUsersRequest) GetLimit() int32

func (*SearchUsersRequest) GetName

func (x *SearchUsersRequest) GetName() string

func (*SearchUsersRequest) GetOffset

func (x *SearchUsersRequest) GetOffset() int32

func (*SearchUsersRequest) MarshalJSON

func (msg *SearchUsersRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*SearchUsersRequest) Matches

func (x *SearchUsersRequest) Matches(y interface{}) bool

func (*SearchUsersRequest) ProtoMessage

func (*SearchUsersRequest) ProtoMessage()

func (*SearchUsersRequest) ProtoReflect

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

func (*SearchUsersRequest) Reset

func (x *SearchUsersRequest) Reset()

func (*SearchUsersRequest) String

func (x *SearchUsersRequest) String() string

func (*SearchUsersRequest) UnmarshalJSON

func (msg *SearchUsersRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*SearchUsersRequest) Validate

func (m *SearchUsersRequest) Validate() error

Validate checks the field values on SearchUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SearchUsersRequest) ValidateAll

func (m *SearchUsersRequest) ValidateAll() error

ValidateAll checks the field values on SearchUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchUsersRequestMultiError, or nil if none found.

type SearchUsersRequestMultiError

type SearchUsersRequestMultiError []error

SearchUsersRequestMultiError is an error wrapping multiple validation errors returned by SearchUsersRequest.ValidateAll() if the designated constraints aren't met.

func (SearchUsersRequestMultiError) AllErrors

func (m SearchUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchUsersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SearchUsersRequestValidationError

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

SearchUsersRequestValidationError is the validation error returned by SearchUsersRequest.Validate if the designated constraints aren't met.

func (SearchUsersRequestValidationError) Cause

Cause function returns cause value.

func (SearchUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (SearchUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (SearchUsersRequestValidationError) Field

Field function returns field value.

func (SearchUsersRequestValidationError) Key

Key function returns key value.

func (SearchUsersRequestValidationError) Reason

Reason function returns reason value.

type SearchUsersResponse

type SearchUsersResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Total int32   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchUsersResponse) Descriptor deprecated

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

Deprecated: Use SearchUsersResponse.ProtoReflect.Descriptor instead.

func (*SearchUsersResponse) GetTotal

func (x *SearchUsersResponse) GetTotal() int32

func (*SearchUsersResponse) GetUsers

func (x *SearchUsersResponse) GetUsers() []*User

func (*SearchUsersResponse) MarshalJSON

func (msg *SearchUsersResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*SearchUsersResponse) ProtoMessage

func (*SearchUsersResponse) ProtoMessage()

func (*SearchUsersResponse) ProtoReflect

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

func (*SearchUsersResponse) Reset

func (x *SearchUsersResponse) Reset()

func (*SearchUsersResponse) String

func (x *SearchUsersResponse) String() string

func (*SearchUsersResponse) UnmarshalJSON

func (msg *SearchUsersResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*SearchUsersResponse) Validate

func (m *SearchUsersResponse) Validate() error

Validate checks the field values on SearchUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SearchUsersResponse) ValidateAll

func (m *SearchUsersResponse) ValidateAll() error

ValidateAll checks the field values on SearchUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchUsersResponseMultiError, or nil if none found.

type SearchUsersResponseMultiError

type SearchUsersResponseMultiError []error

SearchUsersResponseMultiError is an error wrapping multiple validation errors returned by SearchUsersResponse.ValidateAll() if the designated constraints aren't met.

func (SearchUsersResponseMultiError) AllErrors

func (m SearchUsersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchUsersResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SearchUsersResponseValidationError

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

SearchUsersResponseValidationError is the validation error returned by SearchUsersResponse.Validate if the designated constraints aren't met.

func (SearchUsersResponseValidationError) Cause

Cause function returns cause value.

func (SearchUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (SearchUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (SearchUsersResponseValidationError) Field

Field function returns field value.

func (SearchUsersResponseValidationError) Key

Key function returns key value.

func (SearchUsersResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedUserExternalAPIServer

type UnimplementedUserExternalAPIServer struct {
}

UnimplementedUserExternalAPIServer should be embedded to have forward compatible implementations.

func (UnimplementedUserExternalAPIServer) CreateUser

func (UnimplementedUserExternalAPIServer) GetUser

func (UnimplementedUserExternalAPIServer) GetUsersByIDs

func (UnimplementedUserExternalAPIServer) ListUserAvatar

func (UnimplementedUserExternalAPIServer) Login

func (UnimplementedUserExternalAPIServer) Logout

func (UnimplementedUserExternalAPIServer) RemoveAvatar

func (UnimplementedUserExternalAPIServer) SearchUsers

func (UnimplementedUserExternalAPIServer) UpdatePassword

func (UnimplementedUserExternalAPIServer) UpdateUser

func (UnimplementedUserExternalAPIServer) VerificationEmail

type UnsafeUserExternalAPIServer

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

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

type Update

type Update struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*Update) Descriptor deprecated

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

Deprecated: Use Update.ProtoReflect.Descriptor instead.

func (*Update) GetUser

func (x *Update) GetUser() *User

func (*Update) MarshalJSON

func (msg *Update) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) ProtoReflect

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

func (*Update) Reset

func (x *Update) Reset()

func (*Update) String

func (x *Update) String() string

func (*Update) UnmarshalJSON

func (msg *Update) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Update) Validate

func (m *Update) Validate() error

Validate checks the field values on Update with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Update) ValidateAll

func (m *Update) ValidateAll() error

ValidateAll checks the field values on Update with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateMultiError, or nil if none found.

type UpdateMultiError

type UpdateMultiError []error

UpdateMultiError is an error wrapping multiple validation errors returned by Update.ValidateAll() if the designated constraints aren't met.

func (UpdateMultiError) AllErrors

func (m UpdateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateMultiError) Error

func (m UpdateMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	Old string `protobuf:"bytes,1,opt,name=old,proto3" json:"old,omitempty"`
	New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePasswordRequest) Descriptor deprecated

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

Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdatePasswordRequest) GetNew

func (x *UpdatePasswordRequest) GetNew() string

func (*UpdatePasswordRequest) GetOld

func (x *UpdatePasswordRequest) GetOld() string

func (*UpdatePasswordRequest) MarshalJSON

func (msg *UpdatePasswordRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*UpdatePasswordRequest) Matches

func (x *UpdatePasswordRequest) Matches(y interface{}) bool

func (*UpdatePasswordRequest) ProtoMessage

func (*UpdatePasswordRequest) ProtoMessage()

func (*UpdatePasswordRequest) ProtoReflect

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

func (*UpdatePasswordRequest) Reset

func (x *UpdatePasswordRequest) Reset()

func (*UpdatePasswordRequest) String

func (x *UpdatePasswordRequest) String() string

func (*UpdatePasswordRequest) UnmarshalJSON

func (msg *UpdatePasswordRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*UpdatePasswordRequest) Validate

func (m *UpdatePasswordRequest) Validate() error

Validate checks the field values on UpdatePasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdatePasswordRequest) ValidateAll

func (m *UpdatePasswordRequest) ValidateAll() error

ValidateAll checks the field values on UpdatePasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePasswordRequestMultiError, or nil if none found.

type UpdatePasswordRequestMultiError

type UpdatePasswordRequestMultiError []error

UpdatePasswordRequestMultiError is an error wrapping multiple validation errors returned by UpdatePasswordRequest.ValidateAll() if the designated constraints aren't met.

func (UpdatePasswordRequestMultiError) AllErrors

func (m UpdatePasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePasswordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdatePasswordRequestValidationError

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

UpdatePasswordRequestValidationError is the validation error returned by UpdatePasswordRequest.Validate if the designated constraints aren't met.

func (UpdatePasswordRequestValidationError) Cause

Cause function returns cause value.

func (UpdatePasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePasswordRequestValidationError) Field

Field function returns field value.

func (UpdatePasswordRequestValidationError) Key

Key function returns key value.

func (UpdatePasswordRequestValidationError) Reason

Reason function returns reason value.

type UpdatePasswordResponse

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

func (*UpdatePasswordResponse) Descriptor deprecated

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

Deprecated: Use UpdatePasswordResponse.ProtoReflect.Descriptor instead.

func (*UpdatePasswordResponse) MarshalJSON

func (msg *UpdatePasswordResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*UpdatePasswordResponse) ProtoMessage

func (*UpdatePasswordResponse) ProtoMessage()

func (*UpdatePasswordResponse) ProtoReflect

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

func (*UpdatePasswordResponse) Reset

func (x *UpdatePasswordResponse) Reset()

func (*UpdatePasswordResponse) String

func (x *UpdatePasswordResponse) String() string

func (*UpdatePasswordResponse) UnmarshalJSON

func (msg *UpdatePasswordResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*UpdatePasswordResponse) Validate

func (m *UpdatePasswordResponse) Validate() error

Validate checks the field values on UpdatePasswordResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdatePasswordResponse) ValidateAll

func (m *UpdatePasswordResponse) ValidateAll() error

ValidateAll checks the field values on UpdatePasswordResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePasswordResponseMultiError, or nil if none found.

type UpdatePasswordResponseMultiError

type UpdatePasswordResponseMultiError []error

UpdatePasswordResponseMultiError is an error wrapping multiple validation errors returned by UpdatePasswordResponse.ValidateAll() if the designated constraints aren't met.

func (UpdatePasswordResponseMultiError) AllErrors

func (m UpdatePasswordResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdatePasswordResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdatePasswordResponseValidationError

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

UpdatePasswordResponseValidationError is the validation error returned by UpdatePasswordResponse.Validate if the designated constraints aren't met.

func (UpdatePasswordResponseValidationError) Cause

Cause function returns cause value.

func (UpdatePasswordResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdatePasswordResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdatePasswordResponseValidationError) Field

Field function returns field value.

func (UpdatePasswordResponseValidationError) Key

Key function returns key value.

func (UpdatePasswordResponseValidationError) Reason

Reason function returns reason value.

type UpdateUserRequest

type UpdateUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	AvatarId string `protobuf:"bytes,2,opt,name=avatar_id,json=avatarId,proto3" json:"avatar_id,omitempty"`
	FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetAvatarId

func (x *UpdateUserRequest) GetAvatarId() string

func (*UpdateUserRequest) GetFullName

func (x *UpdateUserRequest) GetFullName() string

func (*UpdateUserRequest) GetUsername

func (x *UpdateUserRequest) GetUsername() string

func (*UpdateUserRequest) MarshalJSON

func (msg *UpdateUserRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*UpdateUserRequest) Matches

func (x *UpdateUserRequest) Matches(y interface{}) bool

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

func (*UpdateUserRequest) UnmarshalJSON

func (msg *UpdateUserRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*UpdateUserRequest) Validate

func (m *UpdateUserRequest) Validate() error

Validate checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserRequest) ValidateAll

func (m *UpdateUserRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserRequestMultiError, or nil if none found.

type UpdateUserRequestMultiError

type UpdateUserRequestMultiError []error

UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserRequestMultiError) AllErrors

func (m UpdateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserRequestValidationError

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

UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.

func (UpdateUserRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserResponse

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

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) MarshalJSON

func (msg *UpdateUserResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

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

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

func (*UpdateUserResponse) UnmarshalJSON

func (msg *UpdateUserResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*UpdateUserResponse) Validate

func (m *UpdateUserResponse) Validate() error

Validate checks the field values on UpdateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserResponse) ValidateAll

func (m *UpdateUserResponse) ValidateAll() error

ValidateAll checks the field values on UpdateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserResponseMultiError, or nil if none found.

type UpdateUserResponseMultiError

type UpdateUserResponseMultiError []error

UpdateUserResponseMultiError is an error wrapping multiple validation errors returned by UpdateUserResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateUserResponseMultiError) AllErrors

func (m UpdateUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserResponseValidationError

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

UpdateUserResponseValidationError is the validation error returned by UpdateUserResponse.Validate if the designated constraints aren't met.

func (UpdateUserResponseValidationError) Cause

Cause function returns cause value.

func (UpdateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserResponseValidationError) Field

Field function returns field value.

func (UpdateUserResponseValidationError) Key

Key function returns key value.

func (UpdateUserResponseValidationError) Reason

Reason function returns reason value.

type UpdateValidationError

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

UpdateValidationError is the validation error returned by Update.Validate if the designated constraints aren't met.

func (UpdateValidationError) Cause

func (e UpdateValidationError) Cause() error

Cause function returns cause value.

func (UpdateValidationError) Error

func (e UpdateValidationError) Error() string

Error satisfies the builtin error interface

func (UpdateValidationError) ErrorName

func (e UpdateValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateValidationError) Field

func (e UpdateValidationError) Field() string

Field function returns field value.

func (UpdateValidationError) Key

func (e UpdateValidationError) Key() bool

Key function returns key value.

func (UpdateValidationError) Reason

func (e UpdateValidationError) Reason() string

Reason function returns reason value.

type User

type User struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username  string                 `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email     string                 `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	AvatarId  string                 `protobuf:"bytes,4,opt,name=avatar_id,json=avatarId,proto3" json:"avatar_id,omitempty"`
	Kind      v1.StatusKind          `protobuf:"varint,5,opt,name=kind,proto3,enum=api.user_status.v1.StatusKind" json:"kind,omitempty"`
	FullName  string                 `protobuf:"bytes,6,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatarId

func (x *User) GetAvatarId() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFullName

func (x *User) GetFullName() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetKind

func (x *User) GetKind() v1.StatusKind

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) MarshalJSON

func (msg *User) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) UnmarshalJSON

func (msg *User) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserAvatar

type UserAvatar struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	FileId string `protobuf:"bytes,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserAvatar) Descriptor deprecated

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

Deprecated: Use UserAvatar.ProtoReflect.Descriptor instead.

func (*UserAvatar) GetFileId

func (x *UserAvatar) GetFileId() string

func (*UserAvatar) GetUserId

func (x *UserAvatar) GetUserId() string

func (*UserAvatar) MarshalJSON

func (msg *UserAvatar) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*UserAvatar) ProtoMessage

func (*UserAvatar) ProtoMessage()

func (*UserAvatar) ProtoReflect

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

func (*UserAvatar) Reset

func (x *UserAvatar) Reset()

func (*UserAvatar) String

func (x *UserAvatar) String() string

func (*UserAvatar) UnmarshalJSON

func (msg *UserAvatar) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*UserAvatar) Validate

func (m *UserAvatar) Validate() error

Validate checks the field values on UserAvatar with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserAvatar) ValidateAll

func (m *UserAvatar) ValidateAll() error

ValidateAll checks the field values on UserAvatar with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserAvatarMultiError, or nil if none found.

type UserAvatarMultiError

type UserAvatarMultiError []error

UserAvatarMultiError is an error wrapping multiple validation errors returned by UserAvatar.ValidateAll() if the designated constraints aren't met.

func (UserAvatarMultiError) AllErrors

func (m UserAvatarMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserAvatarMultiError) Error

func (m UserAvatarMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserAvatarValidationError

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

UserAvatarValidationError is the validation error returned by UserAvatar.Validate if the designated constraints aren't met.

func (UserAvatarValidationError) Cause

func (e UserAvatarValidationError) Cause() error

Cause function returns cause value.

func (UserAvatarValidationError) Error

Error satisfies the builtin error interface

func (UserAvatarValidationError) ErrorName

func (e UserAvatarValidationError) ErrorName() string

ErrorName returns error name.

func (UserAvatarValidationError) Field

Field function returns field value.

func (UserAvatarValidationError) Key

Key function returns key value.

func (UserAvatarValidationError) Reason

func (e UserAvatarValidationError) Reason() string

Reason function returns reason value.

type UserExternalAPIClient

type UserExternalAPIClient interface {
	// Verification and exist checking user's email.
	// It should be valid email.
	VerificationEmail(ctx context.Context, in *VerificationEmailRequest, opts ...grpc.CallOption) (*VerificationEmailResponse, error)
	// Verification and exist checking user's name.
	// It should be valid email.
	VerificationUsername(ctx context.Context, in *VerificationUsernameRequest, opts ...grpc.CallOption) (*VerificationUsernameResponse, error)
	// Create user by params.
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	// Login by email.
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	// Logout and remove user session.
	Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error)
	// Get user's information.
	// If you not send user's id, we will return caller's profile by authorization token.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	// Search users by username and full name.
	SearchUsers(ctx context.Context, in *SearchUsersRequest, opts ...grpc.CallOption) (*SearchUsersResponse, error)
	// Set new password.
	UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordResponse, error)
	// Update profile.
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	// Remove user avatar.
	RemoveAvatar(ctx context.Context, in *RemoveAvatarRequest, opts ...grpc.CallOption) (*RemoveAvatarResponse, error)
	// List user avatar.
	ListUserAvatar(ctx context.Context, in *ListUserAvatarRequest, opts ...grpc.CallOption) (*ListUserAvatarResponse, error)
	// Search users by ids.
	GetUsersByIDs(ctx context.Context, in *GetUsersByIDsRequest, opts ...grpc.CallOption) (*GetUsersByIDsResponse, error)
}

UserExternalAPIClient is the client API for UserExternalAPI 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.

type UserExternalAPIServer

type UserExternalAPIServer interface {
	// Verification and exist checking user's email.
	// It should be valid email.
	VerificationEmail(context.Context, *VerificationEmailRequest) (*VerificationEmailResponse, error)
	// Verification and exist checking user's name.
	// It should be valid email.
	VerificationUsername(context.Context, *VerificationUsernameRequest) (*VerificationUsernameResponse, error)
	// Create user by params.
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	// Login by email.
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// Logout and remove user session.
	Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
	// Get user's information.
	// If you not send user's id, we will return caller's profile by authorization token.
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	// Search users by username and full name.
	SearchUsers(context.Context, *SearchUsersRequest) (*SearchUsersResponse, error)
	// Set new password.
	UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
	// Update profile.
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
	// Remove user avatar.
	RemoveAvatar(context.Context, *RemoveAvatarRequest) (*RemoveAvatarResponse, error)
	// List user avatar.
	ListUserAvatar(context.Context, *ListUserAvatarRequest) (*ListUserAvatarResponse, error)
	// Search users by ids.
	GetUsersByIDs(context.Context, *GetUsersByIDsRequest) (*GetUsersByIDsResponse, error)
}

UserExternalAPIServer is the server API for UserExternalAPI service. All implementations should embed UnimplementedUserExternalAPIServer for forward compatibility

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserValidationError

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

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

type VerificationEmailRequest

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

func (*VerificationEmailRequest) Descriptor deprecated

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

Deprecated: Use VerificationEmailRequest.ProtoReflect.Descriptor instead.

func (*VerificationEmailRequest) GetEmail

func (x *VerificationEmailRequest) GetEmail() string

func (*VerificationEmailRequest) MarshalJSON

func (msg *VerificationEmailRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*VerificationEmailRequest) Matches

func (x *VerificationEmailRequest) Matches(y interface{}) bool

func (*VerificationEmailRequest) ProtoMessage

func (*VerificationEmailRequest) ProtoMessage()

func (*VerificationEmailRequest) ProtoReflect

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

func (*VerificationEmailRequest) Reset

func (x *VerificationEmailRequest) Reset()

func (*VerificationEmailRequest) String

func (x *VerificationEmailRequest) String() string

func (*VerificationEmailRequest) UnmarshalJSON

func (msg *VerificationEmailRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*VerificationEmailRequest) Validate

func (m *VerificationEmailRequest) Validate() error

Validate checks the field values on VerificationEmailRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VerificationEmailRequest) ValidateAll

func (m *VerificationEmailRequest) ValidateAll() error

ValidateAll checks the field values on VerificationEmailRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerificationEmailRequestMultiError, or nil if none found.

type VerificationEmailRequestMultiError

type VerificationEmailRequestMultiError []error

VerificationEmailRequestMultiError is an error wrapping multiple validation errors returned by VerificationEmailRequest.ValidateAll() if the designated constraints aren't met.

func (VerificationEmailRequestMultiError) AllErrors

func (m VerificationEmailRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VerificationEmailRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VerificationEmailRequestValidationError

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

VerificationEmailRequestValidationError is the validation error returned by VerificationEmailRequest.Validate if the designated constraints aren't met.

func (VerificationEmailRequestValidationError) Cause

Cause function returns cause value.

func (VerificationEmailRequestValidationError) Error

Error satisfies the builtin error interface

func (VerificationEmailRequestValidationError) ErrorName

ErrorName returns error name.

func (VerificationEmailRequestValidationError) Field

Field function returns field value.

func (VerificationEmailRequestValidationError) Key

Key function returns key value.

func (VerificationEmailRequestValidationError) Reason

Reason function returns reason value.

type VerificationEmailResponse

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

func (*VerificationEmailResponse) Descriptor deprecated

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

Deprecated: Use VerificationEmailResponse.ProtoReflect.Descriptor instead.

func (*VerificationEmailResponse) MarshalJSON

func (msg *VerificationEmailResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*VerificationEmailResponse) ProtoMessage

func (*VerificationEmailResponse) ProtoMessage()

func (*VerificationEmailResponse) ProtoReflect

func (*VerificationEmailResponse) Reset

func (x *VerificationEmailResponse) Reset()

func (*VerificationEmailResponse) String

func (x *VerificationEmailResponse) String() string

func (*VerificationEmailResponse) UnmarshalJSON

func (msg *VerificationEmailResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*VerificationEmailResponse) Validate

func (m *VerificationEmailResponse) Validate() error

Validate checks the field values on VerificationEmailResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VerificationEmailResponse) ValidateAll

func (m *VerificationEmailResponse) ValidateAll() error

ValidateAll checks the field values on VerificationEmailResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerificationEmailResponseMultiError, or nil if none found.

type VerificationEmailResponseMultiError

type VerificationEmailResponseMultiError []error

VerificationEmailResponseMultiError is an error wrapping multiple validation errors returned by VerificationEmailResponse.ValidateAll() if the designated constraints aren't met.

func (VerificationEmailResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (VerificationEmailResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VerificationEmailResponseValidationError

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

VerificationEmailResponseValidationError is the validation error returned by VerificationEmailResponse.Validate if the designated constraints aren't met.

func (VerificationEmailResponseValidationError) Cause

Cause function returns cause value.

func (VerificationEmailResponseValidationError) Error

Error satisfies the builtin error interface

func (VerificationEmailResponseValidationError) ErrorName

ErrorName returns error name.

func (VerificationEmailResponseValidationError) Field

Field function returns field value.

func (VerificationEmailResponseValidationError) Key

Key function returns key value.

func (VerificationEmailResponseValidationError) Reason

Reason function returns reason value.

type VerificationUsernameRequest

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

func (*VerificationUsernameRequest) Descriptor deprecated

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

Deprecated: Use VerificationUsernameRequest.ProtoReflect.Descriptor instead.

func (*VerificationUsernameRequest) GetUsername

func (x *VerificationUsernameRequest) GetUsername() string

func (*VerificationUsernameRequest) MarshalJSON

func (msg *VerificationUsernameRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*VerificationUsernameRequest) Matches

func (x *VerificationUsernameRequest) Matches(y interface{}) bool

func (*VerificationUsernameRequest) ProtoMessage

func (*VerificationUsernameRequest) ProtoMessage()

func (*VerificationUsernameRequest) ProtoReflect

func (*VerificationUsernameRequest) Reset

func (x *VerificationUsernameRequest) Reset()

func (*VerificationUsernameRequest) String

func (x *VerificationUsernameRequest) String() string

func (*VerificationUsernameRequest) UnmarshalJSON

func (msg *VerificationUsernameRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*VerificationUsernameRequest) Validate

func (m *VerificationUsernameRequest) Validate() error

Validate checks the field values on VerificationUsernameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VerificationUsernameRequest) ValidateAll

func (m *VerificationUsernameRequest) ValidateAll() error

ValidateAll checks the field values on VerificationUsernameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerificationUsernameRequestMultiError, or nil if none found.

type VerificationUsernameRequestMultiError

type VerificationUsernameRequestMultiError []error

VerificationUsernameRequestMultiError is an error wrapping multiple validation errors returned by VerificationUsernameRequest.ValidateAll() if the designated constraints aren't met.

func (VerificationUsernameRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (VerificationUsernameRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VerificationUsernameRequestValidationError

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

VerificationUsernameRequestValidationError is the validation error returned by VerificationUsernameRequest.Validate if the designated constraints aren't met.

func (VerificationUsernameRequestValidationError) Cause

Cause function returns cause value.

func (VerificationUsernameRequestValidationError) Error

Error satisfies the builtin error interface

func (VerificationUsernameRequestValidationError) ErrorName

ErrorName returns error name.

func (VerificationUsernameRequestValidationError) Field

Field function returns field value.

func (VerificationUsernameRequestValidationError) Key

Key function returns key value.

func (VerificationUsernameRequestValidationError) Reason

Reason function returns reason value.

type VerificationUsernameResponse

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

func (*VerificationUsernameResponse) Descriptor deprecated

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

Deprecated: Use VerificationUsernameResponse.ProtoReflect.Descriptor instead.

func (*VerificationUsernameResponse) MarshalJSON

func (msg *VerificationUsernameResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*VerificationUsernameResponse) ProtoMessage

func (*VerificationUsernameResponse) ProtoMessage()

func (*VerificationUsernameResponse) ProtoReflect

func (*VerificationUsernameResponse) Reset

func (x *VerificationUsernameResponse) Reset()

func (*VerificationUsernameResponse) String

func (*VerificationUsernameResponse) UnmarshalJSON

func (msg *VerificationUsernameResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*VerificationUsernameResponse) Validate

func (m *VerificationUsernameResponse) Validate() error

Validate checks the field values on VerificationUsernameResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VerificationUsernameResponse) ValidateAll

func (m *VerificationUsernameResponse) ValidateAll() error

ValidateAll checks the field values on VerificationUsernameResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerificationUsernameResponseMultiError, or nil if none found.

type VerificationUsernameResponseMultiError

type VerificationUsernameResponseMultiError []error

VerificationUsernameResponseMultiError is an error wrapping multiple validation errors returned by VerificationUsernameResponse.ValidateAll() if the designated constraints aren't met.

func (VerificationUsernameResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (VerificationUsernameResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VerificationUsernameResponseValidationError

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

VerificationUsernameResponseValidationError is the validation error returned by VerificationUsernameResponse.Validate if the designated constraints aren't met.

func (VerificationUsernameResponseValidationError) Cause

Cause function returns cause value.

func (VerificationUsernameResponseValidationError) Error

Error satisfies the builtin error interface

func (VerificationUsernameResponseValidationError) ErrorName

ErrorName returns error name.

func (VerificationUsernameResponseValidationError) Field

Field function returns field value.

func (VerificationUsernameResponseValidationError) Key

Key function returns key value.

func (VerificationUsernameResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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