notificationsv1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Overview

Package notificationsv1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_notifications_v1alpha1_api_proto protoreflect.FileDescriptor
View Source
var NotificationsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "notifications.v1alpha1.NotificationsService",
	HandlerType: (*NotificationsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpsertUsers",
			Handler:    _NotificationsService_UpsertUsers_Handler,
		},
		{
			MethodName: "GetUsers",
			Handler:    _NotificationsService_GetUsers_Handler,
		},
		{
			MethodName: "ListUsers",
			Handler:    _NotificationsService_ListUsers_Handler,
		},
		{
			MethodName: "DeleteUsers",
			Handler:    _NotificationsService_DeleteUsers_Handler,
		},
		{
			MethodName: "GetNotifications",
			Handler:    _NotificationsService_GetNotifications_Handler,
		},
		{
			MethodName: "SendNotifications",
			Handler:    _NotificationsService_SendNotifications_Handler,
		},
		{
			MethodName: "UpdateSubscriptions",
			Handler:    _NotificationsService_UpdateSubscriptions_Handler,
		},
		{
			MethodName: "UpsertScheduledNotifications",
			Handler:    _NotificationsService_UpsertScheduledNotifications_Handler,
		},
		{
			MethodName: "GetScheduledNotifications",
			Handler:    _NotificationsService_GetScheduledNotifications_Handler,
		},
		{
			MethodName: "DeleteScheduledNotifications",
			Handler:    _NotificationsService_DeleteScheduledNotifications_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "notifications/v1alpha1/api.proto",
}

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

Functions

func RegisterNotificationsServiceHandler

func RegisterNotificationsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterNotificationsServiceHandler registers the http handlers for service NotificationsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterNotificationsServiceHandlerClient

func RegisterNotificationsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotificationsServiceClient) error

RegisterNotificationsServiceHandlerClient registers the http handlers for service NotificationsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NotificationsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NotificationsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NotificationsServiceClient" to call the correct interceptors.

func RegisterNotificationsServiceHandlerFromEndpoint

func RegisterNotificationsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterNotificationsServiceHandlerFromEndpoint is same as RegisterNotificationsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterNotificationsServiceHandlerServer

func RegisterNotificationsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NotificationsServiceServer) error

RegisterNotificationsServiceHandlerServer registers the http handlers for service NotificationsService to "mux". UnaryRPC :call NotificationsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNotificationsServiceHandlerFromEndpoint instead.

func RegisterNotificationsServiceServer

func RegisterNotificationsServiceServer(s grpc.ServiceRegistrar, srv NotificationsServiceServer)

Types

type CronTrigger

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

func (*CronTrigger) Descriptor deprecated

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

Deprecated: Use CronTrigger.ProtoReflect.Descriptor instead.

func (*CronTrigger) GetExpression

func (x *CronTrigger) GetExpression() string

func (*CronTrigger) ProtoMessage

func (*CronTrigger) ProtoMessage()

func (*CronTrigger) ProtoReflect

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

func (*CronTrigger) Reset

func (x *CronTrigger) Reset()

func (*CronTrigger) String

func (x *CronTrigger) String() string

type ExecuteOnceTrigger

