v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const OperationAccountCreateAddresses = "/user.api.account.v1.Account/CreateAddresses"
View Source
const OperationAccountDeleteAddresses = "/user.api.account.v1.Account/DeleteAddresses"
View Source
const OperationAccountGetAddresses = "/user.api.account.v1.Account/GetAddresses"
View Source
const OperationAccountGetProfile = "/user.api.account.v1.Account/GetProfile"
View Source
const OperationAccountGetSettings = "/user.api.account.v1.Account/GetSettings"
View Source
const OperationAccountUpdateAddresses = "/user.api.account.v1.Account/UpdateAddresses"
View Source
const OperationAccountUpdateProfile = "/user.api.account.v1.Account/UpdateProfile"
View Source
const OperationAccountUpdateSettings = "/user.api.account.v1.Account/UpdateSettings"

Variables

View Source
var Account_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.api.account.v1.Account",
	HandlerType: (*AccountServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetProfile",
			Handler:    _Account_GetProfile_Handler,
		},
		{
			MethodName: "UpdateProfile",
			Handler:    _Account_UpdateProfile_Handler,
		},
		{
			MethodName: "GetSettings",
			Handler:    _Account_GetSettings_Handler,
		},
		{
			MethodName: "UpdateSettings",
			Handler:    _Account_UpdateSettings_Handler,
		},
		{
			MethodName: "GetAddresses",
			Handler:    _Account_GetAddresses_Handler,
		},
		{
			MethodName: "CreateAddresses",
			Handler:    _Account_CreateAddresses_Handler,
		},
		{
			MethodName: "UpdateAddresses",
			Handler:    _Account_UpdateAddresses_Handler,
		},
		{
			MethodName: "DeleteAddresses",
			Handler:    _Account_DeleteAddresses_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user/api/account/v1/account.proto",
}

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

View Source
var File_user_api_account_v1_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountHTTPServer

func RegisterAccountHTTPServer(s *http.Server, srv AccountHTTPServer)

func RegisterAccountServer

func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)

Types

type AccountClient

type AccountClient interface {
	GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error)
	//UpdateProfile
	//Avatar: POST form file /v1/account/avatar
	UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error)
	GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error)
	UpdateSettings(ctx context.Context, in *UpdateSettingsRequest, opts ...grpc.CallOption) (*UpdateSettingsResponse, error)
	GetAddresses(ctx context.Context, in *GetAddressesRequest, opts ...grpc.CallOption) (*GetAddressesReply, error)
	CreateAddresses(ctx context.Context, in *CreateAddressesRequest, opts ...grpc.CallOption) (*CreateAddressReply, error)
	UpdateAddresses(ctx context.Context, in *UpdateAddressesRequest, opts ...grpc.CallOption) (*UpdateAddressesReply, error)
	DeleteAddresses(ctx context.Context, in *DeleteAddressRequest, opts ...grpc.CallOption) (*DeleteAddressesReply, error)
}

AccountClient is the client API for Account service.

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

func NewAccountClient

func NewAccountClient(cc grpc.ClientConnInterface) AccountClient

type AccountHTTPClient

type AccountHTTPClient interface {
	CreateAddresses(ctx context.Context, req *CreateAddressesRequest, opts ...http.CallOption) (rsp *CreateAddressReply, err error)
	DeleteAddresses(ctx context.Context, req *DeleteAddressRequest, opts ...http.CallOption) (rsp *DeleteAddressesReply, err error)
	GetAddresses(ctx context.Context, req *GetAddressesRequest, opts ...http.CallOption) (rsp *GetAddressesReply, err error)
	GetProfile(ctx context.Context, req *GetProfileRequest, opts ...http.CallOption) (rsp *GetProfileResponse, err error)
	GetSettings(ctx context.Context, req *GetSettingsRequest, opts ...http.CallOption) (rsp *GetSettingsResponse, err error)
	UpdateAddresses(ctx context.Context, req *UpdateAddressesRequest, opts ...http.CallOption) (rsp *UpdateAddressesReply, err error)
	UpdateProfile(ctx context.Context, req *UpdateProfileRequest, opts ...http.CallOption) (rsp *UpdateProfileResponse, err error)
	UpdateSettings(ctx context.Context, req *UpdateSettingsRequest, opts ...http.CallOption) (rsp *UpdateSettingsResponse, err error)
}

func NewAccountHTTPClient

func NewAccountHTTPClient(client *http.Client) AccountHTTPClient

type AccountHTTPClientImpl

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

func (*AccountHTTPClientImpl) CreateAddresses

func (*AccountHTTPClientImpl) DeleteAddresses

func (*AccountHTTPClientImpl) GetAddresses

func (*AccountHTTPClientImpl) GetProfile

func (*AccountHTTPClientImpl) GetSettings

func (*AccountHTTPClientImpl) UpdateAddresses

func (*AccountHTTPClientImpl) UpdateProfile

func (*AccountHTTPClientImpl) UpdateSettings

type AccountServer

AccountServer is the server API for Account service. All implementations should embed UnimplementedAccountServer for forward compatibility

func NewAccountClientProxy

func NewAccountClientProxy(cc AccountClient) AccountServer

type CreateAddressReply

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

func (*CreateAddressReply) Descriptor deprecated

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

Deprecated: Use CreateAddressReply.ProtoReflect.Descriptor instead.

func (*CreateAddressReply) ProtoMessage

func (*CreateAddressReply) ProtoMessage()

func (*CreateAddressReply) ProtoReflect

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

func (*CreateAddressReply) Reset

func (x *CreateAddressReply) Reset()

func (*CreateAddressReply) String

func (x *CreateAddressReply) String() string

func (*CreateAddressReply) Validate

func (m *CreateAddressReply) Validate() error

Validate checks the field values on CreateAddressReply 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 (*CreateAddressReply) ValidateAll

func (m *CreateAddressReply) ValidateAll() error

ValidateAll checks the field values on CreateAddressReply 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 CreateAddressReplyMultiError, or nil if none found.

type CreateAddressReplyMultiError

type CreateAddressReplyMultiError []error

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

func (CreateAddressReplyMultiError) AllErrors

func (m CreateAddressReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAddressReplyMultiError) Error

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

