Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterNotifierServer(s grpc.ServiceRegistrar, srv NotifierServer)
- type GetNotifyRequest
- type NotifierClient
- type NotifierServer
- type Notify
- func (*Notify) Descriptor() ([]byte, []int)deprecated
- func (x *Notify) GetCreateTime() *timestamppb.Timestamp
- func (x *Notify) GetEndTranscriptSid() int64
- func (x *Notify) GetFlagSid() int64
- func (x *Notify) GetNotifyId() string
- func (x *Notify) GetStartTranscriptSid() int64
- func (*Notify) ProtoMessage()
- func (x *Notify) ProtoReflect() protoreflect.Message
- func (x *Notify) Reset()
- func (x *Notify) String() string
- type UnimplementedNotifierServer
- type UnsafeNotifierServer
Constants ¶
const (
Notifier_GetNotify_FullMethodName = "/api.v1alpha1.vanalytics.notifier.Notifier/GetNotify"
)
Variables ¶
var File_api_v1alpha1_vanalytics_notifier_service_proto protoreflect.FileDescriptor
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) GetCreateTime ¶
func (x *Notify) GetCreateTime() *timestamppb.Timestamp
func (*Notify) GetEndTranscriptSid ¶
func (*Notify) GetFlagSid ¶
func (*Notify) GetNotifyId ¶
func (*Notify) GetStartTranscriptSid ¶
func (*Notify) ProtoMessage ¶
func (*Notify) ProtoMessage()
func (*Notify) ProtoReflect ¶
func (x *Notify) ProtoReflect() protoreflect.Message
type UnimplementedNotifierServer ¶
type UnimplementedNotifierServer struct{}
UnimplementedNotifierServer must 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 (UnimplementedNotifierServer) GetNotify ¶
func (UnimplementedNotifierServer) GetNotify(context.Context, *GetNotifyRequest) (*Notify, error)
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.