notificationv1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotificationService_Send_FullMethodName           = "/notification.v1.NotificationService/Send"
	NotificationService_AsyncSend_FullMethodName      = "/notification.v1.NotificationService/AsyncSend"
	NotificationService_BatchSend_FullMethodName      = "/notification.v1.NotificationService/BatchSend"
	NotificationService_AsyncBatchSend_FullMethodName = "/notification.v1.NotificationService/AsyncBatchSend"
	NotificationService_TxPrepare_FullMethodName      = "/notification.v1.NotificationService/TxPrepare"
	NotificationService_TxCommit_FullMethodName       = "/notification.v1.NotificationService/TxCommit"
	NotificationService_TxCancel_FullMethodName       = "/notification.v1.NotificationService/TxCancel"
)
View Source
const (
	NotificationQueryService_Query_FullMethodName = "/notification.v1.NotificationQueryService/Query"
	NotificationQueryService_Batch_FullMethodName = "/notification.v1.NotificationQueryService/Batch"
)

Variables

View Source
var (
	Channel_name = map[int32]string{
		0: "CHANNEL_UNSPECIFIED",
		1: "SMS",
		2: "EMAIL",
		3: "IN_APP",
	}
	Channel_value = map[string]int32{
		"CHANNEL_UNSPECIFIED": 0,
		"SMS":                 1,
		"EMAIL":               2,
		"IN_APP":              3,
	}
)

Enum value maps for Channel.

View Source
var (
	SendStatus_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "PREPARE",
		2: "CANCEL",
		3: "PENDING",
		4: "SUCCESS",
		5: "FAILURE",
	}
	SendStatus_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"PREPARE":            1,
		"CANCEL":             2,
		"PENDING":            3,
		"SUCCESS":            4,
		"FAILURE":            5,
	}
)

Enum value maps for SendStatus.

View Source
var (
	ErrCode_name = map[int32]string{
		0:  "ERR_UNSPECIFIED",
		1:  "INVALID_PARAM",
		2:  "RATE_LIMITED",
		3:  "NO_AVAILABLE_CHANNEL",
		4:  "NO_AVAILABLE_PROVIDER",
		5:  "CHANNEL_NOT_FOUND",
		6:  "PROVIDER_NOT_FOUND",
		7:  "TEMPLATE_NOT_FOUND",
		8:  "BIZ_ID_NOT_FOUND",
		9:  "CONFIG_NOT_FOUND",
		10: "QUOTA_CONFIG_NOT_FOUND",
		11: "QUOTA_RECORD_NOT_FOUND",
		12: "NOTIFICATION_NOT_FOUND",
		13: "CREATE_NOTIFICATION_FAILED",
		14: "SEND_NOTIFICATION_FAILED",
		15: "QUOTA_NOT_ENOUGH",
	}
	ErrCode_value = map[string]int32{
		"ERR_UNSPECIFIED":            0,
		"INVALID_PARAM":              1,
		"RATE_LIMITED":               2,
		"NO_AVAILABLE_CHANNEL":       3,
		"NO_AVAILABLE_PROVIDER":      4,
		"CHANNEL_NOT_FOUND":          5,
		"PROVIDER_NOT_FOUND":         6,
		"TEMPLATE_NOT_FOUND":         7,
		"BIZ_ID_NOT_FOUND":           8,
		"CONFIG_NOT_FOUND":           9,
		"QUOTA_CONFIG_NOT_FOUND":     10,
		"QUOTA_RECORD_NOT_FOUND":     11,
		"NOTIFICATION_NOT_FOUND":     12,
		"CREATE_NOTIFICATION_FAILED": 13,
		"SEND_NOTIFICATION_FAILED":   14,
		"QUOTA_NOT_ENOUGH":           15,
	}
)

Enum value maps for ErrCode.

View Source
var File_notification_v1_notification_proto protoreflect.FileDescriptor
View Source
var File_notification_v1_notification_query_proto protoreflect.FileDescriptor
View Source
var NotificationQueryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "notification.v1.NotificationQueryService",
	HandlerType: (*NotificationQueryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Query",
			Handler:    _NotificationQueryService_Query_Handler,
		},
		{
			MethodName: "Batch",
			Handler:    _NotificationQueryService_Batch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "notification/v1/notification_query.proto",
}

NotificationQueryService_ServiceDesc is the grpc.ServiceDesc for NotificationQueryService 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 NotificationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "notification.v1.NotificationService",
	HandlerType: (*NotificationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _NotificationService_Send_Handler,
		},
		{
			MethodName: "AsyncSend",
			Handler:    _NotificationService_AsyncSend_Handler,
		},
		{
			MethodName: "BatchSend",
			Handler:    _NotificationService_BatchSend_Handler,
		},
		{
			MethodName: "AsyncBatchSend",
			Handler:    _NotificationService_AsyncBatchSend_Handler,
		},
		{
			MethodName: "TxPrepare",
			Handler:    _NotificationService_TxPrepare_Handler,
		},
		{
			MethodName: "TxCommit",
			Handler:    _NotificationService_TxCommit_Handler,
		},
		{
			MethodName: "TxCancel",
			Handler:    _NotificationService_TxCancel_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "notification/v1/notification.proto",
}

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

Functions

func RegisterNotificationQueryServiceServer

func RegisterNotificationQueryServiceServer(s grpc.ServiceRegistrar, srv NotificationQueryServiceServer)

func RegisterNotificationServiceServer

func RegisterNotificationServiceServer(s grpc.ServiceRegistrar, srv NotificationServiceServer)

Types

type AsyncBatchSendRequest

type AsyncBatchSendRequest struct {
	Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"`
	// contains filtered or unexported fields
}

func (*AsyncBatchSendRequest) Descriptor deprecated

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

Deprecated: Use AsyncBatchSendRequest.ProtoReflect.Descriptor instead.

func (*AsyncBatchSendRequest) GetNotifications

func (x *AsyncBatchSendRequest) GetNotifications() []*Notification

func (*AsyncBatchSendRequest) ProtoMessage

func (*AsyncBatchSendRequest) ProtoMessage()

func (*AsyncBatchSendRequest) ProtoReflect

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

func (*AsyncBatchSendRequest) Reset

func (x *AsyncBatchSendRequest) Reset()

func (*AsyncBatchSendRequest) String

func (x *AsyncBatchSendRequest) String() string

func (*AsyncBatchSendRequest) Validate

func (m *AsyncBatchSendRequest) Validate() error

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

func (m *AsyncBatchSendRequest) ValidateAll() error

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

type AsyncBatchSendRequestMultiError

type AsyncBatchSendRequestMultiError []error

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

func (AsyncBatchSendRequestMultiError) AllErrors

func (m AsyncBatchSendRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AsyncBatchSendRequestMultiError) Error

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

type AsyncBatchSendRequestValidationError

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

AsyncBatchSendRequestValidationError is the validation error returned by AsyncBatchSendRequest.Validate if the designated constraints aren't met.

func (AsyncBatchSendRequestValidationError) Cause

Cause function returns cause value.

func (AsyncBatchSendRequestValidationError) Error

Error satisfies the builtin error interface

func (AsyncBatchSendRequestValidationError) ErrorName