type CreateAddressReplyValidationError

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

CreateAddressReplyValidationError is the validation error returned by CreateAddressReply.Validate if the designated constraints aren't met.

func (CreateAddressReplyValidationError) Cause

Cause function returns cause value.

func (CreateAddressReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateAddressReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateAddressReplyValidationError) Field

Field function returns field value.

func (CreateAddressReplyValidationError) Key

Key function returns key value.

func (CreateAddressReplyValidationError) Reason

Reason function returns reason value.

type CreateAddressesRequest

type CreateAddressesRequest struct {
	Phone    string           `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Usage    string           `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"`
	Prefer   bool             `protobuf:"varint,5,opt,name=prefer,proto3" json:"prefer,omitempty"`
	Address  *data.Address    `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	Metadata *structpb.Struct `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAddressesRequest) Descriptor deprecated

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

Deprecated: Use CreateAddressesRequest.ProtoReflect.Descriptor instead.

func (*CreateAddressesRequest) GetAddress

func (x *CreateAddressesRequest) GetAddress() *data.Address

func (*CreateAddressesRequest) GetMetadata

func (x *CreateAddressesRequest) GetMetadata() *structpb.Struct

func (*CreateAddressesRequest) GetPhone

func (x *CreateAddressesRequest) GetPhone() string

func (*CreateAddressesRequest) GetPrefer

func (x *CreateAddressesRequest) GetPrefer() bool

func (*CreateAddressesRequest) GetUsage

func (x *CreateAddressesRequest) GetUsage() string

func (*CreateAddressesRequest) ProtoMessage

func (*CreateAddressesRequest) ProtoMessage()

func (*CreateAddressesRequest) ProtoReflect

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

func (*CreateAddressesRequest) Reset

func (x *CreateAddressesRequest) Reset()

func (*CreateAddressesRequest) String

func (x *CreateAddressesRequest) String() string

func (*CreateAddressesRequest) Validate

func (m *CreateAddressesRequest) Validate() error

Validate checks the field values on CreateAddressesRequest 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 (*CreateAddressesRequest) ValidateAll

func (m *CreateAddressesRequest) ValidateAll() error

ValidateAll checks the field values on CreateAddressesRequest 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 CreateAddressesRequestMultiError, or nil if none found.

type CreateAddressesRequestMultiError

type CreateAddressesRequestMultiError []error

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

func (CreateAddressesRequestMultiError) AllErrors

func (m CreateAddressesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAddressesRequestMultiError) Error

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

type CreateAddressesRequestValidationError

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

CreateAddressesRequestValidationError is the validation error returned by CreateAddressesRequest.Validate if the designated constraints aren't met.

func (CreateAddressesRequestValidationError) Cause

Cause function returns cause value.

func (CreateAddressesRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAddressesRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAddressesRequestValidationError) Field

Field function returns field value.

func (CreateAddressesRequestValidationError) Key

Key function returns key value.

func (CreateAddressesRequestValidationError) Reason

Reason function returns reason value.

type DeleteAddressRequest

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

func (*DeleteAddressRequest) Descriptor deprecated

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

Deprecated: Use DeleteAddressRequest.ProtoReflect.Descriptor instead.

func (*DeleteAddressRequest) GetId

func (x *DeleteAddressRequest) GetId() string

func (*DeleteAddressRequest) ProtoMessage

func (*DeleteAddressRequest) ProtoMessage()

func (*DeleteAddressRequest) ProtoReflect

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

func (*DeleteAddressRequest) Reset

func (x *DeleteAddressRequest) Reset()

func (*DeleteAddressRequest) String

func (x *DeleteAddressRequest) String() string

func (*DeleteAddressRequest) Validate

func (m *DeleteAddressRequest) Validate() error

Validate checks the field values on DeleteAddressRequest 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 (*DeleteAddressRequest) ValidateAll

func (m *DeleteAddressRequest) ValidateAll() error

ValidateAll checks the field values on DeleteAddressRequest 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 DeleteAddressRequestMultiError, or nil if none found.

type DeleteAddressRequestMultiError

type DeleteAddressRequestMultiError []error

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

func (DeleteAddressRequestMultiError) AllErrors

func (m DeleteAddressRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteAddressRequestMultiError) Error

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

type DeleteAddressRequestValidationError

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

DeleteAddressRequestValidationError is the validation error returned by DeleteAddressRequest.Validate if the designated constraints aren't met.

func (DeleteAddressRequestValidationError) Cause

Cause function returns cause value.

func (DeleteAddressRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteAddressRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteAddressRequestValidationError) Field

Field function returns field value.

func (DeleteAddressRequestValidationError) Key

Key function returns key value.

func (DeleteAddressRequestValidationError) Reason

Reason function returns reason value.

type DeleteAddressesReply

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

func (*DeleteAddressesReply) Descriptor deprecated

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

Deprecated: Use DeleteAddressesReply.ProtoReflect.Descriptor instead.

func (*DeleteAddressesReply) ProtoMessage

func (*DeleteAddressesReply) ProtoMessage()

func (*DeleteAddressesReply) ProtoReflect

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

func (*DeleteAddressesReply) Reset

func (x *DeleteAddressesReply) Reset()

func (*DeleteAddressesReply) String

func (x *DeleteAddressesReply) String() string

func (*DeleteAddressesReply) Validate

func (m *DeleteAddressesReply) Validate() error

Validate checks the field values on DeleteAddressesReply 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 (*DeleteAddressesReply) ValidateAll

func (m *DeleteAddressesReply) ValidateAll() error

ValidateAll checks the field values on DeleteAddressesReply 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 DeleteAddressesReplyMultiError, or nil if none found.

type DeleteAddressesReplyMultiError

type DeleteAddressesReplyMultiError []error

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

func (DeleteAddressesReplyMultiError) AllErrors

func (m DeleteAddressesReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteAddressesReplyMultiError) Error

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

type DeleteAddressesReplyValidationError

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

DeleteAddressesReplyValidationError is the validation error returned by DeleteAddressesReply.Validate if the designated constraints aren't met.

func (DeleteAddressesReplyValidationError) Cause

Cause function returns cause value.

