Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
- type AccountClient
- type AccountServer
- type AuthorizePublicKeyRequest
- func (*AuthorizePublicKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizePublicKeyRequest) GetAuth() *v1.Auth
- func (x *AuthorizePublicKeyRequest) GetPublicKey() *v1.PublicKey
- func (x *AuthorizePublicKeyRequest) GetSignature() *v1.Signature
- func (x *AuthorizePublicKeyRequest) GetUserId() *v1.UserId
- func (*AuthorizePublicKeyRequest) ProtoMessage()
- func (x *AuthorizePublicKeyRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizePublicKeyRequest) Reset()
- func (x *AuthorizePublicKeyRequest) String() string
- func (m *AuthorizePublicKeyRequest) Validate() error
- func (m *AuthorizePublicKeyRequest) ValidateAll() error
- type AuthorizePublicKeyRequestMultiError
- type AuthorizePublicKeyRequestValidationError
- func (e AuthorizePublicKeyRequestValidationError) Cause() error
- func (e AuthorizePublicKeyRequestValidationError) Error() string
- func (e AuthorizePublicKeyRequestValidationError) ErrorName() string
- func (e AuthorizePublicKeyRequestValidationError) Field() string
- func (e AuthorizePublicKeyRequestValidationError) Key() bool
- func (e AuthorizePublicKeyRequestValidationError) Reason() string
- type AuthorizePublicKeyResponse
- func (*AuthorizePublicKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizePublicKeyResponse) GetResult() AuthorizePublicKeyResponse_Result
- func (*AuthorizePublicKeyResponse) ProtoMessage()
- func (x *AuthorizePublicKeyResponse) ProtoReflect() protoreflect.Message
- func (x *AuthorizePublicKeyResponse) Reset()
- func (x *AuthorizePublicKeyResponse) String() string
- func (m *AuthorizePublicKeyResponse) Validate() error
- func (m *AuthorizePublicKeyResponse) ValidateAll() error
- type AuthorizePublicKeyResponseMultiError
- type AuthorizePublicKeyResponseValidationError
- func (e AuthorizePublicKeyResponseValidationError) Cause() error
- func (e AuthorizePublicKeyResponseValidationError) Error() string
- func (e AuthorizePublicKeyResponseValidationError) ErrorName() string
- func (e AuthorizePublicKeyResponseValidationError) Field() string
- func (e AuthorizePublicKeyResponseValidationError) Key() bool
- func (e AuthorizePublicKeyResponseValidationError) Reason() string
- type AuthorizePublicKeyResponse_Result
- func (AuthorizePublicKeyResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x AuthorizePublicKeyResponse_Result) Enum() *AuthorizePublicKeyResponse_Result
- func (AuthorizePublicKeyResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthorizePublicKeyResponse_Result) Number() protoreflect.EnumNumber
- func (x AuthorizePublicKeyResponse_Result) String() string
- func (AuthorizePublicKeyResponse_Result) Type() protoreflect.EnumType
- type GetPaymentDestinationRequest
- func (*GetPaymentDestinationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPaymentDestinationRequest) GetUserId() *v1.UserId
- func (*GetPaymentDestinationRequest) ProtoMessage()
- func (x *GetPaymentDestinationRequest) ProtoReflect() protoreflect.Message
- func (x *GetPaymentDestinationRequest) Reset()
- func (x *GetPaymentDestinationRequest) String() string
- func (m *GetPaymentDestinationRequest) Validate() error
- func (m *GetPaymentDestinationRequest) ValidateAll() error
- type GetPaymentDestinationRequestMultiError
- type GetPaymentDestinationRequestValidationError
- func (e GetPaymentDestinationRequestValidationError) Cause() error
- func (e GetPaymentDestinationRequestValidationError) Error() string
- func (e GetPaymentDestinationRequestValidationError) ErrorName() string
- func (e GetPaymentDestinationRequestValidationError) Field() string
- func (e GetPaymentDestinationRequestValidationError) Key() bool
- func (e GetPaymentDestinationRequestValidationError) Reason() string
- type GetPaymentDestinationResponse
- func (*GetPaymentDestinationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPaymentDestinationResponse) GetPaymentDestination() *v1.PublicKey
- func (x *GetPaymentDestinationResponse) GetResult() GetPaymentDestinationResponse_Result
- func (*GetPaymentDestinationResponse) ProtoMessage()
- func (x *GetPaymentDestinationResponse) ProtoReflect() protoreflect.Message
- func (x *GetPaymentDestinationResponse) Reset()
- func (x *GetPaymentDestinationResponse) String() string
- func (m *GetPaymentDestinationResponse) Validate() error
- func (m *GetPaymentDestinationResponse) ValidateAll() error
- type GetPaymentDestinationResponseMultiError
- type GetPaymentDestinationResponseValidationError
- func (e GetPaymentDestinationResponseValidationError) Cause() error
- func (e GetPaymentDestinationResponseValidationError) Error() string
- func (e GetPaymentDestinationResponseValidationError) ErrorName() string
- func (e GetPaymentDestinationResponseValidationError) Field() string
- func (e GetPaymentDestinationResponseValidationError) Key() bool
- func (e GetPaymentDestinationResponseValidationError) Reason() string
- type GetPaymentDestinationResponse_Result
- func (GetPaymentDestinationResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetPaymentDestinationResponse_Result) Enum() *GetPaymentDestinationResponse_Result
- func (GetPaymentDestinationResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetPaymentDestinationResponse_Result) Number() protoreflect.EnumNumber
- func (x GetPaymentDestinationResponse_Result) String() string
- func (GetPaymentDestinationResponse_Result) Type() protoreflect.EnumType
- type GetUserFlagsRequest
- func (*GetUserFlagsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFlagsRequest) GetAuth() *v1.Auth
- func (x *GetUserFlagsRequest) GetUserId() *v1.UserId
- func (*GetUserFlagsRequest) ProtoMessage()
- func (x *GetUserFlagsRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserFlagsRequest) Reset()
- func (x *GetUserFlagsRequest) String() string
- func (m *GetUserFlagsRequest) Validate() error
- func (m *GetUserFlagsRequest) ValidateAll() error
- type GetUserFlagsRequestMultiError
- type GetUserFlagsRequestValidationError
- func (e GetUserFlagsRequestValidationError) Cause() error
- func (e GetUserFlagsRequestValidationError) Error() string
- func (e GetUserFlagsRequestValidationError) ErrorName() string
- func (e GetUserFlagsRequestValidationError) Field() string
- func (e GetUserFlagsRequestValidationError) Key() bool
- func (e GetUserFlagsRequestValidationError) Reason() string
- type GetUserFlagsResponse
- func (*GetUserFlagsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFlagsResponse) GetResult() GetUserFlagsResponse_Result
- func (x *GetUserFlagsResponse) GetUserFlags() *UserFlags
- func (*GetUserFlagsResponse) ProtoMessage()
- func (x *GetUserFlagsResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserFlagsResponse) Reset()
- func (x *GetUserFlagsResponse) String() string
- func (m *GetUserFlagsResponse) Validate() error
- func (m *GetUserFlagsResponse) ValidateAll() error
- type GetUserFlagsResponseMultiError
- type GetUserFlagsResponseValidationError
- func (e GetUserFlagsResponseValidationError) Cause() error
- func (e GetUserFlagsResponseValidationError) Error() string
- func (e GetUserFlagsResponseValidationError) ErrorName() string
- func (e GetUserFlagsResponseValidationError) Field() string
- func (e GetUserFlagsResponseValidationError) Key() bool
- func (e GetUserFlagsResponseValidationError) Reason() string
- type GetUserFlagsResponse_Result
- func (GetUserFlagsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetUserFlagsResponse_Result) Enum() *GetUserFlagsResponse_Result
- func (GetUserFlagsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetUserFlagsResponse_Result) Number() protoreflect.EnumNumber
- func (x GetUserFlagsResponse_Result) String() string
- func (GetUserFlagsResponse_Result) Type() protoreflect.EnumType
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetAuth() *v1.Auth
- func (x *LoginRequest) GetTimestamp() *timestamppb.Timestamp
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetResult() LoginResponse_Result
- func (x *LoginResponse) GetUserId() *v1.UserId
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type LoginResponse_Result
- func (LoginResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x LoginResponse_Result) Enum() *LoginResponse_Result
- func (LoginResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoginResponse_Result) Number() protoreflect.EnumNumber
- func (x LoginResponse_Result) String() string
- func (LoginResponse_Result) Type() protoreflect.EnumType
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetDisplayName() string
- func (x *RegisterRequest) GetPublicKey() *v1.PublicKey
- func (x *RegisterRequest) GetSignature() *v1.Signature
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) ValidateAll() error
- type RegisterRequestMultiError
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetErrorReason() string
- func (x *RegisterResponse) GetResult() RegisterResponse_Result
- func (x *RegisterResponse) GetUserId() *v1.UserId
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- func (m *RegisterResponse) Validate() error
- func (m *RegisterResponse) ValidateAll() error
- type RegisterResponseMultiError
- type RegisterResponseValidationError
- func (e RegisterResponseValidationError) Cause() error
- func (e RegisterResponseValidationError) Error() string
- func (e RegisterResponseValidationError) ErrorName() string
- func (e RegisterResponseValidationError) Field() string
- func (e RegisterResponseValidationError) Key() bool
- func (e RegisterResponseValidationError) Reason() string
- type RegisterResponse_Result
- func (RegisterResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x RegisterResponse_Result) Enum() *RegisterResponse_Result
- func (RegisterResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x RegisterResponse_Result) Number() protoreflect.EnumNumber
- func (x RegisterResponse_Result) String() string
- func (RegisterResponse_Result) Type() protoreflect.EnumType
- type RevokePublicKeyRequest
- func (*RevokePublicKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokePublicKeyRequest) GetAuth() *v1.Auth
- func (x *RevokePublicKeyRequest) GetPublicKey() *v1.PublicKey
- func (x *RevokePublicKeyRequest) GetUserId() *v1.UserId
- func (*RevokePublicKeyRequest) ProtoMessage()
- func (x *RevokePublicKeyRequest) ProtoReflect() protoreflect.Message
- func (x *RevokePublicKeyRequest) Reset()
- func (x *RevokePublicKeyRequest) String() string
- func (m *RevokePublicKeyRequest) Validate() error
- func (m *RevokePublicKeyRequest) ValidateAll() error
- type RevokePublicKeyRequestMultiError
- type RevokePublicKeyRequestValidationError
- func (e RevokePublicKeyRequestValidationError) Cause() error
- func (e RevokePublicKeyRequestValidationError) Error() string
- func (e RevokePublicKeyRequestValidationError) ErrorName() string
- func (e RevokePublicKeyRequestValidationError) Field() string
- func (e RevokePublicKeyRequestValidationError) Key() bool
- func (e RevokePublicKeyRequestValidationError) Reason() string
- type RevokePublicKeyResponse
- func (*RevokePublicKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokePublicKeyResponse) GetResult() RevokePublicKeyResponse_Result
- func (*RevokePublicKeyResponse) ProtoMessage()
- func (x *RevokePublicKeyResponse) ProtoReflect() protoreflect.Message
- func (x *RevokePublicKeyResponse) Reset()
- func (x *RevokePublicKeyResponse) String() string
- func (m *RevokePublicKeyResponse) Validate() error
- func (m *RevokePublicKeyResponse) ValidateAll() error
- type RevokePublicKeyResponseMultiError
- type RevokePublicKeyResponseValidationError
- func (e RevokePublicKeyResponseValidationError) Cause() error
- func (e RevokePublicKeyResponseValidationError) Error() string
- func (e RevokePublicKeyResponseValidationError) ErrorName() string
- func (e RevokePublicKeyResponseValidationError) Field() string
- func (e RevokePublicKeyResponseValidationError) Key() bool
- func (e RevokePublicKeyResponseValidationError) Reason() string
- type RevokePublicKeyResponse_Result
- func (RevokePublicKeyResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x RevokePublicKeyResponse_Result) Enum() *RevokePublicKeyResponse_Result
- func (RevokePublicKeyResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x RevokePublicKeyResponse_Result) Number() protoreflect.EnumNumber
- func (x RevokePublicKeyResponse_Result) String() string
- func (RevokePublicKeyResponse_Result) Type() protoreflect.EnumType
- type UnimplementedAccountServer
- func (UnimplementedAccountServer) AuthorizePublicKey(context.Context, *AuthorizePublicKeyRequest) (*AuthorizePublicKeyResponse, error)
- func (UnimplementedAccountServer) GetPaymentDestination(context.Context, *GetPaymentDestinationRequest) (*GetPaymentDestinationResponse, error)
- func (UnimplementedAccountServer) GetUserFlags(context.Context, *GetUserFlagsRequest) (*GetUserFlagsResponse, error)
- func (UnimplementedAccountServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAccountServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedAccountServer) RevokePublicKey(context.Context, *RevokePublicKeyRequest) (*RevokePublicKeyResponse, error)
- type UnsafeAccountServer
- type UserFlags
- func (*UserFlags) Descriptor() ([]byte, []int)deprecated
- func (x *UserFlags) GetCanSendIsTypingNotifications() bool
- func (x *UserFlags) GetCanSendIsTypingNotificationsAsListener() bool
- func (x *UserFlags) GetFeeDestination() *v1.PublicKey
- func (x *UserFlags) GetIsRegisteredAccount() bool
- func (x *UserFlags) GetIsStaff() bool
- func (x *UserFlags) GetIsTypingNotificationInterval() *durationpb.Duration
- func (x *UserFlags) GetIsTypingNotificationTimeout() *durationpb.Duration
- func (x *UserFlags) GetStartGroupFee() *v1.PaymentAmount
- func (*UserFlags) ProtoMessage()
- func (x *UserFlags) ProtoReflect() protoreflect.Message
- func (x *UserFlags) Reset()
- func (x *UserFlags) String() string
- func (m *UserFlags) Validate() error
- func (m *UserFlags) ValidateAll() error
- type UserFlagsMultiError
- type UserFlagsValidationError
Constants ¶
const ( Account_Register_FullMethodName = "/flipchat.account.v1.Account/Register" Account_Login_FullMethodName = "/flipchat.account.v1.Account/Login" Account_AuthorizePublicKey_FullMethodName = "/flipchat.account.v1.Account/AuthorizePublicKey" Account_RevokePublicKey_FullMethodName = "/flipchat.account.v1.Account/RevokePublicKey" Account_GetPaymentDestination_FullMethodName = "/flipchat.account.v1.Account/GetPaymentDestination" Account_GetUserFlags_FullMethodName = "/flipchat.account.v1.Account/GetUserFlags" )
Variables ¶
var ( RegisterResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVALID_SIGNATURE", 2: "INVALID_DISPLAY_NAME", 3: "DENIED", } RegisterResponse_Result_value = map[string]int32{ "OK": 0, "INVALID_SIGNATURE": 1, "INVALID_DISPLAY_NAME": 2, "DENIED": 3, } )
Enum value maps for RegisterResponse_Result.
var ( LoginResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVALID_TIMESTAMP", 2: "DENIED", } LoginResponse_Result_value = map[string]int32{ "OK": 0, "INVALID_TIMESTAMP": 1, "DENIED": 2, } )
Enum value maps for LoginResponse_Result.
var ( AuthorizePublicKeyResponse_Result_name = map[int32]string{ 0: "OK", 1: "DENIED", } AuthorizePublicKeyResponse_Result_value = map[string]int32{ "OK": 0, "DENIED": 1, } )
Enum value maps for AuthorizePublicKeyResponse_Result.
var ( RevokePublicKeyResponse_Result_name = map[int32]string{ 0: "OK", 1: "DENIED", 2: "LAST_PUB_KEY", } RevokePublicKeyResponse_Result_value = map[string]int32{ "OK": 0, "DENIED": 1, "LAST_PUB_KEY": 2, } )
Enum value maps for RevokePublicKeyResponse_Result.
var ( GetPaymentDestinationResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", } GetPaymentDestinationResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, } )
Enum value maps for GetPaymentDestinationResponse_Result.
var ( GetUserFlagsResponse_Result_name = map[int32]string{ 0: "OK", 1: "DENIED", } GetUserFlagsResponse_Result_value = map[string]int32{ "OK": 0, "DENIED": 1, } )
Enum value maps for GetUserFlagsResponse_Result.
var Account_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flipchat.account.v1.Account", HandlerType: (*AccountServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _Account_Register_Handler, }, { MethodName: "Login", Handler: _Account_Login_Handler, }, { MethodName: "AuthorizePublicKey", Handler: _Account_AuthorizePublicKey_Handler, }, { MethodName: "RevokePublicKey", Handler: _Account_RevokePublicKey_Handler, }, { MethodName: "GetPaymentDestination", Handler: _Account_GetPaymentDestination_Handler, }, { MethodName: "GetUserFlags", Handler: _Account_GetUserFlags_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account/v1/account_service.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)
var File_account_v1_account_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServer ¶
func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
Types ¶
type AccountClient ¶
type AccountClient interface { // Register registers a new user, bound to the provided PublicKey. // If the PublicKey is already in use, the previous user account is returned. Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) // Login retrieves the UserId (and in the future, potentially other information) // required for 'recovering' an account. Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) // AuthorizePublicKey authorizes an additional PublicKey to an account. AuthorizePublicKey(ctx context.Context, in *AuthorizePublicKeyRequest, opts ...grpc.CallOption) (*AuthorizePublicKeyResponse, error) // RevokePublicKey revokes a public key from an account. // // There must be at least one public key per account. For now, any authorized public key // may revoke another public key, but this may change in the future. RevokePublicKey(ctx context.Context, in *RevokePublicKeyRequest, opts ...grpc.CallOption) (*RevokePublicKeyResponse, error) // GetPaymentDestination gets the payment destination for a UserId GetPaymentDestination(ctx context.Context, in *GetPaymentDestinationRequest, opts ...grpc.CallOption) (*GetPaymentDestinationResponse, error) // GetUserFlags gets user-specific flags GetUserFlags(ctx context.Context, in *GetUserFlagsRequest, opts ...grpc.CallOption) (*GetUserFlagsResponse, 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 AccountServer ¶
type AccountServer interface { // Register registers a new user, bound to the provided PublicKey. // If the PublicKey is already in use, the previous user account is returned. Register(context.Context, *RegisterRequest) (*RegisterResponse, error) // Login retrieves the UserId (and in the future, potentially other information) // required for 'recovering' an account. Login(context.Context, *LoginRequest) (*LoginResponse, error) // AuthorizePublicKey authorizes an additional PublicKey to an account. AuthorizePublicKey(context.Context, *AuthorizePublicKeyRequest) (*AuthorizePublicKeyResponse, error) // RevokePublicKey revokes a public key from an account. // // There must be at least one public key per account. For now, any authorized public key // may revoke another public key, but this may change in the future. RevokePublicKey(context.Context, *RevokePublicKeyRequest) (*RevokePublicKeyResponse, error) // GetPaymentDestination gets the payment destination for a UserId GetPaymentDestination(context.Context, *GetPaymentDestinationRequest) (*GetPaymentDestinationResponse, error) // GetUserFlags gets user-specific flags GetUserFlags(context.Context, *GetUserFlagsRequest) (*GetUserFlagsResponse, error) // contains filtered or unexported methods }
AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility.
type AuthorizePublicKeyRequest ¶
type AuthorizePublicKeyRequest struct { // UserId to bound the new public key to. UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // PublicKey of the account to be added. PublicKey *v1.PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Signature of this message, not including auth or signature, using the // new public key. Signature *v1.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` Auth *v1.Auth `protobuf:"bytes,4,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*AuthorizePublicKeyRequest) Descriptor
deprecated
func (*AuthorizePublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizePublicKeyRequest.ProtoReflect.Descriptor instead.
func (*AuthorizePublicKeyRequest) GetAuth ¶
func (x *AuthorizePublicKeyRequest) GetAuth() *v1.Auth
func (*AuthorizePublicKeyRequest) GetPublicKey ¶
func (x *AuthorizePublicKeyRequest) GetPublicKey() *v1.PublicKey
func (*AuthorizePublicKeyRequest) GetSignature ¶
func (x *AuthorizePublicKeyRequest) GetSignature() *v1.Signature
func (*AuthorizePublicKeyRequest) GetUserId ¶
func (x *AuthorizePublicKeyRequest) GetUserId() *v1.UserId
func (*AuthorizePublicKeyRequest) ProtoMessage ¶
func (*AuthorizePublicKeyRequest) ProtoMessage()
func (*AuthorizePublicKeyRequest) ProtoReflect ¶
func (x *AuthorizePublicKeyRequest) ProtoReflect() protoreflect.Message
func (*AuthorizePublicKeyRequest) Reset ¶
func (x *AuthorizePublicKeyRequest) Reset()
func (*AuthorizePublicKeyRequest) String ¶
func (x *AuthorizePublicKeyRequest) String() string
func (*AuthorizePublicKeyRequest) Validate ¶
func (m *AuthorizePublicKeyRequest) Validate() error
Validate checks the field values on AuthorizePublicKeyRequest 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 (*AuthorizePublicKeyRequest) ValidateAll ¶
func (m *AuthorizePublicKeyRequest) ValidateAll() error
ValidateAll checks the field values on AuthorizePublicKeyRequest 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 AuthorizePublicKeyRequestMultiError, or nil if none found.
type AuthorizePublicKeyRequestMultiError ¶
type AuthorizePublicKeyRequestMultiError []error
AuthorizePublicKeyRequestMultiError is an error wrapping multiple validation errors returned by AuthorizePublicKeyRequest.ValidateAll() if the designated constraints aren't met.
func (AuthorizePublicKeyRequestMultiError) AllErrors ¶
func (m AuthorizePublicKeyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthorizePublicKeyRequestMultiError) Error ¶
func (m AuthorizePublicKeyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthorizePublicKeyRequestValidationError ¶
type AuthorizePublicKeyRequestValidationError struct {
// contains filtered or unexported fields
}
AuthorizePublicKeyRequestValidationError is the validation error returned by AuthorizePublicKeyRequest.Validate if the designated constraints aren't met.
func (AuthorizePublicKeyRequestValidationError) Cause ¶
func (e AuthorizePublicKeyRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthorizePublicKeyRequestValidationError) Error ¶
func (e AuthorizePublicKeyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthorizePublicKeyRequestValidationError) ErrorName ¶
func (e AuthorizePublicKeyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthorizePublicKeyRequestValidationError) Field ¶
func (e AuthorizePublicKeyRequestValidationError) Field() string
Field function returns field value.
func (AuthorizePublicKeyRequestValidationError) Key ¶
func (e AuthorizePublicKeyRequestValidationError) Key() bool
Key function returns key value.
func (AuthorizePublicKeyRequestValidationError) Reason ¶
func (e AuthorizePublicKeyRequestValidationError) Reason() string
Reason function returns reason value.
type AuthorizePublicKeyResponse ¶
type AuthorizePublicKeyResponse struct { Result AuthorizePublicKeyResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.account.v1.AuthorizePublicKeyResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*AuthorizePublicKeyResponse) Descriptor
deprecated
func (*AuthorizePublicKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizePublicKeyResponse.ProtoReflect.Descriptor instead.
func (*AuthorizePublicKeyResponse) GetResult ¶
func (x *AuthorizePublicKeyResponse) GetResult() AuthorizePublicKeyResponse_Result
func (*AuthorizePublicKeyResponse) ProtoMessage ¶
func (*AuthorizePublicKeyResponse) ProtoMessage()
func (*AuthorizePublicKeyResponse) ProtoReflect ¶
func (x *AuthorizePublicKeyResponse) ProtoReflect() protoreflect.Message
func (*AuthorizePublicKeyResponse) Reset ¶
func (x *AuthorizePublicKeyResponse) Reset()
func (*AuthorizePublicKeyResponse) String ¶
func (x *AuthorizePublicKeyResponse) String() string
func (*AuthorizePublicKeyResponse) Validate ¶
func (m *AuthorizePublicKeyResponse) Validate() error
Validate checks the field values on AuthorizePublicKeyResponse 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 (*AuthorizePublicKeyResponse) ValidateAll ¶
func (m *AuthorizePublicKeyResponse) ValidateAll() error
ValidateAll checks the field values on AuthorizePublicKeyResponse 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 AuthorizePublicKeyResponseMultiError, or nil if none found.
type AuthorizePublicKeyResponseMultiError ¶
type AuthorizePublicKeyResponseMultiError []error
AuthorizePublicKeyResponseMultiError is an error wrapping multiple validation errors returned by AuthorizePublicKeyResponse.ValidateAll() if the designated constraints aren't met.
func (AuthorizePublicKeyResponseMultiError) AllErrors ¶
func (m AuthorizePublicKeyResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthorizePublicKeyResponseMultiError) Error ¶
func (m AuthorizePublicKeyResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthorizePublicKeyResponseValidationError ¶
type AuthorizePublicKeyResponseValidationError struct {
// contains filtered or unexported fields
}
AuthorizePublicKeyResponseValidationError is the validation error returned by AuthorizePublicKeyResponse.Validate if the designated constraints aren't met.
func (AuthorizePublicKeyResponseValidationError) Cause ¶
func (e AuthorizePublicKeyResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthorizePublicKeyResponseValidationError) Error ¶
func (e AuthorizePublicKeyResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthorizePublicKeyResponseValidationError) ErrorName ¶
func (e AuthorizePublicKeyResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthorizePublicKeyResponseValidationError) Field ¶
func (e AuthorizePublicKeyResponseValidationError) Field() string
Field function returns field value.
func (AuthorizePublicKeyResponseValidationError) Key ¶
func (e AuthorizePublicKeyResponseValidationError) Key() bool
Key function returns key value.
func (AuthorizePublicKeyResponseValidationError) Reason ¶
func (e AuthorizePublicKeyResponseValidationError) Reason() string
Reason function returns reason value.
type AuthorizePublicKeyResponse_Result ¶
type AuthorizePublicKeyResponse_Result int32
const ( AuthorizePublicKeyResponse_OK AuthorizePublicKeyResponse_Result = 0 AuthorizePublicKeyResponse_DENIED AuthorizePublicKeyResponse_Result = 1 )
func (AuthorizePublicKeyResponse_Result) Descriptor ¶
func (AuthorizePublicKeyResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (AuthorizePublicKeyResponse_Result) Enum ¶
func (x AuthorizePublicKeyResponse_Result) Enum() *AuthorizePublicKeyResponse_Result
func (AuthorizePublicKeyResponse_Result) EnumDescriptor
deprecated
func (AuthorizePublicKeyResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthorizePublicKeyResponse_Result.Descriptor instead.
func (AuthorizePublicKeyResponse_Result) Number ¶
func (x AuthorizePublicKeyResponse_Result) Number() protoreflect.EnumNumber
func (AuthorizePublicKeyResponse_Result) String ¶
func (x AuthorizePublicKeyResponse_Result) String() string
func (AuthorizePublicKeyResponse_Result) Type ¶
func (AuthorizePublicKeyResponse_Result) Type() protoreflect.EnumType
type GetPaymentDestinationRequest ¶
type GetPaymentDestinationRequest struct { // UserId to get the payment destination from. UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetPaymentDestinationRequest) Descriptor
deprecated
func (*GetPaymentDestinationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPaymentDestinationRequest.ProtoReflect.Descriptor instead.
func (*GetPaymentDestinationRequest) GetUserId ¶
func (x *GetPaymentDestinationRequest) GetUserId() *v1.UserId
func (*GetPaymentDestinationRequest) ProtoMessage ¶
func (*GetPaymentDestinationRequest) ProtoMessage()
func (*GetPaymentDestinationRequest) ProtoReflect ¶
func (x *GetPaymentDestinationRequest) ProtoReflect() protoreflect.Message
func (*GetPaymentDestinationRequest) Reset ¶
func (x *GetPaymentDestinationRequest) Reset()
func (*GetPaymentDestinationRequest) String ¶
func (x *GetPaymentDestinationRequest) String() string
func (*GetPaymentDestinationRequest) Validate ¶
func (m *GetPaymentDestinationRequest) Validate() error
Validate checks the field values on GetPaymentDestinationRequest 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 (*GetPaymentDestinationRequest) ValidateAll ¶
func (m *GetPaymentDestinationRequest) ValidateAll() error
ValidateAll checks the field values on GetPaymentDestinationRequest 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 GetPaymentDestinationRequestMultiError, or nil if none found.
type GetPaymentDestinationRequestMultiError ¶
type GetPaymentDestinationRequestMultiError []error
GetPaymentDestinationRequestMultiError is an error wrapping multiple validation errors returned by GetPaymentDestinationRequest.ValidateAll() if the designated constraints aren't met.
func (GetPaymentDestinationRequestMultiError) AllErrors ¶
func (m GetPaymentDestinationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPaymentDestinationRequestMultiError) Error ¶
func (m GetPaymentDestinationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPaymentDestinationRequestValidationError ¶
type GetPaymentDestinationRequestValidationError struct {
// contains filtered or unexported fields
}
GetPaymentDestinationRequestValidationError is the validation error returned by GetPaymentDestinationRequest.Validate if the designated constraints aren't met.
func (GetPaymentDestinationRequestValidationError) Cause ¶
func (e GetPaymentDestinationRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPaymentDestinationRequestValidationError) Error ¶
func (e GetPaymentDestinationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPaymentDestinationRequestValidationError) ErrorName ¶
func (e GetPaymentDestinationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPaymentDestinationRequestValidationError) Field ¶
func (e GetPaymentDestinationRequestValidationError) Field() string
Field function returns field value.
func (GetPaymentDestinationRequestValidationError) Key ¶
func (e GetPaymentDestinationRequestValidationError) Key() bool
Key function returns key value.
func (GetPaymentDestinationRequestValidationError) Reason ¶
func (e GetPaymentDestinationRequestValidationError) Reason() string
Reason function returns reason value.
type GetPaymentDestinationResponse ¶
type GetPaymentDestinationResponse struct { Result GetPaymentDestinationResponse_Result `` /* 128-byte string literal not displayed */ // Payment destination for the UserId. PaymentDestination *v1.PublicKey `protobuf:"bytes,2,opt,name=payment_destination,json=paymentDestination,proto3" json:"payment_destination,omitempty"` // contains filtered or unexported fields }
func (*GetPaymentDestinationResponse) Descriptor
deprecated
func (*GetPaymentDestinationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPaymentDestinationResponse.ProtoReflect.Descriptor instead.
func (*GetPaymentDestinationResponse) GetPaymentDestination ¶
func (x *GetPaymentDestinationResponse) GetPaymentDestination() *v1.PublicKey
func (*GetPaymentDestinationResponse) GetResult ¶
func (x *GetPaymentDestinationResponse) GetResult() GetPaymentDestinationResponse_Result
func (*GetPaymentDestinationResponse) ProtoMessage ¶
func (*GetPaymentDestinationResponse) ProtoMessage()
func (*GetPaymentDestinationResponse) ProtoReflect ¶
func (x *GetPaymentDestinationResponse) ProtoReflect() protoreflect.Message
func (*GetPaymentDestinationResponse) Reset ¶
func (x *GetPaymentDestinationResponse) Reset()
func (*GetPaymentDestinationResponse) String ¶
func (x *GetPaymentDestinationResponse) String() string
func (*GetPaymentDestinationResponse) Validate ¶
func (m *GetPaymentDestinationResponse) Validate() error
Validate checks the field values on GetPaymentDestinationResponse 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 (*GetPaymentDestinationResponse) ValidateAll ¶
func (m *GetPaymentDestinationResponse) ValidateAll() error
ValidateAll checks the field values on GetPaymentDestinationResponse 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 GetPaymentDestinationResponseMultiError, or nil if none found.
type GetPaymentDestinationResponseMultiError ¶
type GetPaymentDestinationResponseMultiError []error
GetPaymentDestinationResponseMultiError is an error wrapping multiple validation errors returned by GetPaymentDestinationResponse.ValidateAll() if the designated constraints aren't met.
func (GetPaymentDestinationResponseMultiError) AllErrors ¶
func (m GetPaymentDestinationResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPaymentDestinationResponseMultiError) Error ¶
func (m GetPaymentDestinationResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPaymentDestinationResponseValidationError ¶
type GetPaymentDestinationResponseValidationError struct {
// contains filtered or unexported fields
}
GetPaymentDestinationResponseValidationError is the validation error returned by GetPaymentDestinationResponse.Validate if the designated constraints aren't met.
func (GetPaymentDestinationResponseValidationError) Cause ¶
func (e GetPaymentDestinationResponseValidationError) Cause() error
Cause function returns cause value.
func (GetPaymentDestinationResponseValidationError) Error ¶
func (e GetPaymentDestinationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetPaymentDestinationResponseValidationError) ErrorName ¶
func (e GetPaymentDestinationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetPaymentDestinationResponseValidationError) Field ¶
func (e GetPaymentDestinationResponseValidationError) Field() string
Field function returns field value.
func (GetPaymentDestinationResponseValidationError) Key ¶
func (e GetPaymentDestinationResponseValidationError) Key() bool
Key function returns key value.
func (GetPaymentDestinationResponseValidationError) Reason ¶
func (e GetPaymentDestinationResponseValidationError) Reason() string
Reason function returns reason value.
type GetPaymentDestinationResponse_Result ¶
type GetPaymentDestinationResponse_Result int32
const ( GetPaymentDestinationResponse_OK GetPaymentDestinationResponse_Result = 0 GetPaymentDestinationResponse_NOT_FOUND GetPaymentDestinationResponse_Result = 1 )
func (GetPaymentDestinationResponse_Result) Descriptor ¶
func (GetPaymentDestinationResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetPaymentDestinationResponse_Result) Enum ¶
func (x GetPaymentDestinationResponse_Result) Enum() *GetPaymentDestinationResponse_Result
func (GetPaymentDestinationResponse_Result) EnumDescriptor
deprecated
func (GetPaymentDestinationResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetPaymentDestinationResponse_Result.Descriptor instead.
func (GetPaymentDestinationResponse_Result) Number ¶
func (x GetPaymentDestinationResponse_Result) Number() protoreflect.EnumNumber
func (GetPaymentDestinationResponse_Result) String ¶
func (x GetPaymentDestinationResponse_Result) String() string
func (GetPaymentDestinationResponse_Result) Type ¶
func (GetPaymentDestinationResponse_Result) Type() protoreflect.EnumType
type GetUserFlagsRequest ¶
type GetUserFlagsRequest struct { // UserId to get user flags for. UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Auth *v1.Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*GetUserFlagsRequest) Descriptor
deprecated
func (*GetUserFlagsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFlagsRequest.ProtoReflect.Descriptor instead.
func (*GetUserFlagsRequest) GetAuth ¶
func (x *GetUserFlagsRequest) GetAuth() *v1.Auth
func (*GetUserFlagsRequest) GetUserId ¶
func (x *GetUserFlagsRequest) GetUserId() *v1.UserId
func (*GetUserFlagsRequest) ProtoMessage ¶
func (*GetUserFlagsRequest) ProtoMessage()
func (*GetUserFlagsRequest) ProtoReflect ¶
func (x *GetUserFlagsRequest) ProtoReflect() protoreflect.Message
func (*GetUserFlagsRequest) Reset ¶
func (x *GetUserFlagsRequest) Reset()
func (*GetUserFlagsRequest) String ¶
func (x *GetUserFlagsRequest) String() string
func (*GetUserFlagsRequest) Validate ¶
func (m *GetUserFlagsRequest) Validate() error
Validate checks the field values on GetUserFlagsRequest 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 (*GetUserFlagsRequest) ValidateAll ¶
func (m *GetUserFlagsRequest) ValidateAll() error
ValidateAll checks the field values on GetUserFlagsRequest 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 GetUserFlagsRequestMultiError, or nil if none found.
type GetUserFlagsRequestMultiError ¶
type GetUserFlagsRequestMultiError []error
GetUserFlagsRequestMultiError is an error wrapping multiple validation errors returned by GetUserFlagsRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserFlagsRequestMultiError) AllErrors ¶
func (m GetUserFlagsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserFlagsRequestMultiError) Error ¶
func (m GetUserFlagsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserFlagsRequestValidationError ¶
type GetUserFlagsRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserFlagsRequestValidationError is the validation error returned by GetUserFlagsRequest.Validate if the designated constraints aren't met.
func (GetUserFlagsRequestValidationError) Cause ¶
func (e GetUserFlagsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserFlagsRequestValidationError) Error ¶
func (e GetUserFlagsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserFlagsRequestValidationError) ErrorName ¶
func (e GetUserFlagsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserFlagsRequestValidationError) Field ¶
func (e GetUserFlagsRequestValidationError) Field() string
Field function returns field value.
func (GetUserFlagsRequestValidationError) Key ¶
func (e GetUserFlagsRequestValidationError) Key() bool
Key function returns key value.
func (GetUserFlagsRequestValidationError) Reason ¶
func (e GetUserFlagsRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserFlagsResponse ¶
type GetUserFlagsResponse struct { Result GetUserFlagsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.account.v1.GetUserFlagsResponse_Result" json:"result,omitempty"` UserFlags *UserFlags `protobuf:"bytes,2,opt,name=user_flags,json=userFlags,proto3" json:"user_flags,omitempty"` // contains filtered or unexported fields }
func (*GetUserFlagsResponse) Descriptor
deprecated
func (*GetUserFlagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFlagsResponse.ProtoReflect.Descriptor instead.
func (*GetUserFlagsResponse) GetResult ¶
func (x *GetUserFlagsResponse) GetResult() GetUserFlagsResponse_Result
func (*GetUserFlagsResponse) GetUserFlags ¶
func (x *GetUserFlagsResponse) GetUserFlags() *UserFlags
func (*GetUserFlagsResponse) ProtoMessage ¶
func (*GetUserFlagsResponse) ProtoMessage()
func (*GetUserFlagsResponse) ProtoReflect ¶
func (x *GetUserFlagsResponse) ProtoReflect() protoreflect.Message
func (*GetUserFlagsResponse) Reset ¶
func (x *GetUserFlagsResponse) Reset()
func (*GetUserFlagsResponse) String ¶
func (x *GetUserFlagsResponse) String() string
func (*GetUserFlagsResponse) Validate ¶
func (m *GetUserFlagsResponse) Validate() error
Validate checks the field values on GetUserFlagsResponse 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 (*GetUserFlagsResponse) ValidateAll ¶
func (m *GetUserFlagsResponse) ValidateAll() error
ValidateAll checks the field values on GetUserFlagsResponse 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 GetUserFlagsResponseMultiError, or nil if none found.
type GetUserFlagsResponseMultiError ¶
type GetUserFlagsResponseMultiError []error
GetUserFlagsResponseMultiError is an error wrapping multiple validation errors returned by GetUserFlagsResponse.ValidateAll() if the designated constraints aren't met.
func (GetUserFlagsResponseMultiError) AllErrors ¶
func (m GetUserFlagsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserFlagsResponseMultiError) Error ¶
func (m GetUserFlagsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserFlagsResponseValidationError ¶
type GetUserFlagsResponseValidationError struct {
// contains filtered or unexported fields
}
GetUserFlagsResponseValidationError is the validation error returned by GetUserFlagsResponse.Validate if the designated constraints aren't met.
func (GetUserFlagsResponseValidationError) Cause ¶
func (e GetUserFlagsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUserFlagsResponseValidationError) Error ¶
func (e GetUserFlagsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserFlagsResponseValidationError) ErrorName ¶
func (e GetUserFlagsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserFlagsResponseValidationError) Field ¶
func (e GetUserFlagsResponseValidationError) Field() string
Field function returns field value.
func (GetUserFlagsResponseValidationError) Key ¶
func (e GetUserFlagsResponseValidationError) Key() bool
Key function returns key value.
func (GetUserFlagsResponseValidationError) Reason ¶
func (e GetUserFlagsResponseValidationError) Reason() string
Reason function returns reason value.
type GetUserFlagsResponse_Result ¶
type GetUserFlagsResponse_Result int32
const ( GetUserFlagsResponse_OK GetUserFlagsResponse_Result = 0 GetUserFlagsResponse_DENIED GetUserFlagsResponse_Result = 1 )
func (GetUserFlagsResponse_Result) Descriptor ¶
func (GetUserFlagsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetUserFlagsResponse_Result) Enum ¶
func (x GetUserFlagsResponse_Result) Enum() *GetUserFlagsResponse_Result
func (GetUserFlagsResponse_Result) EnumDescriptor
deprecated
func (GetUserFlagsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetUserFlagsResponse_Result.Descriptor instead.
func (GetUserFlagsResponse_Result) Number ¶
func (x GetUserFlagsResponse_Result) Number() protoreflect.EnumNumber
func (GetUserFlagsResponse_Result) String ¶
func (x GetUserFlagsResponse_Result) String() string
func (GetUserFlagsResponse_Result) Type ¶
func (GetUserFlagsResponse_Result) Type() protoreflect.EnumType
type LoginRequest ¶
type LoginRequest struct { // Timestamp is the timestamp the request was generated. // // The server may reject the request if the timestamp is too far off // the current (server) time. This is to prevent replay attacks. Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Auth *v1.Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetAuth ¶
func (x *LoginRequest) GetAuth() *v1.Auth
func (*LoginRequest) GetTimestamp ¶
func (x *LoginRequest) GetTimestamp() *timestamppb.Timestamp
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { Result LoginResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.account.v1.LoginResponse_Result" json:"result,omitempty"` // UserId is the user associated with the PubKey/Auth. UserId *v1.UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetResult ¶
func (x *LoginResponse) GetResult() LoginResponse_Result
func (*LoginResponse) GetUserId ¶
func (x *LoginResponse) GetUserId() *v1.UserId
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginResponse) ValidateAll ¶
func (m *LoginResponse) ValidateAll() error
ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.
type LoginResponseMultiError ¶
type LoginResponseMultiError []error
LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.
func (LoginResponseMultiError) AllErrors ¶
func (m LoginResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginResponseMultiError) Error ¶
func (m LoginResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type LoginResponse_Result ¶
type LoginResponse_Result int32
const ( LoginResponse_OK LoginResponse_Result = 0 LoginResponse_INVALID_TIMESTAMP LoginResponse_Result = 1 LoginResponse_DENIED LoginResponse_Result = 2 )
func (LoginResponse_Result) Descriptor ¶
func (LoginResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (LoginResponse_Result) Enum ¶
func (x LoginResponse_Result) Enum() *LoginResponse_Result
func (LoginResponse_Result) EnumDescriptor
deprecated
func (LoginResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoginResponse_Result.Descriptor instead.
func (LoginResponse_Result) Number ¶
func (x LoginResponse_Result) Number() protoreflect.EnumNumber
func (LoginResponse_Result) String ¶
func (x LoginResponse_Result) String() string
func (LoginResponse_Result) Type ¶
func (LoginResponse_Result) Type() protoreflect.EnumType
type RegisterRequest ¶
type RegisterRequest struct { // PublicKey the public key that is authorized to perform actions on the // registered users behalf. PublicKey *v1.PublicKey `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Signature of this message (without the signature), using the provided keypaid. Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // Deprecated: New account creation flow requires using profile service after IAP DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetDisplayName ¶
func (x *RegisterRequest) GetDisplayName() string
func (*RegisterRequest) GetPublicKey ¶
func (x *RegisterRequest) GetPublicKey() *v1.PublicKey
func (*RegisterRequest) GetSignature ¶
func (x *RegisterRequest) GetSignature() *v1.Signature
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
func (*RegisterRequest) Validate ¶
func (m *RegisterRequest) Validate() error
Validate checks the field values on RegisterRequest 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 (*RegisterRequest) ValidateAll ¶
func (m *RegisterRequest) ValidateAll() error
ValidateAll checks the field values on RegisterRequest 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 RegisterRequestMultiError, or nil if none found.
type RegisterRequestMultiError ¶
type RegisterRequestMultiError []error
RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterRequestMultiError) AllErrors ¶
func (m RegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequestMultiError) Error ¶
func (m RegisterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequestValidationError ¶
type RegisterRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.
func (RegisterRequestValidationError) Cause ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterResponse ¶
type RegisterResponse struct { Result RegisterResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.account.v1.RegisterResponse_Result" json:"result,omitempty"` // Error reason contains the reason for the error, if the // result > 1. This allows for server to impose moderation restrictions // on user provided fields. ErrorReason string `protobuf:"bytes,2,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"` // The UserId associated with the account. UserId *v1.UserId `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetErrorReason ¶
func (x *RegisterResponse) GetErrorReason() string
func (*RegisterResponse) GetResult ¶
func (x *RegisterResponse) GetResult() RegisterResponse_Result
func (*RegisterResponse) GetUserId ¶
func (x *RegisterResponse) GetUserId() *v1.UserId
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
func (*RegisterResponse) Validate ¶
func (m *RegisterResponse) Validate() error
Validate checks the field values on RegisterResponse 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 (*RegisterResponse) ValidateAll ¶
func (m *RegisterResponse) ValidateAll() error
ValidateAll checks the field values on RegisterResponse 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 RegisterResponseMultiError, or nil if none found.
type RegisterResponseMultiError ¶
type RegisterResponseMultiError []error
RegisterResponseMultiError is an error wrapping multiple validation errors returned by RegisterResponse.ValidateAll() if the designated constraints aren't met.
func (RegisterResponseMultiError) AllErrors ¶
func (m RegisterResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterResponseMultiError) Error ¶
func (m RegisterResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterResponseValidationError ¶
type RegisterResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.
func (RegisterResponseValidationError) Cause ¶
func (e RegisterResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterResponseValidationError) Error ¶
func (e RegisterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterResponseValidationError) ErrorName ¶
func (e RegisterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterResponseValidationError) Field ¶
func (e RegisterResponseValidationError) Field() string
Field function returns field value.
func (RegisterResponseValidationError) Key ¶
func (e RegisterResponseValidationError) Key() bool
Key function returns key value.
func (RegisterResponseValidationError) Reason ¶
func (e RegisterResponseValidationError) Reason() string
Reason function returns reason value.
type RegisterResponse_Result ¶
type RegisterResponse_Result int32
const ( RegisterResponse_OK RegisterResponse_Result = 0 RegisterResponse_INVALID_SIGNATURE RegisterResponse_Result = 1 RegisterResponse_INVALID_DISPLAY_NAME RegisterResponse_Result = 2 RegisterResponse_DENIED RegisterResponse_Result = 3 )
func (RegisterResponse_Result) Descriptor ¶
func (RegisterResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (RegisterResponse_Result) Enum ¶
func (x RegisterResponse_Result) Enum() *RegisterResponse_Result
func (RegisterResponse_Result) EnumDescriptor
deprecated
func (RegisterResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use RegisterResponse_Result.Descriptor instead.
func (RegisterResponse_Result) Number ¶
func (x RegisterResponse_Result) Number() protoreflect.EnumNumber
func (RegisterResponse_Result) String ¶
func (x RegisterResponse_Result) String() string
func (RegisterResponse_Result) Type ¶
func (RegisterResponse_Result) Type() protoreflect.EnumType
type RevokePublicKeyRequest ¶
type RevokePublicKeyRequest struct { // UserId to remove the public key from. UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // PublicKey to remove. PublicKey *v1.PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Auth *v1.Auth `protobuf:"bytes,4,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*RevokePublicKeyRequest) Descriptor
deprecated
func (*RevokePublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokePublicKeyRequest.ProtoReflect.Descriptor instead.
func (*RevokePublicKeyRequest) GetAuth ¶
func (x *RevokePublicKeyRequest) GetAuth() *v1.Auth
func (*RevokePublicKeyRequest) GetPublicKey ¶
func (x *RevokePublicKeyRequest) GetPublicKey() *v1.PublicKey
func (*RevokePublicKeyRequest) GetUserId ¶
func (x *RevokePublicKeyRequest) GetUserId() *v1.UserId
func (*RevokePublicKeyRequest) ProtoMessage ¶
func (*RevokePublicKeyRequest) ProtoMessage()
func (*RevokePublicKeyRequest) ProtoReflect ¶
func (x *RevokePublicKeyRequest) ProtoReflect() protoreflect.Message
func (*RevokePublicKeyRequest) Reset ¶
func (x *RevokePublicKeyRequest) Reset()
func (*RevokePublicKeyRequest) String ¶
func (x *RevokePublicKeyRequest) String() string
func (*RevokePublicKeyRequest) Validate ¶
func (m *RevokePublicKeyRequest) Validate() error
Validate checks the field values on RevokePublicKeyRequest 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 (*RevokePublicKeyRequest) ValidateAll ¶
func (m *RevokePublicKeyRequest) ValidateAll() error
ValidateAll checks the field values on RevokePublicKeyRequest 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 RevokePublicKeyRequestMultiError, or nil if none found.
type RevokePublicKeyRequestMultiError ¶
type RevokePublicKeyRequestMultiError []error
RevokePublicKeyRequestMultiError is an error wrapping multiple validation errors returned by RevokePublicKeyRequest.ValidateAll() if the designated constraints aren't met.
func (RevokePublicKeyRequestMultiError) AllErrors ¶
func (m RevokePublicKeyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RevokePublicKeyRequestMultiError) Error ¶
func (m RevokePublicKeyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RevokePublicKeyRequestValidationError ¶
type RevokePublicKeyRequestValidationError struct {
// contains filtered or unexported fields
}
RevokePublicKeyRequestValidationError is the validation error returned by RevokePublicKeyRequest.Validate if the designated constraints aren't met.
func (RevokePublicKeyRequestValidationError) Cause ¶
func (e RevokePublicKeyRequestValidationError) Cause() error
Cause function returns cause value.
func (RevokePublicKeyRequestValidationError) Error ¶
func (e RevokePublicKeyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RevokePublicKeyRequestValidationError) ErrorName ¶
func (e RevokePublicKeyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RevokePublicKeyRequestValidationError) Field ¶
func (e RevokePublicKeyRequestValidationError) Field() string
Field function returns field value.
func (RevokePublicKeyRequestValidationError) Key ¶
func (e RevokePublicKeyRequestValidationError) Key() bool
Key function returns key value.
func (RevokePublicKeyRequestValidationError) Reason ¶
func (e RevokePublicKeyRequestValidationError) Reason() string
Reason function returns reason value.
type RevokePublicKeyResponse ¶
type RevokePublicKeyResponse struct { Result RevokePublicKeyResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.account.v1.RevokePublicKeyResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*RevokePublicKeyResponse) Descriptor
deprecated
func (*RevokePublicKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokePublicKeyResponse.ProtoReflect.Descriptor instead.
func (*RevokePublicKeyResponse) GetResult ¶
func (x *RevokePublicKeyResponse) GetResult() RevokePublicKeyResponse_Result
func (*RevokePublicKeyResponse) ProtoMessage ¶
func (*RevokePublicKeyResponse) ProtoMessage()
func (*RevokePublicKeyResponse) ProtoReflect ¶
func (x *RevokePublicKeyResponse) ProtoReflect() protoreflect.Message
func (*RevokePublicKeyResponse) Reset ¶
func (x *RevokePublicKeyResponse) Reset()
func (*RevokePublicKeyResponse) String ¶
func (x *RevokePublicKeyResponse) String() string
func (*RevokePublicKeyResponse) Validate ¶
func (m *RevokePublicKeyResponse) Validate() error
Validate checks the field values on RevokePublicKeyResponse 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 (*RevokePublicKeyResponse) ValidateAll ¶
func (m *RevokePublicKeyResponse) ValidateAll() error
ValidateAll checks the field values on RevokePublicKeyResponse 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 RevokePublicKeyResponseMultiError, or nil if none found.
type RevokePublicKeyResponseMultiError ¶
type RevokePublicKeyResponseMultiError []error
RevokePublicKeyResponseMultiError is an error wrapping multiple validation errors returned by RevokePublicKeyResponse.ValidateAll() if the designated constraints aren't met.
func (RevokePublicKeyResponseMultiError) AllErrors ¶
func (m RevokePublicKeyResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RevokePublicKeyResponseMultiError) Error ¶
func (m RevokePublicKeyResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RevokePublicKeyResponseValidationError ¶
type RevokePublicKeyResponseValidationError struct {
// contains filtered or unexported fields
}
RevokePublicKeyResponseValidationError is the validation error returned by RevokePublicKeyResponse.Validate if the designated constraints aren't met.
func (RevokePublicKeyResponseValidationError) Cause ¶
func (e RevokePublicKeyResponseValidationError) Cause() error
Cause function returns cause value.
func (RevokePublicKeyResponseValidationError) Error ¶
func (e RevokePublicKeyResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RevokePublicKeyResponseValidationError) ErrorName ¶
func (e RevokePublicKeyResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RevokePublicKeyResponseValidationError) Field ¶
func (e RevokePublicKeyResponseValidationError) Field() string
Field function returns field value.
func (RevokePublicKeyResponseValidationError) Key ¶
func (e RevokePublicKeyResponseValidationError) Key() bool
Key function returns key value.
func (RevokePublicKeyResponseValidationError) Reason ¶
func (e RevokePublicKeyResponseValidationError) Reason() string
Reason function returns reason value.
type RevokePublicKeyResponse_Result ¶
type RevokePublicKeyResponse_Result int32
const ( RevokePublicKeyResponse_OK RevokePublicKeyResponse_Result = 0 RevokePublicKeyResponse_DENIED RevokePublicKeyResponse_Result = 1 RevokePublicKeyResponse_LAST_PUB_KEY RevokePublicKeyResponse_Result = 2 )
func (RevokePublicKeyResponse_Result) Descriptor ¶
func (RevokePublicKeyResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (RevokePublicKeyResponse_Result) Enum ¶
func (x RevokePublicKeyResponse_Result) Enum() *RevokePublicKeyResponse_Result
func (RevokePublicKeyResponse_Result) EnumDescriptor
deprecated
func (RevokePublicKeyResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use RevokePublicKeyResponse_Result.Descriptor instead.
func (RevokePublicKeyResponse_Result) Number ¶
func (x RevokePublicKeyResponse_Result) Number() protoreflect.EnumNumber
func (RevokePublicKeyResponse_Result) String ¶
func (x RevokePublicKeyResponse_Result) String() string
func (RevokePublicKeyResponse_Result) Type ¶
func (RevokePublicKeyResponse_Result) Type() protoreflect.EnumType
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct{}
UnimplementedAccountServer 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 (UnimplementedAccountServer) AuthorizePublicKey ¶
func (UnimplementedAccountServer) AuthorizePublicKey(context.Context, *AuthorizePublicKeyRequest) (*AuthorizePublicKeyResponse, error)
func (UnimplementedAccountServer) GetPaymentDestination ¶
func (UnimplementedAccountServer) GetPaymentDestination(context.Context, *GetPaymentDestinationRequest) (*GetPaymentDestinationResponse, error)
func (UnimplementedAccountServer) GetUserFlags ¶
func (UnimplementedAccountServer) GetUserFlags(context.Context, *GetUserFlagsRequest) (*GetUserFlagsResponse, error)
func (UnimplementedAccountServer) Login ¶
func (UnimplementedAccountServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAccountServer) Register ¶
func (UnimplementedAccountServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAccountServer) RevokePublicKey ¶
func (UnimplementedAccountServer) RevokePublicKey(context.Context, *RevokePublicKeyRequest) (*RevokePublicKeyResponse, error)
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 UserFlags ¶
type UserFlags struct { // Is this user associated with a Flipchat staff member? IsStaff bool `protobuf:"varint,1,opt,name=is_staff,json=isStaff,proto3" json:"is_staff,omitempty"` // The fee payment amount for starting a new group StartGroupFee *v1.PaymentAmount `protobuf:"bytes,2,opt,name=start_group_fee,json=startGroupFee,proto3" json:"start_group_fee,omitempty"` // The destination account where fees should be paid to FeeDestination *v1.PublicKey `protobuf:"bytes,3,opt,name=fee_destination,json=feeDestination,proto3" json:"fee_destination,omitempty"` // Is this a fully registered account using IAP for account creation? IsRegisteredAccount bool `protobuf:"varint,4,opt,name=is_registered_account,json=isRegisteredAccount,proto3" json:"is_registered_account,omitempty"` // Can this user call NotifyIsTyping at all? CanSendIsTypingNotifications bool `` /* 152-byte string literal not displayed */ // Can this user call NotifyIsTyping in chats where they are a listener? CanSendIsTypingNotificationsAsListener bool `` /* 186-byte string literal not displayed */ // Interval between calling NotifyIsTyping IsTypingNotificationInterval *durationpb.Duration `` /* 149-byte string literal not displayed */ // Client-side timeout for when they haven't seen an IsTyping event from a user. // After this timeout has elapsed, client should assume the user has stopped typing. IsTypingNotificationTimeout *durationpb.Duration `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UserFlags) Descriptor
deprecated
func (*UserFlags) GetCanSendIsTypingNotifications ¶ added in v1.1.0
func (*UserFlags) GetCanSendIsTypingNotificationsAsListener ¶ added in v1.1.0
func (*UserFlags) GetFeeDestination ¶
func (*UserFlags) GetIsRegisteredAccount ¶
func (*UserFlags) GetIsStaff ¶
func (*UserFlags) GetIsTypingNotificationInterval ¶ added in v1.1.0
func (x *UserFlags) GetIsTypingNotificationInterval() *durationpb.Duration
func (*UserFlags) GetIsTypingNotificationTimeout ¶ added in v1.1.0
func (x *UserFlags) GetIsTypingNotificationTimeout() *durationpb.Duration
func (*UserFlags) GetStartGroupFee ¶
func (x *UserFlags) GetStartGroupFee() *v1.PaymentAmount
func (*UserFlags) ProtoMessage ¶
func (*UserFlags) ProtoMessage()
func (*UserFlags) ProtoReflect ¶
func (x *UserFlags) ProtoReflect() protoreflect.Message
func (*UserFlags) Validate ¶
Validate checks the field values on UserFlags 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 (*UserFlags) ValidateAll ¶
ValidateAll checks the field values on UserFlags 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 UserFlagsMultiError, or nil if none found.
type UserFlagsMultiError ¶
type UserFlagsMultiError []error
UserFlagsMultiError is an error wrapping multiple validation errors returned by UserFlags.ValidateAll() if the designated constraints aren't met.
func (UserFlagsMultiError) AllErrors ¶
func (m UserFlagsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserFlagsMultiError) Error ¶
func (m UserFlagsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserFlagsValidationError ¶
type UserFlagsValidationError struct {
// contains filtered or unexported fields
}
UserFlagsValidationError is the validation error returned by UserFlags.Validate if the designated constraints aren't met.
func (UserFlagsValidationError) Cause ¶
func (e UserFlagsValidationError) Cause() error
Cause function returns cause value.
func (UserFlagsValidationError) Error ¶
func (e UserFlagsValidationError) Error() string
Error satisfies the builtin error interface
func (UserFlagsValidationError) ErrorName ¶
func (e UserFlagsValidationError) ErrorName() string
ErrorName returns error name.
func (UserFlagsValidationError) Field ¶
func (e UserFlagsValidationError) Field() string
Field function returns field value.
func (UserFlagsValidationError) Key ¶
func (e UserFlagsValidationError) Key() bool
Key function returns key value.
func (UserFlagsValidationError) Reason ¶
func (e UserFlagsValidationError) Reason() string
Reason function returns reason value.