ErrorName returns error name.

func (AsyncBatchSendRequestValidationError) Field

Field function returns field value.

func (AsyncBatchSendRequestValidationError) Key

Key function returns key value.

func (AsyncBatchSendRequestValidationError) Reason

Reason function returns reason value.

type AsyncBatchSendResponse

type AsyncBatchSendResponse struct {
	NotificationIds []uint64 `protobuf:"varint,1,rep,packed,name=notification_ids,json=notificationIds,proto3" json:"notification_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*AsyncBatchSendResponse) Descriptor deprecated

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

Deprecated: Use AsyncBatchSendResponse.ProtoReflect.Descriptor instead.

func (*AsyncBatchSendResponse) GetNotificationIds

func (x *AsyncBatchSendResponse) GetNotificationIds() []uint64

func (*AsyncBatchSendResponse) ProtoMessage

func (*AsyncBatchSendResponse) ProtoMessage()

func (*AsyncBatchSendResponse) ProtoReflect

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

func (*AsyncBatchSendResponse) Reset

func (x *AsyncBatchSendResponse) Reset()

func (*AsyncBatchSendResponse) String

func (x *AsyncBatchSendResponse) String() string

func (*AsyncBatchSendResponse) Validate

func (m *AsyncBatchSendResponse) Validate() error

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

func (m *AsyncBatchSendResponse) ValidateAll() error

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

type AsyncBatchSendResponseMultiError

type AsyncBatchSendResponseMultiError []error

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

func (AsyncBatchSendResponseMultiError) AllErrors

func (m AsyncBatchSendResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AsyncBatchSendResponseMultiError) Error

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

type AsyncBatchSendResponseValidationError

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

AsyncBatchSendResponseValidationError is the validation error returned by AsyncBatchSendResponse.Validate if the designated constraints aren't met.

func (AsyncBatchSendResponseValidationError) Cause

Cause function returns cause value.

func (AsyncBatchSendResponseValidationError) Error

Error satisfies the builtin error interface

func (AsyncBatchSendResponseValidationError) ErrorName

ErrorName returns error name.

func (AsyncBatchSendResponseValidationError) Field

Field function returns field value.

func (AsyncBatchSendResponseValidationError) Key

Key function returns key value.

func (AsyncBatchSendResponseValidationError) Reason

Reason function returns reason value.

type AsyncSendRequest

type AsyncSendRequest struct {
	Notification *Notification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification,omitempty"`
	// contains filtered or unexported fields
}

func (*AsyncSendRequest) Descriptor deprecated

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

Deprecated: Use AsyncSendRequest.ProtoReflect.Descriptor instead.

func (*AsyncSendRequest) GetNotification

func (x *AsyncSendRequest) GetNotification() *Notification

func (*AsyncSendRequest) ProtoMessage

func (*AsyncSendRequest) ProtoMessage()

func (*AsyncSendRequest) ProtoReflect

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

func (*AsyncSendRequest) Reset

func (x *AsyncSendRequest) Reset()

func (*AsyncSendRequest) String

func (x *AsyncSendRequest) String() string

func (*AsyncSendRequest) Validate

func (m *AsyncSendRequest) Validate() error

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

func (m *AsyncSendRequest) ValidateAll() error

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

type AsyncSendRequestMultiError

type AsyncSendRequestMultiError []error

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

func (AsyncSendRequestMultiError) AllErrors

func (m AsyncSendRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AsyncSendRequestMultiError) Error

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

type AsyncSendRequestValidationError

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

AsyncSendRequestValidationError is the validation error returned by AsyncSendRequest.Validate if the designated constraints aren't met.

func (AsyncSendRequestValidationError) Cause

Cause function returns cause value.

func (AsyncSendRequestValidationError) Error

Error satisfies the builtin error interface

func (AsyncSendRequestValidationError) ErrorName

ErrorName returns error name.

func (AsyncSendRequestValidationError) Field

Field function returns field value.

func (AsyncSendRequestValidationError) Key

Key function returns key value.

func (AsyncSendRequestValidationError) Reason

Reason function returns reason value.

type AsyncSendResponse

type AsyncSendResponse struct {
	Result *SendResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*AsyncSendResponse) Descriptor deprecated

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

Deprecated: Use AsyncSendResponse.ProtoReflect.Descriptor instead.

func (*AsyncSendResponse) GetResult

func (x *AsyncSendResponse) GetResult() *SendResult

func (*AsyncSendResponse) ProtoMessage

func (*AsyncSendResponse) ProtoMessage()

func (*AsyncSendResponse) ProtoReflect

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

func (*AsyncSendResponse) Reset

func (x *AsyncSendResponse) Reset()

func (*AsyncSendResponse) String

func (x *AsyncSendResponse) String() string

func (*AsyncSendResponse) Validate

func (m *AsyncSendResponse) Validate() error

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

func (m *AsyncSendResponse) ValidateAll() error

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

type AsyncSendResponseMultiError

type AsyncSendResponseMultiError []error

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

func (AsyncSendResponseMultiError) AllErrors

func (m AsyncSendResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AsyncSendResponseMultiError) Error

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

type AsyncSendResponseValidationError

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

AsyncSendResponseValidationError is the validation error returned by AsyncSendResponse.Validate if the designated constraints aren't met.

func (AsyncSendResponseValidationError) Cause

Cause function returns cause value.

func (AsyncSendResponseValidationError) Error

Error satisfies the builtin error interface

func (AsyncSendResponseValidationError) ErrorName

ErrorName returns error name.

func (AsyncSendResponseValidationError) Field

Field function returns field value.

func (AsyncSendResponseValidationError) Key

Key function returns key value.

func (AsyncSendResponseValidationError) Reason

Reason function returns reason value.

type BatchRequest

type BatchRequest struct {
	Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchRequest) Descriptor deprecated

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

Deprecated: Use BatchRequest.ProtoReflect.Descriptor instead.

func (*BatchRequest) GetKeys

func (x *BatchRequest) GetKeys() []string

func (*BatchRequest) ProtoMessage

func (*BatchRequest) ProtoMessage()

func (*BatchRequest) ProtoReflect

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

func (*BatchRequest) Reset

func (x *BatchRequest) Reset()

func (*BatchRequest) String

func (x *BatchRequest) String() string

func (*BatchRequest) Validate

func (m *BatchRequest) Validate() error

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

func (m *BatchRequest) ValidateAll() error

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

type BatchRequestMultiError

type BatchRequestMultiError []error

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

func (BatchRequestMultiError) AllErrors

func (m BatchRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchRequestMultiError) Error

func (m BatchRequestMultiError) Error() string

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

type BatchRequestValidationError

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

BatchRequestValidationError is the validation error returned by BatchRequest.Validate if the designated constraints aren't met.

func (BatchRequestValidationError) Cause

Cause function returns cause value.

func (BatchRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchRequestValidationError) ErrorName

func (e BatchRequestValidationError) ErrorName() string

ErrorName returns error name.

func (BatchRequestValidationError) Field

Field function returns field value.

func (BatchRequestValidationError) Key

Key function returns key value.

func (BatchRequestValidationError) Reason

Reason function returns reason value.