func (DeleteAddressesReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteAddressesReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteAddressesReplyValidationError) Field

Field function returns field value.

func (DeleteAddressesReplyValidationError) Key

Key function returns key value.

func (DeleteAddressesReplyValidationError) Reason

Reason function returns reason value.

type GetAddressesReply

type GetAddressesReply struct {
	Addresses []*UserAddress `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAddressesReply) Descriptor deprecated

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

Deprecated: Use GetAddressesReply.ProtoReflect.Descriptor instead.

func (*GetAddressesReply) GetAddresses

func (x *GetAddressesReply) GetAddresses() []*UserAddress

func (*GetAddressesReply) ProtoMessage

func (*GetAddressesReply) ProtoMessage()

func (*GetAddressesReply) ProtoReflect

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

func (*GetAddressesReply) Reset

func (x *GetAddressesReply) Reset()

func (*GetAddressesReply) String

func (x *GetAddressesReply) String() string

func (*GetAddressesReply) Validate

func (m *GetAddressesReply) Validate() error

Validate checks the field values on GetAddressesReply 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 (*GetAddressesReply) ValidateAll

func (m *GetAddressesReply) ValidateAll() error

ValidateAll checks the field values on GetAddressesReply 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 GetAddressesReplyMultiError, or nil if none found.

type GetAddressesReplyMultiError

type GetAddressesReplyMultiError []error

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

func (GetAddressesReplyMultiError) AllErrors

func (m GetAddressesReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAddressesReplyMultiError) Error

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

type GetAddressesReplyValidationError

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

GetAddressesReplyValidationError is the validation error returned by GetAddressesReply.Validate if the designated constraints aren't met.

func (GetAddressesReplyValidationError) Cause

Cause function returns cause value.

func (GetAddressesReplyValidationError) Error

Error satisfies the builtin error interface

func (GetAddressesReplyValidationError) ErrorName

ErrorName returns error name.

func (GetAddressesReplyValidationError) Field

Field function returns field value.

func (GetAddressesReplyValidationError) Key

Key function returns key value.

func (GetAddressesReplyValidationError) Reason

Reason function returns reason value.

type GetAddressesRequest

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

func (*GetAddressesRequest) Descriptor deprecated

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

Deprecated: Use GetAddressesRequest.ProtoReflect.Descriptor instead.

func (*GetAddressesRequest) ProtoMessage

func (*GetAddressesRequest) ProtoMessage()

func (*GetAddressesRequest) ProtoReflect

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

func (*GetAddressesRequest) Reset

func (x *GetAddressesRequest) Reset()

func (*GetAddressesRequest) String

func (x *GetAddressesRequest) String() string

func (*GetAddressesRequest) Validate

func (m *GetAddressesRequest) Validate() error

Validate checks the field values on GetAddressesRequest 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 (*GetAddressesRequest) ValidateAll

func (m *GetAddressesRequest) ValidateAll() error

ValidateAll checks the field values on GetAddressesRequest 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 GetAddressesRequestMultiError, or nil if none found.

type GetAddressesRequestMultiError

type GetAddressesRequestMultiError []error

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

func (GetAddressesRequestMultiError) AllErrors

func (m GetAddressesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAddressesRequestMultiError) Error

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

type GetAddressesRequestValidationError

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

GetAddressesRequestValidationError is the validation error returned by GetAddressesRequest.Validate if the designated constraints aren't met.

func (GetAddressesRequestValidationError) Cause

Cause function returns cause value.

func (GetAddressesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAddressesRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAddressesRequestValidationError) Field

Field function returns field value.

func (GetAddressesRequestValidationError) Key

Key function returns key value.

func (GetAddressesRequestValidationError) Reason

Reason function returns reason value.

type GetProfileRequest

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

func (*GetProfileRequest) Descriptor deprecated

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

Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.

func (*GetProfileRequest) ProtoMessage

func (*GetProfileRequest) ProtoMessage()

func (*GetProfileRequest) ProtoReflect

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

func (*GetProfileRequest) Reset

func (x *GetProfileRequest) Reset()

func (*GetProfileRequest) String

func (x *GetProfileRequest) String() string

func (*GetProfileRequest) Validate

func (m *GetProfileRequest) Validate() error

Validate checks the field values on GetProfileRequest 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 (*GetProfileRequest) ValidateAll

func (m *GetProfileRequest) ValidateAll() error

ValidateAll checks the field values on GetProfileRequest 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 GetProfileRequestMultiError, or nil if none found.

type GetProfileRequestMultiError

type GetProfileRequestMultiError []error

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

func (GetProfileRequestMultiError) AllErrors

func (m GetProfileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetProfileRequestMultiError) Error

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

type GetProfileRequestValidationError

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

GetProfileRequestValidationError is the validation error returned by GetProfileRequest.Validate if the designated constraints aren't met.

func (GetProfileRequestValidationError) Cause

Cause function returns cause value.

func (GetProfileRequestValidationError) Error

Error satisfies the builtin error interface

func (GetProfileRequestValidationError) ErrorName

ErrorName returns error name.

func (GetProfileRequestValidationError) Field

Field function returns field value.

func (GetProfileRequestValidationError) Key

Key function returns key value.

func (GetProfileRequestValidationError) Reason

Reason function returns reason value.

type GetProfileResponse

type GetProfileResponse struct {
	Id       string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
	Name     *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Phone    *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
	Email    *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=email,proto3,oneof" json:"email,omitempty"`
	Birthday *timestamppb.Timestamp  `protobuf:"bytes,6,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"`
	//
	Gender v1.Gender   `protobuf:"varint,7,opt,name=gender,proto3,enum=user.api.user.v1.Gender" json:"gender,omitempty"`
	Roles  []*v11.Role `protobuf:"bytes,8,rep,name=roles,proto3" json:"roles,omitempty"`
	// user available tenants
	Tenants       []*UserTenant  `protobuf:"bytes,9,rep,name=tenants,proto3" json:"tenants,omitempty"`
	Avatar        *blob.BlobFile `protobuf:"bytes,10,opt,name=avatar,proto3" json:"avatar,omitempty"`
	CurrentTenant *UserTenant    `protobuf:"bytes,11,opt,name=current_tenant,json=currentTenant,proto3" json:"current_tenant,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileResponse) Descriptor deprecated

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

Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.

func (*GetProfileResponse) GetAvatar

func (x *GetProfileResponse) GetAvatar() *blob.BlobFile

func (*GetProfileResponse) GetBirthday

func (x *GetProfileResponse) GetBirthday() *timestamppb.Timestamp

func (*GetProfileResponse) GetCurrentTenant

func (x *GetProfileResponse) GetCurrentTenant() *UserTenant

func (*GetProfileResponse) GetEmail

func (x *GetProfileResponse) GetEmail() *wrapperspb.StringValue

func (*GetProfileResponse) GetGender

func (x *GetProfileResponse) GetGender() v1.Gender

func (*GetProfileResponse) GetId

func (x *GetProfileResponse) GetId() string

func (*GetProfileResponse) GetName

func (*GetProfileResponse) GetPhone

func (x *GetProfileResponse) GetPhone() *wrapperspb.StringValue

func (*GetProfileResponse) GetRoles

func (x *GetProfileResponse) GetRoles() []*v11.Role

func (*GetProfileResponse) GetTenants

func (x *GetProfileResponse) GetTenants() []*UserTenant

func (*GetProfileResponse) GetUsername

func (x *GetProfileResponse) GetUsername() *wrapperspb.StringValue

func (*GetProfileResponse) ProtoMessage

func (*GetProfileResponse) ProtoMessage()

func (*GetProfileResponse) ProtoReflect

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

func (*GetProfileResponse) Reset

func (x *GetProfileResponse) Reset()

func (*GetProfileResponse) String

func (x *GetProfileResponse) String() string

func (*GetProfileResponse) Validate

func (m *GetProfileResponse) Validate() error

Validate checks the field values on GetProfileResponse 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 (*GetProfileResponse) ValidateAll

func (m *GetProfileResponse) ValidateAll() error

ValidateAll checks the field values on GetProfileResponse 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 GetProfileResponseMultiError, or nil if none found.

type GetProfileResponseMultiError

type GetProfileResponseMultiError []error

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

func (GetProfileResponseMultiError) AllErrors

func (m GetProfileResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetProfileResponseMultiError) Error

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

type GetProfileResponseValidationError

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

GetProfileResponseValidationError is the validation error returned by GetProfileResponse.Validate if the designated constraints aren't met.

func (GetProfileResponseValidationError) Cause

Cause function returns cause value.

func (GetProfileResponseValidationError) Error

Error satisfies the builtin error interface

func (GetProfileResponseValidationError) ErrorName

ErrorName returns error name.

func (GetProfileResponseValidationError) Field

Field function returns field value.

func (GetProfileResponseValidationError) Key

Key function returns key value.

func (GetProfileResponseValidationError) Reason

Reason function returns reason value.

type GetSettingsRequest

type GetSettingsRequest struct {
	Fields *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=fields,proto3" json:"fields,omitempty"`
	Filter *SettingsFilter        `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSettingsRequest) Descriptor deprecated

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

Deprecated: Use GetSettingsRequest.ProtoReflect.Descriptor instead.

func (*GetSettingsRequest) GetFields

func (x *GetSettingsRequest) GetFields() *fieldmaskpb.FieldMask

func (*GetSettingsRequest) GetFilter

func (x *GetSettingsRequest) GetFilter() *SettingsFilter

func (*GetSettingsRequest) ProtoMessage

func (*GetSettingsRequest) ProtoMessage()

func (*GetSettingsRequest) ProtoReflect

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

func (*GetSettingsRequest) Reset

func (x *GetSettingsRequest) Reset()

func (*GetSettingsRequest) String

func (x *GetSettingsRequest) String() string

func (*GetSettingsRequest) Validate

func (m *GetSettingsRequest) Validate() error

Validate checks the field values on GetSettingsRequest 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 (*GetSettingsRequest) ValidateAll

func (m *GetSettingsRequest) ValidateAll() error

ValidateAll checks the field values on GetSettingsRequest 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 GetSettingsRequestMultiError, or nil if none found.

type GetSettingsRequestMultiError

type GetSettingsRequestMultiError []error

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

func (GetSettingsRequestMultiError) AllErrors

func (m GetSettingsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSettingsRequestMultiError) Error

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

type GetSettingsRequestValidationError

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

GetSettingsRequestValidationError is the validation error returned by GetSettingsRequest.Validate if the designated constraints aren't met.

func (GetSettingsRequestValidationError) Cause

Cause function returns cause value.

func (GetSettingsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSettingsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSettingsRequestValidationError) Field

Field function returns field value.

func (GetSettingsRequestValidationError) Key

Key function returns key value.

func (GetSettingsRequestValidationError) Reason

Reason function returns reason value.

type GetSettingsResponse

type GetSettingsResponse struct {
	Settings []*Settings `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSettingsResponse) Descriptor deprecated

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