type ExecuteOnceTrigger struct {
	FireAt string `protobuf:"bytes,1,opt,name=fire_at,json=fireAt,proto3" json:"fire_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteOnceTrigger) Descriptor deprecated

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

Deprecated: Use ExecuteOnceTrigger.ProtoReflect.Descriptor instead.

func (*ExecuteOnceTrigger) GetFireAt

func (x *ExecuteOnceTrigger) GetFireAt() string

func (*ExecuteOnceTrigger) ProtoMessage

func (*ExecuteOnceTrigger) ProtoMessage()

func (*ExecuteOnceTrigger) ProtoReflect

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

func (*ExecuteOnceTrigger) Reset

func (x *ExecuteOnceTrigger) Reset()

func (*ExecuteOnceTrigger) String

func (x *ExecuteOnceTrigger) String() string

type Notification

type Notification struct {
	Id                string                   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Subject           string                   `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	Silent            bool                     `protobuf:"varint,3,opt,name=silent,proto3" json:"silent,omitempty"`
	Created           string                   `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	Updated           string                   `protobuf:"bytes,5,opt,name=updated,proto3" json:"updated,omitempty"`
	TrackingToken     string                   `protobuf:"bytes,6,opt,name=tracking_token,json=trackingToken,proto3" json:"tracking_token,omitempty"`
	Body              string                   `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"`
	ImageSmall        string                   `protobuf:"bytes,8,opt,name=image_small,json=imageSmall,proto3" json:"image_small,omitempty"`
	ImageLarge        string                   `protobuf:"bytes,9,opt,name=image_large,json=imageLarge,proto3" json:"image_large,omitempty"`
	TrackSeenUrl      string                   `protobuf:"bytes,10,opt,name=track_seen_url,json=trackSeenUrl,proto3" json:"track_seen_url,omitempty"`
	TrackDeliveredUrl string                   `protobuf:"bytes,11,opt,name=track_delivered_url,json=trackDeliveredUrl,proto3" json:"track_delivered_url,omitempty"`
	LinkUrl           string                   `protobuf:"bytes,12,opt,name=link_url,json=linkUrl,proto3" json:"link_url,omitempty"`
	LinkText          string                   `protobuf:"bytes,13,opt,name=link_text,json=linkText,proto3" json:"link_text,omitempty"`
	ConfirmText       string                   `protobuf:"bytes,14,opt,name=confirm_text,json=confirmText,proto3" json:"confirm_text,omitempty"`
	ConfirmUrl        string                   `protobuf:"bytes,15,opt,name=confirm_url,json=confirmUrl,proto3" json:"confirm_url,omitempty"`
	Data              string                   `protobuf:"bytes,16,opt,name=data,proto3" json:"data,omitempty"`
	Properties        *structpb.Struct         `protobuf:"bytes,17,opt,name=properties,proto3" json:"properties,omitempty"`
	Channels          *structpb.Struct         `protobuf:"bytes,18,opt,name=channels,proto3" json:"channels,omitempty"`
	FirstDelivered    *NotificationHandledInfo `protobuf:"bytes,19,opt,name=first_delivered,json=firstDelivered,proto3" json:"first_delivered,omitempty"`
	FirstSeen         *NotificationHandledInfo `protobuf:"bytes,20,opt,name=first_seen,json=firstSeen,proto3" json:"first_seen,omitempty"`
	FirstConfirmed    *NotificationHandledInfo `protobuf:"bytes,21,opt,name=first_confirmed,json=firstConfirmed,proto3" json:"first_confirmed,omitempty"`
	CorrelationId     *string                  `protobuf:"bytes,22,opt,name=correlation_id,json=correlationId,proto3,oneof" json:"correlation_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Notification) Descriptor deprecated

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

Deprecated: Use Notification.ProtoReflect.Descriptor instead.

func (*Notification) GetBody

func (x *Notification) GetBody() string

func (*Notification) GetChannels

func (x *Notification) GetChannels() *structpb.Struct

func (*Notification) GetConfirmText

func (x *Notification) GetConfirmText() string

func (*Notification) GetConfirmUrl

func (x *Notification) GetConfirmUrl() string

func (*Notification) GetCorrelationId

func (x *Notification) GetCorrelationId() string

func (*Notification) GetCreated

func (x *Notification) GetCreated() string

func (*Notification) GetData

func (x *Notification) GetData() string

func (*Notification) GetFirstConfirmed

func (x *Notification) GetFirstConfirmed() *NotificationHandledInfo

func (*Notification) GetFirstDelivered

func (x *Notification) GetFirstDelivered() *NotificationHandledInfo

func (*Notification) GetFirstSeen

func (x *Notification) GetFirstSeen() *NotificationHandledInfo

func (*Notification) GetId

func (x *Notification) GetId() string

func (*Notification) GetImageLarge

func (x *Notification) GetImageLarge() string

func (*Notification) GetImageSmall

func (x *Notification) GetImageSmall() string

func (*Notification) GetLinkText

func (x *Notification) GetLinkText() string

func (*Notification) GetLinkUrl

func (x *Notification) GetLinkUrl() string

func (*Notification) GetProperties

func (x *Notification) GetProperties() *structpb.Struct

func (*Notification) GetSilent

func (x *Notification) GetSilent() bool

func (*Notification) GetSubject

func (x *Notification) GetSubject() string

func (*Notification) GetTrackDeliveredUrl

func (x *Notification) GetTrackDeliveredUrl() string

func (*Notification) GetTrackSeenUrl

func (x *Notification) GetTrackSeenUrl() string

func (*Notification) GetTrackingToken

func (x *Notification) GetTrackingToken() string

func (*Notification) GetUpdated

func (x *Notification) GetUpdated() 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

type NotificationEvent

type NotificationEvent struct {
	Topic               string                       `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	CreatorId           string                       `protobuf:"bytes,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
	TemplateCode        string                       `protobuf:"bytes,3,opt,name=template_code,json=templateCode,proto3" json:"template_code,omitempty"`
	TemplateVariants    *structpb.Struct             `protobuf:"bytes,4,opt,name=template_variants,json=templateVariants,proto3" json:"template_variants,omitempty"`
	Data                string                       `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	Timestamp           string                       `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Preformatted        *NotificationEventFormatting `protobuf:"bytes,7,opt,name=preformatted,proto3" json:"preformatted,omitempty"`
	Settings            *structpb.Struct             `protobuf:"bytes,8,opt,name=settings,proto3" json:"settings,omitempty"`
	Properties          *structpb.Struct             `protobuf:"bytes,9,opt,name=properties,proto3" json:"properties,omitempty"`
	Scheduling          *NotificationEventScheduling `protobuf:"bytes,10,opt,name=scheduling,proto3" json:"scheduling,omitempty"`
	Silent              bool                         `protobuf:"varint,11,opt,name=silent,proto3" json:"silent,omitempty"`
	Test                bool                         `protobuf:"varint,12,opt,name=test,proto3" json:"test,omitempty"`
	TimeToLiveInSeconds int32                        `` /* 126-byte string literal not displayed */
	CorrelationId       *string                      `protobuf:"bytes,14,opt,name=correlation_id,json=correlationId,proto3,oneof" json:"correlation_id,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationEvent) Descriptor deprecated

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

Deprecated: Use NotificationEvent.ProtoReflect.Descriptor instead.

func (*NotificationEvent) GetCorrelationId

func (x *NotificationEvent) GetCorrelationId() string

func (*NotificationEvent) GetCreatorId

func (x *NotificationEvent) GetCreatorId() string

func (*NotificationEvent) GetData

func (x *NotificationEvent) GetData() string

func (*NotificationEvent) GetPreformatted

func (x *NotificationEvent) GetPreformatted() *NotificationEventFormatting

func (*NotificationEvent) GetProperties

func (x *NotificationEvent) GetProperties() *structpb.Struct

func (*NotificationEvent) GetScheduling

func (x *NotificationEvent) GetScheduling() *NotificationEventScheduling

func (*NotificationEvent) GetSettings

func (x *NotificationEvent) GetSettings() *structpb.Struct

func (*NotificationEvent) GetSilent

func (x *NotificationEvent) GetSilent() bool

func (*NotificationEvent) GetTemplateCode

func (x *NotificationEvent) GetTemplateCode() string

func (*NotificationEvent) GetTemplateVariants

func (x *NotificationEvent) GetTemplateVariants() *structpb.Struct

func (*NotificationEvent) GetTest

func (x *NotificationEvent) GetTest() bool

func (*NotificationEvent) GetTimeToLiveInSeconds

func (x *NotificationEvent) GetTimeToLiveInSeconds() int32

func (*NotificationEvent) GetTimestamp

func (x *NotificationEvent) GetTimestamp() string

func (*NotificationEvent) GetTopic

func (x *NotificationEvent) GetTopic() string

func (*NotificationEvent) ProtoMessage

func (*NotificationEvent) ProtoMessage()

func (*NotificationEvent) ProtoReflect

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

func (*NotificationEvent) Reset

func (x *NotificationEvent) Reset()

func (*NotificationEvent) String

func (x *NotificationEvent) String() string

type NotificationEventFormatting

type NotificationEventFormatting struct {
	Subject     *structpb.Struct `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Body        *structpb.Struct `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	ConfirmText *structpb.Struct `protobuf:"bytes,3,opt,name=confirm_text,json=confirmText,proto3" json:"confirm_text,omitempty"`
	ImageSmall  *structpb.Struct `protobuf:"bytes,4,opt,name=image_small,json=imageSmall,proto3" json:"image_small,omitempty"`
	ImageLarge  *structpb.Struct `protobuf:"bytes,5,opt,name=image_large,json=imageLarge,proto3" json:"image_large,omitempty"`
	LinkUrl     *structpb.Struct `protobuf:"bytes,6,opt,name=link_url,json=linkUrl,proto3" json:"link_url,omitempty"`
	LinkText    *structpb.Struct `protobuf:"bytes,7,opt,name=link_text,json=linkText,proto3" json:"link_text,omitempty"`
	ConfirmMode string           `protobuf:"bytes,8,opt,name=confirm_mode,json=confirmMode,proto3" json:"confirm_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationEventFormatting) Descriptor deprecated

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

Deprecated: Use NotificationEventFormatting.ProtoReflect.Descriptor instead.

func (*NotificationEventFormatting) GetBody

func (*NotificationEventFormatting) GetConfirmMode

func (x *NotificationEventFormatting) GetConfirmMode() string

func (*NotificationEventFormatting) GetConfirmText

func (x *NotificationEventFormatting) GetConfirmText() *structpb.Struct

func (*NotificationEventFormatting) GetImageLarge

func (x *NotificationEventFormatting) GetImageLarge() *structpb.Struct

func (*NotificationEventFormatting) GetImageSmall

func (x *NotificationEventFormatting) GetImageSmall() *structpb.Struct

func (*NotificationEventFormatting) GetLinkText

func (x *NotificationEventFormatting) GetLinkText() *structpb.Struct

func (*NotificationEventFormatting) GetLinkUrl

func (x *NotificationEventFormatting) GetLinkUrl() *structpb.Struct

func (*NotificationEventFormatting) GetSubject

func (x *NotificationEventFormatting) GetSubject() *structpb.Struct

func (*NotificationEventFormatting) ProtoMessage

func (*NotificationEventFormatting) ProtoMessage()

func (*NotificationEventFormatting) ProtoReflect

func (*NotificationEventFormatting) Reset

func (x *NotificationEventFormatting) Reset()

func (*NotificationEventFormatting) String

func (x *NotificationEventFormatting) String() string

type NotificationEventScheduling

type NotificationEventScheduling struct {
	Type        string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	NextWeekDay string `protobuf:"bytes,2,opt,name=next_week_day,json=nextWeekDay,proto3" json:"next_week_day,omitempty"`
	Date        string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
	Time        string `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationEventScheduling) Descriptor deprecated

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

Deprecated: Use NotificationEventScheduling.ProtoReflect.Descriptor instead.

func (*NotificationEventScheduling) GetDate

func (x *NotificationEventScheduling) GetDate() string

func (*NotificationEventScheduling) GetNextWeekDay

func (x *NotificationEventScheduling) GetNextWeekDay() string

func (*NotificationEventScheduling) GetTime

func (x *NotificationEventScheduling) GetTime() string

func (*NotificationEventScheduling) GetType

func (x *NotificationEventScheduling) GetType() string

func (*NotificationEventScheduling) ProtoMessage

func (*NotificationEventScheduling) ProtoMessage()

func (*NotificationEventScheduling) ProtoReflect

func (*NotificationEventScheduling) Reset

func (x *NotificationEventScheduling) Reset()

func (*NotificationEventScheduling) String

func (x *NotificationEventScheduling) String() string

type NotificationHandledInfo

type NotificationHandledInfo struct {
	Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Channel   string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationHandledInfo) Descriptor deprecated

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

Deprecated: Use NotificationHandledInfo.ProtoReflect.Descriptor instead.

func (*NotificationHandledInfo) GetChannel

func (x *NotificationHandledInfo) GetChannel() string

func (*NotificationHandledInfo) GetTimestamp

func (x *NotificationHandledInfo) GetTimestamp() string

func (*NotificationHandledInfo) ProtoMessage

func (*NotificationHandledInfo) ProtoMessage()

func (*NotificationHandledInfo) ProtoReflect

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

func (*NotificationHandledInfo) Reset

func (x *NotificationHandledInfo) Reset()

func (*NotificationHandledInfo) String

func (x *NotificationHandledInfo) String() string

type NotificationUser

type NotificationUser struct {
	Id               string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	EmailAddress     string `protobuf:"bytes,2,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"`
	LastNotification string `protobuf:"bytes,5,opt,name=last_notification,json=lastNotification,proto3" json:"last_notification,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationUser) Descriptor deprecated

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

Deprecated: Use NotificationUser.ProtoReflect.Descriptor instead.

func (*NotificationUser) GetEmailAddress

func (x *NotificationUser) GetEmailAddress() string

func (*NotificationUser) GetId

func (x *NotificationUser) GetId() string

func (*NotificationUser) GetLastNotification

func (x *NotificationUser) GetLastNotification() string

func (*NotificationUser) ProtoMessage

func (*NotificationUser) ProtoMessage()

func (*NotificationUser) ProtoReflect

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

func (*NotificationUser) Reset

func (x *NotificationUser) Reset()

func (*NotificationUser) String

func (x *NotificationUser) String() string

type NotificationsServiceClient

type NotificationsServiceClient interface {
	UpsertUsers(ctx context.Context, in *NotificationsServiceUpsertUsersRequest, opts ...grpc.CallOption) (*NotificationsServiceUpsertUsersResponse, error)
	GetUsers(ctx context.Context, in *NotificationsServiceGetUsersRequest, opts ...grpc.CallOption) (*NotificationsServiceGetUsersResponse, error)
	ListUsers(ctx context.Context, in *NotificationsServiceListUsersRequest, opts ...grpc.CallOption) (*NotificationsServiceListUsersResponse, error)
	DeleteUsers(ctx context.Context, in *NotificationsServiceDeleteUsersRequest, opts ...grpc.CallOption) (*NotificationsServiceDeleteUsersResponse, error)
	GetNotifications(ctx context.Context, in *NotificationsServiceGetNotificationsRequest, opts ...grpc.CallOption) (*NotificationsServiceGetNotificationsResponse, error)
	SendNotifications(ctx context.Context, in *NotificationsServiceSendNotificationsRequest, opts ...grpc.CallOption) (*NotificationsServiceSendNotificationsResponse, error)
	UpdateSubscriptions(ctx context.Context, in *NotificationsServiceUpdateSubscriptionsRequest, opts ...grpc.CallOption) (*NotificationsServiceUpdateSubscriptionsResponse, error)
	UpsertScheduledNotifications(ctx context.Context, in *NotificationsServiceUpsertScheduledNotificationsRequest, opts ...grpc.CallOption) (*NotificationsServiceUpsertScheduledNotificationsResponse, error)
	GetScheduledNotifications(ctx context.Context, in *NotificationsServiceGetScheduledNotificationsRequest, opts ...grpc.CallOption) (*NotificationsServiceGetScheduledNotificationsResponse, error)
	DeleteScheduledNotifications(ctx context.Context, in *NotificationsServiceDeleteScheduledNotificationsRequest, opts ...grpc.CallOption) (*NotificationsServiceDeleteScheduledNotificationsResponse, error)
}

NotificationsServiceClient is the client API for NotificationsService 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 NotificationsServiceDeleteScheduledNotificationsRequest

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

func (*NotificationsServiceDeleteScheduledNotificationsRequest) Descriptor deprecated

Deprecated: Use NotificationsServiceDeleteScheduledNotificationsRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceDeleteScheduledNotificationsRequest) GetIds

func (*NotificationsServiceDeleteScheduledNotificationsRequest) ProtoMessage

func (*NotificationsServiceDeleteScheduledNotificationsRequest) ProtoReflect

func (*NotificationsServiceDeleteScheduledNotificationsRequest) Reset

func (*NotificationsServiceDeleteScheduledNotificationsRequest) String

type NotificationsServiceDeleteScheduledNotificationsResponse

type NotificationsServiceDeleteScheduledNotificationsResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceDeleteScheduledNotificationsResponse) Descriptor deprecated

Deprecated: Use NotificationsServiceDeleteScheduledNotificationsResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceDeleteScheduledNotificationsResponse) GetSuccess

func (*NotificationsServiceDeleteScheduledNotificationsResponse) ProtoMessage

func (*NotificationsServiceDeleteScheduledNotificationsResponse) ProtoReflect

func (*NotificationsServiceDeleteScheduledNotificationsResponse) Reset

func (*NotificationsServiceDeleteScheduledNotificationsResponse) String

type NotificationsServiceDeleteUsersRequest

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

func (*NotificationsServiceDeleteUsersRequest) Descriptor deprecated

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

Deprecated: Use NotificationsServiceDeleteUsersRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceDeleteUsersRequest) GetIds

func (*NotificationsServiceDeleteUsersRequest) ProtoMessage

func (*NotificationsServiceDeleteUsersRequest) ProtoReflect

func (*NotificationsServiceDeleteUsersRequest) Reset

func (*NotificationsServiceDeleteUsersRequest) String

type NotificationsServiceDeleteUsersResponse

type NotificationsServiceDeleteUsersResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceDeleteUsersResponse) Descriptor deprecated

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

Deprecated: Use NotificationsServiceDeleteUsersResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceDeleteUsersResponse) GetSuccess

func (*NotificationsServiceDeleteUsersResponse) ProtoMessage

func (*NotificationsServiceDeleteUsersResponse) ProtoReflect

func (*NotificationsServiceDeleteUsersResponse) Reset

func (*NotificationsServiceDeleteUsersResponse) String

type NotificationsServiceGetNotificationsRequest

type NotificationsServiceGetNotificationsRequest struct {
	UserId        string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Channels      []string `protobuf:"bytes,2,rep,name=channels,proto3" json:"channels,omitempty"`
	Query         string   `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
	Limit         int32    `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	Skip          int32    `protobuf:"varint,5,opt,name=skip,proto3" json:"skip,omitempty"`
	CorrelationId *string  `protobuf:"bytes,6,opt,name=correlation_id,json=correlationId,proto3,oneof" json:"correlation_id,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceGetNotificationsRequest) Descriptor deprecated

Deprecated: Use NotificationsServiceGetNotificationsRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceGetNotificationsRequest) GetChannels

func (*NotificationsServiceGetNotificationsRequest) GetCorrelationId

func (*NotificationsServiceGetNotificationsRequest) GetLimit

func (*NotificationsServiceGetNotificationsRequest) GetQuery

func (*NotificationsServiceGetNotificationsRequest) GetSkip

func (*NotificationsServiceGetNotificationsRequest) GetUserId

func (*NotificationsServiceGetNotificationsRequest) ProtoMessage

func (*NotificationsServiceGetNotificationsRequest) ProtoReflect

func (*NotificationsServiceGetNotificationsRequest) Reset

func (*NotificationsServiceGetNotificationsRequest) String

type NotificationsServiceGetNotificationsResponse

type NotificationsServiceGetNotificationsResponse struct {
	Total         int32           `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Notifications []*Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceGetNotificationsResponse) Descriptor deprecated

Deprecated: Use NotificationsServiceGetNotificationsResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceGetNotificationsResponse) GetNotifications

func (*NotificationsServiceGetNotificationsResponse) GetTotal

func (*NotificationsServiceGetNotificationsResponse) ProtoMessage

func (*NotificationsServiceGetNotificationsResponse) ProtoReflect

func (*NotificationsServiceGetNotificationsResponse) Reset

func (*NotificationsServiceGetNotificationsResponse) String

type NotificationsServiceGetScheduledNotificationsRequest

type NotificationsServiceGetScheduledNotificationsRequest struct {
	Ids    []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	UserId string   `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Limit  int32    `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Skip   int32    `protobuf:"varint,4,opt,name=skip,proto3" json:"skip,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceGetScheduledNotificationsRequest) Descriptor deprecated

Deprecated: Use NotificationsServiceGetScheduledNotificationsRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceGetScheduledNotificationsRequest) GetIds

func (*NotificationsServiceGetScheduledNotificationsRequest) GetLimit

func (*NotificationsServiceGetScheduledNotificationsRequest) GetSkip

func (*NotificationsServiceGetScheduledNotificationsRequest) GetUserId

func (*NotificationsServiceGetScheduledNotificationsRequest) ProtoMessage

func (*NotificationsServiceGetScheduledNotificationsRequest) ProtoReflect

func (*NotificationsServiceGetScheduledNotificationsRequest) Reset

func (*NotificationsServiceGetScheduledNotificationsRequest) String

type NotificationsServiceGetScheduledNotificationsResponse

type NotificationsServiceGetScheduledNotificationsResponse struct {
	ScheduledNotifications []*ScheduledNotification `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NotificationsServiceGetScheduledNotificationsResponse) Descriptor deprecated

Deprecated: Use NotificationsServiceGetScheduledNotificationsResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceGetScheduledNotificationsResponse) GetScheduledNotifications

func (*NotificationsServiceGetScheduledNotificationsResponse) ProtoMessage

func (*NotificationsServiceGetScheduledNotificationsResponse) ProtoReflect

func (*NotificationsServiceGetScheduledNotificationsResponse) Reset

func (*NotificationsServiceGetScheduledNotificationsResponse) String

type NotificationsServiceGetUsersRequest

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

func (*NotificationsServiceGetUsersRequest) Descriptor deprecated

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

Deprecated: Use NotificationsServiceGetUsersRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceGetUsersRequest) GetIds

func (*NotificationsServiceGetUsersRequest) ProtoMessage

func (*NotificationsServiceGetUsersRequest) ProtoMessage()

func (*NotificationsServiceGetUsersRequest) ProtoReflect

func (*NotificationsServiceGetUsersRequest) Reset

func (*NotificationsServiceGetUsersRequest) String

type NotificationsServiceGetUsersResponse

type NotificationsServiceGetUsersResponse struct {
	Users []*NotificationUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceGetUsersResponse) Descriptor deprecated

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

Deprecated: Use NotificationsServiceGetUsersResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceGetUsersResponse) GetUsers

func (*NotificationsServiceGetUsersResponse) ProtoMessage

func (*NotificationsServiceGetUsersResponse) ProtoMessage()

func (*NotificationsServiceGetUsersResponse) ProtoReflect

func (*NotificationsServiceGetUsersResponse) Reset

func (*NotificationsServiceGetUsersResponse) String

type NotificationsServiceListUsersRequest

type NotificationsServiceListUsersRequest struct {
	Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Skip  int32 `protobuf:"varint,2,opt,name=skip,proto3" json:"skip,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceListUsersRequest) Descriptor deprecated

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

Deprecated: Use NotificationsServiceListUsersRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceListUsersRequest) GetLimit

func (*NotificationsServiceListUsersRequest) GetSkip

func (*NotificationsServiceListUsersRequest) ProtoMessage

func (*NotificationsServiceListUsersRequest) ProtoMessage()

func (*NotificationsServiceListUsersRequest) ProtoReflect

func (*NotificationsServiceListUsersRequest) Reset

func (*NotificationsServiceListUsersRequest) String

type NotificationsServiceListUsersResponse

type NotificationsServiceListUsersResponse struct {
	Users []*NotificationUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceListUsersResponse) Descriptor deprecated

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

Deprecated: Use NotificationsServiceListUsersResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceListUsersResponse) GetUsers