type BatchResponse

type BatchResponse struct {
	Results []*SendResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchResponse) Descriptor deprecated

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

Deprecated: Use BatchResponse.ProtoReflect.Descriptor instead.

func (*BatchResponse) GetResults

func (x *BatchResponse) GetResults() []*SendResponse

func (*BatchResponse) ProtoMessage

func (*BatchResponse) ProtoMessage()

func (*BatchResponse) ProtoReflect

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

func (*BatchResponse) Reset

func (x *BatchResponse) Reset()

func (*BatchResponse) String

func (x *BatchResponse) String() string

func (*BatchResponse) Validate

func (m *BatchResponse) Validate() error

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

func (m *BatchResponse) ValidateAll() error

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

type BatchResponseMultiError

type BatchResponseMultiError []error

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

func (BatchResponseMultiError) AllErrors

func (m BatchResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchResponseMultiError) Error

func (m BatchResponseMultiError) Error() string

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

type BatchResponseValidationError

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

BatchResponseValidationError is the validation error returned by BatchResponse.Validate if the designated constraints aren't met.

func (BatchResponseValidationError) Cause

Cause function returns cause value.

func (BatchResponseValidationError) Error

Error satisfies the builtin error interface

func (BatchResponseValidationError) ErrorName

func (e BatchResponseValidationError) ErrorName() string

ErrorName returns error name.

func (BatchResponseValidationError) Field

Field function returns field value.

func (BatchResponseValidationError) Key

Key function returns key value.

func (BatchResponseValidationError) Reason

Reason function returns reason value.

type BatchSendRequest

type BatchSendRequest struct {
	Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchSendRequest) Descriptor deprecated

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

Deprecated: Use BatchSendRequest.ProtoReflect.Descriptor instead.

func (*BatchSendRequest) GetNotifications

func (x *BatchSendRequest) GetNotifications() []*Notification

func (*BatchSendRequest) ProtoMessage

func (*BatchSendRequest) ProtoMessage()

func (*BatchSendRequest) ProtoReflect

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

func (*BatchSendRequest) Reset

func (x *BatchSendRequest) Reset()

func (*BatchSendRequest) String

func (x *BatchSendRequest) String() string

func (*BatchSendRequest) Validate

func (m *BatchSendRequest) Validate() error

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

func (m *BatchSendRequest) ValidateAll() error

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

type BatchSendRequestMultiError

type BatchSendRequestMultiError []error

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

func (BatchSendRequestMultiError) AllErrors

func (m BatchSendRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchSendRequestMultiError) Error

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

type BatchSendRequestValidationError

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

BatchSendRequestValidationError is the validation error returned by BatchSendRequest.Validate if the designated constraints aren't met.

func (BatchSendRequestValidationError) Cause

Cause function returns cause value.

func (BatchSendRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchSendRequestValidationError) ErrorName

ErrorName returns error name.

func (BatchSendRequestValidationError) Field

Field function returns field value.

func (BatchSendRequestValidationError) Key

Key function returns key value.

func (BatchSendRequestValidationError) Reason

Reason function returns reason value.

type BatchSendResponse

type BatchSendResponse struct {
	Results    []*SendResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCnt   int32         `protobuf:"varint,2,opt,name=total_cnt,json=totalCnt,proto3" json:"total_cnt,omitempty"`
	SuccessCnt int32         `protobuf:"varint,3,opt,name=success_cnt,json=successCnt,proto3" json:"success_cnt,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchSendResponse) Descriptor deprecated

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

Deprecated: Use BatchSendResponse.ProtoReflect.Descriptor instead.

func (*BatchSendResponse) GetResults

func (x *BatchSendResponse) GetResults() []*SendResult

func (*BatchSendResponse) GetSuccessCnt

func (x *BatchSendResponse) GetSuccessCnt() int32

func (*BatchSendResponse) GetTotalCnt

func (x *BatchSendResponse) GetTotalCnt() int32

func (*BatchSendResponse) ProtoMessage

func (*BatchSendResponse) ProtoMessage()

func (*BatchSendResponse) ProtoReflect

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

func (*BatchSendResponse) Reset

func (x *BatchSendResponse) Reset()

func (*BatchSendResponse) String

func (x *BatchSendResponse) String() string

func (*BatchSendResponse) Validate

func (m *BatchSendResponse) Validate() error

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

func (m *BatchSendResponse) ValidateAll() error

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

type BatchSendResponseMultiError

type BatchSendResponseMultiError []error

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

func (BatchSendResponseMultiError) AllErrors

func (m BatchSendResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchSendResponseMultiError) Error

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

type BatchSendResponseValidationError

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

BatchSendResponseValidationError is the validation error returned by BatchSendResponse.Validate if the designated constraints aren't met.

func (BatchSendResponseValidationError) Cause

Cause function returns cause value.

func (BatchSendResponseValidationError) Error

Error satisfies the builtin error interface

func (BatchSendResponseValidationError) ErrorName

ErrorName returns error name.

func (BatchSendResponseValidationError) Field

Field function returns field value.

func (BatchSendResponseValidationError) Key

Key function returns key value.

func (BatchSendResponseValidationError) Reason

Reason function returns reason value.

type Channel

type Channel int32
const (
	Channel_CHANNEL_UNSPECIFIED Channel = 0
	Channel_SMS                 Channel = 1
	Channel_EMAIL               Channel = 2
	Channel_IN_APP              Channel = 3
)

func (Channel) Descriptor

func (Channel) Descriptor() protoreflect.EnumDescriptor

func (Channel) Enum

func (x Channel) Enum() *Channel

func (Channel) EnumDescriptor deprecated

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

Deprecated: Use Channel.Descriptor instead.

func (Channel) Number

func (x Channel) Number() protoreflect.EnumNumber

func (Channel) String

func (x Channel) String() string

func (Channel) Type

func (Channel) Type() protoreflect.EnumType

type DeadlineStrategy

type DeadlineStrategy struct {
	Deadline *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=deadline,proto3" json:"deadline,omitempty"`
	// contains filtered or unexported fields
}

func (*DeadlineStrategy) Descriptor deprecated

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

Deprecated: Use DeadlineStrategy.ProtoReflect.Descriptor instead.

func (*DeadlineStrategy) GetDeadline

func (x *DeadlineStrategy) GetDeadline() *timestamppb.Timestamp

func (*DeadlineStrategy) ProtoMessage

func (*DeadlineStrategy) ProtoMessage()

func (*DeadlineStrategy) ProtoReflect

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

func (*DeadlineStrategy) Reset

func (x *DeadlineStrategy) Reset()

func (*DeadlineStrategy) String

func (x *DeadlineStrategy) String() string

func (*DeadlineStrategy) Validate

func (m *DeadlineStrategy) Validate() error

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

func (m *DeadlineStrategy) ValidateAll() error

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

type DeadlineStrategyMultiError

type DeadlineStrategyMultiError []error

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

func (DeadlineStrategyMultiError) AllErrors

func (m DeadlineStrategyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeadlineStrategyMultiError) Error

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

type DeadlineStrategyValidationError

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

DeadlineStrategyValidationError is the validation error returned by DeadlineStrategy.Validate if the designated constraints aren't met.

