Documentation ¶
Overview ¶
Package notificationsv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterNotificationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNotificationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotificationServiceClient) error
- func RegisterNotificationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNotificationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NotificationServiceServer) error
- func RegisterNotificationServiceServer(s grpc.ServiceRegistrar, srv NotificationServiceServer)
- type BatchUpdateNotificationsRequest
- func (m *BatchUpdateNotificationsRequest) CloneMessageVT() proto.Message
- func (m *BatchUpdateNotificationsRequest) CloneVT() *BatchUpdateNotificationsRequest
- func (*BatchUpdateNotificationsRequest) Descriptor() ([]byte, []int)deprecated
- func (this *BatchUpdateNotificationsRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *BatchUpdateNotificationsRequest) EqualVT(that *BatchUpdateNotificationsRequest) bool
- func (x *BatchUpdateNotificationsRequest) GetRequests() []*UpdateNotificationRequest
- func (m *BatchUpdateNotificationsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *BatchUpdateNotificationsRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *BatchUpdateNotificationsRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *BatchUpdateNotificationsRequest) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *BatchUpdateNotificationsRequest) MarshalVT() (dAtA []byte, err error)
- func (m *BatchUpdateNotificationsRequest) MarshalVTStrict() (dAtA []byte, err error)
- func (*BatchUpdateNotificationsRequest) ProtoMessage()
- func (x *BatchUpdateNotificationsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchUpdateNotificationsRequest) Reset()
- func (m *BatchUpdateNotificationsRequest) SizeVT() (n int)
- func (x *BatchUpdateNotificationsRequest) String() string
- func (m *BatchUpdateNotificationsRequest) UnmarshalVT(dAtA []byte) error
- func (m *BatchUpdateNotificationsRequest) UnmarshalVTUnsafe(dAtA []byte) error
- type BatchUpdateNotificationsResponse
- func (m *BatchUpdateNotificationsResponse) CloneMessageVT() proto.Message
- func (m *BatchUpdateNotificationsResponse) CloneVT() *BatchUpdateNotificationsResponse
- func (*BatchUpdateNotificationsResponse) Descriptor() ([]byte, []int)deprecated
- func (this *BatchUpdateNotificationsResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *BatchUpdateNotificationsResponse) EqualVT(that *BatchUpdateNotificationsResponse) bool
- func (x *BatchUpdateNotificationsResponse) GetNotifications() []*Notification
- func (m *BatchUpdateNotificationsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *BatchUpdateNotificationsResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *BatchUpdateNotificationsResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *BatchUpdateNotificationsResponse) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *BatchUpdateNotificationsResponse) MarshalVT() (dAtA []byte, err error)
- func (m *BatchUpdateNotificationsResponse) MarshalVTStrict() (dAtA []byte, err error)
- func (*BatchUpdateNotificationsResponse) ProtoMessage()
- func (x *BatchUpdateNotificationsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchUpdateNotificationsResponse) Reset()
- func (m *BatchUpdateNotificationsResponse) SizeVT() (n int)
- func (x *BatchUpdateNotificationsResponse) String() string
- func (m *BatchUpdateNotificationsResponse) UnmarshalVT(dAtA []byte) error
- func (m *BatchUpdateNotificationsResponse) UnmarshalVTUnsafe(dAtA []byte) error
- type ListNotificationsRequest
- func (m *ListNotificationsRequest) CloneMessageVT() proto.Message
- func (m *ListNotificationsRequest) CloneVT() *ListNotificationsRequest
- func (*ListNotificationsRequest) Descriptor() ([]byte, []int)deprecated
- func (this *ListNotificationsRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *ListNotificationsRequest) EqualVT(that *ListNotificationsRequest) bool
- func (x *ListNotificationsRequest) GetFilter() string
- func (x *ListNotificationsRequest) GetPageSize() uint32
- func (x *ListNotificationsRequest) GetPageToken() string
- func (m *ListNotificationsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ListNotificationsRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *ListNotificationsRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ListNotificationsRequest) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *ListNotificationsRequest) MarshalVT() (dAtA []byte, err error)
- func (m *ListNotificationsRequest) MarshalVTStrict() (dAtA []byte, err error)
- func (*ListNotificationsRequest) ProtoMessage()
- func (x *ListNotificationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListNotificationsRequest) Reset()
- func (m *ListNotificationsRequest) SizeVT() (n int)
- func (x *ListNotificationsRequest) String() string
- func (m *ListNotificationsRequest) UnmarshalVT(dAtA []byte) error
- func (m *ListNotificationsRequest) UnmarshalVTUnsafe(dAtA []byte) error
- type ListNotificationsResponse
- func (m *ListNotificationsResponse) CloneMessageVT() proto.Message
- func (m *ListNotificationsResponse) CloneVT() *ListNotificationsResponse
- func (*ListNotificationsResponse) Descriptor() ([]byte, []int)deprecated
- func (this *ListNotificationsResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *ListNotificationsResponse) EqualVT(that *ListNotificationsResponse) bool
- func (x *ListNotificationsResponse) GetNextPageToken() string
- func (x *ListNotificationsResponse) GetNotifications() []*Notification
- func (m *ListNotificationsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ListNotificationsResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *ListNotificationsResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *ListNotificationsResponse) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *ListNotificationsResponse) MarshalVT() (dAtA []byte, err error)
- func (m *ListNotificationsResponse) MarshalVTStrict() (dAtA []byte, err error)
- func (*ListNotificationsResponse) ProtoMessage()
- func (x *ListNotificationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListNotificationsResponse) Reset()
- func (m *ListNotificationsResponse) SizeVT() (n int)
- func (x *ListNotificationsResponse) String() string
- func (m *ListNotificationsResponse) UnmarshalVT(dAtA []byte) error
- func (m *ListNotificationsResponse) UnmarshalVTUnsafe(dAtA []byte) error
- type Notification
- func (m *Notification) CloneMessageVT() proto.Message
- func (m *Notification) CloneVT() *Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (this *Notification) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Notification) EqualVT(that *Notification) bool
- func (x *Notification) GetContents() string
- func (x *Notification) GetCreatedByUserId() string
- func (x *Notification) GetCreatedDate() *timestamppb.Timestamp
- func (x *Notification) GetEntityId() string
- func (x *Notification) GetFullLink() string
- func (x *Notification) GetIsRead() bool
- func (x *Notification) GetModifiedByUserId() string
- func (x *Notification) GetModifiedDate() *timestamppb.Timestamp
- func (x *Notification) GetNotificationId() string
- func (x *Notification) GetNotificationType() NotificationKind
- func (x *Notification) GetOrganizationId() string
- func (x *Notification) GetRecipientUserId() string
- func (m *Notification) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Notification) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *Notification) MarshalToVT(dAtA []byte) (int, error)
- func (m *Notification) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *Notification) MarshalVT() (dAtA []byte, err error)
- func (m *Notification) MarshalVTStrict() (dAtA []byte, err error)
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (m *Notification) SizeVT() (n int)
- func (x *Notification) String() string
- func (m *Notification) UnmarshalVT(dAtA []byte) error
- func (m *Notification) UnmarshalVTUnsafe(dAtA []byte) error
- type NotificationKind
- func (NotificationKind) Descriptor() protoreflect.EnumDescriptor
- func (x NotificationKind) Enum() *NotificationKind
- func (NotificationKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x NotificationKind) Number() protoreflect.EnumNumber
- func (x NotificationKind) String() string
- func (NotificationKind) Type() protoreflect.EnumType
- type NotificationServiceClient
- type NotificationServiceServer
- type UnimplementedNotificationServiceServer
- func (UnimplementedNotificationServiceServer) BatchUpdateNotifications(context.Context, *BatchUpdateNotificationsRequest) (*BatchUpdateNotificationsResponse, error)
- func (UnimplementedNotificationServiceServer) ListNotifications(context.Context, *ListNotificationsRequest) (*ListNotificationsResponse, error)
- type UnsafeNotificationServiceServer
- type UpdateNotificationRequest
- func (m *UpdateNotificationRequest) CloneMessageVT() proto.Message
- func (m *UpdateNotificationRequest) CloneVT() *UpdateNotificationRequest
- func (*UpdateNotificationRequest) Descriptor() ([]byte, []int)deprecated
- func (this *UpdateNotificationRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *UpdateNotificationRequest) EqualVT(that *UpdateNotificationRequest) bool
- func (x *UpdateNotificationRequest) GetNotification() *Notification
- func (x *UpdateNotificationRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (m *UpdateNotificationRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UpdateNotificationRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *UpdateNotificationRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UpdateNotificationRequest) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *UpdateNotificationRequest) MarshalVT() (dAtA []byte, err error)
- func (m *UpdateNotificationRequest) MarshalVTStrict() (dAtA []byte, err error)
- func (*UpdateNotificationRequest) ProtoMessage()
- func (x *UpdateNotificationRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNotificationRequest) Reset()
- func (m *UpdateNotificationRequest) SizeVT() (n int)
- func (x *UpdateNotificationRequest) String() string
- func (m *UpdateNotificationRequest) UnmarshalVT(dAtA []byte) error
- func (m *UpdateNotificationRequest) UnmarshalVTUnsafe(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( NotificationKind_name = map[int32]string{ 0: "NOTIFICATION_KIND_UNSPECIFIED", 1: "NOTIFICATION_KIND_TEXT", 2: "NOTIFICATION_KIND_ANNOTATION_ASSIGNED", 3: "NOTIFICATION_KIND_MENTIONED_IN_ANNOTATION_COMMENT", 4: "NOTIFICATION_KIND_CONDITION_TRIGGERED", 5: "NOTIFICATION_KIND_ANNOTATION_STATE_CHANGED", } NotificationKind_value = map[string]int32{ "NOTIFICATION_KIND_UNSPECIFIED": 0, "NOTIFICATION_KIND_TEXT": 1, "NOTIFICATION_KIND_ANNOTATION_ASSIGNED": 2, "NOTIFICATION_KIND_MENTIONED_IN_ANNOTATION_COMMENT": 3, "NOTIFICATION_KIND_CONDITION_TRIGGERED": 4, "NOTIFICATION_KIND_ANNOTATION_STATE_CHANGED": 5, } )
Enum value maps for NotificationKind.
var File_sift_notifications_v1_notifications_proto protoreflect.FileDescriptor
var NotificationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sift.notifications.v1.NotificationService", HandlerType: (*NotificationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListNotifications", Handler: _NotificationService_ListNotifications_Handler, }, { MethodName: "BatchUpdateNotifications", Handler: _NotificationService_BatchUpdateNotifications_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sift/notifications/v1/notifications.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 RegisterNotificationServiceHandler ¶
func RegisterNotificationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNotificationServiceHandler registers the http handlers for service NotificationService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNotificationServiceHandlerClient ¶
func RegisterNotificationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotificationServiceClient) error
RegisterNotificationServiceHandlerClient registers the http handlers for service NotificationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NotificationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NotificationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NotificationServiceClient" to call the correct interceptors.
func RegisterNotificationServiceHandlerFromEndpoint ¶
func RegisterNotificationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNotificationServiceHandlerFromEndpoint is same as RegisterNotificationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNotificationServiceHandlerServer ¶
func RegisterNotificationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NotificationServiceServer) error
RegisterNotificationServiceHandlerServer registers the http handlers for service NotificationService to "mux". UnaryRPC :call NotificationServiceServer 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 RegisterNotificationServiceHandlerFromEndpoint instead.
func RegisterNotificationServiceServer ¶
func RegisterNotificationServiceServer(s grpc.ServiceRegistrar, srv NotificationServiceServer)
Types ¶
type BatchUpdateNotificationsRequest ¶
type BatchUpdateNotificationsRequest struct { Requests []*UpdateNotificationRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
The request for a call to `NotificationService_BatchUpdateNotifications` to update notifications. A maximum of 1000 notifications can be modified in a batch.
func (*BatchUpdateNotificationsRequest) CloneMessageVT ¶
func (m *BatchUpdateNotificationsRequest) CloneMessageVT() proto.Message
func (*BatchUpdateNotificationsRequest) CloneVT ¶
func (m *BatchUpdateNotificationsRequest) CloneVT() *BatchUpdateNotificationsRequest
func (*BatchUpdateNotificationsRequest) Descriptor
deprecated
func (*BatchUpdateNotificationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateNotificationsRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateNotificationsRequest) EqualMessageVT ¶
func (this *BatchUpdateNotificationsRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*BatchUpdateNotificationsRequest) EqualVT ¶
func (this *BatchUpdateNotificationsRequest) EqualVT(that *BatchUpdateNotificationsRequest) bool
func (*BatchUpdateNotificationsRequest) GetRequests ¶
func (x *BatchUpdateNotificationsRequest) GetRequests() []*UpdateNotificationRequest
func (*BatchUpdateNotificationsRequest) MarshalToSizedBufferVT ¶
func (m *BatchUpdateNotificationsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*BatchUpdateNotificationsRequest) MarshalToSizedBufferVTStrict ¶
func (m *BatchUpdateNotificationsRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*BatchUpdateNotificationsRequest) MarshalToVT ¶
func (m *BatchUpdateNotificationsRequest) MarshalToVT(dAtA []byte) (int, error)
func (*BatchUpdateNotificationsRequest) MarshalToVTStrict ¶
func (m *BatchUpdateNotificationsRequest) MarshalToVTStrict(dAtA []byte) (int, error)
func (*BatchUpdateNotificationsRequest) MarshalVT ¶
func (m *BatchUpdateNotificationsRequest) MarshalVT() (dAtA []byte, err error)
func (*BatchUpdateNotificationsRequest) MarshalVTStrict ¶
func (m *BatchUpdateNotificationsRequest) MarshalVTStrict() (dAtA []byte, err error)
func (*BatchUpdateNotificationsRequest) ProtoMessage ¶
func (*BatchUpdateNotificationsRequest) ProtoMessage()
func (*BatchUpdateNotificationsRequest) ProtoReflect ¶
func (x *BatchUpdateNotificationsRequest) ProtoReflect() protoreflect.Message
func (*BatchUpdateNotificationsRequest) Reset ¶
func (x *BatchUpdateNotificationsRequest) Reset()
func (*BatchUpdateNotificationsRequest) SizeVT ¶
func (m *BatchUpdateNotificationsRequest) SizeVT() (n int)
func (*BatchUpdateNotificationsRequest) String ¶
func (x *BatchUpdateNotificationsRequest) String() string
func (*BatchUpdateNotificationsRequest) UnmarshalVT ¶
func (m *BatchUpdateNotificationsRequest) UnmarshalVT(dAtA []byte) error
func (*BatchUpdateNotificationsRequest) UnmarshalVTUnsafe ¶
func (m *BatchUpdateNotificationsRequest) UnmarshalVTUnsafe(dAtA []byte) error
type BatchUpdateNotificationsResponse ¶
type BatchUpdateNotificationsResponse struct { // The updated notifications. Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` // contains filtered or unexported fields }
The response of a call to `NotificationService_BatchUpdateNotifications` containing the updated notifications.
func (*BatchUpdateNotificationsResponse) CloneMessageVT ¶
func (m *BatchUpdateNotificationsResponse) CloneMessageVT() proto.Message
func (*BatchUpdateNotificationsResponse) CloneVT ¶
func (m *BatchUpdateNotificationsResponse) CloneVT() *BatchUpdateNotificationsResponse
func (*BatchUpdateNotificationsResponse) Descriptor
deprecated
func (*BatchUpdateNotificationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateNotificationsResponse.ProtoReflect.Descriptor instead.
func (*BatchUpdateNotificationsResponse) EqualMessageVT ¶
func (this *BatchUpdateNotificationsResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*BatchUpdateNotificationsResponse) EqualVT ¶
func (this *BatchUpdateNotificationsResponse) EqualVT(that *BatchUpdateNotificationsResponse) bool
func (*BatchUpdateNotificationsResponse) GetNotifications ¶
func (x *BatchUpdateNotificationsResponse) GetNotifications() []*Notification
func (*BatchUpdateNotificationsResponse) MarshalToSizedBufferVT ¶
func (m *BatchUpdateNotificationsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*BatchUpdateNotificationsResponse) MarshalToSizedBufferVTStrict ¶
func (m *BatchUpdateNotificationsResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*BatchUpdateNotificationsResponse) MarshalToVT ¶
func (m *BatchUpdateNotificationsResponse) MarshalToVT(dAtA []byte) (int, error)
func (*BatchUpdateNotificationsResponse) MarshalToVTStrict ¶
func (m *BatchUpdateNotificationsResponse) MarshalToVTStrict(dAtA []byte) (int, error)
func (*BatchUpdateNotificationsResponse) MarshalVT ¶
func (m *BatchUpdateNotificationsResponse) MarshalVT() (dAtA []byte, err error)
func (*BatchUpdateNotificationsResponse) MarshalVTStrict ¶
func (m *BatchUpdateNotificationsResponse) MarshalVTStrict() (dAtA []byte, err error)
func (*BatchUpdateNotificationsResponse) ProtoMessage ¶
func (*BatchUpdateNotificationsResponse) ProtoMessage()
func (*BatchUpdateNotificationsResponse) ProtoReflect ¶
func (x *BatchUpdateNotificationsResponse) ProtoReflect() protoreflect.Message
func (*BatchUpdateNotificationsResponse) Reset ¶
func (x *BatchUpdateNotificationsResponse) Reset()
func (*BatchUpdateNotificationsResponse) SizeVT ¶
func (m *BatchUpdateNotificationsResponse) SizeVT() (n int)
func (*BatchUpdateNotificationsResponse) String ¶
func (x *BatchUpdateNotificationsResponse) String() string
func (*BatchUpdateNotificationsResponse) UnmarshalVT ¶
func (m *BatchUpdateNotificationsResponse) UnmarshalVT(dAtA []byte) error
func (*BatchUpdateNotificationsResponse) UnmarshalVTUnsafe ¶
func (m *BatchUpdateNotificationsResponse) UnmarshalVTUnsafe(dAtA []byte) error
type ListNotificationsRequest ¶
type ListNotificationsRequest struct { // The maximum number of notifications to return. // The service may return fewer than this value. // If unspecified, at most 50 notifications will be returned. // The maximum value is 1000; values above 1000 will be coerced to 1000. PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous `ListNotifications` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListNotifications` must match // the call that provided the page token. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. // Available fields to filter by are `notification_id`, `created_by_user_id`, `recipient_user_id`, // `created_date`, `notification_type`, and `is_read`. // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). // For more information about the fields used for filtering, please refer to [this definition](/ingestion/api#sift_notifications_v1_notifications-proto). Optional. Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
The request for a call to `NotificationService_ListNotifications` to retrieve notifications.
func (*ListNotificationsRequest) CloneMessageVT ¶
func (m *ListNotificationsRequest) CloneMessageVT() proto.Message
func (*ListNotificationsRequest) CloneVT ¶
func (m *ListNotificationsRequest) CloneVT() *ListNotificationsRequest
func (*ListNotificationsRequest) Descriptor
deprecated
func (*ListNotificationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNotificationsRequest.ProtoReflect.Descriptor instead.
func (*ListNotificationsRequest) EqualMessageVT ¶
func (this *ListNotificationsRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*ListNotificationsRequest) EqualVT ¶
func (this *ListNotificationsRequest) EqualVT(that *ListNotificationsRequest) bool
func (*ListNotificationsRequest) GetFilter ¶
func (x *ListNotificationsRequest) GetFilter() string
func (*ListNotificationsRequest) GetPageSize ¶
func (x *ListNotificationsRequest) GetPageSize() uint32
func (*ListNotificationsRequest) GetPageToken ¶
func (x *ListNotificationsRequest) GetPageToken() string
func (*ListNotificationsRequest) MarshalToSizedBufferVT ¶
func (m *ListNotificationsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ListNotificationsRequest) MarshalToSizedBufferVTStrict ¶
func (m *ListNotificationsRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*ListNotificationsRequest) MarshalToVT ¶
func (m *ListNotificationsRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ListNotificationsRequest) MarshalToVTStrict ¶
func (m *ListNotificationsRequest) MarshalToVTStrict(dAtA []byte) (int, error)
func (*ListNotificationsRequest) MarshalVT ¶
func (m *ListNotificationsRequest) MarshalVT() (dAtA []byte, err error)
func (*ListNotificationsRequest) MarshalVTStrict ¶
func (m *ListNotificationsRequest) MarshalVTStrict() (dAtA []byte, err error)
func (*ListNotificationsRequest) ProtoMessage ¶
func (*ListNotificationsRequest) ProtoMessage()
func (*ListNotificationsRequest) ProtoReflect ¶
func (x *ListNotificationsRequest) ProtoReflect() protoreflect.Message
func (*ListNotificationsRequest) Reset ¶
func (x *ListNotificationsRequest) Reset()
func (*ListNotificationsRequest) SizeVT ¶
func (m *ListNotificationsRequest) SizeVT() (n int)
func (*ListNotificationsRequest) String ¶
func (x *ListNotificationsRequest) String() string
func (*ListNotificationsRequest) UnmarshalVT ¶
func (m *ListNotificationsRequest) UnmarshalVT(dAtA []byte) error
func (*ListNotificationsRequest) UnmarshalVTUnsafe ¶
func (m *ListNotificationsRequest) UnmarshalVTUnsafe(dAtA []byte) error
type ListNotificationsResponse ¶
type ListNotificationsResponse struct { Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
The response of a call to `NotificationService_ListNotifications`.
func (*ListNotificationsResponse) CloneMessageVT ¶
func (m *ListNotificationsResponse) CloneMessageVT() proto.Message
func (*ListNotificationsResponse) CloneVT ¶
func (m *ListNotificationsResponse) CloneVT() *ListNotificationsResponse
func (*ListNotificationsResponse) Descriptor
deprecated
func (*ListNotificationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNotificationsResponse.ProtoReflect.Descriptor instead.
func (*ListNotificationsResponse) EqualMessageVT ¶
func (this *ListNotificationsResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*ListNotificationsResponse) EqualVT ¶
func (this *ListNotificationsResponse) EqualVT(that *ListNotificationsResponse) bool
func (*ListNotificationsResponse) GetNextPageToken ¶
func (x *ListNotificationsResponse) GetNextPageToken() string
func (*ListNotificationsResponse) GetNotifications ¶
func (x *ListNotificationsResponse) GetNotifications() []*Notification
func (*ListNotificationsResponse) MarshalToSizedBufferVT ¶
func (m *ListNotificationsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ListNotificationsResponse) MarshalToSizedBufferVTStrict ¶
func (m *ListNotificationsResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*ListNotificationsResponse) MarshalToVT ¶
func (m *ListNotificationsResponse) MarshalToVT(dAtA []byte) (int, error)
func (*ListNotificationsResponse) MarshalToVTStrict ¶
func (m *ListNotificationsResponse) MarshalToVTStrict(dAtA []byte) (int, error)
func (*ListNotificationsResponse) MarshalVT ¶
func (m *ListNotificationsResponse) MarshalVT() (dAtA []byte, err error)
func (*ListNotificationsResponse) MarshalVTStrict ¶
func (m *ListNotificationsResponse) MarshalVTStrict() (dAtA []byte, err error)
func (*ListNotificationsResponse) ProtoMessage ¶
func (*ListNotificationsResponse) ProtoMessage()
func (*ListNotificationsResponse) ProtoReflect ¶
func (x *ListNotificationsResponse) ProtoReflect() protoreflect.Message
func (*ListNotificationsResponse) Reset ¶
func (x *ListNotificationsResponse) Reset()
func (*ListNotificationsResponse) SizeVT ¶
func (m *ListNotificationsResponse) SizeVT() (n int)
func (*ListNotificationsResponse) String ¶
func (x *ListNotificationsResponse) String() string
func (*ListNotificationsResponse) UnmarshalVT ¶
func (m *ListNotificationsResponse) UnmarshalVT(dAtA []byte) error
func (*ListNotificationsResponse) UnmarshalVTUnsafe ¶
func (m *ListNotificationsResponse) UnmarshalVTUnsafe(dAtA []byte) error
type Notification ¶
type Notification struct { NotificationId string `protobuf:"bytes,1,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"` CreatedDate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"` ModifiedDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=modified_date,json=modifiedDate,proto3" json:"modified_date,omitempty"` CreatedByUserId string `protobuf:"bytes,4,opt,name=created_by_user_id,json=createdByUserId,proto3" json:"created_by_user_id,omitempty"` ModifiedByUserId string `protobuf:"bytes,5,opt,name=modified_by_user_id,json=modifiedByUserId,proto3" json:"modified_by_user_id,omitempty"` OrganizationId string `protobuf:"bytes,6,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` RecipientUserId string `protobuf:"bytes,7,opt,name=recipient_user_id,json=recipientUserId,proto3" json:"recipient_user_id,omitempty"` IsRead bool `protobuf:"varint,8,opt,name=is_read,json=isRead,proto3" json:"is_read,omitempty"` FullLink string `protobuf:"bytes,9,opt,name=full_link,json=fullLink,proto3" json:"full_link,omitempty"` NotificationType NotificationKind `` /* 155-byte string literal not displayed */ Contents string `protobuf:"bytes,11,opt,name=contents,proto3" json:"contents,omitempty"` EntityId string `protobuf:"bytes,12,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` // contains filtered or unexported fields }
func (*Notification) CloneMessageVT ¶
func (m *Notification) CloneMessageVT() proto.Message
func (*Notification) CloneVT ¶
func (m *Notification) CloneVT() *Notification
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) EqualMessageVT ¶
func (this *Notification) EqualMessageVT(thatMsg proto.Message) bool
func (*Notification) EqualVT ¶
func (this *Notification) EqualVT(that *Notification) bool
func (*Notification) GetContents ¶
func (x *Notification) GetContents() string
func (*Notification) GetCreatedByUserId ¶
func (x *Notification) GetCreatedByUserId() string
func (*Notification) GetCreatedDate ¶
func (x *Notification) GetCreatedDate() *timestamppb.Timestamp
func (*Notification) GetEntityId ¶
func (x *Notification) GetEntityId() string
func (*Notification) GetFullLink ¶
func (x *Notification) GetFullLink() string
func (*Notification) GetIsRead ¶
func (x *Notification) GetIsRead() bool
func (*Notification) GetModifiedByUserId ¶
func (x *Notification) GetModifiedByUserId() string
func (*Notification) GetModifiedDate ¶
func (x *Notification) GetModifiedDate() *timestamppb.Timestamp
func (*Notification) GetNotificationId ¶
func (x *Notification) GetNotificationId() string
func (*Notification) GetNotificationType ¶
func (x *Notification) GetNotificationType() NotificationKind
func (*Notification) GetOrganizationId ¶
func (x *Notification) GetOrganizationId() string
func (*Notification) GetRecipientUserId ¶
func (x *Notification) GetRecipientUserId() string
func (*Notification) MarshalToSizedBufferVT ¶
func (m *Notification) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Notification) MarshalToSizedBufferVTStrict ¶
func (m *Notification) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*Notification) MarshalToVT ¶
func (m *Notification) MarshalToVT(dAtA []byte) (int, error)
func (*Notification) MarshalToVTStrict ¶
func (m *Notification) MarshalToVTStrict(dAtA []byte) (int, error)
func (*Notification) MarshalVT ¶
func (m *Notification) MarshalVT() (dAtA []byte, err error)
func (*Notification) MarshalVTStrict ¶
func (m *Notification) MarshalVTStrict() (dAtA []byte, err error)
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) SizeVT ¶
func (m *Notification) SizeVT() (n int)
func (*Notification) String ¶
func (x *Notification) String() string
func (*Notification) UnmarshalVT ¶
func (m *Notification) UnmarshalVT(dAtA []byte) error
func (*Notification) UnmarshalVTUnsafe ¶
func (m *Notification) UnmarshalVTUnsafe(dAtA []byte) error
type NotificationKind ¶
type NotificationKind int32
const ( NotificationKind_NOTIFICATION_KIND_UNSPECIFIED NotificationKind = 0 NotificationKind_NOTIFICATION_KIND_TEXT NotificationKind = 1 NotificationKind_NOTIFICATION_KIND_ANNOTATION_ASSIGNED NotificationKind = 2 NotificationKind_NOTIFICATION_KIND_MENTIONED_IN_ANNOTATION_COMMENT NotificationKind = 3 NotificationKind_NOTIFICATION_KIND_CONDITION_TRIGGERED NotificationKind = 4 NotificationKind_NOTIFICATION_KIND_ANNOTATION_STATE_CHANGED NotificationKind = 5 )
func (NotificationKind) Descriptor ¶
func (NotificationKind) Descriptor() protoreflect.EnumDescriptor
func (NotificationKind) Enum ¶
func (x NotificationKind) Enum() *NotificationKind
func (NotificationKind) EnumDescriptor
deprecated
func (NotificationKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotificationKind.Descriptor instead.
func (NotificationKind) Number ¶
func (x NotificationKind) Number() protoreflect.EnumNumber
func (NotificationKind) String ¶
func (x NotificationKind) String() string
func (NotificationKind) Type ¶
func (NotificationKind) Type() protoreflect.EnumType
type NotificationServiceClient ¶
type NotificationServiceClient interface { ListNotifications(ctx context.Context, in *ListNotificationsRequest, opts ...grpc.CallOption) (*ListNotificationsResponse, error) BatchUpdateNotifications(ctx context.Context, in *BatchUpdateNotificationsRequest, opts ...grpc.CallOption) (*BatchUpdateNotificationsResponse, 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.
func NewNotificationServiceClient ¶
func NewNotificationServiceClient(cc grpc.ClientConnInterface) NotificationServiceClient
type NotificationServiceServer ¶
type NotificationServiceServer interface { ListNotifications(context.Context, *ListNotificationsRequest) (*ListNotificationsResponse, error) BatchUpdateNotifications(context.Context, *BatchUpdateNotificationsRequest) (*BatchUpdateNotificationsResponse, error) // contains filtered or unexported methods }
NotificationServiceServer is the server API for NotificationService service. All implementations must embed UnimplementedNotificationServiceServer for forward compatibility
type UnimplementedNotificationServiceServer ¶
type UnimplementedNotificationServiceServer struct { }
UnimplementedNotificationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNotificationServiceServer) BatchUpdateNotifications ¶
func (UnimplementedNotificationServiceServer) BatchUpdateNotifications(context.Context, *BatchUpdateNotificationsRequest) (*BatchUpdateNotificationsResponse, error)
func (UnimplementedNotificationServiceServer) ListNotifications ¶
func (UnimplementedNotificationServiceServer) ListNotifications(context.Context, *ListNotificationsRequest) (*ListNotificationsResponse, error)
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.
type UpdateNotificationRequest ¶
type UpdateNotificationRequest struct { // The notification to update. The notification's `notification_id` field is used to identify the notification to update // and must be provided. Notification *Notification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification,omitempty"` // The list of fields to be updated. Currently, the only field that can be updated is `is_read`. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateNotificationRequest) CloneMessageVT ¶
func (m *UpdateNotificationRequest) CloneMessageVT() proto.Message
func (*UpdateNotificationRequest) CloneVT ¶
func (m *UpdateNotificationRequest) CloneVT() *UpdateNotificationRequest
func (*UpdateNotificationRequest) Descriptor
deprecated
func (*UpdateNotificationRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNotificationRequest.ProtoReflect.Descriptor instead.
func (*UpdateNotificationRequest) EqualMessageVT ¶
func (this *UpdateNotificationRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*UpdateNotificationRequest) EqualVT ¶
func (this *UpdateNotificationRequest) EqualVT(that *UpdateNotificationRequest) bool
func (*UpdateNotificationRequest) GetNotification ¶
func (x *UpdateNotificationRequest) GetNotification() *Notification
func (*UpdateNotificationRequest) GetUpdateMask ¶
func (x *UpdateNotificationRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateNotificationRequest) MarshalToSizedBufferVT ¶
func (m *UpdateNotificationRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UpdateNotificationRequest) MarshalToSizedBufferVTStrict ¶
func (m *UpdateNotificationRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*UpdateNotificationRequest) MarshalToVT ¶
func (m *UpdateNotificationRequest) MarshalToVT(dAtA []byte) (int, error)
func (*UpdateNotificationRequest) MarshalToVTStrict ¶
func (m *UpdateNotificationRequest) MarshalToVTStrict(dAtA []byte) (int, error)
func (*UpdateNotificationRequest) MarshalVT ¶
func (m *UpdateNotificationRequest) MarshalVT() (dAtA []byte, err error)
func (*UpdateNotificationRequest) MarshalVTStrict ¶
func (m *UpdateNotificationRequest) MarshalVTStrict() (dAtA []byte, err error)
func (*UpdateNotificationRequest) ProtoMessage ¶
func (*UpdateNotificationRequest) ProtoMessage()
func (*UpdateNotificationRequest) ProtoReflect ¶
func (x *UpdateNotificationRequest) ProtoReflect() protoreflect.Message
func (*UpdateNotificationRequest) Reset ¶
func (x *UpdateNotificationRequest) Reset()
func (*UpdateNotificationRequest) SizeVT ¶
func (m *UpdateNotificationRequest) SizeVT() (n int)
func (*UpdateNotificationRequest) String ¶
func (x *UpdateNotificationRequest) String() string
func (*UpdateNotificationRequest) UnmarshalVT ¶
func (m *UpdateNotificationRequest) UnmarshalVT(dAtA []byte) error
func (*UpdateNotificationRequest) UnmarshalVTUnsafe ¶
func (m *UpdateNotificationRequest) UnmarshalVTUnsafe(dAtA []byte) error