phonepb

package
v1.9.13 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 22 Imported by: 4

Documentation

Index

Constants

View Source
const (
	PhoneVerification_SendVerificationCode_FullMethodName  = "/flipcash.phone.v1.PhoneVerification/SendVerificationCode"
	PhoneVerification_CheckVerificationCode_FullMethodName = "/flipcash.phone.v1.PhoneVerification/CheckVerificationCode"
	PhoneVerification_Unlink_FullMethodName                = "/flipcash.phone.v1.PhoneVerification/Unlink"
)

Variables

View Source
var (
	SendVerificationCodeResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
		2: "RATE_LIMITED",
		3: "INVALID_PHONE_NUMBER",
		4: "UNSUPPORTED_PHONE_TYPE",
	}
	SendVerificationCodeResponse_Result_value = map[string]int32{
		"OK":                     0,
		"DENIED":                 1,
		"RATE_LIMITED":           2,
		"INVALID_PHONE_NUMBER":   3,
		"UNSUPPORTED_PHONE_TYPE": 4,
	}
)

Enum value maps for SendVerificationCodeResponse_Result.

View Source
var (
	CheckVerificationCodeResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
		2: "RATE_LIMITED",
		3: "INVALID_CODE",
		4: "NO_VERIFICATION",
	}
	CheckVerificationCodeResponse_Result_value = map[string]int32{
		"OK":              0,
		"DENIED":          1,
		"RATE_LIMITED":    2,
		"INVALID_CODE":    3,
		"NO_VERIFICATION": 4,
	}
)

Enum value maps for CheckVerificationCodeResponse_Result.

View Source
var (
	UnlinkResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
	}
	UnlinkResponse_Result_value = map[string]int32{
		"OK":     0,
		"DENIED": 1,
	}
)

Enum value maps for UnlinkResponse_Result.

View Source
var File_phone_v1_model_proto protoreflect.FileDescriptor
View Source
var File_phone_v1_phone_verification_service_proto protoreflect.FileDescriptor
View Source
var PhoneVerification_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipcash.phone.v1.PhoneVerification",
	HandlerType: (*PhoneVerificationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendVerificationCode",
			Handler:    _PhoneVerification_SendVerificationCode_Handler,
		},
		{
			MethodName: "CheckVerificationCode",
			Handler:    _PhoneVerification_CheckVerificationCode_Handler,
		},
		{
			MethodName: "Unlink",
			Handler:    _PhoneVerification_Unlink_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "phone/v1/phone_verification_service.proto",
}

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

Functions

func RegisterPhoneVerificationServer

func RegisterPhoneVerificationServer(s grpc.ServiceRegistrar, srv PhoneVerificationServer)

Types

type CheckVerificationCodeRequest

type CheckVerificationCodeRequest struct {

	// The phone number being verified
	PhoneNumber *PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	// The verification code received via SMS
	Code *VerificationCode `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Auth *v1.Auth          `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckVerificationCodeRequest) Descriptor deprecated

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

Deprecated: Use CheckVerificationCodeRequest.ProtoReflect.Descriptor instead.

func (*CheckVerificationCodeRequest) GetAuth

func (x *CheckVerificationCodeRequest) GetAuth() *v1.Auth

func (*CheckVerificationCodeRequest) GetCode

func (*CheckVerificationCodeRequest) GetPhoneNumber

func (x *CheckVerificationCodeRequest) GetPhoneNumber() *PhoneNumber

func (*CheckVerificationCodeRequest) ProtoMessage

func (*CheckVerificationCodeRequest) ProtoMessage()

func (*CheckVerificationCodeRequest) ProtoReflect

func (*CheckVerificationCodeRequest) Reset

func (x *CheckVerificationCodeRequest) Reset()

func (*CheckVerificationCodeRequest) String

func (*CheckVerificationCodeRequest) Validate

func (m *CheckVerificationCodeRequest) Validate() error

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

func (m *CheckVerificationCodeRequest) ValidateAll() error

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

type CheckVerificationCodeRequestMultiError