func (*NotificationsServiceListUsersResponse) ProtoMessage

func (*NotificationsServiceListUsersResponse) ProtoMessage()

func (*NotificationsServiceListUsersResponse) ProtoReflect

func (*NotificationsServiceListUsersResponse) Reset

func (*NotificationsServiceListUsersResponse) String

type NotificationsServiceSendNotificationsRequest

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

func (*NotificationsServiceSendNotificationsRequest) Descriptor deprecated

Deprecated: Use NotificationsServiceSendNotificationsRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceSendNotificationsRequest) GetNotifications

func (*NotificationsServiceSendNotificationsRequest) ProtoMessage

func (*NotificationsServiceSendNotificationsRequest) ProtoReflect

func (*NotificationsServiceSendNotificationsRequest) Reset

func (*NotificationsServiceSendNotificationsRequest) String

type NotificationsServiceSendNotificationsResponse

type NotificationsServiceSendNotificationsResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceSendNotificationsResponse) Descriptor deprecated

Deprecated: Use NotificationsServiceSendNotificationsResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceSendNotificationsResponse) GetSuccess

func (*NotificationsServiceSendNotificationsResponse) ProtoMessage

func (*NotificationsServiceSendNotificationsResponse) ProtoReflect

func (*NotificationsServiceSendNotificationsResponse) Reset

