acountpb

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 24 Imported by: 2

Documentation

Index

Constants

View Source
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

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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)

View Source
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 (*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

AllErrors returns a list of validation violation errors.

func (AuthorizePublicKeyRequestMultiError) Error

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

Cause function returns cause value.

func (AuthorizePublicKeyRequestValidationError) Error

Error satisfies the builtin error interface

func (AuthorizePublicKeyRequestValidationError) ErrorName

ErrorName returns error name.

func (AuthorizePublicKeyRequestValidationError) Field

Field function returns field value.

func (AuthorizePublicKeyRequestValidationError) Key

Key function returns key value.

func (AuthorizePublicKeyRequestValidationError) Reason

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 (*AuthorizePublicKeyResponse) ProtoMessage

func (*AuthorizePublicKeyResponse) ProtoMessage()

func (*AuthorizePublicKeyResponse) ProtoReflect

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

AllErrors returns a list of validation violation errors.

func (AuthorizePublicKeyResponseMultiError) Error

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

Cause function returns cause value.

func (AuthorizePublicKeyResponseValidationError) Error

Error satisfies the builtin error interface

func (AuthorizePublicKeyResponseValidationError) ErrorName

ErrorName returns error name.

func (AuthorizePublicKeyResponseValidationError) Field

Field function returns field value.

func (AuthorizePublicKeyResponseValidationError) Key

Key function returns key value.

func (AuthorizePublicKeyResponseValidationError) Reason

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) Enum

func (AuthorizePublicKeyResponse_Result) EnumDescriptor deprecated

func (AuthorizePublicKeyResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthorizePublicKeyResponse_Result.Descriptor instead.

func (AuthorizePublicKeyResponse_Result) Number

func (AuthorizePublicKeyResponse_Result) String

func (AuthorizePublicKeyResponse_Result) Type

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 (*GetPaymentDestinationRequest) Reset

func (x *GetPaymentDestinationRequest) Reset()

func (*GetPaymentDestinationRequest) 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

AllErrors returns a list of validation violation errors.

func (GetPaymentDestinationRequestMultiError) Error

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

Cause function returns cause value.

func (GetPaymentDestinationRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPaymentDestinationRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPaymentDestinationRequestValidationError) Field

Field function returns field value.

func (GetPaymentDestinationRequestValidationError) Key

Key function returns key value.

func (GetPaymentDestinationRequestValidationError) Reason

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 (*GetPaymentDestinationResponse) ProtoMessage

func (*GetPaymentDestinationResponse) ProtoMessage()

func (*GetPaymentDestinationResponse) ProtoReflect

func (*GetPaymentDestinationResponse) Reset

func (x *GetPaymentDestinationResponse) Reset()

func (*GetPaymentDestinationResponse) 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

AllErrors returns a list of validation violation errors.

func (GetPaymentDestinationResponseMultiError) Error

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

Cause function returns cause value.

func (GetPaymentDestinationResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPaymentDestinationResponseValidationError) ErrorName

ErrorName returns error name.

func (GetPaymentDestinationResponseValidationError) Field

Field function returns field value.

func (GetPaymentDestinationResponseValidationError) Key

Key function returns key value.

func (GetPaymentDestinationResponseValidationError) Reason

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) Enum

func (GetPaymentDestinationResponse_Result) EnumDescriptor deprecated

func (GetPaymentDestinationResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetPaymentDestinationResponse_Result.Descriptor instead.

func (GetPaymentDestinationResponse_Result) Number

func (GetPaymentDestinationResponse_Result) String

func (GetPaymentDestinationResponse_Result) Type

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

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

Cause function returns cause value.

func (GetUserFlagsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserFlagsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserFlagsRequestValidationError) Field

Field function returns field value.

func (GetUserFlagsRequestValidationError) Key

Key function returns key value.

func (GetUserFlagsRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (GetUserFlagsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserFlagsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetUserFlagsResponseValidationError) Field

Field function returns field value.

func (GetUserFlagsResponseValidationError) Key

Key function returns key value.

func (GetUserFlagsResponseValidationError) Reason

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) Enum

func (GetUserFlagsResponse_Result) EnumDescriptor deprecated

func (GetUserFlagsResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetUserFlagsResponse_Result.Descriptor instead.

func (GetUserFlagsResponse_Result) Number

func (GetUserFlagsResponse_Result) String

func (GetUserFlagsResponse_Result) Type

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

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {
	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

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type 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) Enum

func (LoginResponse_Result) EnumDescriptor deprecated

func (LoginResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use LoginResponse_Result.Descriptor instead.

func (LoginResponse_Result) Number

func (LoginResponse_Result) String

func (x LoginResponse_Result) String() string

func (LoginResponse_Result) Type

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

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

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (RegisterResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterResponseValidationError) Field

Field function returns field value.

func (RegisterResponseValidationError) Key

Key function returns key value.

func (RegisterResponseValidationError) Reason

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) Enum

func (RegisterResponse_Result) EnumDescriptor deprecated

func (RegisterResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use RegisterResponse_Result.Descriptor instead.

func (RegisterResponse_Result) Number

func (RegisterResponse_Result) String

func (x RegisterResponse_Result) String() string

func (RegisterResponse_Result) Type

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

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

Cause function returns cause value.

func (RevokePublicKeyRequestValidationError) Error

Error satisfies the builtin error interface

func (RevokePublicKeyRequestValidationError) ErrorName

ErrorName returns error name.

func (RevokePublicKeyRequestValidationError) Field

Field function returns field value.

func (RevokePublicKeyRequestValidationError) Key

Key function returns key value.

func (RevokePublicKeyRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (RevokePublicKeyResponseValidationError) Error

Error satisfies the builtin error interface

func (RevokePublicKeyResponseValidationError) ErrorName

ErrorName returns error name.

func (RevokePublicKeyResponseValidationError) Field

Field function returns field value.

func (RevokePublicKeyResponseValidationError) Key

Key function returns key value.

func (RevokePublicKeyResponseValidationError) Reason

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) Enum

func (RevokePublicKeyResponse_Result) EnumDescriptor deprecated

func (RevokePublicKeyResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use RevokePublicKeyResponse_Result.Descriptor instead.

func (RevokePublicKeyResponse_Result) Number

func (RevokePublicKeyResponse_Result) String

func (RevokePublicKeyResponse_Result) Type

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) GetUserFlags

func (UnimplementedAccountServer) Login

func (UnimplementedAccountServer) Register

func (UnimplementedAccountServer) RevokePublicKey

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) Descriptor() ([]byte, []int)

Deprecated: Use UserFlags.ProtoReflect.Descriptor instead.

func (*UserFlags) GetCanSendIsTypingNotifications added in v1.1.0

func (x *UserFlags) GetCanSendIsTypingNotifications() bool

func (*UserFlags) GetCanSendIsTypingNotificationsAsListener added in v1.1.0

func (x *UserFlags) GetCanSendIsTypingNotificationsAsListener() bool

func (*UserFlags) GetFeeDestination

func (x *UserFlags) GetFeeDestination() *v1.PublicKey

func (*UserFlags) GetIsRegisteredAccount

func (x *UserFlags) GetIsRegisteredAccount() bool

func (*UserFlags) GetIsStaff

func (x *UserFlags) GetIsStaff() bool

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) Reset

func (x *UserFlags) Reset()

func (*UserFlags) String

func (x *UserFlags) String() string

func (*UserFlags) Validate

func (m *UserFlags) Validate() error

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

func (m *UserFlags) ValidateAll() error

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

Key function returns key value.

func (UserFlagsValidationError) Reason

func (e UserFlagsValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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