func (DeadlineStrategyValidationError) Cause

Cause function returns cause value.

func (DeadlineStrategyValidationError) Error

Error satisfies the builtin error interface

func (DeadlineStrategyValidationError) ErrorName

ErrorName returns error name.

func (DeadlineStrategyValidationError) Field

Field function returns field value.

func (DeadlineStrategyValidationError) Key

Key function returns key value.

func (DeadlineStrategyValidationError) Reason

Reason function returns reason value.

type DelayedStrategy

type DelayedStrategy struct {
	DelaySeconds int64 `protobuf:"varint,1,opt,name=delay_seconds,json=delaySeconds,proto3" json:"delay_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*DelayedStrategy) Descriptor deprecated

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

Deprecated: Use DelayedStrategy.ProtoReflect.Descriptor instead.

func (*DelayedStrategy) GetDelaySeconds

func (x *DelayedStrategy) GetDelaySeconds() int64

func (*DelayedStrategy) ProtoMessage

func (*DelayedStrategy) ProtoMessage()

func (*DelayedStrategy) ProtoReflect

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

func (*DelayedStrategy) Reset

func (x *DelayedStrategy) Reset()

func (*DelayedStrategy) String

func (x *DelayedStrategy) String() string

func (*DelayedStrategy) Validate

func (m *DelayedStrategy) Validate() error

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

func (m *DelayedStrategy) ValidateAll() error

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

type DelayedStrategyMultiError

type DelayedStrategyMultiError []error

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

func (DelayedStrategyMultiError) AllErrors

func (m DelayedStrategyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DelayedStrategyMultiError) Error

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

type DelayedStrategyValidationError

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

DelayedStrategyValidationError is the validation error returned by DelayedStrategy.Validate if the designated constraints aren't met.

func (DelayedStrategyValidationError) Cause

Cause function returns cause value.

func (DelayedStrategyValidationError) Error

Error satisfies the builtin error interface

func (DelayedStrategyValidationError) ErrorName

func (e DelayedStrategyValidationError) ErrorName() string

ErrorName returns error name.

func (DelayedStrategyValidationError) Field

Field function returns field value.

func (DelayedStrategyValidationError) Key

Key function returns key value.

func (DelayedStrategyValidationError) Reason

Reason function returns reason value.

type ErrCode

type ErrCode int32
const (
	ErrCode_ERR_UNSPECIFIED            ErrCode = 0
	ErrCode_INVALID_PARAM              ErrCode = 1
	ErrCode_RATE_LIMITED               ErrCode = 2
	ErrCode_NO_AVAILABLE_CHANNEL       ErrCode = 3
	ErrCode_NO_AVAILABLE_PROVIDER      ErrCode = 4
	ErrCode_CHANNEL_NOT_FOUND          ErrCode = 5
	ErrCode_PROVIDER_NOT_FOUND         ErrCode = 6
	ErrCode_TEMPLATE_NOT_FOUND         ErrCode = 7
	ErrCode_BIZ_ID_NOT_FOUND           ErrCode = 8
	ErrCode_CONFIG_NOT_FOUND           ErrCode = 9
	ErrCode_QUOTA_CONFIG_NOT_FOUND     ErrCode = 10
	ErrCode_QUOTA_RECORD_NOT_FOUND     ErrCode = 11
	ErrCode_NOTIFICATION_NOT_FOUND     ErrCode = 12
	ErrCode_CREATE_NOTIFICATION_FAILED ErrCode = 13
	ErrCode_SEND_NOTIFICATION_FAILED   ErrCode = 14
	ErrCode_QUOTA_NOT_ENOUGH           ErrCode = 15
)

func (ErrCode) Descriptor

func (ErrCode) Descriptor() protoreflect.EnumDescriptor

func (ErrCode) Enum

func (x ErrCode) Enum() *ErrCode

func (ErrCode) EnumDescriptor deprecated

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

Deprecated: Use ErrCode.Descriptor instead.

func (ErrCode) Number

func (x ErrCode) Number() protoreflect.EnumNumber

func (ErrCode) String

func (x ErrCode) String() string

func (ErrCode) Type

func (ErrCode) Type() protoreflect.EnumType

type ImmediatelyStrategy

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

func (*ImmediatelyStrategy) Descriptor deprecated

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

Deprecated: Use ImmediatelyStrategy.ProtoReflect.Descriptor instead.

func (*ImmediatelyStrategy) ProtoMessage

func (*ImmediatelyStrategy) ProtoMessage()

func (*ImmediatelyStrategy) ProtoReflect

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

func (*ImmediatelyStrategy) Reset

func (x *ImmediatelyStrategy) Reset()

func (*ImmediatelyStrategy) String

func (x *ImmediatelyStrategy) String() string

func (*ImmediatelyStrategy) Validate

func (m *ImmediatelyStrategy) Validate() error

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

func (m *ImmediatelyStrategy) ValidateAll() error

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

type ImmediatelyStrategyMultiError

type ImmediatelyStrategyMultiError []error

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

func (ImmediatelyStrategyMultiError) AllErrors

func (m ImmediatelyStrategyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ImmediatelyStrategyMultiError) Error

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

type ImmediatelyStrategyValidationError

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

ImmediatelyStrategyValidationError is the validation error returned by ImmediatelyStrategy.Validate if the designated constraints aren't met.

func (ImmediatelyStrategyValidationError) Cause

Cause function returns cause value.

func (ImmediatelyStrategyValidationError) Error

Error satisfies the builtin error interface

func (ImmediatelyStrategyValidationError) ErrorName

ErrorName returns error name.

func (ImmediatelyStrategyValidationError) Field

Field function returns field value.

func (ImmediatelyStrategyValidationError) Key

Key function returns key value.

func (ImmediatelyStrategyValidationError) Reason

Reason function returns reason value.

type Notification

type Notification struct {
	BizKey    string            `protobuf:"bytes,1,opt,name=biz_key,json=bizKey,proto3" json:"biz_key,omitempty"`
	Receivers []string          `protobuf:"bytes,2,rep,name=receivers,proto3" json:"receivers,omitempty"`
	Channel   Channel           `protobuf:"varint,3,opt,name=channel,proto3,enum=notification.v1.Channel" json:"channel,omitempty"`
	TplId     string            `protobuf:"bytes,4,opt,name=tpl_id,json=tplId,proto3" json:"tpl_id,omitempty"`
	TplParams map[string]string `` /* 162-byte string literal not displayed */
	Strategy  *SendStrategy     `protobuf:"bytes,6,opt,name=strategy,proto3" json:"strategy,omitempty"`
	// contains filtered or unexported fields
}

func (*Notification) Descriptor deprecated

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

Deprecated: Use Notification.ProtoReflect.Descriptor instead.

func (*Notification) GetBizKey added in v0.0.3

func (x *Notification) GetBizKey() string

func (*Notification) GetChannel

func (x *Notification) GetChannel() Channel

func (*Notification) GetReceivers

func (x *Notification) GetReceivers() []string

func (*Notification) GetStrategy

func (x *Notification) GetStrategy() *SendStrategy

func (*Notification) GetTplId added in v0.0.3

func (x *Notification) GetTplId() string

func (*Notification) GetTplParams added in v0.0.3

func (x *Notification) GetTplParams() map[string]string

func (*Notification) ProtoMessage

func (*Notification) ProtoMessage()

func (*Notification) ProtoReflect

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

func (*Notification) Reset

func (x *Notification) Reset()

func (*Notification) String

func (x *Notification) String() string

func (*Notification) Validate

func (m *Notification) Validate() error

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

func (m *Notification) ValidateAll() error

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

type NotificationMultiError

type NotificationMultiError []error

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

func (NotificationMultiError) AllErrors

func (m NotificationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotificationMultiError) Error

func (m NotificationMultiError) Error() string

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

type NotificationQueryServiceClient

type NotificationQueryServiceClient interface {
	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
	Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error)
}

NotificationQueryServiceClient is the client API for NotificationQueryService 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 NotificationQueryServiceServer

type NotificationQueryServiceServer interface {
	Query(context.Context, *QueryRequest) (*QueryResponse, error)
	Batch(context.Context, *BatchRequest) (*BatchResponse, error)
}

NotificationQueryServiceServer is the server API for NotificationQueryService service. All implementations should embed UnimplementedNotificationQueryServiceServer for forward compatibility.

type NotificationServiceClient

type NotificationServiceClient interface {
	Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
	AsyncSend(ctx context.Context, in *AsyncSendRequest, opts ...grpc.CallOption) (*AsyncSendResponse, error)
	BatchSend(ctx context.Context, in *BatchSendRequest, opts ...grpc.CallOption) (*BatchSendResponse, error)
	AsyncBatchSend(ctx context.Context, in *AsyncBatchSendRequest, opts ...grpc.CallOption) (*AsyncBatchSendResponse, error)
	TxPrepare(ctx context.Context, in *TxPrepareRequest, opts ...grpc.CallOption) (*TxPrepareResponse, error)
	TxCommit(ctx context.Context, in *TxCommitRequest, opts ...grpc.CallOption) (*TxCommitResponse, error)
	TxCancel(ctx context.Context, in *TxCancelRequest, opts ...grpc.CallOption) (*TxCancelResponse, error)
}

NotificationServiceClient is the client API for NotificationService 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 NotificationServiceServer

NotificationServiceServer is the server API for NotificationService service. All implementations should embed UnimplementedNotificationServiceServer for forward compatibility.

type NotificationValidationError

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

NotificationValidationError is the validation error returned by Notification.Validate if the designated constraints aren't met.

func (NotificationValidationError) Cause

Cause function returns cause value.

func (NotificationValidationError) Error

Error satisfies the builtin error interface

func (NotificationValidationError) ErrorName

func (e NotificationValidationError) ErrorName() string

ErrorName returns error name.

func (NotificationValidationError) Field

Field function returns field value.

func (NotificationValidationError) Key

Key function returns key value.

func (NotificationValidationError) Reason

Reason function returns reason value.

type QueryRequest

type QueryRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest) Descriptor deprecated

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

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetKey

func (x *QueryRequest) GetKey() string

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

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

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

func (*QueryRequest) Validate

func (m *QueryRequest) Validate() error

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

func (m *QueryRequest) ValidateAll() error

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

type QueryRequestMultiError

type QueryRequestMultiError []error

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

func (QueryRequestMultiError) AllErrors

func (m QueryRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryRequestMultiError) Error

func (m QueryRequestMultiError) Error() string

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

type QueryRequestValidationError

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

QueryRequestValidationError is the validation error returned by QueryRequest.Validate if the designated constraints aren't met.

func (QueryRequestValidationError) Cause

Cause function returns cause value.

func (QueryRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryRequestValidationError) ErrorName

func (e QueryRequestValidationError) ErrorName() string

ErrorName returns error name.

func (QueryRequestValidationError) Field

Field function returns field value.

func (QueryRequestValidationError) Key

Key function returns key value.

func (QueryRequestValidationError) Reason

Reason function returns reason value.

type QueryResponse

type QueryResponse struct {
	Result *SendResponse `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryResponse) Descriptor deprecated

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

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetResult

func (x *QueryResponse) GetResult() *SendResponse

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

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

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

func (*QueryResponse) Validate

func (m *QueryResponse) Validate() error

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

func (m *QueryResponse) ValidateAll() error

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

type QueryResponseMultiError

type QueryResponseMultiError []error

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

func (QueryResponseMultiError) AllErrors

func (m QueryResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryResponseMultiError) Error

func (m QueryResponseMultiError) Error() string

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

type QueryResponseValidationError

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

QueryResponseValidationError is the validation error returned by QueryResponse.Validate if the designated constraints aren't met.

func (QueryResponseValidationError) Cause

Cause function returns cause value.

func (QueryResponseValidationError) Error

Error satisfies the builtin error interface

func (QueryResponseValidationError) ErrorName

func (e QueryResponseValidationError) ErrorName() string

ErrorName returns error name.

func (QueryResponseValidationError) Field

Field function returns field value.

func (QueryResponseValidationError) Key

Key function returns key value.

func (QueryResponseValidationError) Reason

Reason function returns reason value.

type ScheduledStrategy

type ScheduledStrategy struct {
	SendTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"`
	// contains filtered or unexported fields
}

func (*ScheduledStrategy) Descriptor deprecated

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

Deprecated: Use ScheduledStrategy.ProtoReflect.Descriptor instead.

func (*ScheduledStrategy) GetSendTime

func (x *ScheduledStrategy) GetSendTime() *timestamppb.Timestamp

func (*ScheduledStrategy) ProtoMessage

func (*ScheduledStrategy) ProtoMessage()

func (*ScheduledStrategy) ProtoReflect

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

func (*ScheduledStrategy) Reset

func (x *ScheduledStrategy) Reset()

func (*ScheduledStrategy) String

func (x *ScheduledStrategy) String() string

func (*ScheduledStrategy) Validate

func (m *ScheduledStrategy) Validate() error

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

func (m *ScheduledStrategy) ValidateAll() error

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

type ScheduledStrategyMultiError

type ScheduledStrategyMultiError []error

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

func (ScheduledStrategyMultiError) AllErrors

func (m ScheduledStrategyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ScheduledStrategyMultiError) Error

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

type ScheduledStrategyValidationError

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

ScheduledStrategyValidationError is the validation error returned by ScheduledStrategy.Validate if the designated constraints aren't met.

func (ScheduledStrategyValidationError) Cause

Cause function returns cause value.

func (ScheduledStrategyValidationError) Error

Error satisfies the builtin error interface

func (ScheduledStrategyValidationError) ErrorName

ErrorName returns error name.

func (ScheduledStrategyValidationError) Field

Field function returns field value.

func (ScheduledStrategyValidationError) Key

Key function returns key value.

func (ScheduledStrategyValidationError) Reason

Reason function returns reason value.

type SendRequest

type SendRequest struct {
	Notification *Notification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification,omitempty"`
	// contains filtered or unexported fields
}

func (*SendRequest) Descriptor deprecated

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

Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.

func (*SendRequest) GetNotification

func (x *SendRequest) GetNotification() *Notification

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) ProtoReflect

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