type CheckVerificationCodeRequestMultiError []error

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

func (CheckVerificationCodeRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CheckVerificationCodeRequestMultiError) Error

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

type CheckVerificationCodeRequestValidationError

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

CheckVerificationCodeRequestValidationError is the validation error returned by CheckVerificationCodeRequest.Validate if the designated constraints aren't met.

func (CheckVerificationCodeRequestValidationError) Cause

Cause function returns cause value.

func (CheckVerificationCodeRequestValidationError) Error

Error satisfies the builtin error interface

func (CheckVerificationCodeRequestValidationError) ErrorName

ErrorName returns error name.

func (CheckVerificationCodeRequestValidationError) Field

Field function returns field value.

func (CheckVerificationCodeRequestValidationError) Key

Key function returns key value.

func (CheckVerificationCodeRequestValidationError) Reason

Reason function returns reason value.

type CheckVerificationCodeResponse

type CheckVerificationCodeResponse struct {
	Result CheckVerificationCodeResponse_Result `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CheckVerificationCodeResponse) Descriptor deprecated

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

Deprecated: Use CheckVerificationCodeResponse.ProtoReflect.Descriptor instead.

func (*CheckVerificationCodeResponse) GetResult

func (*CheckVerificationCodeResponse) ProtoMessage

func (*CheckVerificationCodeResponse) ProtoMessage()

func (*CheckVerificationCodeResponse) ProtoReflect

func (*CheckVerificationCodeResponse) Reset

func (x *CheckVerificationCodeResponse) Reset()

func (*CheckVerificationCodeResponse) String

func (*CheckVerificationCodeResponse) Validate

func (m *CheckVerificationCodeResponse) Validate() error

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

func (m *CheckVerificationCodeResponse) ValidateAll() error

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

type CheckVerificationCodeResponseMultiError

type CheckVerificationCodeResponseMultiError []error

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

func (CheckVerificationCodeResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CheckVerificationCodeResponseMultiError) Error

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

type CheckVerificationCodeResponseValidationError

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

CheckVerificationCodeResponseValidationError is the validation error returned by CheckVerificationCodeResponse.Validate if the designated constraints aren't met.

func (CheckVerificationCodeResponseValidationError) Cause

Cause function returns cause value.

func (CheckVerificationCodeResponseValidationError) Error

Error satisfies the builtin error interface

func (CheckVerificationCodeResponseValidationError) ErrorName

ErrorName returns error name.

func (CheckVerificationCodeResponseValidationError) Field

Field function returns field value.

func (CheckVerificationCodeResponseValidationError) Key

Key function returns key value.

func (CheckVerificationCodeResponseValidationError) Reason

Reason function returns reason value.

type CheckVerificationCodeResponse_Result

type CheckVerificationCodeResponse_Result int32
const (
	CheckVerificationCodeResponse_OK     CheckVerificationCodeResponse_Result = 0
	CheckVerificationCodeResponse_DENIED CheckVerificationCodeResponse_Result = 1
	// The call is rate limited (eg. by IP, phone number, etc). The code is
	// not verified.
	CheckVerificationCodeResponse_RATE_LIMITED CheckVerificationCodeResponse_Result = 2
	// The provided verification code is invalid. The user may retry
	// enterring the code if this is received. When max attempts are
	// received, NO_VERIFICATION will be returned.
	CheckVerificationCodeResponse_INVALID_CODE CheckVerificationCodeResponse_Result = 3
	// There is no verification in progress for the phone number. Several
	// reasons this can occur include a verification being expired or having
	// reached a maximum check threshold. The client must initiate a new
	// verification using SendVerificationCode.
	CheckVerificationCodeResponse_NO_VERIFICATION CheckVerificationCodeResponse_Result = 4
)

func (CheckVerificationCodeResponse_Result) Descriptor

func (CheckVerificationCodeResponse_Result) Enum

func (CheckVerificationCodeResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use CheckVerificationCodeResponse_Result.Descriptor instead.

func (CheckVerificationCodeResponse_Result) Number

func (CheckVerificationCodeResponse_Result) String

func (CheckVerificationCodeResponse_Result) Type

type PhoneNumber

type PhoneNumber struct {

	// Regex provided by Twilio here: https://www.twilio.com/docs/glossary/what-e164#regex-matching-for-e164
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

PhoneNumber is an E.164 phone number

func (*PhoneNumber) Descriptor deprecated

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

Deprecated: Use PhoneNumber.ProtoReflect.Descriptor instead.

func (*PhoneNumber) GetValue

func (x *PhoneNumber) GetValue() string

func (*PhoneNumber) ProtoMessage

func (*PhoneNumber) ProtoMessage()

func (*PhoneNumber) ProtoReflect

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

func (*PhoneNumber) Reset

func (x *PhoneNumber) Reset()

func (*PhoneNumber) String

func (x *PhoneNumber) String() string

func (*PhoneNumber) Validate

func (m *PhoneNumber) Validate() error

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

func (m *PhoneNumber) ValidateAll() error

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

type PhoneNumberMultiError

type PhoneNumberMultiError []error

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

func (PhoneNumberMultiError) AllErrors

func (m PhoneNumberMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PhoneNumberMultiError) Error

func (m PhoneNumberMultiError) Error() string

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

type PhoneNumberValidationError

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

PhoneNumberValidationError is the validation error returned by PhoneNumber.Validate if the designated constraints aren't met.

func (PhoneNumberValidationError) Cause

Cause function returns cause value.

func (PhoneNumberValidationError) Error

Error satisfies the builtin error interface

func (PhoneNumberValidationError) ErrorName

func (e PhoneNumberValidationError) ErrorName() string

ErrorName returns error name.

func (PhoneNumberValidationError) Field

Field function returns field value.

func (PhoneNumberValidationError) Key

Key function returns key value.

func (PhoneNumberValidationError) Reason

Reason function returns reason value.

type PhoneVerificationClient

type PhoneVerificationClient interface {
	// SendVerificationCode sends a verification code to the provided phone number
	// over SMS. If an active verification is already taking place, the existing code
	// will be resent.
	SendVerificationCode(ctx context.Context, in *SendVerificationCodeRequest, opts ...grpc.CallOption) (*SendVerificationCodeResponse, error)
	// CheckVerificationCode validates a verification code. On success, the phone number
	// is linked to the user. Any previous links are overwritten.
	CheckVerificationCode(ctx context.Context, in *CheckVerificationCodeRequest, opts ...grpc.CallOption) (*CheckVerificationCodeResponse, error)
	// Unlink removes the link of a phone number from a user.
	Unlink(ctx context.Context, in *UnlinkRequest, opts ...grpc.CallOption) (*UnlinkResponse, error)
}

PhoneVerificationClient is the client API for PhoneVerification service.

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

type PhoneVerificationServer

type PhoneVerificationServer interface {
	// SendVerificationCode sends a verification code to the provided phone number
	// over SMS. If an active verification is already taking place, the existing code
	// will be resent.
	SendVerificationCode(context.Context, *SendVerificationCodeRequest) (*SendVerificationCodeResponse, error)
	// CheckVerificationCode validates a verification code. On success, the phone number
	// is linked to the user. Any previous links are overwritten.
	CheckVerificationCode(context.Context, *CheckVerificationCodeRequest) (*CheckVerificationCodeResponse, error)
	// Unlink removes the link of a phone number from a user.
	Unlink(context.Context, *UnlinkRequest) (*UnlinkResponse, error)
	// contains filtered or unexported methods
}

PhoneVerificationServer is the server API for PhoneVerification service. All implementations must embed UnimplementedPhoneVerificationServer for forward compatibility.

type SendVerificationCodeRequest

type SendVerificationCodeRequest struct {

	// The phone number to send a verification code over SMS to
	PhoneNumber *PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	// The app platform that's making this request
	Platform v1.Platform `protobuf:"varint,2,opt,name=platform,proto3,enum=flipcash.common.v1.Platform" json:"platform,omitempty"`
	Auth     *v1.Auth    `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*SendVerificationCodeRequest) Descriptor deprecated

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