func (*NotificationsServiceSendNotificationsResponse) String

type NotificationsServiceServer

NotificationsServiceServer is the server API for NotificationsService service. All implementations should embed UnimplementedNotificationsServiceServer for forward compatibility

type NotificationsServiceUpdateSubscriptionsRequest

type NotificationsServiceUpdateSubscriptionsRequest struct {
	UserId      string                  `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Subscribe   []*SubscriptionSettings `protobuf:"bytes,2,rep,name=subscribe,proto3" json:"subscribe,omitempty"`
	Unsubscribe []string                `protobuf:"bytes,3,rep,name=unsubscribe,proto3" json:"unsubscribe,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceUpdateSubscriptionsRequest) Descriptor deprecated

Deprecated: Use NotificationsServiceUpdateSubscriptionsRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceUpdateSubscriptionsRequest) GetSubscribe

func (*NotificationsServiceUpdateSubscriptionsRequest) GetUnsubscribe

func (*NotificationsServiceUpdateSubscriptionsRequest) GetUserId

func (*NotificationsServiceUpdateSubscriptionsRequest) ProtoMessage

func (*NotificationsServiceUpdateSubscriptionsRequest) ProtoReflect

func (*NotificationsServiceUpdateSubscriptionsRequest) Reset

func (*NotificationsServiceUpdateSubscriptionsRequest) String