func (*SendRequest) Reset

func (x *SendRequest) Reset()

func (*SendRequest) String

func (x *SendRequest) String() string

func (*SendRequest) Validate

func (m *SendRequest) Validate() error

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

func (m *SendRequest) ValidateAll() error

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

type SendRequestMultiError

type SendRequestMultiError []error

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

func (SendRequestMultiError) AllErrors

func (m SendRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendRequestMultiError) Error

func (m SendRequestMultiError) Error() string

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

type SendRequestValidationError

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

SendRequestValidationError is the validation error returned by SendRequest.Validate if the designated constraints aren't met.

func (SendRequestValidationError) Cause

Cause function returns cause value.

func (SendRequestValidationError) Error

Error satisfies the builtin error interface

func (SendRequestValidationError) ErrorName

func (e SendRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SendRequestValidationError) Field

Field function returns field value.

func (SendRequestValidationError) Key

Key function returns key value.

func (SendRequestValidationError) Reason

Reason function returns reason value.

type SendResponse

type SendResponse struct {
	Result *SendResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SendResponse) Descriptor deprecated

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

Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.

func (*SendResponse) GetResult

func (x *SendResponse) GetResult() *SendResult

func (*SendResponse) ProtoMessage

func (*SendResponse) ProtoMessage()

func (*SendResponse) ProtoReflect

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

func (*SendResponse) Reset

func (x *SendResponse) Reset()

func (*SendResponse) String

func (x *SendResponse) String() string

func (*SendResponse) Validate

func (m *SendResponse) Validate() error

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

func (m *SendResponse) ValidateAll() error

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

type SendResponseMultiError

type SendResponseMultiError []error

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

func (SendResponseMultiError) AllErrors

func (m SendResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendResponseMultiError) Error

func (m SendResponseMultiError) Error() string

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

type SendResponseValidationError

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

SendResponseValidationError is the validation error returned by SendResponse.Validate if the designated constraints aren't met.

func (SendResponseValidationError) Cause

Cause function returns cause value.

func (SendResponseValidationError) Error

Error satisfies the builtin error interface

func (SendResponseValidationError) ErrorName

func (e SendResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SendResponseValidationError) Field

Field function returns field value.

func (SendResponseValidationError) Key

Key function returns key value.

func (SendResponseValidationError) Reason

Reason function returns reason value.

type SendResult

type SendResult struct {
	NotificationId uint64     `protobuf:"varint,1,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"`
	Status         SendStatus `protobuf:"varint,2,opt,name=status,proto3,enum=notification.v1.SendStatus" json:"status,omitempty"`
	ErrCode        ErrCode    `protobuf:"varint,3,opt,name=err_code,json=errCode,proto3,enum=notification.v1.ErrCode" json:"err_code,omitempty"`
	ErrMsg         string     `protobuf:"bytes,4,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
	// contains filtered or unexported fields
}

func (*SendResult) Descriptor deprecated

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

Deprecated: Use SendResult.ProtoReflect.Descriptor instead.

func (*SendResult) GetErrCode

func (x *SendResult) GetErrCode() ErrCode

func (*SendResult) GetErrMsg

func (x *SendResult) GetErrMsg() string

func (*SendResult) GetNotificationId

func (x *SendResult) GetNotificationId() uint64

func (*SendResult) GetStatus

func (x *SendResult) GetStatus() SendStatus

func (*SendResult) ProtoMessage

func (*SendResult) ProtoMessage()

func (*SendResult) ProtoReflect

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

func (*SendResult) Reset

func (x *SendResult) Reset()

func (*SendResult) String

func (x *SendResult) String() string

func (*SendResult) Validate

func (m *SendResult) Validate() error

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

func (m *SendResult) ValidateAll() error

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

type SendResultMultiError

type SendResultMultiError []error

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

func (SendResultMultiError) AllErrors

func (m SendResultMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendResultMultiError) Error

func (m SendResultMultiError) Error() string

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

type SendResultValidationError

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

SendResultValidationError is the validation error returned by SendResult.Validate if the designated constraints aren't met.

func (SendResultValidationError) Cause

func (e SendResultValidationError) Cause() error

Cause function returns cause value.

func (SendResultValidationError) Error

Error satisfies the builtin error interface

func (SendResultValidationError) ErrorName

func (e SendResultValidationError) ErrorName() string

ErrorName returns error name.

func (SendResultValidationError) Field

Field function returns field value.

func (SendResultValidationError) Key

Key function returns key value.

func (SendResultValidationError) Reason

func (e SendResultValidationError) Reason() string

Reason function returns reason value.

type SendStatus

type SendStatus int32
const (
	SendStatus_STATUS_UNSPECIFIED SendStatus = 0
	SendStatus_PREPARE            SendStatus = 1
	SendStatus_CANCEL             SendStatus = 2
	SendStatus_PENDING            SendStatus = 3
	SendStatus_SUCCESS            SendStatus = 4
	SendStatus_FAILURE            SendStatus = 5
)

func (SendStatus) Descriptor

func (SendStatus) Descriptor() protoreflect.EnumDescriptor

func (SendStatus) Enum

func (x SendStatus) Enum() *SendStatus

func (SendStatus) EnumDescriptor deprecated

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

Deprecated: Use SendStatus.Descriptor instead.

func (SendStatus) Number

func (x SendStatus) Number() protoreflect.EnumNumber

func (SendStatus) String

func (x SendStatus) String() string

func (SendStatus) Type

type SendStrategy

type SendStrategy struct {

	// Types that are valid to be assigned to StrategyType:
	//
	//	*SendStrategy_Immediate
	//	*SendStrategy_Delayed
	//	*SendStrategy_Scheduled
	//	*SendStrategy_TimeWindow
	//	*SendStrategy_Deadline
	StrategyType isSendStrategy_StrategyType `protobuf_oneof:"strategy_type"`
	// contains filtered or unexported fields
}

func (*SendStrategy) Descriptor deprecated

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

Deprecated: Use SendStrategy.ProtoReflect.Descriptor instead.

func (*SendStrategy) GetDeadline

func (x *SendStrategy) GetDeadline() *DeadlineStrategy

func (*SendStrategy) GetDelayed

func (x *SendStrategy) GetDelayed() *DelayedStrategy

func (*SendStrategy) GetImmediate

func (x *SendStrategy) GetImmediate() *ImmediatelyStrategy

func (*SendStrategy) GetScheduled

func (x *SendStrategy) GetScheduled() *ScheduledStrategy

func (*SendStrategy) GetStrategyType

func (x *SendStrategy) GetStrategyType() isSendStrategy_StrategyType

func (*SendStrategy) GetTimeWindow

func (x *SendStrategy) GetTimeWindow() *TimeWindowStrategy

func (*SendStrategy) ProtoMessage

func (*SendStrategy) ProtoMessage()

func (*SendStrategy) ProtoReflect

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

func (*SendStrategy) Reset

func (x *SendStrategy) Reset()

func (*SendStrategy) String

func (x *SendStrategy) String() string

func (*SendStrategy) Validate

func (m *SendStrategy) Validate() error

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

func (m *SendStrategy) ValidateAll() error

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

type SendStrategyMultiError

type SendStrategyMultiError []error

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

func (SendStrategyMultiError) AllErrors

func (m SendStrategyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendStrategyMultiError) Error

func (m SendStrategyMultiError) Error() string

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

type SendStrategyValidationError

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

SendStrategyValidationError is the validation error returned by SendStrategy.Validate if the designated constraints aren't met.

func (SendStrategyValidationError) Cause

Cause function returns cause value.

func (SendStrategyValidationError) Error

Error satisfies the builtin error interface

func (SendStrategyValidationError) ErrorName

func (e SendStrategyValidationError) ErrorName() string

ErrorName returns error name.

func (SendStrategyValidationError) Field

Field function returns field value.

func (SendStrategyValidationError) Key

Key function returns key value.

func (SendStrategyValidationError) Reason

Reason function returns reason value.

type SendStrategy_Deadline

type SendStrategy_Deadline struct {
	Deadline *DeadlineStrategy `protobuf:"bytes,5,opt,name=deadline,proto3,oneof"`
}

type SendStrategy_Delayed

type SendStrategy_Delayed struct {
	Delayed *DelayedStrategy `protobuf:"bytes,2,opt,name=delayed,proto3,oneof"`
}

type SendStrategy_Immediate

type SendStrategy_Immediate struct {
	Immediate *ImmediatelyStrategy `protobuf:"bytes,1,opt,name=immediate,proto3,oneof"`
}

type SendStrategy_Scheduled

type SendStrategy_Scheduled struct {
	Scheduled *ScheduledStrategy `protobuf:"bytes,3,opt,name=scheduled,proto3,oneof"`
}

type SendStrategy_TimeWindow

type SendStrategy_TimeWindow struct {
	TimeWindow *TimeWindowStrategy `protobuf:"bytes,4,opt,name=time_window,json=timeWindow,proto3,oneof"`
}

type TimeWindowStrategy

type TimeWindowStrategy struct {
	StartTimeMillis int64 `protobuf:"varint,1,opt,name=start_time_millis,json=startTimeMillis,proto3" json:"start_time_millis,omitempty"`
	EndTimeMillis   int64 `protobuf:"varint,2,opt,name=end_time_millis,json=endTimeMillis,proto3" json:"end_time_millis,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeWindowStrategy) Descriptor deprecated

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

Deprecated: Use TimeWindowStrategy.ProtoReflect.Descriptor instead.

func (*TimeWindowStrategy) GetEndTimeMillis

func (x *TimeWindowStrategy) GetEndTimeMillis() int64

func (*TimeWindowStrategy) GetStartTimeMillis

func (x *TimeWindowStrategy) GetStartTimeMillis() int64

func (*TimeWindowStrategy) ProtoMessage

func (*TimeWindowStrategy) ProtoMessage()

func (*TimeWindowStrategy) ProtoReflect

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

func (*TimeWindowStrategy) Reset

func (x *TimeWindowStrategy) Reset()

func (*TimeWindowStrategy) String

func (x *TimeWindowStrategy) String() string

func (*TimeWindowStrategy) Validate

func (m *TimeWindowStrategy) Validate() error

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

func (m *TimeWindowStrategy) ValidateAll() error

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

type TimeWindowStrategyMultiError

type TimeWindowStrategyMultiError []error

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

func (TimeWindowStrategyMultiError) AllErrors

func (m TimeWindowStrategyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TimeWindowStrategyMultiError) Error

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

type TimeWindowStrategyValidationError

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

TimeWindowStrategyValidationError is the validation error returned by TimeWindowStrategy.Validate if the designated constraints aren't met.

func (TimeWindowStrategyValidationError) Cause

Cause function returns cause value.

func (TimeWindowStrategyValidationError) Error

Error satisfies the builtin error interface

func (TimeWindowStrategyValidationError) ErrorName

ErrorName returns error name.

func (TimeWindowStrategyValidationError) Field

Field function returns field value.

func (TimeWindowStrategyValidationError) Key

Key function returns key value.

func (TimeWindowStrategyValidationError) Reason

Reason function returns reason value.

type TxCancelRequest

type TxCancelRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*TxCancelRequest) Descriptor deprecated

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