Deprecated: Use SendVerificationCodeRequest.ProtoReflect.Descriptor instead.

func (*SendVerificationCodeRequest) GetAuth

func (x *SendVerificationCodeRequest) GetAuth() *v1.Auth

func (*SendVerificationCodeRequest) GetPhoneNumber

func (x *SendVerificationCodeRequest) GetPhoneNumber() *PhoneNumber

func (*SendVerificationCodeRequest) GetPlatform added in v1.7.3

func (x *SendVerificationCodeRequest) GetPlatform() v1.Platform

func (*SendVerificationCodeRequest) ProtoMessage

func (*SendVerificationCodeRequest) ProtoMessage()

func (*SendVerificationCodeRequest) ProtoReflect

func (*SendVerificationCodeRequest) Reset

func (x *SendVerificationCodeRequest) Reset()

func (*SendVerificationCodeRequest) String

func (x *SendVerificationCodeRequest) String() string

func (*SendVerificationCodeRequest) Validate

func (m *SendVerificationCodeRequest) Validate() error

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

func (m *SendVerificationCodeRequest) ValidateAll() error

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

type SendVerificationCodeRequestMultiError

type SendVerificationCodeRequestMultiError []error

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

func (SendVerificationCodeRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (SendVerificationCodeRequestMultiError) Error

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

type SendVerificationCodeRequestValidationError

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

SendVerificationCodeRequestValidationError is the validation error returned by SendVerificationCodeRequest.Validate if the designated constraints aren't met.

func (SendVerificationCodeRequestValidationError) Cause

Cause function returns cause value.

func (SendVerificationCodeRequestValidationError) Error

Error satisfies the builtin error interface

func (SendVerificationCodeRequestValidationError) ErrorName

ErrorName returns error name.

func (SendVerificationCodeRequestValidationError) Field

Field function returns field value.

func (SendVerificationCodeRequestValidationError) Key

Key function returns key value.

func (SendVerificationCodeRequestValidationError) Reason

Reason function returns reason value.

type SendVerificationCodeResponse

type SendVerificationCodeResponse struct {
	Result SendVerificationCodeResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.phone.v1.SendVerificationCodeResponse_Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SendVerificationCodeResponse) Descriptor deprecated

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

Deprecated: Use SendVerificationCodeResponse.ProtoReflect.Descriptor instead.

func (*SendVerificationCodeResponse) GetResult

func (*SendVerificationCodeResponse) ProtoMessage

func (*SendVerificationCodeResponse) ProtoMessage()

func (*SendVerificationCodeResponse) ProtoReflect

func (*SendVerificationCodeResponse) Reset

func (x *SendVerificationCodeResponse) Reset()

func (*SendVerificationCodeResponse) String

func (*SendVerificationCodeResponse) Validate

func (m *SendVerificationCodeResponse) Validate() error

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

func (m *SendVerificationCodeResponse) ValidateAll() error

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

type SendVerificationCodeResponseMultiError

type SendVerificationCodeResponseMultiError []error

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

func (SendVerificationCodeResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (SendVerificationCodeResponseMultiError) Error

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

type SendVerificationCodeResponseValidationError

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

SendVerificationCodeResponseValidationError is the validation error returned by SendVerificationCodeResponse.Validate if the designated constraints aren't met.

func (SendVerificationCodeResponseValidationError) Cause

Cause function returns cause value.

func (SendVerificationCodeResponseValidationError) Error

Error satisfies the builtin error interface

func (SendVerificationCodeResponseValidationError) ErrorName

ErrorName returns error name.

func (SendVerificationCodeResponseValidationError) Field

Field function returns field value.

func (SendVerificationCodeResponseValidationError) Key

Key function returns key value.

func (SendVerificationCodeResponseValidationError) Reason

Reason function returns reason value.

type SendVerificationCodeResponse_Result

type SendVerificationCodeResponse_Result int32
const (
	SendVerificationCodeResponse_OK SendVerificationCodeResponse_Result = 0
	// SMS is denied
	SendVerificationCodeResponse_DENIED SendVerificationCodeResponse_Result = 1
	// SMS is rate limited (eg. by IP, phone number, user, etc) and was not sent.
	SendVerificationCodeResponse_RATE_LIMITED SendVerificationCodeResponse_Result = 2
	// The phone number is not real because it fails Twilio lookup.
	SendVerificationCodeResponse_INVALID_PHONE_NUMBER SendVerificationCodeResponse_Result = 3
	// The phone number is valid, but it maps to an unsupported type of phone
	// like a landline.
	SendVerificationCodeResponse_UNSUPPORTED_PHONE_TYPE SendVerificationCodeResponse_Result = 4
)

func (SendVerificationCodeResponse_Result) Descriptor

func (SendVerificationCodeResponse_Result) Enum

func (SendVerificationCodeResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use SendVerificationCodeResponse_Result.Descriptor instead.

func (SendVerificationCodeResponse_Result) Number

func (SendVerificationCodeResponse_Result) String

func (SendVerificationCodeResponse_Result) Type

type UnimplementedPhoneVerificationServer

type UnimplementedPhoneVerificationServer struct{}

UnimplementedPhoneVerificationServer 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 (UnimplementedPhoneVerificationServer) SendVerificationCode

type UnlinkRequest added in v1.9.10

type UnlinkRequest struct {

	// The phone number to unlink
	PhoneNumber *PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	Auth        *v1.Auth     `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*UnlinkRequest) Descriptor deprecated added in v1.9.10

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

Deprecated: Use UnlinkRequest.ProtoReflect.Descriptor instead.

func (*UnlinkRequest) GetAuth added in v1.9.10

func (x *UnlinkRequest) GetAuth() *v1.Auth

func (*UnlinkRequest) GetPhoneNumber added in v1.9.10

func (x *UnlinkRequest) GetPhoneNumber() *PhoneNumber

func (*UnlinkRequest) ProtoMessage added in v1.9.10

func (*UnlinkRequest) ProtoMessage()

func (*UnlinkRequest) ProtoReflect added in v1.9.10

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

func (*UnlinkRequest) Reset added in v1.9.10

func (x *UnlinkRequest) Reset()

func (*UnlinkRequest) String added in v1.9.10

func (x *UnlinkRequest) String() string

func (*UnlinkRequest) Validate added in v1.9.10

func (m *UnlinkRequest) Validate() error

Validate checks the field values on UnlinkRequest 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 (*UnlinkRequest) ValidateAll added in v1.9.10

func (m *UnlinkRequest) ValidateAll() error

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

type UnlinkRequestMultiError added in v1.9.10

type UnlinkRequestMultiError []error

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

func (UnlinkRequestMultiError) AllErrors added in v1.9.10

func (m UnlinkRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnlinkRequestMultiError) Error added in v1.9.10

func (m UnlinkRequestMultiError) Error() string

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

type UnlinkRequestValidationError added in v1.9.10

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

UnlinkRequestValidationError is the validation error returned by UnlinkRequest.Validate if the designated constraints aren't met.

func (UnlinkRequestValidationError) Cause added in v1.9.10

Cause function returns cause value.

func (UnlinkRequestValidationError) Error added in v1.9.10

Error satisfies the builtin error interface

func (UnlinkRequestValidationError) ErrorName added in v1.9.10

func (e UnlinkRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UnlinkRequestValidationError) Field added in v1.9.10

Field function returns field value.

func (UnlinkRequestValidationError) Key added in v1.9.10

Key function returns key value.

func (UnlinkRequestValidationError) Reason added in v1.9.10

Reason function returns reason value.

type UnlinkResponse added in v1.9.10

type UnlinkResponse struct {
	Result UnlinkResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.phone.v1.UnlinkResponse_Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*UnlinkResponse) Descriptor deprecated added in v1.9.10

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

Deprecated: Use UnlinkResponse.ProtoReflect.Descriptor instead.

func (*UnlinkResponse) GetResult added in v1.9.10

func (x *UnlinkResponse) GetResult() UnlinkResponse_Result

func (*UnlinkResponse) ProtoMessage added in v1.9.10

func (*UnlinkResponse) ProtoMessage()

func (*UnlinkResponse) ProtoReflect added in v1.9.10

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

func (*UnlinkResponse) Reset added in v1.9.10

func (x *UnlinkResponse) Reset()

func (*UnlinkResponse) String added in v1.9.10

func (x *UnlinkResponse) String() string

func (*UnlinkResponse) Validate added in v1.9.10

func (m *UnlinkResponse) Validate() error

Validate checks the field values on UnlinkResponse 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 (*UnlinkResponse) ValidateAll added in v1.9.10

func (m *UnlinkResponse) ValidateAll() error

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

type UnlinkResponseMultiError added in v1.9.10

type UnlinkResponseMultiError []error

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

func (UnlinkResponseMultiError) AllErrors added in v1.9.10

func (m UnlinkResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnlinkResponseMultiError) Error added in v1.9.10

func (m UnlinkResponseMultiError) Error() string

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

type UnlinkResponseValidationError added in v1.9.10

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

UnlinkResponseValidationError is the validation error returned by UnlinkResponse.Validate if the designated constraints aren't met.

func (UnlinkResponseValidationError) Cause added in v1.9.10

Cause function returns cause value.

func (UnlinkResponseValidationError) Error added in v1.9.10

Error satisfies the builtin error interface

func (UnlinkResponseValidationError) ErrorName added in v1.9.10

func (e UnlinkResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UnlinkResponseValidationError) Field added in v1.9.10

Field function returns field value.

func (UnlinkResponseValidationError) Key added in v1.9.10

Key function returns key value.

func (UnlinkResponseValidationError) Reason added in v1.9.10

Reason function returns reason value.

type UnlinkResponse_Result added in v1.9.10

type UnlinkResponse_Result int32
const (
	UnlinkResponse_OK     UnlinkResponse_Result = 0
	UnlinkResponse_DENIED UnlinkResponse_Result = 1
)

func (UnlinkResponse_Result) Descriptor added in v1.9.10

func (UnlinkResponse_Result) Enum added in v1.9.10

func (UnlinkResponse_Result) EnumDescriptor deprecated added in v1.9.10

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

Deprecated: Use UnlinkResponse_Result.Descriptor instead.

func (UnlinkResponse_Result) Number added in v1.9.10

func (UnlinkResponse_Result) String added in v1.9.10

func (x UnlinkResponse_Result) String() string

func (UnlinkResponse_Result) Type added in v1.9.10

type UnsafePhoneVerificationServer

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

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

type VerificationCode

type VerificationCode struct {
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

VerificationCode is a 4-10 digit numerical code for verification

func (*VerificationCode) Descriptor deprecated

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

Deprecated: Use VerificationCode.ProtoReflect.Descriptor instead.

func (*VerificationCode) GetValue

func (x *VerificationCode) GetValue() string

func (*VerificationCode) ProtoMessage

func (*VerificationCode) ProtoMessage()

func (*VerificationCode) ProtoReflect

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

func (*VerificationCode) Reset

func (x *VerificationCode) Reset()

func (*VerificationCode) String

func (x *VerificationCode) String() string

func (*VerificationCode) Validate

func (m *VerificationCode) Validate() error

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

func (m *VerificationCode) ValidateAll() error

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

type VerificationCodeMultiError

type VerificationCodeMultiError []error

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

func (VerificationCodeMultiError) AllErrors

func (m VerificationCodeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VerificationCodeMultiError) Error

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

type VerificationCodeValidationError

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

VerificationCodeValidationError is the validation error returned by VerificationCode.Validate if the designated constraints aren't met.

func (VerificationCodeValidationError) Cause

Cause function returns cause value.

func (VerificationCodeValidationError) Error

Error satisfies the builtin error interface

func (VerificationCodeValidationError) ErrorName

ErrorName returns error name.

func (VerificationCodeValidationError) Field

Field function returns field value.

func (VerificationCodeValidationError) Key

Key function returns key value.

func (VerificationCodeValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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