Deprecated: Use GetSettingsResponse.ProtoReflect.Descriptor instead.

func (*GetSettingsResponse) GetSettings

func (x *GetSettingsResponse) GetSettings() []*Settings

func (*GetSettingsResponse) ProtoMessage

func (*GetSettingsResponse) ProtoMessage()

func (*GetSettingsResponse) ProtoReflect

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

func (*GetSettingsResponse) Reset

func (x *GetSettingsResponse) Reset()

func (*GetSettingsResponse) String

func (x *GetSettingsResponse) String() string

func (*GetSettingsResponse) Validate

func (m *GetSettingsResponse) Validate() error

Validate checks the field values on GetSettingsResponse 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 (*GetSettingsResponse) ValidateAll

func (m *GetSettingsResponse) ValidateAll() error

ValidateAll checks the field values on GetSettingsResponse 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 GetSettingsResponseMultiError, or nil if none found.

type GetSettingsResponseMultiError

type GetSettingsResponseMultiError []error

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

func (GetSettingsResponseMultiError) AllErrors

func (m GetSettingsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSettingsResponseMultiError) Error

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

type GetSettingsResponseValidationError

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

GetSettingsResponseValidationError is the validation error returned by GetSettingsResponse.Validate if the designated constraints aren't met.

func (GetSettingsResponseValidationError) Cause