type NotificationsServiceUpdateSubscriptionsResponse

type NotificationsServiceUpdateSubscriptionsResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceUpdateSubscriptionsResponse) Descriptor deprecated

Deprecated: Use NotificationsServiceUpdateSubscriptionsResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceUpdateSubscriptionsResponse) GetSuccess

func (*NotificationsServiceUpdateSubscriptionsResponse) ProtoMessage

func (*NotificationsServiceUpdateSubscriptionsResponse) ProtoReflect

func (*NotificationsServiceUpdateSubscriptionsResponse) Reset

func (*NotificationsServiceUpdateSubscriptionsResponse) String

type NotificationsServiceUpsertScheduledNotificationsRequest

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

func (*NotificationsServiceUpsertScheduledNotificationsRequest) Descriptor deprecated

Deprecated: Use NotificationsServiceUpsertScheduledNotificationsRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceUpsertScheduledNotificationsRequest) GetNotifications

func (*NotificationsServiceUpsertScheduledNotificationsRequest) ProtoMessage

func (*NotificationsServiceUpsertScheduledNotificationsRequest) ProtoReflect

func (*NotificationsServiceUpsertScheduledNotificationsRequest) Reset

func (*NotificationsServiceUpsertScheduledNotificationsRequest) String

type NotificationsServiceUpsertScheduledNotificationsResponse

