Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)
- type GetProfileRequest
- func (*GetProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileRequest) GetAuth() *v1.Auth
- func (x *GetProfileRequest) GetUserId() *v1.UserId
- func (*GetProfileRequest) ProtoMessage()
- func (x *GetProfileRequest) ProtoReflect() protoreflect.Message
- func (x *GetProfileRequest) Reset()
- func (x *GetProfileRequest) String() string
- func (m *GetProfileRequest) Validate() error
- func (m *GetProfileRequest) ValidateAll() error
- type GetProfileRequestMultiError
- type GetProfileRequestValidationError
- func (e GetProfileRequestValidationError) Cause() error
- func (e GetProfileRequestValidationError) Error() string
- func (e GetProfileRequestValidationError) ErrorName() string
- func (e GetProfileRequestValidationError) Field() string
- func (e GetProfileRequestValidationError) Key() bool
- func (e GetProfileRequestValidationError) Reason() string
- type GetProfileResponse
- func (*GetProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileResponse) GetResult() GetProfileResponse_Result
- func (x *GetProfileResponse) GetUserProfile() *UserProfile
- func (*GetProfileResponse) ProtoMessage()
- func (x *GetProfileResponse) ProtoReflect() protoreflect.Message
- func (x *GetProfileResponse) Reset()
- func (x *GetProfileResponse) String() string
- func (m *GetProfileResponse) Validate() error
- func (m *GetProfileResponse) ValidateAll() error
- type GetProfileResponseMultiError
- type GetProfileResponseValidationError
- func (e GetProfileResponseValidationError) Cause() error
- func (e GetProfileResponseValidationError) Error() string
- func (e GetProfileResponseValidationError) ErrorName() string
- func (e GetProfileResponseValidationError) Field() string
- func (e GetProfileResponseValidationError) Key() bool
- func (e GetProfileResponseValidationError) Reason() string
- type GetProfileResponse_Result
- func (GetProfileResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetProfileResponse_Result) Enum() *GetProfileResponse_Result
- func (GetProfileResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetProfileResponse_Result) Number() protoreflect.EnumNumber
- func (x GetProfileResponse_Result) String() string
- func (GetProfileResponse_Result) Type() protoreflect.EnumType
- type LinkSocialAccountRequest
- func (*LinkSocialAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LinkSocialAccountRequest) GetAuth() *v1.Auth
- func (x *LinkSocialAccountRequest) GetLinkingToken() *LinkSocialAccountRequest_LinkingToken
- func (*LinkSocialAccountRequest) ProtoMessage()
- func (x *LinkSocialAccountRequest) ProtoReflect() protoreflect.Message
- func (x *LinkSocialAccountRequest) Reset()
- func (x *LinkSocialAccountRequest) String() string
- func (m *LinkSocialAccountRequest) Validate() error
- func (m *LinkSocialAccountRequest) ValidateAll() error
- type LinkSocialAccountRequestMultiError
- type LinkSocialAccountRequestValidationError
- func (e LinkSocialAccountRequestValidationError) Cause() error
- func (e LinkSocialAccountRequestValidationError) Error() string
- func (e LinkSocialAccountRequestValidationError) ErrorName() string
- func (e LinkSocialAccountRequestValidationError) Field() string
- func (e LinkSocialAccountRequestValidationError) Key() bool
- func (e LinkSocialAccountRequestValidationError) Reason() string
- type LinkSocialAccountRequest_LinkingToken
- func (*LinkSocialAccountRequest_LinkingToken) Descriptor() ([]byte, []int)deprecated
- func (m *LinkSocialAccountRequest_LinkingToken) GetType() isLinkSocialAccountRequest_LinkingToken_Type
- func (x *LinkSocialAccountRequest_LinkingToken) GetX() *LinkSocialAccountRequest_LinkingToken_XLinkingToken
- func (*LinkSocialAccountRequest_LinkingToken) ProtoMessage()
- func (x *LinkSocialAccountRequest_LinkingToken) ProtoReflect() protoreflect.Message
- func (x *LinkSocialAccountRequest_LinkingToken) Reset()
- func (x *LinkSocialAccountRequest_LinkingToken) String() string
- func (m *LinkSocialAccountRequest_LinkingToken) Validate() error
- func (m *LinkSocialAccountRequest_LinkingToken) ValidateAll() error
- type LinkSocialAccountRequest_LinkingTokenMultiError
- type LinkSocialAccountRequest_LinkingTokenValidationError
- func (e LinkSocialAccountRequest_LinkingTokenValidationError) Cause() error
- func (e LinkSocialAccountRequest_LinkingTokenValidationError) Error() string
- func (e LinkSocialAccountRequest_LinkingTokenValidationError) ErrorName() string
- func (e LinkSocialAccountRequest_LinkingTokenValidationError) Field() string
- func (e LinkSocialAccountRequest_LinkingTokenValidationError) Key() bool
- func (e LinkSocialAccountRequest_LinkingTokenValidationError) Reason() string
- type LinkSocialAccountRequest_LinkingToken_X
- type LinkSocialAccountRequest_LinkingToken_XLinkingToken
- func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) Descriptor() ([]byte, []int)deprecated
- func (x *LinkSocialAccountRequest_LinkingToken_XLinkingToken) GetAccessToken() string
- func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) ProtoMessage()
- func (x *LinkSocialAccountRequest_LinkingToken_XLinkingToken) ProtoReflect() protoreflect.Message
- func (x *LinkSocialAccountRequest_LinkingToken_XLinkingToken) Reset()
- func (x *LinkSocialAccountRequest_LinkingToken_XLinkingToken) String() string
- func (m *LinkSocialAccountRequest_LinkingToken_XLinkingToken) Validate() error
- func (m *LinkSocialAccountRequest_LinkingToken_XLinkingToken) ValidateAll() error
- type LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError
- type LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError
- func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Cause() error
- func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Error() string
- func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) ErrorName() string
- func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Field() string
- func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Key() bool
- func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Reason() string
- type LinkSocialAccountResponse
- func (*LinkSocialAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LinkSocialAccountResponse) GetResult() LinkSocialAccountResponse_Result
- func (x *LinkSocialAccountResponse) GetSocialProfile() *SocialProfile
- func (*LinkSocialAccountResponse) ProtoMessage()
- func (x *LinkSocialAccountResponse) ProtoReflect() protoreflect.Message
- func (x *LinkSocialAccountResponse) Reset()
- func (x *LinkSocialAccountResponse) String() string
- func (m *LinkSocialAccountResponse) Validate() error
- func (m *LinkSocialAccountResponse) ValidateAll() error
- type LinkSocialAccountResponseMultiError
- type LinkSocialAccountResponseValidationError
- func (e LinkSocialAccountResponseValidationError) Cause() error
- func (e LinkSocialAccountResponseValidationError) Error() string
- func (e LinkSocialAccountResponseValidationError) ErrorName() string
- func (e LinkSocialAccountResponseValidationError) Field() string
- func (e LinkSocialAccountResponseValidationError) Key() bool
- func (e LinkSocialAccountResponseValidationError) Reason() string
- type LinkSocialAccountResponse_Result
- func (LinkSocialAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x LinkSocialAccountResponse_Result) Enum() *LinkSocialAccountResponse_Result
- func (LinkSocialAccountResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x LinkSocialAccountResponse_Result) Number() protoreflect.EnumNumber
- func (x LinkSocialAccountResponse_Result) String() string
- func (LinkSocialAccountResponse_Result) Type() protoreflect.EnumType
- type ProfileClient
- type ProfileServer
- type SetDisplayNameRequest
- func (*SetDisplayNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetDisplayNameRequest) GetAuth() *v1.Auth
- func (x *SetDisplayNameRequest) GetDisplayName() string
- func (*SetDisplayNameRequest) ProtoMessage()
- func (x *SetDisplayNameRequest) ProtoReflect() protoreflect.Message
- func (x *SetDisplayNameRequest) Reset()
- func (x *SetDisplayNameRequest) String() string
- func (m *SetDisplayNameRequest) Validate() error
- func (m *SetDisplayNameRequest) ValidateAll() error
- type SetDisplayNameRequestMultiError
- type SetDisplayNameRequestValidationError
- func (e SetDisplayNameRequestValidationError) Cause() error
- func (e SetDisplayNameRequestValidationError) Error() string
- func (e SetDisplayNameRequestValidationError) ErrorName() string
- func (e SetDisplayNameRequestValidationError) Field() string
- func (e SetDisplayNameRequestValidationError) Key() bool
- func (e SetDisplayNameRequestValidationError) Reason() string
- type SetDisplayNameResponse
- func (*SetDisplayNameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetDisplayNameResponse) GetResult() SetDisplayNameResponse_Result
- func (*SetDisplayNameResponse) ProtoMessage()
- func (x *SetDisplayNameResponse) ProtoReflect() protoreflect.Message
- func (x *SetDisplayNameResponse) Reset()
- func (x *SetDisplayNameResponse) String() string
- func (m *SetDisplayNameResponse) Validate() error
- func (m *SetDisplayNameResponse) ValidateAll() error
- type SetDisplayNameResponseMultiError
- type SetDisplayNameResponseValidationError
- func (e SetDisplayNameResponseValidationError) Cause() error
- func (e SetDisplayNameResponseValidationError) Error() string
- func (e SetDisplayNameResponseValidationError) ErrorName() string
- func (e SetDisplayNameResponseValidationError) Field() string
- func (e SetDisplayNameResponseValidationError) Key() bool
- func (e SetDisplayNameResponseValidationError) Reason() string
- type SetDisplayNameResponse_Result
- func (SetDisplayNameResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x SetDisplayNameResponse_Result) Enum() *SetDisplayNameResponse_Result
- func (SetDisplayNameResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x SetDisplayNameResponse_Result) Number() protoreflect.EnumNumber
- func (x SetDisplayNameResponse_Result) String() string
- func (SetDisplayNameResponse_Result) Type() protoreflect.EnumType
- type SocialProfile
- func (*SocialProfile) Descriptor() ([]byte, []int)deprecated
- func (m *SocialProfile) GetType() isSocialProfile_Type
- func (x *SocialProfile) GetX() *XProfile
- func (*SocialProfile) ProtoMessage()
- func (x *SocialProfile) ProtoReflect() protoreflect.Message
- func (x *SocialProfile) Reset()
- func (x *SocialProfile) String() string
- func (m *SocialProfile) Validate() error
- func (m *SocialProfile) ValidateAll() error
- type SocialProfileMultiError
- type SocialProfileValidationError
- func (e SocialProfileValidationError) Cause() error
- func (e SocialProfileValidationError) Error() string
- func (e SocialProfileValidationError) ErrorName() string
- func (e SocialProfileValidationError) Field() string
- func (e SocialProfileValidationError) Key() bool
- func (e SocialProfileValidationError) Reason() string
- type SocialProfile_X
- type UnimplementedProfileServer
- func (UnimplementedProfileServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
- func (UnimplementedProfileServer) LinkSocialAccount(context.Context, *LinkSocialAccountRequest) (*LinkSocialAccountResponse, error)
- func (UnimplementedProfileServer) SetDisplayName(context.Context, *SetDisplayNameRequest) (*SetDisplayNameResponse, error)
- func (UnimplementedProfileServer) UnlinkSocialAccount(context.Context, *UnlinkSocialAccountRequest) (*UnlinkSocialAccountResponse, error)
- type UnlinkSocialAccountRequest
- func (*UnlinkSocialAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlinkSocialAccountRequest) GetAuth() *v1.Auth
- func (m *UnlinkSocialAccountRequest) GetSocialIdentifier() isUnlinkSocialAccountRequest_SocialIdentifier
- func (x *UnlinkSocialAccountRequest) GetXUserId() string
- func (*UnlinkSocialAccountRequest) ProtoMessage()
- func (x *UnlinkSocialAccountRequest) ProtoReflect() protoreflect.Message
- func (x *UnlinkSocialAccountRequest) Reset()
- func (x *UnlinkSocialAccountRequest) String() string
- func (m *UnlinkSocialAccountRequest) Validate() error
- func (m *UnlinkSocialAccountRequest) ValidateAll() error
- type UnlinkSocialAccountRequestMultiError
- type UnlinkSocialAccountRequestValidationError
- func (e UnlinkSocialAccountRequestValidationError) Cause() error
- func (e UnlinkSocialAccountRequestValidationError) Error() string
- func (e UnlinkSocialAccountRequestValidationError) ErrorName() string
- func (e UnlinkSocialAccountRequestValidationError) Field() string
- func (e UnlinkSocialAccountRequestValidationError) Key() bool
- func (e UnlinkSocialAccountRequestValidationError) Reason() string
- type UnlinkSocialAccountRequest_XUserId
- type UnlinkSocialAccountResponse
- func (*UnlinkSocialAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnlinkSocialAccountResponse) GetResult() UnlinkSocialAccountResponse_Result
- func (*UnlinkSocialAccountResponse) ProtoMessage()
- func (x *UnlinkSocialAccountResponse) ProtoReflect() protoreflect.Message
- func (x *UnlinkSocialAccountResponse) Reset()
- func (x *UnlinkSocialAccountResponse) String() string
- func (m *UnlinkSocialAccountResponse) Validate() error
- func (m *UnlinkSocialAccountResponse) ValidateAll() error
- type UnlinkSocialAccountResponseMultiError
- type UnlinkSocialAccountResponseValidationError
- func (e UnlinkSocialAccountResponseValidationError) Cause() error
- func (e UnlinkSocialAccountResponseValidationError) Error() string
- func (e UnlinkSocialAccountResponseValidationError) ErrorName() string
- func (e UnlinkSocialAccountResponseValidationError) Field() string
- func (e UnlinkSocialAccountResponseValidationError) Key() bool
- func (e UnlinkSocialAccountResponseValidationError) Reason() string
- type UnlinkSocialAccountResponse_Result
- func (UnlinkSocialAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x UnlinkSocialAccountResponse_Result) Enum() *UnlinkSocialAccountResponse_Result
- func (UnlinkSocialAccountResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x UnlinkSocialAccountResponse_Result) Number() protoreflect.EnumNumber
- func (x UnlinkSocialAccountResponse_Result) String() string
- func (UnlinkSocialAccountResponse_Result) Type() protoreflect.EnumType
- type UnsafeProfileServer
- type UserProfile
- func (*UserProfile) Descriptor() ([]byte, []int)deprecated
- func (x *UserProfile) GetDisplayName() string
- func (x *UserProfile) GetEmailAddress() *v11.EmailAddress
- func (x *UserProfile) GetPhoneNumber() *v1.PhoneNumber
- func (x *UserProfile) GetSocialProfiles() []*SocialProfile
- func (*UserProfile) ProtoMessage()
- func (x *UserProfile) ProtoReflect() protoreflect.Message
- func (x *UserProfile) Reset()
- func (x *UserProfile) String() string
- func (m *UserProfile) Validate() error
- func (m *UserProfile) ValidateAll() error
- type UserProfileMultiError
- type UserProfileValidationError
- func (e UserProfileValidationError) Cause() error
- func (e UserProfileValidationError) Error() string
- func (e UserProfileValidationError) ErrorName() string
- func (e UserProfileValidationError) Field() string
- func (e UserProfileValidationError) Key() bool
- func (e UserProfileValidationError) Reason() string
- type XProfile
- func (*XProfile) Descriptor() ([]byte, []int)deprecated
- func (x *XProfile) GetDescription() string
- func (x *XProfile) GetFollowerCount() uint32
- func (x *XProfile) GetId() string
- func (x *XProfile) GetName() string
- func (x *XProfile) GetProfilePicUrl() string
- func (x *XProfile) GetUsername() string
- func (x *XProfile) GetVerifiedType() XProfile_VerifiedType
- func (*XProfile) ProtoMessage()
- func (x *XProfile) ProtoReflect() protoreflect.Message
- func (x *XProfile) Reset()
- func (x *XProfile) String() string
- func (m *XProfile) Validate() error
- func (m *XProfile) ValidateAll() error
- type XProfileMultiError
- type XProfileValidationError
- type XProfile_VerifiedType
- func (XProfile_VerifiedType) Descriptor() protoreflect.EnumDescriptor
- func (x XProfile_VerifiedType) Enum() *XProfile_VerifiedType
- func (XProfile_VerifiedType) EnumDescriptor() ([]byte, []int)deprecated
- func (x XProfile_VerifiedType) Number() protoreflect.EnumNumber
- func (x XProfile_VerifiedType) String() string
- func (XProfile_VerifiedType) Type() protoreflect.EnumType
Constants ¶
const ( Profile_GetProfile_FullMethodName = "/flipcash.profile.v1.Profile/GetProfile" Profile_SetDisplayName_FullMethodName = "/flipcash.profile.v1.Profile/SetDisplayName" Profile_LinkSocialAccount_FullMethodName = "/flipcash.profile.v1.Profile/LinkSocialAccount" Profile_UnlinkSocialAccount_FullMethodName = "/flipcash.profile.v1.Profile/UnlinkSocialAccount" )
Variables ¶
var ( XProfile_VerifiedType_name = map[int32]string{ 0: "NONE", 1: "BLUE", 2: "BUSINESS", 3: "GOVERNMENT", } XProfile_VerifiedType_value = map[string]int32{ "NONE": 0, "BLUE": 1, "BUSINESS": 2, "GOVERNMENT": 3, } )
Enum value maps for XProfile_VerifiedType.
var ( GetProfileResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", } GetProfileResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, } )
Enum value maps for GetProfileResponse_Result.
var ( SetDisplayNameResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVALID_DISPLAY_NAME", 2: "DENIED", } SetDisplayNameResponse_Result_value = map[string]int32{ "OK": 0, "INVALID_DISPLAY_NAME": 1, "DENIED": 2, } )
Enum value maps for SetDisplayNameResponse_Result.
var ( LinkSocialAccountResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVALID_LINKING_TOKEN", 2: "EXISTING_LINK", 3: "DENIED", } LinkSocialAccountResponse_Result_value = map[string]int32{ "OK": 0, "INVALID_LINKING_TOKEN": 1, "EXISTING_LINK": 2, "DENIED": 3, } )
Enum value maps for LinkSocialAccountResponse_Result.
var ( UnlinkSocialAccountResponse_Result_name = map[int32]string{ 0: "OK", 1: "DENIED", } UnlinkSocialAccountResponse_Result_value = map[string]int32{ "OK": 0, "DENIED": 1, } )
Enum value maps for UnlinkSocialAccountResponse_Result.
var File_profile_v1_model_proto protoreflect.FileDescriptor
var File_profile_v1_profile_service_proto protoreflect.FileDescriptor
var Profile_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flipcash.profile.v1.Profile", HandlerType: (*ProfileServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetProfile", Handler: _Profile_GetProfile_Handler, }, { MethodName: "SetDisplayName", Handler: _Profile_SetDisplayName_Handler, }, { MethodName: "LinkSocialAccount", Handler: _Profile_LinkSocialAccount_Handler, }, { MethodName: "UnlinkSocialAccount", Handler: _Profile_UnlinkSocialAccount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "profile/v1/profile_service.proto", }
Profile_ServiceDesc is the grpc.ServiceDesc for Profile service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProfileServer ¶
func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)
Types ¶
type GetProfileRequest ¶
type GetProfileRequest struct { UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Optional auth to retrieve private profile information for self Auth *v1.Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*GetProfileRequest) Descriptor
deprecated
func (*GetProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.
func (*GetProfileRequest) GetAuth ¶ added in v1.7.2
func (x *GetProfileRequest) GetAuth() *v1.Auth
func (*GetProfileRequest) GetUserId ¶
func (x *GetProfileRequest) GetUserId() *v1.UserId
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 ¶
func (m GetProfileRequestMultiError) Error() string
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 ¶
func (e GetProfileRequestValidationError) Cause() error
Cause function returns cause value.
func (GetProfileRequestValidationError) Error ¶
func (e GetProfileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetProfileRequestValidationError) ErrorName ¶
func (e GetProfileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetProfileRequestValidationError) Field ¶
func (e GetProfileRequestValidationError) Field() string
Field function returns field value.
func (GetProfileRequestValidationError) Key ¶
func (e GetProfileRequestValidationError) Key() bool
Key function returns key value.
func (GetProfileRequestValidationError) Reason ¶
func (e GetProfileRequestValidationError) Reason() string
Reason function returns reason value.
type GetProfileResponse ¶
type GetProfileResponse struct { Result GetProfileResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.profile.v1.GetProfileResponse_Result" json:"result,omitempty"` // UserProfile, if found. // // Some fields may or may not be set, depending on the scope of request // in the future. UserProfile *UserProfile `protobuf:"bytes,2,opt,name=user_profile,json=userProfile,proto3" json:"user_profile,omitempty"` // contains filtered or unexported fields }
func (*GetProfileResponse) Descriptor
deprecated
func (*GetProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.
func (*GetProfileResponse) GetResult ¶
func (x *GetProfileResponse) GetResult() GetProfileResponse_Result
func (*GetProfileResponse) GetUserProfile ¶
func (x *GetProfileResponse) GetUserProfile() *UserProfile
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 ¶
func (m GetProfileResponseMultiError) Error() string
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 ¶
func (e GetProfileResponseValidationError) Cause() error
Cause function returns cause value.
func (GetProfileResponseValidationError) Error ¶
func (e GetProfileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetProfileResponseValidationError) ErrorName ¶
func (e GetProfileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetProfileResponseValidationError) Field ¶
func (e GetProfileResponseValidationError) Field() string
Field function returns field value.
func (GetProfileResponseValidationError) Key ¶
func (e GetProfileResponseValidationError) Key() bool
Key function returns key value.
func (GetProfileResponseValidationError) Reason ¶
func (e GetProfileResponseValidationError) Reason() string
Reason function returns reason value.
type GetProfileResponse_Result ¶
type GetProfileResponse_Result int32
const ( GetProfileResponse_OK GetProfileResponse_Result = 0 GetProfileResponse_NOT_FOUND GetProfileResponse_Result = 1 )
func (GetProfileResponse_Result) Descriptor ¶
func (GetProfileResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetProfileResponse_Result) Enum ¶
func (x GetProfileResponse_Result) Enum() *GetProfileResponse_Result
func (GetProfileResponse_Result) EnumDescriptor
deprecated
func (GetProfileResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetProfileResponse_Result.Descriptor instead.
func (GetProfileResponse_Result) Number ¶
func (x GetProfileResponse_Result) Number() protoreflect.EnumNumber
func (GetProfileResponse_Result) String ¶
func (x GetProfileResponse_Result) String() string
func (GetProfileResponse_Result) Type ¶
func (GetProfileResponse_Result) Type() protoreflect.EnumType
type LinkSocialAccountRequest ¶
type LinkSocialAccountRequest struct { LinkingToken *LinkSocialAccountRequest_LinkingToken `protobuf:"bytes,1,opt,name=linking_token,json=linkingToken,proto3" json:"linking_token,omitempty"` Auth *v1.Auth `protobuf:"bytes,10,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*LinkSocialAccountRequest) Descriptor
deprecated
func (*LinkSocialAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use LinkSocialAccountRequest.ProtoReflect.Descriptor instead.
func (*LinkSocialAccountRequest) GetAuth ¶
func (x *LinkSocialAccountRequest) GetAuth() *v1.Auth
func (*LinkSocialAccountRequest) GetLinkingToken ¶
func (x *LinkSocialAccountRequest) GetLinkingToken() *LinkSocialAccountRequest_LinkingToken
func (*LinkSocialAccountRequest) ProtoMessage ¶
func (*LinkSocialAccountRequest) ProtoMessage()
func (*LinkSocialAccountRequest) ProtoReflect ¶
func (x *LinkSocialAccountRequest) ProtoReflect() protoreflect.Message
func (*LinkSocialAccountRequest) Reset ¶
func (x *LinkSocialAccountRequest) Reset()
func (*LinkSocialAccountRequest) String ¶
func (x *LinkSocialAccountRequest) String() string
func (*LinkSocialAccountRequest) Validate ¶
func (m *LinkSocialAccountRequest) Validate() error
Validate checks the field values on LinkSocialAccountRequest 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 (*LinkSocialAccountRequest) ValidateAll ¶
func (m *LinkSocialAccountRequest) ValidateAll() error
ValidateAll checks the field values on LinkSocialAccountRequest 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 LinkSocialAccountRequestMultiError, or nil if none found.
type LinkSocialAccountRequestMultiError ¶
type LinkSocialAccountRequestMultiError []error
LinkSocialAccountRequestMultiError is an error wrapping multiple validation errors returned by LinkSocialAccountRequest.ValidateAll() if the designated constraints aren't met.
func (LinkSocialAccountRequestMultiError) AllErrors ¶
func (m LinkSocialAccountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LinkSocialAccountRequestMultiError) Error ¶
func (m LinkSocialAccountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LinkSocialAccountRequestValidationError ¶
type LinkSocialAccountRequestValidationError struct {
// contains filtered or unexported fields
}
LinkSocialAccountRequestValidationError is the validation error returned by LinkSocialAccountRequest.Validate if the designated constraints aren't met.
func (LinkSocialAccountRequestValidationError) Cause ¶
func (e LinkSocialAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (LinkSocialAccountRequestValidationError) Error ¶
func (e LinkSocialAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LinkSocialAccountRequestValidationError) ErrorName ¶
func (e LinkSocialAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LinkSocialAccountRequestValidationError) Field ¶
func (e LinkSocialAccountRequestValidationError) Field() string
Field function returns field value.
func (LinkSocialAccountRequestValidationError) Key ¶
func (e LinkSocialAccountRequestValidationError) Key() bool
Key function returns key value.
func (LinkSocialAccountRequestValidationError) Reason ¶
func (e LinkSocialAccountRequestValidationError) Reason() string
Reason function returns reason value.
type LinkSocialAccountRequest_LinkingToken ¶
type LinkSocialAccountRequest_LinkingToken struct { // Types that are assignable to Type: // // *LinkSocialAccountRequest_LinkingToken_X Type isLinkSocialAccountRequest_LinkingToken_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*LinkSocialAccountRequest_LinkingToken) Descriptor
deprecated
func (*LinkSocialAccountRequest_LinkingToken) Descriptor() ([]byte, []int)
Deprecated: Use LinkSocialAccountRequest_LinkingToken.ProtoReflect.Descriptor instead.
func (*LinkSocialAccountRequest_LinkingToken) GetType ¶
func (m *LinkSocialAccountRequest_LinkingToken) GetType() isLinkSocialAccountRequest_LinkingToken_Type
func (*LinkSocialAccountRequest_LinkingToken) ProtoMessage ¶
func (*LinkSocialAccountRequest_LinkingToken) ProtoMessage()
func (*LinkSocialAccountRequest_LinkingToken) ProtoReflect ¶
func (x *LinkSocialAccountRequest_LinkingToken) ProtoReflect() protoreflect.Message
func (*LinkSocialAccountRequest_LinkingToken) Reset ¶
func (x *LinkSocialAccountRequest_LinkingToken) Reset()
func (*LinkSocialAccountRequest_LinkingToken) String ¶
func (x *LinkSocialAccountRequest_LinkingToken) String() string
func (*LinkSocialAccountRequest_LinkingToken) Validate ¶
func (m *LinkSocialAccountRequest_LinkingToken) Validate() error
Validate checks the field values on LinkSocialAccountRequest_LinkingToken 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 (*LinkSocialAccountRequest_LinkingToken) ValidateAll ¶
func (m *LinkSocialAccountRequest_LinkingToken) ValidateAll() error
ValidateAll checks the field values on LinkSocialAccountRequest_LinkingToken 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 LinkSocialAccountRequest_LinkingTokenMultiError, or nil if none found.
type LinkSocialAccountRequest_LinkingTokenMultiError ¶
type LinkSocialAccountRequest_LinkingTokenMultiError []error
LinkSocialAccountRequest_LinkingTokenMultiError is an error wrapping multiple validation errors returned by LinkSocialAccountRequest_LinkingToken.ValidateAll() if the designated constraints aren't met.
func (LinkSocialAccountRequest_LinkingTokenMultiError) AllErrors ¶
func (m LinkSocialAccountRequest_LinkingTokenMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LinkSocialAccountRequest_LinkingTokenMultiError) Error ¶
func (m LinkSocialAccountRequest_LinkingTokenMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LinkSocialAccountRequest_LinkingTokenValidationError ¶
type LinkSocialAccountRequest_LinkingTokenValidationError struct {
// contains filtered or unexported fields
}
LinkSocialAccountRequest_LinkingTokenValidationError is the validation error returned by LinkSocialAccountRequest_LinkingToken.Validate if the designated constraints aren't met.
func (LinkSocialAccountRequest_LinkingTokenValidationError) Cause ¶
func (e LinkSocialAccountRequest_LinkingTokenValidationError) Cause() error
Cause function returns cause value.
func (LinkSocialAccountRequest_LinkingTokenValidationError) Error ¶
func (e LinkSocialAccountRequest_LinkingTokenValidationError) Error() string
Error satisfies the builtin error interface
func (LinkSocialAccountRequest_LinkingTokenValidationError) ErrorName ¶
func (e LinkSocialAccountRequest_LinkingTokenValidationError) ErrorName() string
ErrorName returns error name.
func (LinkSocialAccountRequest_LinkingTokenValidationError) Field ¶
func (e LinkSocialAccountRequest_LinkingTokenValidationError) Field() string
Field function returns field value.
func (LinkSocialAccountRequest_LinkingTokenValidationError) Key ¶
func (e LinkSocialAccountRequest_LinkingTokenValidationError) Key() bool
Key function returns key value.
func (LinkSocialAccountRequest_LinkingTokenValidationError) Reason ¶
func (e LinkSocialAccountRequest_LinkingTokenValidationError) Reason() string
Reason function returns reason value.
type LinkSocialAccountRequest_LinkingToken_X ¶
type LinkSocialAccountRequest_LinkingToken_X struct {
X *LinkSocialAccountRequest_LinkingToken_XLinkingToken `protobuf:"bytes,1,opt,name=x,proto3,oneof"`
}
type LinkSocialAccountRequest_LinkingToken_XLinkingToken ¶
type LinkSocialAccountRequest_LinkingToken_XLinkingToken struct { // X access token from the OAuth 2.0 flow AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) Descriptor
deprecated
func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) Descriptor() ([]byte, []int)
Deprecated: Use LinkSocialAccountRequest_LinkingToken_XLinkingToken.ProtoReflect.Descriptor instead.
func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) GetAccessToken ¶
func (x *LinkSocialAccountRequest_LinkingToken_XLinkingToken) GetAccessToken() string
func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) ProtoMessage ¶
func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) ProtoMessage()
func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) ProtoReflect ¶
func (x *LinkSocialAccountRequest_LinkingToken_XLinkingToken) ProtoReflect() protoreflect.Message
func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) Reset ¶
func (x *LinkSocialAccountRequest_LinkingToken_XLinkingToken) Reset()
func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) String ¶
func (x *LinkSocialAccountRequest_LinkingToken_XLinkingToken) String() string
func (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) Validate ¶
func (m *LinkSocialAccountRequest_LinkingToken_XLinkingToken) Validate() error
Validate checks the field values on LinkSocialAccountRequest_LinkingToken_XLinkingToken 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 (*LinkSocialAccountRequest_LinkingToken_XLinkingToken) ValidateAll ¶
func (m *LinkSocialAccountRequest_LinkingToken_XLinkingToken) ValidateAll() error
ValidateAll checks the field values on LinkSocialAccountRequest_LinkingToken_XLinkingToken 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 LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError, or nil if none found.
type LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError ¶
type LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError []error
LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError is an error wrapping multiple validation errors returned by LinkSocialAccountRequest_LinkingToken_XLinkingToken.ValidateAll() if the designated constraints aren't met.
func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError) AllErrors ¶
func (m LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError) Error ¶
func (m LinkSocialAccountRequest_LinkingToken_XLinkingTokenMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError ¶
type LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError struct {
// contains filtered or unexported fields
}
LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError is the validation error returned by LinkSocialAccountRequest_LinkingToken_XLinkingToken.Validate if the designated constraints aren't met.
func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Cause ¶
func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Cause() error
Cause function returns cause value.
func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Error ¶
func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Error() string
Error satisfies the builtin error interface
func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) ErrorName ¶
func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) ErrorName() string
ErrorName returns error name.
func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Field ¶
func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Field() string
Field function returns field value.
func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Key ¶
Key function returns key value.
func (LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Reason ¶
func (e LinkSocialAccountRequest_LinkingToken_XLinkingTokenValidationError) Reason() string
Reason function returns reason value.
type LinkSocialAccountResponse ¶
type LinkSocialAccountResponse struct { Result LinkSocialAccountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.profile.v1.LinkSocialAccountResponse_Result" json:"result,omitempty"` SocialProfile *SocialProfile `protobuf:"bytes,2,opt,name=social_profile,json=socialProfile,proto3" json:"social_profile,omitempty"` // contains filtered or unexported fields }
func (*LinkSocialAccountResponse) Descriptor
deprecated
func (*LinkSocialAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use LinkSocialAccountResponse.ProtoReflect.Descriptor instead.
func (*LinkSocialAccountResponse) GetResult ¶
func (x *LinkSocialAccountResponse) GetResult() LinkSocialAccountResponse_Result
func (*LinkSocialAccountResponse) GetSocialProfile ¶
func (x *LinkSocialAccountResponse) GetSocialProfile() *SocialProfile
func (*LinkSocialAccountResponse) ProtoMessage ¶
func (*LinkSocialAccountResponse) ProtoMessage()
func (*LinkSocialAccountResponse) ProtoReflect ¶
func (x *LinkSocialAccountResponse) ProtoReflect() protoreflect.Message
func (*LinkSocialAccountResponse) Reset ¶
func (x *LinkSocialAccountResponse) Reset()
func (*LinkSocialAccountResponse) String ¶
func (x *LinkSocialAccountResponse) String() string
func (*LinkSocialAccountResponse) Validate ¶
func (m *LinkSocialAccountResponse) Validate() error
Validate checks the field values on LinkSocialAccountResponse 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 (*LinkSocialAccountResponse) ValidateAll ¶
func (m *LinkSocialAccountResponse) ValidateAll() error
ValidateAll checks the field values on LinkSocialAccountResponse 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 LinkSocialAccountResponseMultiError, or nil if none found.
type LinkSocialAccountResponseMultiError ¶
type LinkSocialAccountResponseMultiError []error
LinkSocialAccountResponseMultiError is an error wrapping multiple validation errors returned by LinkSocialAccountResponse.ValidateAll() if the designated constraints aren't met.
func (LinkSocialAccountResponseMultiError) AllErrors ¶
func (m LinkSocialAccountResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LinkSocialAccountResponseMultiError) Error ¶
func (m LinkSocialAccountResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LinkSocialAccountResponseValidationError ¶
type LinkSocialAccountResponseValidationError struct {
// contains filtered or unexported fields
}
LinkSocialAccountResponseValidationError is the validation error returned by LinkSocialAccountResponse.Validate if the designated constraints aren't met.
func (LinkSocialAccountResponseValidationError) Cause ¶
func (e LinkSocialAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (LinkSocialAccountResponseValidationError) Error ¶
func (e LinkSocialAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LinkSocialAccountResponseValidationError) ErrorName ¶
func (e LinkSocialAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LinkSocialAccountResponseValidationError) Field ¶
func (e LinkSocialAccountResponseValidationError) Field() string
Field function returns field value.
func (LinkSocialAccountResponseValidationError) Key ¶
func (e LinkSocialAccountResponseValidationError) Key() bool
Key function returns key value.
func (LinkSocialAccountResponseValidationError) Reason ¶
func (e LinkSocialAccountResponseValidationError) Reason() string
Reason function returns reason value.
type LinkSocialAccountResponse_Result ¶
type LinkSocialAccountResponse_Result int32
const ( LinkSocialAccountResponse_OK LinkSocialAccountResponse_Result = 0 LinkSocialAccountResponse_INVALID_LINKING_TOKEN LinkSocialAccountResponse_Result = 1 LinkSocialAccountResponse_EXISTING_LINK LinkSocialAccountResponse_Result = 2 LinkSocialAccountResponse_DENIED LinkSocialAccountResponse_Result = 3 )
func (LinkSocialAccountResponse_Result) Descriptor ¶
func (LinkSocialAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (LinkSocialAccountResponse_Result) Enum ¶
func (x LinkSocialAccountResponse_Result) Enum() *LinkSocialAccountResponse_Result
func (LinkSocialAccountResponse_Result) EnumDescriptor
deprecated
func (LinkSocialAccountResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use LinkSocialAccountResponse_Result.Descriptor instead.
func (LinkSocialAccountResponse_Result) Number ¶
func (x LinkSocialAccountResponse_Result) Number() protoreflect.EnumNumber
func (LinkSocialAccountResponse_Result) String ¶
func (x LinkSocialAccountResponse_Result) String() string
func (LinkSocialAccountResponse_Result) Type ¶
func (LinkSocialAccountResponse_Result) Type() protoreflect.EnumType
type ProfileClient ¶
type ProfileClient interface { GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error) SetDisplayName(ctx context.Context, in *SetDisplayNameRequest, opts ...grpc.CallOption) (*SetDisplayNameResponse, error) // LinkSocialAccount links a social account to a user LinkSocialAccount(ctx context.Context, in *LinkSocialAccountRequest, opts ...grpc.CallOption) (*LinkSocialAccountResponse, error) // UnlinkSocialAccount removes a social account link from a user UnlinkSocialAccount(ctx context.Context, in *UnlinkSocialAccountRequest, opts ...grpc.CallOption) (*UnlinkSocialAccountResponse, error) }
ProfileClient is the client API for Profile 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 NewProfileClient ¶
func NewProfileClient(cc grpc.ClientConnInterface) ProfileClient
type ProfileServer ¶
type ProfileServer interface { GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error) SetDisplayName(context.Context, *SetDisplayNameRequest) (*SetDisplayNameResponse, error) // LinkSocialAccount links a social account to a user LinkSocialAccount(context.Context, *LinkSocialAccountRequest) (*LinkSocialAccountResponse, error) // UnlinkSocialAccount removes a social account link from a user UnlinkSocialAccount(context.Context, *UnlinkSocialAccountRequest) (*UnlinkSocialAccountResponse, error) // contains filtered or unexported methods }
ProfileServer is the server API for Profile service. All implementations must embed UnimplementedProfileServer for forward compatibility.
type SetDisplayNameRequest ¶
type SetDisplayNameRequest struct { // DisplayName is the new name to set. DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Auth *v1.Auth `protobuf:"bytes,10,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*SetDisplayNameRequest) Descriptor
deprecated
func (*SetDisplayNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetDisplayNameRequest.ProtoReflect.Descriptor instead.
func (*SetDisplayNameRequest) GetAuth ¶
func (x *SetDisplayNameRequest) GetAuth() *v1.Auth
func (*SetDisplayNameRequest) GetDisplayName ¶
func (x *SetDisplayNameRequest) GetDisplayName() string
func (*SetDisplayNameRequest) ProtoMessage ¶
func (*SetDisplayNameRequest) ProtoMessage()
func (*SetDisplayNameRequest) ProtoReflect ¶
func (x *SetDisplayNameRequest) ProtoReflect() protoreflect.Message
func (*SetDisplayNameRequest) Reset ¶
func (x *SetDisplayNameRequest) Reset()
func (*SetDisplayNameRequest) String ¶
func (x *SetDisplayNameRequest) String() string
func (*SetDisplayNameRequest) Validate ¶
func (m *SetDisplayNameRequest) Validate() error
Validate checks the field values on SetDisplayNameRequest 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 (*SetDisplayNameRequest) ValidateAll ¶
func (m *SetDisplayNameRequest) ValidateAll() error
ValidateAll checks the field values on SetDisplayNameRequest 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 SetDisplayNameRequestMultiError, or nil if none found.
type SetDisplayNameRequestMultiError ¶
type SetDisplayNameRequestMultiError []error
SetDisplayNameRequestMultiError is an error wrapping multiple validation errors returned by SetDisplayNameRequest.ValidateAll() if the designated constraints aren't met.
func (SetDisplayNameRequestMultiError) AllErrors ¶
func (m SetDisplayNameRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetDisplayNameRequestMultiError) Error ¶
func (m SetDisplayNameRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetDisplayNameRequestValidationError ¶
type SetDisplayNameRequestValidationError struct {
// contains filtered or unexported fields
}
SetDisplayNameRequestValidationError is the validation error returned by SetDisplayNameRequest.Validate if the designated constraints aren't met.
func (SetDisplayNameRequestValidationError) Cause ¶
func (e SetDisplayNameRequestValidationError) Cause() error
Cause function returns cause value.
func (SetDisplayNameRequestValidationError) Error ¶
func (e SetDisplayNameRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SetDisplayNameRequestValidationError) ErrorName ¶
func (e SetDisplayNameRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SetDisplayNameRequestValidationError) Field ¶
func (e SetDisplayNameRequestValidationError) Field() string
Field function returns field value.
func (SetDisplayNameRequestValidationError) Key ¶
func (e SetDisplayNameRequestValidationError) Key() bool
Key function returns key value.
func (SetDisplayNameRequestValidationError) Reason ¶
func (e SetDisplayNameRequestValidationError) Reason() string
Reason function returns reason value.
type SetDisplayNameResponse ¶
type SetDisplayNameResponse struct { Result SetDisplayNameResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.profile.v1.SetDisplayNameResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*SetDisplayNameResponse) Descriptor
deprecated
func (*SetDisplayNameResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetDisplayNameResponse.ProtoReflect.Descriptor instead.
func (*SetDisplayNameResponse) GetResult ¶
func (x *SetDisplayNameResponse) GetResult() SetDisplayNameResponse_Result
func (*SetDisplayNameResponse) ProtoMessage ¶
func (*SetDisplayNameResponse) ProtoMessage()
func (*SetDisplayNameResponse) ProtoReflect ¶
func (x *SetDisplayNameResponse) ProtoReflect() protoreflect.Message
func (*SetDisplayNameResponse) Reset ¶
func (x *SetDisplayNameResponse) Reset()
func (*SetDisplayNameResponse) String ¶
func (x *SetDisplayNameResponse) String() string
func (*SetDisplayNameResponse) Validate ¶
func (m *SetDisplayNameResponse) Validate() error
Validate checks the field values on SetDisplayNameResponse 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 (*SetDisplayNameResponse) ValidateAll ¶
func (m *SetDisplayNameResponse) ValidateAll() error
ValidateAll checks the field values on SetDisplayNameResponse 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 SetDisplayNameResponseMultiError, or nil if none found.
type SetDisplayNameResponseMultiError ¶
type SetDisplayNameResponseMultiError []error
SetDisplayNameResponseMultiError is an error wrapping multiple validation errors returned by SetDisplayNameResponse.ValidateAll() if the designated constraints aren't met.
func (SetDisplayNameResponseMultiError) AllErrors ¶
func (m SetDisplayNameResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetDisplayNameResponseMultiError) Error ¶
func (m SetDisplayNameResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetDisplayNameResponseValidationError ¶
type SetDisplayNameResponseValidationError struct {
// contains filtered or unexported fields
}
SetDisplayNameResponseValidationError is the validation error returned by SetDisplayNameResponse.Validate if the designated constraints aren't met.
func (SetDisplayNameResponseValidationError) Cause ¶
func (e SetDisplayNameResponseValidationError) Cause() error
Cause function returns cause value.
func (SetDisplayNameResponseValidationError) Error ¶
func (e SetDisplayNameResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SetDisplayNameResponseValidationError) ErrorName ¶
func (e SetDisplayNameResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SetDisplayNameResponseValidationError) Field ¶
func (e SetDisplayNameResponseValidationError) Field() string
Field function returns field value.
func (SetDisplayNameResponseValidationError) Key ¶
func (e SetDisplayNameResponseValidationError) Key() bool
Key function returns key value.
func (SetDisplayNameResponseValidationError) Reason ¶
func (e SetDisplayNameResponseValidationError) Reason() string
Reason function returns reason value.
type SetDisplayNameResponse_Result ¶
type SetDisplayNameResponse_Result int32
const ( SetDisplayNameResponse_OK SetDisplayNameResponse_Result = 0 SetDisplayNameResponse_INVALID_DISPLAY_NAME SetDisplayNameResponse_Result = 1 SetDisplayNameResponse_DENIED SetDisplayNameResponse_Result = 2 )
func (SetDisplayNameResponse_Result) Descriptor ¶
func (SetDisplayNameResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (SetDisplayNameResponse_Result) Enum ¶
func (x SetDisplayNameResponse_Result) Enum() *SetDisplayNameResponse_Result
func (SetDisplayNameResponse_Result) EnumDescriptor
deprecated
func (SetDisplayNameResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use SetDisplayNameResponse_Result.Descriptor instead.
func (SetDisplayNameResponse_Result) Number ¶
func (x SetDisplayNameResponse_Result) Number() protoreflect.EnumNumber
func (SetDisplayNameResponse_Result) String ¶
func (x SetDisplayNameResponse_Result) String() string
func (SetDisplayNameResponse_Result) Type ¶
func (SetDisplayNameResponse_Result) Type() protoreflect.EnumType
type SocialProfile ¶
type SocialProfile struct { // Types that are assignable to Type: // // *SocialProfile_X Type isSocialProfile_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*SocialProfile) Descriptor
deprecated
func (*SocialProfile) Descriptor() ([]byte, []int)
Deprecated: Use SocialProfile.ProtoReflect.Descriptor instead.
func (*SocialProfile) GetType ¶
func (m *SocialProfile) GetType() isSocialProfile_Type
func (*SocialProfile) GetX ¶
func (x *SocialProfile) GetX() *XProfile
func (*SocialProfile) ProtoMessage ¶
func (*SocialProfile) ProtoMessage()
func (*SocialProfile) ProtoReflect ¶
func (x *SocialProfile) ProtoReflect() protoreflect.Message
func (*SocialProfile) Reset ¶
func (x *SocialProfile) Reset()
func (*SocialProfile) String ¶
func (x *SocialProfile) String() string
func (*SocialProfile) Validate ¶
func (m *SocialProfile) Validate() error
Validate checks the field values on SocialProfile 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 (*SocialProfile) ValidateAll ¶
func (m *SocialProfile) ValidateAll() error
ValidateAll checks the field values on SocialProfile 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 SocialProfileMultiError, or nil if none found.
type SocialProfileMultiError ¶
type SocialProfileMultiError []error
SocialProfileMultiError is an error wrapping multiple validation errors returned by SocialProfile.ValidateAll() if the designated constraints aren't met.
func (SocialProfileMultiError) AllErrors ¶
func (m SocialProfileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SocialProfileMultiError) Error ¶
func (m SocialProfileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SocialProfileValidationError ¶
type SocialProfileValidationError struct {
// contains filtered or unexported fields
}
SocialProfileValidationError is the validation error returned by SocialProfile.Validate if the designated constraints aren't met.
func (SocialProfileValidationError) Cause ¶
func (e SocialProfileValidationError) Cause() error
Cause function returns cause value.
func (SocialProfileValidationError) Error ¶
func (e SocialProfileValidationError) Error() string
Error satisfies the builtin error interface
func (SocialProfileValidationError) ErrorName ¶
func (e SocialProfileValidationError) ErrorName() string
ErrorName returns error name.
func (SocialProfileValidationError) Field ¶
func (e SocialProfileValidationError) Field() string
Field function returns field value.
func (SocialProfileValidationError) Key ¶
func (e SocialProfileValidationError) Key() bool
Key function returns key value.
func (SocialProfileValidationError) Reason ¶
func (e SocialProfileValidationError) Reason() string
Reason function returns reason value.
type SocialProfile_X ¶
type SocialProfile_X struct {
X *XProfile `protobuf:"bytes,1,opt,name=x,proto3,oneof"`
}
type UnimplementedProfileServer ¶
type UnimplementedProfileServer struct{}
UnimplementedProfileServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedProfileServer) GetProfile ¶
func (UnimplementedProfileServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
func (UnimplementedProfileServer) LinkSocialAccount ¶
func (UnimplementedProfileServer) LinkSocialAccount(context.Context, *LinkSocialAccountRequest) (*LinkSocialAccountResponse, error)
func (UnimplementedProfileServer) SetDisplayName ¶
func (UnimplementedProfileServer) SetDisplayName(context.Context, *SetDisplayNameRequest) (*SetDisplayNameResponse, error)
func (UnimplementedProfileServer) UnlinkSocialAccount ¶
func (UnimplementedProfileServer) UnlinkSocialAccount(context.Context, *UnlinkSocialAccountRequest) (*UnlinkSocialAccountResponse, error)
type UnlinkSocialAccountRequest ¶
type UnlinkSocialAccountRequest struct { // Types that are assignable to SocialIdentifier: // // *UnlinkSocialAccountRequest_XUserId SocialIdentifier isUnlinkSocialAccountRequest_SocialIdentifier `protobuf_oneof:"social_identifier"` Auth *v1.Auth `protobuf:"bytes,10,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*UnlinkSocialAccountRequest) Descriptor
deprecated
func (*UnlinkSocialAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlinkSocialAccountRequest.ProtoReflect.Descriptor instead.
func (*UnlinkSocialAccountRequest) GetAuth ¶
func (x *UnlinkSocialAccountRequest) GetAuth() *v1.Auth
func (*UnlinkSocialAccountRequest) GetSocialIdentifier ¶
func (m *UnlinkSocialAccountRequest) GetSocialIdentifier() isUnlinkSocialAccountRequest_SocialIdentifier
func (*UnlinkSocialAccountRequest) GetXUserId ¶
func (x *UnlinkSocialAccountRequest) GetXUserId() string
func (*UnlinkSocialAccountRequest) ProtoMessage ¶
func (*UnlinkSocialAccountRequest) ProtoMessage()
func (*UnlinkSocialAccountRequest) ProtoReflect ¶
func (x *UnlinkSocialAccountRequest) ProtoReflect() protoreflect.Message
func (*UnlinkSocialAccountRequest) Reset ¶
func (x *UnlinkSocialAccountRequest) Reset()
func (*UnlinkSocialAccountRequest) String ¶
func (x *UnlinkSocialAccountRequest) String() string
func (*UnlinkSocialAccountRequest) Validate ¶
func (m *UnlinkSocialAccountRequest) Validate() error
Validate checks the field values on UnlinkSocialAccountRequest 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 (*UnlinkSocialAccountRequest) ValidateAll ¶
func (m *UnlinkSocialAccountRequest) ValidateAll() error
ValidateAll checks the field values on UnlinkSocialAccountRequest 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 UnlinkSocialAccountRequestMultiError, or nil if none found.
type UnlinkSocialAccountRequestMultiError ¶
type UnlinkSocialAccountRequestMultiError []error
UnlinkSocialAccountRequestMultiError is an error wrapping multiple validation errors returned by UnlinkSocialAccountRequest.ValidateAll() if the designated constraints aren't met.
func (UnlinkSocialAccountRequestMultiError) AllErrors ¶
func (m UnlinkSocialAccountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnlinkSocialAccountRequestMultiError) Error ¶
func (m UnlinkSocialAccountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnlinkSocialAccountRequestValidationError ¶
type UnlinkSocialAccountRequestValidationError struct {
// contains filtered or unexported fields
}
UnlinkSocialAccountRequestValidationError is the validation error returned by UnlinkSocialAccountRequest.Validate if the designated constraints aren't met.
func (UnlinkSocialAccountRequestValidationError) Cause ¶
func (e UnlinkSocialAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (UnlinkSocialAccountRequestValidationError) Error ¶
func (e UnlinkSocialAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UnlinkSocialAccountRequestValidationError) ErrorName ¶
func (e UnlinkSocialAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UnlinkSocialAccountRequestValidationError) Field ¶
func (e UnlinkSocialAccountRequestValidationError) Field() string
Field function returns field value.
func (UnlinkSocialAccountRequestValidationError) Key ¶
func (e UnlinkSocialAccountRequestValidationError) Key() bool
Key function returns key value.
func (UnlinkSocialAccountRequestValidationError) Reason ¶
func (e UnlinkSocialAccountRequestValidationError) Reason() string
Reason function returns reason value.
type UnlinkSocialAccountRequest_XUserId ¶
type UnlinkSocialAccountRequest_XUserId struct {
XUserId string `protobuf:"bytes,1,opt,name=x_user_id,json=xUserId,proto3,oneof"`
}
type UnlinkSocialAccountResponse ¶
type UnlinkSocialAccountResponse struct { Result UnlinkSocialAccountResponse_Result `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UnlinkSocialAccountResponse) Descriptor
deprecated
func (*UnlinkSocialAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnlinkSocialAccountResponse.ProtoReflect.Descriptor instead.
func (*UnlinkSocialAccountResponse) GetResult ¶
func (x *UnlinkSocialAccountResponse) GetResult() UnlinkSocialAccountResponse_Result
func (*UnlinkSocialAccountResponse) ProtoMessage ¶
func (*UnlinkSocialAccountResponse) ProtoMessage()
func (*UnlinkSocialAccountResponse) ProtoReflect ¶
func (x *UnlinkSocialAccountResponse) ProtoReflect() protoreflect.Message
func (*UnlinkSocialAccountResponse) Reset ¶
func (x *UnlinkSocialAccountResponse) Reset()
func (*UnlinkSocialAccountResponse) String ¶
func (x *UnlinkSocialAccountResponse) String() string
func (*UnlinkSocialAccountResponse) Validate ¶
func (m *UnlinkSocialAccountResponse) Validate() error
Validate checks the field values on UnlinkSocialAccountResponse 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 (*UnlinkSocialAccountResponse) ValidateAll ¶
func (m *UnlinkSocialAccountResponse) ValidateAll() error
ValidateAll checks the field values on UnlinkSocialAccountResponse 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 UnlinkSocialAccountResponseMultiError, or nil if none found.
type UnlinkSocialAccountResponseMultiError ¶
type UnlinkSocialAccountResponseMultiError []error
UnlinkSocialAccountResponseMultiError is an error wrapping multiple validation errors returned by UnlinkSocialAccountResponse.ValidateAll() if the designated constraints aren't met.
func (UnlinkSocialAccountResponseMultiError) AllErrors ¶
func (m UnlinkSocialAccountResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnlinkSocialAccountResponseMultiError) Error ¶
func (m UnlinkSocialAccountResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnlinkSocialAccountResponseValidationError ¶
type UnlinkSocialAccountResponseValidationError struct {
// contains filtered or unexported fields
}
UnlinkSocialAccountResponseValidationError is the validation error returned by UnlinkSocialAccountResponse.Validate if the designated constraints aren't met.
func (UnlinkSocialAccountResponseValidationError) Cause ¶
func (e UnlinkSocialAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (UnlinkSocialAccountResponseValidationError) Error ¶
func (e UnlinkSocialAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UnlinkSocialAccountResponseValidationError) ErrorName ¶
func (e UnlinkSocialAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UnlinkSocialAccountResponseValidationError) Field ¶
func (e UnlinkSocialAccountResponseValidationError) Field() string
Field function returns field value.
func (UnlinkSocialAccountResponseValidationError) Key ¶
func (e UnlinkSocialAccountResponseValidationError) Key() bool
Key function returns key value.
func (UnlinkSocialAccountResponseValidationError) Reason ¶
func (e UnlinkSocialAccountResponseValidationError) Reason() string
Reason function returns reason value.
type UnlinkSocialAccountResponse_Result ¶
type UnlinkSocialAccountResponse_Result int32
const ( UnlinkSocialAccountResponse_OK UnlinkSocialAccountResponse_Result = 0 UnlinkSocialAccountResponse_DENIED UnlinkSocialAccountResponse_Result = 1 )
func (UnlinkSocialAccountResponse_Result) Descriptor ¶
func (UnlinkSocialAccountResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (UnlinkSocialAccountResponse_Result) Enum ¶
func (x UnlinkSocialAccountResponse_Result) Enum() *UnlinkSocialAccountResponse_Result
func (UnlinkSocialAccountResponse_Result) EnumDescriptor
deprecated
func (UnlinkSocialAccountResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use UnlinkSocialAccountResponse_Result.Descriptor instead.
func (UnlinkSocialAccountResponse_Result) Number ¶
func (x UnlinkSocialAccountResponse_Result) Number() protoreflect.EnumNumber
func (UnlinkSocialAccountResponse_Result) String ¶
func (x UnlinkSocialAccountResponse_Result) String() string
func (UnlinkSocialAccountResponse_Result) Type ¶
func (UnlinkSocialAccountResponse_Result) Type() protoreflect.EnumType
type UnsafeProfileServer ¶
type UnsafeProfileServer interface {
// contains filtered or unexported methods
}
UnsafeProfileServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServer will result in compilation errors.
type UserProfile ¶
type UserProfile struct { // Display name is the display name of the user (if found). DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Social profiles are links to external social accounts SocialProfiles []*SocialProfile `protobuf:"bytes,2,rep,name=social_profiles,json=socialProfiles,proto3" json:"social_profiles,omitempty"` // Phone number linked to this user. This is private and will only be returned // when the requesting user asks for their own profile PhoneNumber *v1.PhoneNumber `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // Email address linked to this user. This is private and will only be returned // when the requesting user asks for their own profile EmailAddress *v11.EmailAddress `protobuf:"bytes,4,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` // contains filtered or unexported fields }
func (*UserProfile) Descriptor
deprecated
func (*UserProfile) Descriptor() ([]byte, []int)
Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.
func (*UserProfile) GetDisplayName ¶
func (x *UserProfile) GetDisplayName() string
func (*UserProfile) GetEmailAddress ¶ added in v1.8.0
func (x *UserProfile) GetEmailAddress() *v11.EmailAddress
func (*UserProfile) GetPhoneNumber ¶ added in v1.7.0
func (x *UserProfile) GetPhoneNumber() *v1.PhoneNumber
func (*UserProfile) GetSocialProfiles ¶
func (x *UserProfile) GetSocialProfiles() []*SocialProfile
func (*UserProfile) ProtoMessage ¶
func (*UserProfile) ProtoMessage()
func (*UserProfile) ProtoReflect ¶
func (x *UserProfile) ProtoReflect() protoreflect.Message
func (*UserProfile) Reset ¶
func (x *UserProfile) Reset()
func (*UserProfile) String ¶
func (x *UserProfile) String() string
func (*UserProfile) Validate ¶
func (m *UserProfile) Validate() error
Validate checks the field values on UserProfile 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 (*UserProfile) ValidateAll ¶
func (m *UserProfile) ValidateAll() error
ValidateAll checks the field values on UserProfile 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 UserProfileMultiError, or nil if none found.
type UserProfileMultiError ¶
type UserProfileMultiError []error
UserProfileMultiError is an error wrapping multiple validation errors returned by UserProfile.ValidateAll() if the designated constraints aren't met.
func (UserProfileMultiError) AllErrors ¶
func (m UserProfileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserProfileMultiError) Error ¶
func (m UserProfileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserProfileValidationError ¶
type UserProfileValidationError struct {
// contains filtered or unexported fields
}
UserProfileValidationError is the validation error returned by UserProfile.Validate if the designated constraints aren't met.
func (UserProfileValidationError) Cause ¶
func (e UserProfileValidationError) Cause() error
Cause function returns cause value.
func (UserProfileValidationError) Error ¶
func (e UserProfileValidationError) Error() string
Error satisfies the builtin error interface
func (UserProfileValidationError) ErrorName ¶
func (e UserProfileValidationError) ErrorName() string
ErrorName returns error name.
func (UserProfileValidationError) Field ¶
func (e UserProfileValidationError) Field() string
Field function returns field value.
func (UserProfileValidationError) Key ¶
func (e UserProfileValidationError) Key() bool
Key function returns key value.
func (UserProfileValidationError) Reason ¶
func (e UserProfileValidationError) Reason() string
Reason function returns reason value.
type XProfile ¶
type XProfile struct { // The user's ID on X Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The user's username on X Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // The user's friendly name on X Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // The user's description on X Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // URL to the user's X profile picture ProfilePicUrl string `protobuf:"bytes,5,opt,name=profile_pic_url,json=profilePicUrl,proto3" json:"profile_pic_url,omitempty"` // The type of X verification associated with the user VerifiedType XProfile_VerifiedType `` /* 145-byte string literal not displayed */ // The number of followers the user has on X FollowerCount uint32 `protobuf:"varint,7,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` // contains filtered or unexported fields }
func (*XProfile) Descriptor
deprecated
func (*XProfile) GetDescription ¶
func (*XProfile) GetFollowerCount ¶
func (*XProfile) GetProfilePicUrl ¶
func (*XProfile) GetUsername ¶
func (*XProfile) GetVerifiedType ¶
func (x *XProfile) GetVerifiedType() XProfile_VerifiedType
func (*XProfile) ProtoMessage ¶
func (*XProfile) ProtoMessage()
func (*XProfile) ProtoReflect ¶
func (x *XProfile) ProtoReflect() protoreflect.Message
func (*XProfile) Validate ¶
Validate checks the field values on XProfile 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 (*XProfile) ValidateAll ¶
ValidateAll checks the field values on XProfile 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 XProfileMultiError, or nil if none found.
type XProfileMultiError ¶
type XProfileMultiError []error
XProfileMultiError is an error wrapping multiple validation errors returned by XProfile.ValidateAll() if the designated constraints aren't met.
func (XProfileMultiError) AllErrors ¶
func (m XProfileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (XProfileMultiError) Error ¶
func (m XProfileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type XProfileValidationError ¶
type XProfileValidationError struct {
// contains filtered or unexported fields
}
XProfileValidationError is the validation error returned by XProfile.Validate if the designated constraints aren't met.
func (XProfileValidationError) Cause ¶
func (e XProfileValidationError) Cause() error
Cause function returns cause value.
func (XProfileValidationError) Error ¶
func (e XProfileValidationError) Error() string
Error satisfies the builtin error interface
func (XProfileValidationError) ErrorName ¶
func (e XProfileValidationError) ErrorName() string
ErrorName returns error name.
func (XProfileValidationError) Field ¶
func (e XProfileValidationError) Field() string
Field function returns field value.
func (XProfileValidationError) Key ¶
func (e XProfileValidationError) Key() bool
Key function returns key value.
func (XProfileValidationError) Reason ¶
func (e XProfileValidationError) Reason() string
Reason function returns reason value.
type XProfile_VerifiedType ¶
type XProfile_VerifiedType int32
const ( XProfile_NONE XProfile_VerifiedType = 0 XProfile_BLUE XProfile_VerifiedType = 1 XProfile_BUSINESS XProfile_VerifiedType = 2 XProfile_GOVERNMENT XProfile_VerifiedType = 3 )
func (XProfile_VerifiedType) Descriptor ¶
func (XProfile_VerifiedType) Descriptor() protoreflect.EnumDescriptor
func (XProfile_VerifiedType) Enum ¶
func (x XProfile_VerifiedType) Enum() *XProfile_VerifiedType
func (XProfile_VerifiedType) EnumDescriptor
deprecated
func (XProfile_VerifiedType) EnumDescriptor() ([]byte, []int)
Deprecated: Use XProfile_VerifiedType.Descriptor instead.
func (XProfile_VerifiedType) Number ¶
func (x XProfile_VerifiedType) Number() protoreflect.EnumNumber
func (XProfile_VerifiedType) String ¶
func (x XProfile_VerifiedType) String() string
func (XProfile_VerifiedType) Type ¶
func (XProfile_VerifiedType) Type() protoreflect.EnumType