Cause function returns cause value.

func (GetSettingsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetSettingsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetSettingsResponseValidationError) Field

Field function returns field value.

func (GetSettingsResponseValidationError) Key

Key function returns key value.

func (GetSettingsResponseValidationError) Reason

Reason function returns reason value.

type Settings

type Settings struct {
	Key   string             `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *data.DynamicValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Settings) Descriptor deprecated

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

Deprecated: Use Settings.ProtoReflect.Descriptor instead.

func (*Settings) GetKey

func (x *Settings) GetKey() string

func (*Settings) GetValue

func (x *Settings) GetValue() *data.DynamicValue

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) ProtoReflect

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

func (*Settings) Reset

func (x *Settings) Reset()

func (*Settings) String

func (x *Settings) String() string

func (*Settings) Validate

func (m *Settings) Validate() error

Validate checks the field values on Settings 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 (*Settings) ValidateAll

func (m *Settings) ValidateAll() error

ValidateAll checks the field values on Settings 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 SettingsMultiError, or nil if none found.

type SettingsFilter

type SettingsFilter struct {
	Key *query.StringFilterOperation `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*SettingsFilter) Descriptor deprecated

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

Deprecated: Use SettingsFilter.ProtoReflect.Descriptor instead.

func (*SettingsFilter) GetKey

func (*SettingsFilter) ProtoMessage

func (*SettingsFilter) ProtoMessage()

func (*SettingsFilter) ProtoReflect

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

func (*SettingsFilter) Reset

func (x *SettingsFilter) Reset()

func (*SettingsFilter) String

func (x *SettingsFilter) String() string

func (*SettingsFilter) Validate

func (m *SettingsFilter) Validate() error

Validate checks the field values on SettingsFilter 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 (*SettingsFilter) ValidateAll

func (m *SettingsFilter) ValidateAll() error

ValidateAll checks the field values on SettingsFilter 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 SettingsFilterMultiError, or nil if none found.

type SettingsFilterMultiError

type SettingsFilterMultiError []error

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

func (SettingsFilterMultiError) AllErrors

func (m SettingsFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SettingsFilterMultiError) Error

func (m SettingsFilterMultiError) Error() string

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

type SettingsFilterValidationError

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

SettingsFilterValidationError is the validation error returned by SettingsFilter.Validate if the designated constraints aren't met.

func (SettingsFilterValidationError) Cause

Cause function returns cause value.

func (SettingsFilterValidationError) Error

Error satisfies the builtin error interface

func (SettingsFilterValidationError) ErrorName

func (e SettingsFilterValidationError) ErrorName() string

ErrorName returns error name.

func (SettingsFilterValidationError) Field

Field function returns field value.

func (SettingsFilterValidationError) Key

Key function returns key value.

func (SettingsFilterValidationError) Reason

Reason function returns reason value.

type SettingsMultiError

type SettingsMultiError []error

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

func (SettingsMultiError) AllErrors

func (m SettingsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SettingsMultiError) Error

func (m SettingsMultiError) Error() string

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

type SettingsValidationError

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

SettingsValidationError is the validation error returned by Settings.Validate if the designated constraints aren't met.

func (SettingsValidationError) Cause

func (e SettingsValidationError) Cause() error

Cause function returns cause value.

func (SettingsValidationError) Error

func (e SettingsValidationError) Error() string

Error satisfies the builtin error interface

func (SettingsValidationError) ErrorName

func (e SettingsValidationError) ErrorName() string

ErrorName returns error name.

func (SettingsValidationError) Field

func (e SettingsValidationError) Field() string

Field function returns field value.

func (SettingsValidationError) Key

func (e SettingsValidationError) Key() bool

Key function returns key value.

func (SettingsValidationError) Reason

func (e SettingsValidationError) Reason() string

Reason function returns reason value.

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer should be embedded to have forward compatible implementations.

func (UnimplementedAccountServer) CreateAddresses

func (UnimplementedAccountServer) DeleteAddresses

func (UnimplementedAccountServer) GetAddresses

func (UnimplementedAccountServer) GetProfile

func (UnimplementedAccountServer) GetSettings

func (UnimplementedAccountServer) UpdateAddresses

func (UnimplementedAccountServer) UpdateProfile

func (UnimplementedAccountServer) UpdateSettings

type UnsafeAccountServer

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

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

type UpdateAddress

type UpdateAddress struct {
	Id       string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Phone    string           `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Usage    string           `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"`
	Prefer   bool             `protobuf:"varint,5,opt,name=prefer,proto3" json:"prefer,omitempty"`
	Address  *data.Address    `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	Metadata *structpb.Struct `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAddress) Descriptor deprecated

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

Deprecated: Use UpdateAddress.ProtoReflect.Descriptor instead.

func (*UpdateAddress) GetAddress

func (x *UpdateAddress) GetAddress() *data.Address

func (*UpdateAddress) GetId

func (x *UpdateAddress) GetId() string

func (*UpdateAddress) GetMetadata

func (x *UpdateAddress) GetMetadata() *structpb.Struct

func (*UpdateAddress) GetPhone

func (x *UpdateAddress) GetPhone() string

func (*UpdateAddress) GetPrefer

func (x *UpdateAddress) GetPrefer() bool

func (*UpdateAddress) GetUsage

func (x *UpdateAddress) GetUsage() string

func (*UpdateAddress) ProtoMessage

func (*UpdateAddress) ProtoMessage()

func (*UpdateAddress) ProtoReflect

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

func (*UpdateAddress) Reset

func (x *UpdateAddress) Reset()

func (*UpdateAddress) String

func (x *UpdateAddress) String() string

func (*UpdateAddress) Validate

func (m *UpdateAddress) Validate() error

Validate checks the field values on UpdateAddress 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 (*UpdateAddress) ValidateAll

func (m *UpdateAddress) ValidateAll() error

ValidateAll checks the field values on UpdateAddress 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 UpdateAddressMultiError, or nil if none found.

type UpdateAddressMultiError

type UpdateAddressMultiError []error

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

func (UpdateAddressMultiError) AllErrors

func (m UpdateAddressMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateAddressMultiError) Error