type NotificationsServiceUpsertScheduledNotificationsResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceUpsertScheduledNotificationsResponse) Descriptor deprecated

Deprecated: Use NotificationsServiceUpsertScheduledNotificationsResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceUpsertScheduledNotificationsResponse) GetSuccess

func (*NotificationsServiceUpsertScheduledNotificationsResponse) ProtoMessage

func (*NotificationsServiceUpsertScheduledNotificationsResponse) ProtoReflect

func (*NotificationsServiceUpsertScheduledNotificationsResponse) Reset

func (*NotificationsServiceUpsertScheduledNotificationsResponse) String

type NotificationsServiceUpsertUsersRequest

type NotificationsServiceUpsertUsersRequest struct {
	Users []*NotificationUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceUpsertUsersRequest) Descriptor deprecated

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

Deprecated: Use NotificationsServiceUpsertUsersRequest.ProtoReflect.Descriptor instead.

func (*NotificationsServiceUpsertUsersRequest) GetUsers

func (*NotificationsServiceUpsertUsersRequest) ProtoMessage

func (*NotificationsServiceUpsertUsersRequest) ProtoReflect

func (*NotificationsServiceUpsertUsersRequest) Reset

func (*NotificationsServiceUpsertUsersRequest) String

type NotificationsServiceUpsertUsersResponse