Deprecated: Use TxCancelRequest.ProtoReflect.Descriptor instead.

func (*TxCancelRequest) GetKey

func (x *TxCancelRequest) GetKey() string

func (*TxCancelRequest) ProtoMessage

func (*TxCancelRequest) ProtoMessage()

func (*TxCancelRequest) ProtoReflect

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

func (*TxCancelRequest) Reset

func (x *TxCancelRequest) Reset()

func (*TxCancelRequest) String

func (x *TxCancelRequest) String() string

func (*TxCancelRequest) Validate

func (m *TxCancelRequest) Validate() error

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

func (m *TxCancelRequest) ValidateAll() error

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

type TxCancelRequestMultiError

type TxCancelRequestMultiError []error

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

func (TxCancelRequestMultiError) AllErrors

func (m TxCancelRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TxCancelRequestMultiError) Error

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

type TxCancelRequestValidationError

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

TxCancelRequestValidationError is the validation error returned by TxCancelRequest.Validate if the designated constraints aren't met.

func (TxCancelRequestValidationError) Cause

Cause function returns cause value.

func (TxCancelRequestValidationError) Error

Error satisfies the builtin error interface

func (TxCancelRequestValidationError) ErrorName

func (e TxCancelRequestValidationError) ErrorName() string

ErrorName returns error name.

func (TxCancelRequestValidationError) Field

Field function returns field value.

func (TxCancelRequestValidationError) Key

Key function returns key value.

func (TxCancelRequestValidationError) Reason

Reason function returns reason value.

type TxCancelResponse

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

func (*TxCancelResponse) Descriptor deprecated

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

Deprecated: Use TxCancelResponse.ProtoReflect.Descriptor instead.

func (*TxCancelResponse) ProtoMessage

func (*TxCancelResponse) ProtoMessage()

func (*TxCancelResponse) ProtoReflect

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

func (*TxCancelResponse) Reset

func (x *TxCancelResponse) Reset()

func (*TxCancelResponse) String

func (x *TxCancelResponse) String() string

func (*TxCancelResponse) Validate

func (m *TxCancelResponse) Validate() error

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

func (m *TxCancelResponse) ValidateAll() error

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

type TxCancelResponseMultiError

type TxCancelResponseMultiError []error

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

func (TxCancelResponseMultiError) AllErrors

func (m TxCancelResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TxCancelResponseMultiError) Error

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

type TxCancelResponseValidationError

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

TxCancelResponseValidationError is the validation error returned by TxCancelResponse.Validate if the designated constraints aren't met.

func (TxCancelResponseValidationError) Cause

Cause function returns cause value.

func (TxCancelResponseValidationError) Error

Error satisfies the builtin error interface

func (TxCancelResponseValidationError) ErrorName

ErrorName returns error name.

func (TxCancelResponseValidationError) Field

Field function returns field value.

func (TxCancelResponseValidationError) Key

Key function returns key value.

func (TxCancelResponseValidationError) Reason

Reason function returns reason value.

type TxCommitRequest

type TxCommitRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*TxCommitRequest) Descriptor deprecated

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