func (m UpdateAddressMultiError) Error() string

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

type UpdateAddressValidationError

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

UpdateAddressValidationError is the validation error returned by UpdateAddress.Validate if the designated constraints aren't met.

func (UpdateAddressValidationError) Cause

Cause function returns cause value.

func (UpdateAddressValidationError) Error

Error satisfies the builtin error interface

func (UpdateAddressValidationError) ErrorName

func (e UpdateAddressValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateAddressValidationError) Field

Field function returns field value.

func (UpdateAddressValidationError) Key

Key function returns key value.

func (UpdateAddressValidationError) Reason

Reason function returns reason value.

type UpdateAddressesReply

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

func (*UpdateAddressesReply) Descriptor deprecated

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

Deprecated: Use UpdateAddressesReply.ProtoReflect.Descriptor instead.

func (*UpdateAddressesReply) ProtoMessage

func (*UpdateAddressesReply) ProtoMessage()

func (*UpdateAddressesReply) ProtoReflect

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

func (*UpdateAddressesReply) Reset

func (x *UpdateAddressesReply) Reset()

func (*UpdateAddressesReply) String

func (x *UpdateAddressesReply) String() string

func (*UpdateAddressesReply) Validate

func (m *UpdateAddressesReply) Validate() error

Validate checks the field values on UpdateAddressesReply 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 (*UpdateAddressesReply) ValidateAll

func (m *UpdateAddressesReply) ValidateAll() error

ValidateAll checks the field values on UpdateAddressesReply 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 UpdateAddressesReplyMultiError, or nil if none found.

type UpdateAddressesReplyMultiError

type UpdateAddressesReplyMultiError []error

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

func (UpdateAddressesReplyMultiError) AllErrors

func (m UpdateAddressesReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateAddressesReplyMultiError) Error

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

type UpdateAddressesReplyValidationError

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

UpdateAddressesReplyValidationError is the validation error returned by UpdateAddressesReply.Validate if the designated constraints aren't met.

func (UpdateAddressesReplyValidationError) Cause

Cause function returns cause value.

func (UpdateAddressesReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateAddressesReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateAddressesReplyValidationError) Field

Field function returns field value.

func (UpdateAddressesReplyValidationError) Key

Key function returns key value.

func (UpdateAddressesReplyValidationError) Reason

Reason function returns reason value.

type UpdateAddressesRequest

