notifier

package
v1.7.75 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Notifier_GetNotify_FullMethodName = "/api.v1alpha1.vanalytics.notifier.Notifier/GetNotify"
)

Variables

View Source
var File_api_v1alpha1_vanalytics_notifier_service_proto protoreflect.FileDescriptor
View Source
var Notifier_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1alpha1.vanalytics.notifier.Notifier",
	HandlerType: (*NotifierServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNotify",
			Handler:    _Notifier_GetNotify_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1alpha1/vanalytics/notifier/service.proto",
}

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

Functions

func RegisterNotifierServer

func RegisterNotifierServer(s grpc.ServiceRegistrar, srv NotifierServer)

Types

type GetNotifyRequest

type GetNotifyRequest struct {

	// The unique id of this notify.
	NotifyId string `protobuf:"bytes,1,opt,name=notify_id,json=notifyId,proto3" json:"notify_id,omitempty"`
	// contains filtered or unexported fields
}

GetNotifyRequest is a request for getting a notify.

func (*GetNotifyRequest) Descriptor deprecated

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

Deprecated: Use GetNotifyRequest.ProtoReflect.Descriptor instead.

func (*GetNotifyRequest) GetNotifyId

func (x *GetNotifyRequest) GetNotifyId() string

func (*GetNotifyRequest) ProtoMessage

func (*GetNotifyRequest) ProtoMessage()

func (*GetNotifyRequest) ProtoReflect

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

func (*GetNotifyRequest) Reset

func (x *GetNotifyRequest) Reset()

func (*GetNotifyRequest) String

func (x *GetNotifyRequest) String() string

type NotifierClient

type NotifierClient interface {
	// GetNotify returns a notify.
	GetNotify(ctx context.Context, in *GetNotifyRequest, opts ...grpc.CallOption) (*Notify, error)
}

NotifierClient is the client API for Notifier 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 NewNotifierClient

func NewNotifierClient(cc grpc.ClientConnInterface) NotifierClient

type NotifierServer

type NotifierServer interface {
	// GetNotify returns a notify.
	GetNotify(context.Context, *GetNotifyRequest) (*Notify, error)
	// contains filtered or unexported methods
}

NotifierServer is the server API for Notifier service. All implementations must embed UnimplementedNotifierServer for forward compatibility

type Notify

type Notify struct {

	// The unique id of this notify.
	NotifyId string `protobuf:"bytes,1,opt,name=notify_id,json=notifyId,proto3" json:"notify_id,omitempty"`
	// Required. The start transcript_sid of the flagged transcripts.
	StartTranscriptSid int64 `protobuf:"varint,2,opt,name=start_transcript_sid,json=startTranscriptSid,proto3" json:"start_transcript_sid,omitempty"`
	// Required. The end transcript_sid of the flagged transcripts.
	EndTranscriptSid int64 `protobuf:"varint,3,opt,name=end_transcript_sid,json=endTranscriptSid,proto3" json:"end_transcript_sid,omitempty"`
	// Required. The flag_sid of the flagged transcripts.
	FlagSid int64 `protobuf:"varint,4,opt,name=flag_sid,json=flagSid,proto3" json:"flag_sid,omitempty"`
	// Output only. The timestamp when this was created. Assigned by the server.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// contains filtered or unexported fields
}

A notify resource in the vana notifier API.

func (*Notify) Descriptor deprecated

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

Deprecated: Use Notify.ProtoReflect.Descriptor instead.

func (*Notify) GetCreateTime

func (x *Notify) GetCreateTime() *timestamppb.Timestamp

func (*Notify) GetEndTranscriptSid

func (x *Notify) GetEndTranscriptSid() int64

func (*Notify) GetFlagSid

func (x *Notify) GetFlagSid() int64

func (*Notify) GetNotifyId

func (x *Notify) GetNotifyId() string

func (*Notify) GetStartTranscriptSid

func (x *Notify) GetStartTranscriptSid() int64

func (*Notify) ProtoMessage

func (*Notify) ProtoMessage()

func (*Notify) ProtoReflect

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

func (*Notify) Reset

func (x *Notify) Reset()

func (*Notify) String

func (x *Notify) String() string

type UnimplementedNotifierServer

type UnimplementedNotifierServer struct {
}

UnimplementedNotifierServer must be embedded to have forward compatible implementations.

func (UnimplementedNotifierServer) GetNotify

type UnsafeNotifierServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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