Deprecated: Use TxCommitRequest.ProtoReflect.Descriptor instead.

func (*TxCommitRequest) GetKey

func (x *TxCommitRequest) GetKey() string

func (*TxCommitRequest) ProtoMessage

func (*TxCommitRequest) ProtoMessage()

func (*TxCommitRequest) ProtoReflect

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

func (*TxCommitRequest) Reset

func (x *TxCommitRequest) Reset()

func (*TxCommitRequest) String

func (x *TxCommitRequest) String() string

func (*TxCommitRequest) Validate

func (m *TxCommitRequest) Validate() error

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

func (m *TxCommitRequest) ValidateAll() error

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

type TxCommitRequestMultiError

type TxCommitRequestMultiError []error

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

func (TxCommitRequestMultiError) AllErrors

func (m TxCommitRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TxCommitRequestMultiError) Error

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

type TxCommitRequestValidationError

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

TxCommitRequestValidationError is the validation error returned by TxCommitRequest.Validate if the designated constraints aren't met.

func (TxCommitRequestValidationError) Cause

Cause function returns cause value.

func (TxCommitRequestValidationError) Error

Error satisfies the builtin error interface

func (TxCommitRequestValidationError) ErrorName

func (e TxCommitRequestValidationError) ErrorName() string

ErrorName returns error name.

func (TxCommitRequestValidationError) Field

Field function returns field value.

func (TxCommitRequestValidationError) Key

Key function returns key value.

func (TxCommitRequestValidationError) Reason

Reason function returns reason value.

type TxCommitResponse

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

func (*TxCommitResponse) Descriptor deprecated

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

Deprecated: Use TxCommitResponse.ProtoReflect.Descriptor instead.

func (*TxCommitResponse) ProtoMessage

func (*TxCommitResponse) ProtoMessage()

func (*TxCommitResponse) ProtoReflect

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

func (*TxCommitResponse) Reset

func (x *TxCommitResponse) Reset()

func (*TxCommitResponse) String

func (x *TxCommitResponse) String() string

func (*TxCommitResponse) Validate

func (m *TxCommitResponse) Validate() error

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

func (m *TxCommitResponse) ValidateAll() error

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

type TxCommitResponseMultiError

type TxCommitResponseMultiError []error

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

func (TxCommitResponseMultiError) AllErrors

func (m TxCommitResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TxCommitResponseMultiError) Error

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

type TxCommitResponseValidationError

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

TxCommitResponseValidationError is the validation error returned by TxCommitResponse.Validate if the designated constraints aren't met.

func (TxCommitResponseValidationError) Cause

Cause function returns cause value.

func (TxCommitResponseValidationError) Error

Error satisfies the builtin error interface

func (TxCommitResponseValidationError) ErrorName

ErrorName returns error name.

func (TxCommitResponseValidationError) Field

Field function returns field value.

func (TxCommitResponseValidationError) Key

Key function returns key value.

func (TxCommitResponseValidationError) Reason

Reason function returns reason value.

type TxPrepareRequest

type TxPrepareRequest struct {
	Notification *Notification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification,omitempty"`
	// contains filtered or unexported fields
}

func (*TxPrepareRequest) Descriptor deprecated

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

Deprecated: Use TxPrepareRequest.ProtoReflect.Descriptor instead.

func (*TxPrepareRequest) GetNotification

func (x *TxPrepareRequest) GetNotification() *Notification

func (*TxPrepareRequest) ProtoMessage

func (*TxPrepareRequest) ProtoMessage()

func (*TxPrepareRequest) ProtoReflect

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

func (*TxPrepareRequest) Reset

func (x *TxPrepareRequest) Reset()

func (*TxPrepareRequest) String

func (x *TxPrepareRequest) String() string

func (*TxPrepareRequest) Validate

func (m *TxPrepareRequest) Validate() error

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

func (m *TxPrepareRequest) ValidateAll() error

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

type TxPrepareRequestMultiError

type TxPrepareRequestMultiError []error

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

func (TxPrepareRequestMultiError) AllErrors

func (m TxPrepareRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TxPrepareRequestMultiError) Error

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

type TxPrepareRequestValidationError

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

TxPrepareRequestValidationError is the validation error returned by TxPrepareRequest.Validate if the designated constraints aren't met.

func (TxPrepareRequestValidationError) Cause

Cause function returns cause value.

func (TxPrepareRequestValidationError) Error

Error satisfies the builtin error interface

func (TxPrepareRequestValidationError) ErrorName

ErrorName returns error name.

func (TxPrepareRequestValidationError) Field

Field function returns field value.

func (TxPrepareRequestValidationError) Key

Key function returns key value.

func (TxPrepareRequestValidationError) Reason

Reason function returns reason value.

type TxPrepareResponse

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

func (*TxPrepareResponse) Descriptor deprecated

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

Deprecated: Use TxPrepareResponse.ProtoReflect.Descriptor instead.

func (*TxPrepareResponse) ProtoMessage

func (*TxPrepareResponse) ProtoMessage()

func (*TxPrepareResponse) ProtoReflect

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

func (*TxPrepareResponse) Reset

func (x *TxPrepareResponse) Reset()

func (*TxPrepareResponse) String

func (x *TxPrepareResponse) String() string

func (*TxPrepareResponse) Validate

func (m *TxPrepareResponse) Validate() error

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

func (m *TxPrepareResponse) ValidateAll() error

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

type TxPrepareResponseMultiError

type TxPrepareResponseMultiError []error

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

func (TxPrepareResponseMultiError) AllErrors

func (m TxPrepareResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TxPrepareResponseMultiError) Error

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

type TxPrepareResponseValidationError

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

TxPrepareResponseValidationError is the validation error returned by TxPrepareResponse.Validate if the designated constraints aren't met.

func (TxPrepareResponseValidationError) Cause

Cause function returns cause value.

func (TxPrepareResponseValidationError) Error

Error satisfies the builtin error interface

func (TxPrepareResponseValidationError) ErrorName

ErrorName returns error name.

func (TxPrepareResponseValidationError) Field

Field function returns field value.

func (TxPrepareResponseValidationError) Key

Key function returns key value.

func (TxPrepareResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedNotificationQueryServiceServer

type UnimplementedNotificationQueryServiceServer struct{}

UnimplementedNotificationQueryServiceServer should 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 (UnimplementedNotificationQueryServiceServer) Batch

func (UnimplementedNotificationQueryServiceServer) Query

type UnimplementedNotificationServiceServer

type UnimplementedNotificationServiceServer struct{}

UnimplementedNotificationServiceServer should 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 (UnimplementedNotificationServiceServer) AsyncBatchSend

func (UnimplementedNotificationServiceServer) AsyncSend

func (UnimplementedNotificationServiceServer) BatchSend

func (UnimplementedNotificationServiceServer) Send

func (UnimplementedNotificationServiceServer) TxCancel

func (UnimplementedNotificationServiceServer) TxCommit

func (UnimplementedNotificationServiceServer) TxPrepare

type UnsafeNotificationQueryServiceServer

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

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

type UnsafeNotificationServiceServer

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

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

Jump to

Keyboard shortcuts

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