type UpdateAddressesRequest struct {
	Address *UpdateAddress `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAddressesRequest) Descriptor deprecated

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

Deprecated: Use UpdateAddressesRequest.ProtoReflect.Descriptor instead.

func (*UpdateAddressesRequest) GetAddress

func (x *UpdateAddressesRequest) GetAddress() *UpdateAddress

func (*UpdateAddressesRequest) ProtoMessage

func (*UpdateAddressesRequest) ProtoMessage()

func (*UpdateAddressesRequest) ProtoReflect

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

func (*UpdateAddressesRequest) Reset

func (x *UpdateAddressesRequest) Reset()

func (*UpdateAddressesRequest) String

func (x *UpdateAddressesRequest) String() string

func (*UpdateAddressesRequest) Validate

func (m *UpdateAddressesRequest) Validate() error

Validate checks the field values on UpdateAddressesRequest 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 (*UpdateAddressesRequest) ValidateAll

func (m *UpdateAddressesRequest) ValidateAll() error

ValidateAll checks the field values on UpdateAddressesRequest 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 UpdateAddressesRequestMultiError, or nil if none found.

type UpdateAddressesRequestMultiError

type UpdateAddressesRequestMultiError []error

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

func (UpdateAddressesRequestMultiError) AllErrors

func (m UpdateAddressesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateAddressesRequestMultiError) Error

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

type UpdateAddressesRequestValidationError

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

UpdateAddressesRequestValidationError is the validation error returned by UpdateAddressesRequest.Validate if the designated constraints aren't met.

func (UpdateAddressesRequestValidationError) Cause

Cause function returns cause value.

func (UpdateAddressesRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateAddressesRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateAddressesRequestValidationError) Field

Field function returns field value.

func (UpdateAddressesRequestValidationError) Key

Key function returns key value.

func (UpdateAddressesRequestValidationError) Reason

Reason function returns reason value.

type UpdateProfileRequest

type UpdateProfileRequest struct {
	Username *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
	Name     *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Gender   v1.Gender               `protobuf:"varint,7,opt,name=gender,proto3,enum=user.api.user.v1.Gender" json:"gender,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileRequest) Descriptor deprecated

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

Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.

func (*UpdateProfileRequest) GetGender

func (x *UpdateProfileRequest) GetGender() v1.Gender

func (*UpdateProfileRequest) GetName

func (*UpdateProfileRequest) GetUsername

func (x *UpdateProfileRequest) GetUsername() *wrapperspb.StringValue

func (*UpdateProfileRequest) ProtoMessage

func (*UpdateProfileRequest) ProtoMessage()

func (*UpdateProfileRequest) ProtoReflect

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

func (*UpdateProfileRequest) Reset

func (x *UpdateProfileRequest) Reset()

func (*UpdateProfileRequest) String

func (x *UpdateProfileRequest) String() string

func (*UpdateProfileRequest) Validate

func (m *UpdateProfileRequest) Validate() error

Validate checks the field values on UpdateProfileRequest 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 (*UpdateProfileRequest) ValidateAll

func (m *UpdateProfileRequest) ValidateAll() error

ValidateAll checks the field values on UpdateProfileRequest 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 UpdateProfileRequestMultiError, or nil if none found.

type UpdateProfileRequestMultiError

type UpdateProfileRequestMultiError []error

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

func (UpdateProfileRequestMultiError) AllErrors

func (m UpdateProfileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateProfileRequestMultiError) Error

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

type UpdateProfileRequestValidationError

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

UpdateProfileRequestValidationError is the validation error returned by UpdateProfileRequest.Validate if the designated constraints aren't met.

func (UpdateProfileRequestValidationError) Cause

Cause function returns cause value.

func (UpdateProfileRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateProfileRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateProfileRequestValidationError) Field

Field function returns field value.

func (UpdateProfileRequestValidationError) Key

Key function returns key value.

func (UpdateProfileRequestValidationError) Reason

Reason function returns reason value.

type UpdateProfileResponse

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

func (*UpdateProfileResponse) Descriptor deprecated

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

Deprecated: Use UpdateProfileResponse.ProtoReflect.Descriptor instead.

func (*UpdateProfileResponse) ProtoMessage

func (*UpdateProfileResponse) ProtoMessage()

func (*UpdateProfileResponse) ProtoReflect

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

func (*UpdateProfileResponse) Reset

func (x *UpdateProfileResponse) Reset()

func (*UpdateProfileResponse) String

func (x *UpdateProfileResponse) String() string

func (*UpdateProfileResponse) Validate

func (m *UpdateProfileResponse) Validate() error

Validate checks the field values on UpdateProfileResponse 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 (*UpdateProfileResponse) ValidateAll

func (m *UpdateProfileResponse) ValidateAll() error

ValidateAll checks the field values on UpdateProfileResponse 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 UpdateProfileResponseMultiError, or nil if none found.

type UpdateProfileResponseMultiError

type UpdateProfileResponseMultiError []error

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

func (UpdateProfileResponseMultiError) AllErrors

func (m UpdateProfileResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateProfileResponseMultiError) Error

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

type UpdateProfileResponseValidationError

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

UpdateProfileResponseValidationError is the validation error returned by UpdateProfileResponse.Validate if the designated constraints aren't met.

func (UpdateProfileResponseValidationError) Cause

Cause function returns cause value.

func (UpdateProfileResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateProfileResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateProfileResponseValidationError) Field

Field function returns field value.

func (UpdateProfileResponseValidationError) Key

Key function returns key value.

func (UpdateProfileResponseValidationError) Reason

Reason function returns reason value.

type UpdateSettings

type UpdateSettings struct {
	Key    string             `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value  *data.DynamicValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Reset_ bool               `protobuf:"varint,3,opt,name=reset,proto3" json:"reset,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSettings) Descriptor deprecated

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

Deprecated: Use UpdateSettings.ProtoReflect.Descriptor instead.

func (*UpdateSettings) GetKey

func (x *UpdateSettings) GetKey() string

func (*UpdateSettings) GetReset_

func (x *UpdateSettings) GetReset_() bool

func (*UpdateSettings) GetValue

func (x *UpdateSettings) GetValue() *data.DynamicValue

func (*UpdateSettings) ProtoMessage

func (*UpdateSettings) ProtoMessage()

func (*UpdateSettings) ProtoReflect

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

func (*UpdateSettings) Reset

func (x *UpdateSettings) Reset()

func (*UpdateSettings) String

func (x *UpdateSettings) String() string

func (*UpdateSettings) Validate

func (m *UpdateSettings) Validate() error

Validate checks the field values on UpdateSettings 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 (*UpdateSettings) ValidateAll

func (m *UpdateSettings) ValidateAll() error

ValidateAll checks the field values on UpdateSettings 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 UpdateSettingsMultiError, or nil if none found.

type UpdateSettingsMultiError

type UpdateSettingsMultiError []error

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

func (UpdateSettingsMultiError) AllErrors

func (m UpdateSettingsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateSettingsMultiError) Error

func (m UpdateSettingsMultiError) Error() string

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

type UpdateSettingsRequest

type UpdateSettingsRequest struct {
	Settings []*UpdateSettings `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSettingsRequest) Descriptor deprecated

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

Deprecated: Use UpdateSettingsRequest.ProtoReflect.Descriptor instead.

func (*UpdateSettingsRequest) GetSettings

func (x *UpdateSettingsRequest) GetSettings() []*UpdateSettings

func (*UpdateSettingsRequest) ProtoMessage

func (*UpdateSettingsRequest) ProtoMessage()

func (*UpdateSettingsRequest) ProtoReflect

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

func (*UpdateSettingsRequest) Reset

func (x *UpdateSettingsRequest) Reset()

func (*UpdateSettingsRequest) String

func (x *UpdateSettingsRequest) String() string

func (*UpdateSettingsRequest) Validate

func (m *UpdateSettingsRequest) Validate() error

Validate checks the field values on UpdateSettingsRequest 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 (*UpdateSettingsRequest) ValidateAll

func (m *UpdateSettingsRequest) ValidateAll() error

ValidateAll checks the field values on UpdateSettingsRequest 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 UpdateSettingsRequestMultiError, or nil if none found.

type UpdateSettingsRequestMultiError

type UpdateSettingsRequestMultiError []error

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

func (UpdateSettingsRequestMultiError) AllErrors

func (m UpdateSettingsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateSettingsRequestMultiError) Error

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

type UpdateSettingsRequestValidationError

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

UpdateSettingsRequestValidationError is the validation error returned by UpdateSettingsRequest.Validate if the designated constraints aren't met.

func (UpdateSettingsRequestValidationError) Cause

Cause function returns cause value.

func (UpdateSettingsRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateSettingsRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateSettingsRequestValidationError) Field

Field function returns field value.

func (UpdateSettingsRequestValidationError) Key

Key function returns key value.

func (UpdateSettingsRequestValidationError) Reason

Reason function returns reason value.

type UpdateSettingsResponse

type UpdateSettingsResponse struct {
	Settings []*Settings `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSettingsResponse) Descriptor deprecated

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

Deprecated: Use UpdateSettingsResponse.ProtoReflect.Descriptor instead.

func (*UpdateSettingsResponse) GetSettings

func (x *UpdateSettingsResponse) GetSettings() []*Settings

func (*UpdateSettingsResponse) ProtoMessage

func (*UpdateSettingsResponse) ProtoMessage()

func (*UpdateSettingsResponse) ProtoReflect

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

func (*UpdateSettingsResponse) Reset

func (x *UpdateSettingsResponse) Reset()

func (*UpdateSettingsResponse) String

func (x *UpdateSettingsResponse) String() string

func (*UpdateSettingsResponse) Validate

func (m *UpdateSettingsResponse) Validate() error

Validate checks the field values on UpdateSettingsResponse 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 (*UpdateSettingsResponse) ValidateAll

func (m *UpdateSettingsResponse) ValidateAll() error

ValidateAll checks the field values on UpdateSettingsResponse 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 UpdateSettingsResponseMultiError, or nil if none found.

type UpdateSettingsResponseMultiError

type UpdateSettingsResponseMultiError []error

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

func (UpdateSettingsResponseMultiError) AllErrors

func (m UpdateSettingsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateSettingsResponseMultiError) Error

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

type UpdateSettingsResponseValidationError

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

UpdateSettingsResponseValidationError is the validation error returned by UpdateSettingsResponse.Validate if the designated constraints aren't met.

func (UpdateSettingsResponseValidationError) Cause

Cause function returns cause value.

func (UpdateSettingsResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateSettingsResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateSettingsResponseValidationError) Field

Field function returns field value.

func (UpdateSettingsResponseValidationError) Key

Key function returns key value.

func (UpdateSettingsResponseValidationError) Reason

Reason function returns reason value.

type UpdateSettingsValidationError

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

UpdateSettingsValidationError is the validation error returned by UpdateSettings.Validate if the designated constraints aren't met.

func (UpdateSettingsValidationError) Cause

Cause function returns cause value.

func (UpdateSettingsValidationError) Error

Error satisfies the builtin error interface

func (UpdateSettingsValidationError) ErrorName

func (e UpdateSettingsValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateSettingsValidationError) Field

Field function returns field value.

func (UpdateSettingsValidationError) Key

Key function returns key value.

func (UpdateSettingsValidationError) Reason

Reason function returns reason value.

type UserAddress

type UserAddress struct {
	Id       string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Phone    string           `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Usage    string           `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"`
	Prefer   bool             `protobuf:"varint,5,opt,name=prefer,proto3" json:"prefer,omitempty"`
	Address  *data.Address    `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	Metadata *structpb.Struct `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*UserAddress) Descriptor deprecated

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

Deprecated: Use UserAddress.ProtoReflect.Descriptor instead.

func (*UserAddress) GetAddress

func (x *UserAddress) GetAddress() *data.Address

func (*UserAddress) GetId

func (x *UserAddress) GetId() string

func (*UserAddress) GetMetadata

func (x *UserAddress) GetMetadata() *structpb.Struct

func (*UserAddress) GetPhone

func (x *UserAddress) GetPhone() string

func (*UserAddress) GetPrefer

func (x *UserAddress) GetPrefer() bool

func (*UserAddress) GetUsage

func (x *UserAddress) GetUsage() string

func (*UserAddress) ProtoMessage

func (*UserAddress) ProtoMessage()

func (*UserAddress) ProtoReflect

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

func (*UserAddress) Reset

func (x *UserAddress) Reset()

func (*UserAddress) String

func (x *UserAddress) String() string

func (*UserAddress) Validate

func (m *UserAddress) Validate() error

Validate checks the field values on UserAddress 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 (*UserAddress) ValidateAll

func (m *UserAddress) ValidateAll() error

ValidateAll checks the field values on UserAddress 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 UserAddressMultiError, or nil if none found.

type UserAddressMultiError

type UserAddressMultiError []error

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

func (UserAddressMultiError) AllErrors

func (m UserAddressMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserAddressMultiError) Error

func (m UserAddressMultiError) Error() string

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

type UserAddressValidationError

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

UserAddressValidationError is the validation error returned by UserAddress.Validate if the designated constraints aren't met.

func (UserAddressValidationError) Cause

Cause function returns cause value.

func (UserAddressValidationError) Error

Error satisfies the builtin error interface

func (UserAddressValidationError) ErrorName

func (e UserAddressValidationError) ErrorName() string

ErrorName returns error name.

func (UserAddressValidationError) Field

Field function returns field value.

func (UserAddressValidationError) Key

Key function returns key value.

func (UserAddressValidationError) Reason

Reason function returns reason value.

type UserTenant

type UserTenant struct {
	UserId   string          `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TenantId string          `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Tenant   *v12.TenantInfo `protobuf:"bytes,3,opt,name=tenant,proto3" json:"tenant,omitempty"`
	IsHost   bool            `protobuf:"varint,4,opt,name=is_host,json=isHost,proto3" json:"is_host,omitempty"`
	// contains filtered or unexported fields
}

func (*UserTenant) Descriptor deprecated

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

Deprecated: Use UserTenant.ProtoReflect.Descriptor instead.

func (*UserTenant) GetIsHost

func (x *UserTenant) GetIsHost() bool

func (*UserTenant) GetTenant

func (x *UserTenant) GetTenant() *v12.TenantInfo

func (*UserTenant) GetTenantId

func (x *UserTenant) GetTenantId() string

func (*UserTenant) GetUserId

func (x *UserTenant) GetUserId() string

func (*UserTenant) ProtoMessage

func (*UserTenant) ProtoMessage()

func (*UserTenant) ProtoReflect

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

func (*UserTenant) Reset

func (x *UserTenant) Reset()

func (*UserTenant) String

func (x *UserTenant) String() string

func (*UserTenant) Validate

func (m *UserTenant) Validate() error

Validate checks the field values on UserTenant 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 (*UserTenant) ValidateAll

func (m *UserTenant) ValidateAll() error

ValidateAll checks the field values on UserTenant 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 UserTenantMultiError, or nil if none found.

type UserTenantMultiError

type UserTenantMultiError []error

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

func (UserTenantMultiError) AllErrors

func (m UserTenantMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserTenantMultiError) Error

func (m UserTenantMultiError) Error() string

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

type UserTenantValidationError

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

UserTenantValidationError is the validation error returned by UserTenant.Validate if the designated constraints aren't met.

func (UserTenantValidationError) Cause

func (e UserTenantValidationError) Cause() error

Cause function returns cause value.

func (UserTenantValidationError) Error

Error satisfies the builtin error interface

func (UserTenantValidationError) ErrorName

func (e UserTenantValidationError) ErrorName() string

ErrorName returns error name.

func (UserTenantValidationError) Field

Field function returns field value.

func (UserTenantValidationError) Key

Key function returns key value.

func (UserTenantValidationError) Reason

func (e UserTenantValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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