type NotificationsServiceUpsertUsersResponse struct {
	Users []*NotificationUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationsServiceUpsertUsersResponse) Descriptor deprecated

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

Deprecated: Use NotificationsServiceUpsertUsersResponse.ProtoReflect.Descriptor instead.

func (*NotificationsServiceUpsertUsersResponse) GetUsers

func (*NotificationsServiceUpsertUsersResponse) ProtoMessage

func (*NotificationsServiceUpsertUsersResponse) ProtoReflect

func (*NotificationsServiceUpsertUsersResponse) Reset

func (*NotificationsServiceUpsertUsersResponse) String

type ScheduledNotification

type ScheduledNotification struct {
	Id           string             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId       string             `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Notification *NotificationEvent `protobuf:"bytes,3,opt,name=notification,proto3" json:"notification,omitempty"`
	ExpireAfter  int64              `protobuf:"varint,4,opt,name=expire_after,json=expireAfter,proto3" json:"expire_after,omitempty"`
	// Types that are assignable to Trigger:
	//	*ScheduledNotification_ExecuteOnceTrigger
	//	*ScheduledNotification_CronTrigger
	Trigger isScheduledNotification_Trigger `protobuf_oneof:"trigger"`
	// contains filtered or unexported fields
}

func (*ScheduledNotification) Descriptor deprecated

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

Deprecated: Use ScheduledNotification.ProtoReflect.Descriptor instead.

func (*ScheduledNotification) GetCronTrigger

func (x *ScheduledNotification) GetCronTrigger() *CronTrigger

func (*ScheduledNotification) GetExecuteOnceTrigger

func (x *ScheduledNotification) GetExecuteOnceTrigger() *ExecuteOnceTrigger

func (*ScheduledNotification) GetExpireAfter

func (x *ScheduledNotification) GetExpireAfter() int64

func (*ScheduledNotification) GetId

func (x *ScheduledNotification) GetId() string

func (*ScheduledNotification) GetNotification

func (x *ScheduledNotification) GetNotification() *NotificationEvent

func (*ScheduledNotification) GetTrigger

func (m *ScheduledNotification) GetTrigger() isScheduledNotification_Trigger

func (*ScheduledNotification) GetUserId

func (x *ScheduledNotification) GetUserId() string

func (*ScheduledNotification) ProtoMessage

func (*ScheduledNotification) ProtoMessage()

func (*ScheduledNotification) ProtoReflect

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

func (*ScheduledNotification) Reset

func (x *ScheduledNotification) Reset()

func (*ScheduledNotification) String

func (x *ScheduledNotification) String() string

type ScheduledNotification_CronTrigger

type ScheduledNotification_CronTrigger struct {
	CronTrigger *CronTrigger `protobuf:"bytes,6,opt,name=cron_trigger,json=cronTrigger,proto3,oneof"`
}

type ScheduledNotification_ExecuteOnceTrigger

type ScheduledNotification_ExecuteOnceTrigger struct {
	ExecuteOnceTrigger *ExecuteOnceTrigger `protobuf:"bytes,5,opt,name=execute_once_trigger,json=executeOnceTrigger,proto3,oneof"`
}

type SubscriptionSettings

type SubscriptionSettings struct {
	TopicPrefix   string           `protobuf:"bytes,1,opt,name=topic_prefix,json=topicPrefix,proto3" json:"topic_prefix,omitempty"`
	TopicSettings *structpb.Struct `protobuf:"bytes,2,opt,name=topic_settings,json=topicSettings,proto3" json:"topic_settings,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscriptionSettings) Descriptor deprecated

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

Deprecated: Use SubscriptionSettings.ProtoReflect.Descriptor instead.

func (*SubscriptionSettings) GetTopicPrefix

func (x *SubscriptionSettings) GetTopicPrefix() string

func (*SubscriptionSettings) GetTopicSettings

func (x *SubscriptionSettings) GetTopicSettings() *structpb.Struct

func (*SubscriptionSettings) ProtoMessage

func (*SubscriptionSettings) ProtoMessage()

func (*SubscriptionSettings) ProtoReflect

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

func (*SubscriptionSettings) Reset

func (x *SubscriptionSettings) Reset()

func (*SubscriptionSettings) String

func (x *SubscriptionSettings) String() string

type UnimplementedNotificationsServiceServer

type UnimplementedNotificationsServiceServer struct {
}

UnimplementedNotificationsServiceServer should be embedded to have forward compatible implementations.

type UnsafeNotificationsServiceServer

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

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

Jump to

Keyboard shortcuts

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