invite

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvitationStatus_name = map[int32]string{
		0: "NOT_INVITED",
		1: "INVITED",
		2: "REGISTERED",
		3: "REVOKED",
	}
	InvitationStatus_value = map[string]int32{
		"NOT_INVITED": 0,
		"INVITED":     1,
		"REGISTERED":  2,
		"REVOKED":     3,
	}
)

Enum value maps for InvitationStatus.

View Source
var (
	GetInviteCountResponse_Result_name = map[int32]string{
		0: "OK",
	}
	GetInviteCountResponse_Result_value = map[string]int32{
		"OK": 0,
	}
)

Enum value maps for GetInviteCountResponse_Result.

View Source
var (
	InvitePhoneNumberResponse_Result_name = map[int32]string{
		0: "OK",
		1: "INVITE_COUNT_EXCEEDED",
		2: "ALREADY_INVITED",
		3: "USER_NOT_INVITED",
		4: "INVALID_RECEIVER_PHONE_NUMBER",
		5: "INVITE_CODE_NOT_FOUND",
		6: "INVITE_CODE_REVOKED",
		7: "INVITE_CODE_EXPIRED",
	}
	InvitePhoneNumberResponse_Result_value = map[string]int32{
		"OK":                            0,
		"INVITE_COUNT_EXCEEDED":         1,
		"ALREADY_INVITED":               2,
		"USER_NOT_INVITED":              3,
		"INVALID_RECEIVER_PHONE_NUMBER": 4,
		"INVITE_CODE_NOT_FOUND":         5,
		"INVITE_CODE_REVOKED":           6,
		"INVITE_CODE_EXPIRED":           7,
	}
)

Enum value maps for InvitePhoneNumberResponse_Result.

View Source
var (
	GetInvitationStatusResponse_Result_name = map[int32]string{
		0: "OK",
	}
	GetInvitationStatusResponse_Result_value = map[string]int32{
		"OK": 0,
	}
)

Enum value maps for GetInvitationStatusResponse_Result.

View Source
var File_invite_v2_invite_service_proto protoreflect.FileDescriptor
View Source
var Invite_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "code.invite.v2.Invite",
	HandlerType: (*InviteServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInviteCount",
			Handler:    _Invite_GetInviteCount_Handler,
		},
		{
			MethodName: "InvitePhoneNumber",
			Handler:    _Invite_InvitePhoneNumber_Handler,
		},
		{
			MethodName: "GetInvitationStatus",
			Handler:    _Invite_GetInvitationStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "invite/v2/invite_service.proto",
}

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

Functions

func RegisterInviteServer

func RegisterInviteServer(s grpc.ServiceRegistrar, srv InviteServer)

Types

type GetInvitationStatusRequest

type GetInvitationStatusRequest struct {

	// The user being queried for their invitation status.
	UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInvitationStatusRequest) Descriptor deprecated

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

Deprecated: Use GetInvitationStatusRequest.ProtoReflect.Descriptor instead.

func (*GetInvitationStatusRequest) GetUserId

func (x *GetInvitationStatusRequest) GetUserId() *v1.UserId

func (*GetInvitationStatusRequest) ProtoMessage

func (*GetInvitationStatusRequest) ProtoMessage()

func (*GetInvitationStatusRequest) ProtoReflect

func (*GetInvitationStatusRequest) Reset

func (x *GetInvitationStatusRequest) Reset()

func (*GetInvitationStatusRequest) String

func (x *GetInvitationStatusRequest) String() string

func (*GetInvitationStatusRequest) Validate

func (m *GetInvitationStatusRequest) Validate() error

Validate checks the field values on GetInvitationStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetInvitationStatusRequestValidationError

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

GetInvitationStatusRequestValidationError is the validation error returned by GetInvitationStatusRequest.Validate if the designated constraints aren't met.

func (GetInvitationStatusRequestValidationError) Cause

Cause function returns cause value.

func (GetInvitationStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (GetInvitationStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (GetInvitationStatusRequestValidationError) Field

Field function returns field value.

func (GetInvitationStatusRequestValidationError) Key

Key function returns key value.

func (GetInvitationStatusRequestValidationError) Reason

Reason function returns reason value.

type GetInvitationStatusResponse

type GetInvitationStatusResponse struct {
	Result GetInvitationStatusResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.invite.v2.GetInvitationStatusResponse_Result" json:"result,omitempty"`
	// The user's invitation status
	Status InvitationStatus `protobuf:"varint,2,opt,name=status,proto3,enum=code.invite.v2.InvitationStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInvitationStatusResponse) Descriptor deprecated

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

Deprecated: Use GetInvitationStatusResponse.ProtoReflect.Descriptor instead.

func (*GetInvitationStatusResponse) GetResult

func (*GetInvitationStatusResponse) GetStatus

func (*GetInvitationStatusResponse) ProtoMessage

func (*GetInvitationStatusResponse) ProtoMessage()

func (*GetInvitationStatusResponse) ProtoReflect

func (*GetInvitationStatusResponse) Reset

func (x *GetInvitationStatusResponse) Reset()

func (*GetInvitationStatusResponse) String

func (x *GetInvitationStatusResponse) String() string

func (*GetInvitationStatusResponse) Validate

func (m *GetInvitationStatusResponse) Validate() error

Validate checks the field values on GetInvitationStatusResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetInvitationStatusResponseValidationError

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

GetInvitationStatusResponseValidationError is the validation error returned by GetInvitationStatusResponse.Validate if the designated constraints aren't met.

func (GetInvitationStatusResponseValidationError) Cause

Cause function returns cause value.

func (GetInvitationStatusResponseValidationError) Error

Error satisfies the builtin error interface

func (GetInvitationStatusResponseValidationError) ErrorName

ErrorName returns error name.

func (GetInvitationStatusResponseValidationError) Field

Field function returns field value.

func (GetInvitationStatusResponseValidationError) Key

Key function returns key value.

func (GetInvitationStatusResponseValidationError) Reason

Reason function returns reason value.

type GetInvitationStatusResponse_Result

type GetInvitationStatusResponse_Result int32
const (
	GetInvitationStatusResponse_OK GetInvitationStatusResponse_Result = 0
)

func (GetInvitationStatusResponse_Result) Descriptor

func (GetInvitationStatusResponse_Result) Enum

func (GetInvitationStatusResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetInvitationStatusResponse_Result.Descriptor instead.

func (GetInvitationStatusResponse_Result) Number

func (GetInvitationStatusResponse_Result) String

func (GetInvitationStatusResponse_Result) Type

type GetInviteCountRequest

type GetInviteCountRequest struct {

	// The user to query for their invite count
	UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInviteCountRequest) Descriptor deprecated

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

Deprecated: Use GetInviteCountRequest.ProtoReflect.Descriptor instead.

func (*GetInviteCountRequest) GetUserId

func (x *GetInviteCountRequest) GetUserId() *v1.UserId

func (*GetInviteCountRequest) ProtoMessage

func (*GetInviteCountRequest) ProtoMessage()

func (*GetInviteCountRequest) ProtoReflect

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

func (*GetInviteCountRequest) Reset

func (x *GetInviteCountRequest) Reset()

func (*GetInviteCountRequest) String

func (x *GetInviteCountRequest) String() string

func (*GetInviteCountRequest) Validate

func (m *GetInviteCountRequest) Validate() error

Validate checks the field values on GetInviteCountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetInviteCountRequestValidationError

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

GetInviteCountRequestValidationError is the validation error returned by GetInviteCountRequest.Validate if the designated constraints aren't met.

func (GetInviteCountRequestValidationError) Cause

Cause function returns cause value.

func (GetInviteCountRequestValidationError) Error

Error satisfies the builtin error interface

func (GetInviteCountRequestValidationError) ErrorName

ErrorName returns error name.

func (GetInviteCountRequestValidationError) Field

Field function returns field value.

func (GetInviteCountRequestValidationError) Key

Key function returns key value.

func (GetInviteCountRequestValidationError) Reason

Reason function returns reason value.

type GetInviteCountResponse

type GetInviteCountResponse struct {
	Result GetInviteCountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.invite.v2.GetInviteCountResponse_Result" json:"result,omitempty"`
	// The number of invites the user is allowed to issue.
	InviteCount uint32 `protobuf:"varint,2,opt,name=invite_count,json=inviteCount,proto3" json:"invite_count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInviteCountResponse) Descriptor deprecated

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

Deprecated: Use GetInviteCountResponse.ProtoReflect.Descriptor instead.

func (*GetInviteCountResponse) GetInviteCount

func (x *GetInviteCountResponse) GetInviteCount() uint32

func (*GetInviteCountResponse) GetResult

func (*GetInviteCountResponse) ProtoMessage

func (*GetInviteCountResponse) ProtoMessage()

func (*GetInviteCountResponse) ProtoReflect

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

func (*GetInviteCountResponse) Reset

func (x *GetInviteCountResponse) Reset()

func (*GetInviteCountResponse) String

func (x *GetInviteCountResponse) String() string

func (*GetInviteCountResponse) Validate

func (m *GetInviteCountResponse) Validate() error

Validate checks the field values on GetInviteCountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetInviteCountResponseValidationError

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

GetInviteCountResponseValidationError is the validation error returned by GetInviteCountResponse.Validate if the designated constraints aren't met.

func (GetInviteCountResponseValidationError) Cause

Cause function returns cause value.

func (GetInviteCountResponseValidationError) Error

Error satisfies the builtin error interface

func (GetInviteCountResponseValidationError) ErrorName

ErrorName returns error name.

func (GetInviteCountResponseValidationError) Field

Field function returns field value.

func (GetInviteCountResponseValidationError) Key

Key function returns key value.

func (GetInviteCountResponseValidationError) Reason

Reason function returns reason value.

type GetInviteCountResponse_Result

type GetInviteCountResponse_Result int32
const (
	GetInviteCountResponse_OK GetInviteCountResponse_Result = 0
)

func (GetInviteCountResponse_Result) Descriptor

func (GetInviteCountResponse_Result) Enum

func (GetInviteCountResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetInviteCountResponse_Result.Descriptor instead.

func (GetInviteCountResponse_Result) Number

func (GetInviteCountResponse_Result) String

func (GetInviteCountResponse_Result) Type

type InvitationStatus

type InvitationStatus int32
const (
	// The phone number has never been invited.
	InvitationStatus_NOT_INVITED InvitationStatus = 0
	// The phone number has been invited at least once.
	InvitationStatus_INVITED InvitationStatus = 1
	// The phone number has been invited and used the app at least once via a
	// phone verified account creation or login.
	InvitationStatus_REGISTERED InvitationStatus = 2
	// The phone number was invited, but revoked at a later time.
	InvitationStatus_REVOKED InvitationStatus = 3
)

func (InvitationStatus) Descriptor

func (InvitationStatus) Enum

func (InvitationStatus) EnumDescriptor deprecated

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

Deprecated: Use InvitationStatus.Descriptor instead.

func (InvitationStatus) Number

func (InvitationStatus) String

func (x InvitationStatus) String() string

func (InvitationStatus) Type

type InviteClient

type InviteClient interface {
	// GetInviteCount gets the number of invites that a user can send out.
	GetInviteCount(ctx context.Context, in *GetInviteCountRequest, opts ...grpc.CallOption) (*GetInviteCountResponse, error)
	// InvitePhoneNumber invites someone to join via their phone number. A phone number
	// can only be invited once by a unique user or invite code. This is to avoid having
	// a phone number consuming more than one invite count globally.
	InvitePhoneNumber(ctx context.Context, in *InvitePhoneNumberRequest, opts ...grpc.CallOption) (*InvitePhoneNumberResponse, error)
	// GetInvitationStatus gets a phone number's invitation status.
	GetInvitationStatus(ctx context.Context, in *GetInvitationStatusRequest, opts ...grpc.CallOption) (*GetInvitationStatusResponse, error)
}

InviteClient is the client API for Invite 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 NewInviteClient

func NewInviteClient(cc grpc.ClientConnInterface) InviteClient

type InviteCode

type InviteCode struct {

	// Regex for invite codes
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*InviteCode) Descriptor deprecated

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

Deprecated: Use InviteCode.ProtoReflect.Descriptor instead.

func (*InviteCode) GetValue

func (x *InviteCode) GetValue() string

func (*InviteCode) ProtoMessage

func (*InviteCode) ProtoMessage()

func (*InviteCode) ProtoReflect

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

func (*InviteCode) Reset

func (x *InviteCode) Reset()

func (*InviteCode) String

func (x *InviteCode) String() string

func (*InviteCode) Validate

func (m *InviteCode) Validate() error

Validate checks the field values on InviteCode with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type InviteCodeValidationError

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

InviteCodeValidationError is the validation error returned by InviteCode.Validate if the designated constraints aren't met.

func (InviteCodeValidationError) Cause

func (e InviteCodeValidationError) Cause() error

Cause function returns cause value.

func (InviteCodeValidationError) Error

Error satisfies the builtin error interface

func (InviteCodeValidationError) ErrorName

func (e InviteCodeValidationError) ErrorName() string

ErrorName returns error name.

func (InviteCodeValidationError) Field

Field function returns field value.

func (InviteCodeValidationError) Key

Key function returns key value.

func (InviteCodeValidationError) Reason

func (e InviteCodeValidationError) Reason() string

Reason function returns reason value.

type InvitePhoneNumberRequest

type InvitePhoneNumberRequest struct {

	// The source for the invite. One of these values must be present
	//
	// Types that are assignable to Source:
	//
	//	*InvitePhoneNumberRequest_User
	//	*InvitePhoneNumberRequest_InviteCode
	Source isInvitePhoneNumberRequest_Source `protobuf_oneof:"source"`
	// The phone number receiving the invite.
	Receiver *v1.PhoneNumber `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// contains filtered or unexported fields
}

func (*InvitePhoneNumberRequest) Descriptor deprecated

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

Deprecated: Use InvitePhoneNumberRequest.ProtoReflect.Descriptor instead.

func (*InvitePhoneNumberRequest) GetInviteCode

func (x *InvitePhoneNumberRequest) GetInviteCode() *InviteCode

func (*InvitePhoneNumberRequest) GetReceiver

func (x *InvitePhoneNumberRequest) GetReceiver() *v1.PhoneNumber

func (*InvitePhoneNumberRequest) GetSource

func (m *InvitePhoneNumberRequest) GetSource() isInvitePhoneNumberRequest_Source

func (*InvitePhoneNumberRequest) GetUser

func (x *InvitePhoneNumberRequest) GetUser() *v1.UserId

func (*InvitePhoneNumberRequest) ProtoMessage

func (*InvitePhoneNumberRequest) ProtoMessage()

func (*InvitePhoneNumberRequest) ProtoReflect

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

func (*InvitePhoneNumberRequest) Reset

func (x *InvitePhoneNumberRequest) Reset()

func (*InvitePhoneNumberRequest) String

func (x *InvitePhoneNumberRequest) String() string

func (*InvitePhoneNumberRequest) Validate

func (m *InvitePhoneNumberRequest) Validate() error

Validate checks the field values on InvitePhoneNumberRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type InvitePhoneNumberRequestValidationError

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

InvitePhoneNumberRequestValidationError is the validation error returned by InvitePhoneNumberRequest.Validate if the designated constraints aren't met.

func (InvitePhoneNumberRequestValidationError) Cause

Cause function returns cause value.

func (InvitePhoneNumberRequestValidationError) Error

Error satisfies the builtin error interface

func (InvitePhoneNumberRequestValidationError) ErrorName

ErrorName returns error name.

func (InvitePhoneNumberRequestValidationError) Field

Field function returns field value.

func (InvitePhoneNumberRequestValidationError) Key

Key function returns key value.

func (InvitePhoneNumberRequestValidationError) Reason

Reason function returns reason value.

type InvitePhoneNumberRequest_InviteCode

type InvitePhoneNumberRequest_InviteCode struct {
	InviteCode *InviteCode `protobuf:"bytes,3,opt,name=invite_code,json=inviteCode,proto3,oneof"`
}

type InvitePhoneNumberRequest_User

type InvitePhoneNumberRequest_User struct {
	User *v1.UserId `protobuf:"bytes,1,opt,name=user,proto3,oneof"`
}

type InvitePhoneNumberResponse

type InvitePhoneNumberResponse struct {
	Result InvitePhoneNumberResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.invite.v2.InvitePhoneNumberResponse_Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*InvitePhoneNumberResponse) Descriptor deprecated

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

Deprecated: Use InvitePhoneNumberResponse.ProtoReflect.Descriptor instead.

func (*InvitePhoneNumberResponse) GetResult

func (*InvitePhoneNumberResponse) ProtoMessage

func (*InvitePhoneNumberResponse) ProtoMessage()

func (*InvitePhoneNumberResponse) ProtoReflect

func (*InvitePhoneNumberResponse) Reset

func (x *InvitePhoneNumberResponse) Reset()

func (*InvitePhoneNumberResponse) String

func (x *InvitePhoneNumberResponse) String() string

func (*InvitePhoneNumberResponse) Validate

func (m *InvitePhoneNumberResponse) Validate() error

Validate checks the field values on InvitePhoneNumberResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type InvitePhoneNumberResponseValidationError

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

InvitePhoneNumberResponseValidationError is the validation error returned by InvitePhoneNumberResponse.Validate if the designated constraints aren't met.

func (InvitePhoneNumberResponseValidationError) Cause

Cause function returns cause value.

func (InvitePhoneNumberResponseValidationError) Error

Error satisfies the builtin error interface

func (InvitePhoneNumberResponseValidationError) ErrorName

ErrorName returns error name.

func (InvitePhoneNumberResponseValidationError) Field

Field function returns field value.

func (InvitePhoneNumberResponseValidationError) Key

Key function returns key value.

func (InvitePhoneNumberResponseValidationError) Reason

Reason function returns reason value.

type InvitePhoneNumberResponse_Result

type InvitePhoneNumberResponse_Result int32
const (
	InvitePhoneNumberResponse_OK InvitePhoneNumberResponse_Result = 0
	// The source exceeded their invite count and is restricted from issuing
	// further invites.
	InvitePhoneNumberResponse_INVITE_COUNT_EXCEEDED InvitePhoneNumberResponse_Result = 1
	// The receiver phone number has already been invited. Regardless of who
	// invited it, the source's invite count is not decremented when this is
	// returned.
	InvitePhoneNumberResponse_ALREADY_INVITED InvitePhoneNumberResponse_Result = 2
	// The source  user has not been invited.
	InvitePhoneNumberResponse_USER_NOT_INVITED InvitePhoneNumberResponse_Result = 3
	// The receiver phone number failed validation.
	InvitePhoneNumberResponse_INVALID_RECEIVER_PHONE_NUMBER InvitePhoneNumberResponse_Result = 4
	// The invite code doesn't exist.
	InvitePhoneNumberResponse_INVITE_CODE_NOT_FOUND InvitePhoneNumberResponse_Result = 5
	// The invite code has been revoked.
	InvitePhoneNumberResponse_INVITE_CODE_REVOKED InvitePhoneNumberResponse_Result = 6
	// The invite code has expired.
	InvitePhoneNumberResponse_INVITE_CODE_EXPIRED InvitePhoneNumberResponse_Result = 7
)

func (InvitePhoneNumberResponse_Result) Descriptor

func (InvitePhoneNumberResponse_Result) Enum

func (InvitePhoneNumberResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use InvitePhoneNumberResponse_Result.Descriptor instead.

func (InvitePhoneNumberResponse_Result) Number

func (InvitePhoneNumberResponse_Result) String

func (InvitePhoneNumberResponse_Result) Type

type InviteServer

type InviteServer interface {
	// GetInviteCount gets the number of invites that a user can send out.
	GetInviteCount(context.Context, *GetInviteCountRequest) (*GetInviteCountResponse, error)
	// InvitePhoneNumber invites someone to join via their phone number. A phone number
	// can only be invited once by a unique user or invite code. This is to avoid having
	// a phone number consuming more than one invite count globally.
	InvitePhoneNumber(context.Context, *InvitePhoneNumberRequest) (*InvitePhoneNumberResponse, error)
	// GetInvitationStatus gets a phone number's invitation status.
	GetInvitationStatus(context.Context, *GetInvitationStatusRequest) (*GetInvitationStatusResponse, error)
	// contains filtered or unexported methods
}

InviteServer is the server API for Invite service. All implementations must embed UnimplementedInviteServer for forward compatibility

type PageToken

type PageToken struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PageToken) Descriptor deprecated

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

Deprecated: Use PageToken.ProtoReflect.Descriptor instead.

func (*PageToken) GetValue

func (x *PageToken) GetValue() []byte

func (*PageToken) ProtoMessage

func (*PageToken) ProtoMessage()

func (*PageToken) ProtoReflect

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

func (*PageToken) Reset

func (x *PageToken) Reset()

func (*PageToken) String

func (x *PageToken) String() string

func (*PageToken) Validate

func (m *PageToken) Validate() error

Validate checks the field values on PageToken with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PageTokenValidationError

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

PageTokenValidationError is the validation error returned by PageToken.Validate if the designated constraints aren't met.

func (PageTokenValidationError) Cause

func (e PageTokenValidationError) Cause() error

Cause function returns cause value.

func (PageTokenValidationError) Error

func (e PageTokenValidationError) Error() string

Error satisfies the builtin error interface

func (PageTokenValidationError) ErrorName

func (e PageTokenValidationError) ErrorName() string

ErrorName returns error name.

func (PageTokenValidationError) Field

func (e PageTokenValidationError) Field() string

Field function returns field value.

func (PageTokenValidationError) Key

Key function returns key value.

func (PageTokenValidationError) Reason

func (e PageTokenValidationError) Reason() string

Reason function returns reason value.

type UnimplementedInviteServer

type UnimplementedInviteServer struct {
}

UnimplementedInviteServer must be embedded to have forward compatible implementations.

func (UnimplementedInviteServer) GetInviteCount

type UnsafeInviteServer

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

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

Jump to

Keyboard shortcuts

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