代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: as/external/api/deviceQueue.proto
package api
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type DeviceQueueItem struct {
// Device EUI (HEX encoded).
DevEui string `protobuf:"bytes,1,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"`
// Set this to true when an acknowledgement from the device is required.
// Please note that this must not be used to guarantee a delivery.
Confirmed bool `protobuf:"varint,2,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
// Downlink frame-counter.
// This will be automatically set on enquue.
FCnt uint32 `protobuf:"varint,6,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
// FPort used (must be > 0)
FPort uint32 `protobuf:"varint,3,opt,name=f_port,json=fPort,proto3" json:"f_port,omitempty"`
// Base64 encoded data.
// Or use the json_object field when an application codec has been configured.
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
// JSON object (string).
// Only use this when an application codec has been configured that can convert
// this object into binary form.
JsonObject string `protobuf:"bytes,5,opt,name=json_object,json=jsonObject,proto3" json:"json_object,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceQueueItem) Reset() { *m = DeviceQueueItem{} }
func (m *DeviceQueueItem) String() string { return proto.CompactTextString(m) }
func (*DeviceQueueItem) ProtoMessage() {}
func (*DeviceQueueItem) Descriptor() ([]byte, []int) {
return fileDescriptor_6bc7c26115164240, []int{0}
}
func (m *DeviceQueueItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceQueueItem.Unmarshal(m, b)
}
func (m *DeviceQueueItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceQueueItem.Marshal(b, m, deterministic)
}
func (m *DeviceQueueItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceQueueItem.Merge(m, src)
}
func (m *DeviceQueueItem) XXX_Size() int {
return xxx_messageInfo_DeviceQueueItem.Size(m)
}
func (m *DeviceQueueItem) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceQueueItem.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceQueueItem proto.InternalMessageInfo
func (m *DeviceQueueItem) GetDevEui() string {
if m != nil {
return m.DevEui
}
return ""
}
func (m *DeviceQueueItem) GetConfirmed() bool {
if m != nil {
return m.Confirmed
}
return false
}
func (m *DeviceQueueItem) GetFCnt() uint32 {
if m != nil {
return m.FCnt
}
return 0
}
func (m *DeviceQueueItem) GetFPort() uint32 {
if m != nil {
return m.FPort
}
return 0
}
func (m *DeviceQueueItem) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *DeviceQueueItem) GetJsonObject() string {
if m != nil {
return m.JsonObject
}
return ""
}
type EnqueueDeviceQueueItemRequest struct {
// Queue-item object to enqueue.
DeviceQueueItem *DeviceQueueItem `protobuf:"bytes,1,opt,name=device_queue_item,json=deviceQueueItem,proto3" json:"device_queue_item,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EnqueueDeviceQueueItemRequest) Reset() { *m = EnqueueDeviceQueueItemRequest{} }
func (m *EnqueueDeviceQueueItemRequest) String() string { return proto.CompactTextString(m) }
func (*EnqueueDeviceQueueItemRequest) ProtoMessage() {}
func (*EnqueueDeviceQueueItemRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6bc7c26115164240, []int{1}
}
func (m *EnqueueDeviceQueueItemRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EnqueueDeviceQueueItemRequest.Unmarshal(m, b)
}
func (m *EnqueueDeviceQueueItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EnqueueDeviceQueueItemRequest.Marshal(b, m, deterministic)
}
func (m *EnqueueDeviceQueueItemRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_EnqueueDeviceQueueItemRequest.Merge(m, src)
}
func (m *EnqueueDeviceQueueItemRequest) XXX_Size() int {
return xxx_messageInfo_EnqueueDeviceQueueItemRequest.Size(m)
}
func (m *EnqueueDeviceQueueItemRequest) XXX_DiscardUnknown() {
xxx_messageInfo_EnqueueDeviceQueueItemRequest.DiscardUnknown(m)
}
var xxx_messageInfo_EnqueueDeviceQueueItemRequest proto.InternalMessageInfo
func (m *EnqueueDeviceQueueItemRequest) GetDeviceQueueItem() *DeviceQueueItem {
if m != nil {
return m.DeviceQueueItem
}
return nil
}
type EnqueueDeviceQueueItemResponse struct {
// Frame-counter for the enqueued payload.
FCnt uint32 `protobuf:"varint,1,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EnqueueDeviceQueueItemResponse) Reset() { *m = EnqueueDeviceQueueItemResponse{} }
func (m *EnqueueDeviceQueueItemResponse) String() string { return proto.CompactTextString(m) }
func (*EnqueueDeviceQueueItemResponse) ProtoMessage() {}
func (*EnqueueDeviceQueueItemResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6bc7c26115164240, []int{2}
}
func (m *EnqueueDeviceQueueItemResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EnqueueDeviceQueueItemResponse.Unmarshal(m, b)
}
func (m *EnqueueDeviceQueueItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EnqueueDeviceQueueItemResponse.Marshal(b, m, deterministic)
}
func (m *EnqueueDeviceQueueItemResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_EnqueueDeviceQueueItemResponse.Merge(m, src)
}
func (m *EnqueueDeviceQueueItemResponse) XXX_Size() int {
return xxx_messageInfo_EnqueueDeviceQueueItemResponse.Size(m)
}
func (m *EnqueueDeviceQueueItemResponse) XXX_DiscardUnknown() {
xxx_messageInfo_EnqueueDeviceQueueItemResponse.DiscardUnknown(m)
}
var xxx_messageInfo_EnqueueDeviceQueueItemResponse proto.InternalMessageInfo
func (m *EnqueueDeviceQueueItemResponse) GetFCnt() uint32 {
if m != nil {
return m.FCnt
}
return 0
}
type FlushDeviceQueueRequest struct {
// Device EUI (HEX encoded).
DevEui string `protobuf:"bytes,1,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlushDeviceQueueRequest) Reset() { *m = FlushDeviceQueueRequest{} }
func (m *FlushDeviceQueueRequest) String() string { return proto.CompactTextString(m) }
func (*FlushDeviceQueueRequest) ProtoMessage() {}
func (*FlushDeviceQueueRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6bc7c26115164240, []int{3}
}
func (m *FlushDeviceQueueRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FlushDeviceQueueRequest.Unmarshal(m, b)
}
func (m *FlushDeviceQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FlushDeviceQueueRequest.Marshal(b, m, deterministic)
}
func (m *FlushDeviceQueueRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlushDeviceQueueRequest.Merge(m, src)
}
func (m *FlushDeviceQueueRequest) XXX_Size() int {
return xxx_messageInfo_FlushDeviceQueueRequest.Size(m)
}
func (m *FlushDeviceQueueRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FlushDeviceQueueRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FlushDeviceQueueRequest proto.InternalMessageInfo
func (m *FlushDeviceQueueRequest) GetDevEui() string {
if m != nil {
return m.DevEui
}
return ""
}
type ListDeviceQueueItemsRequest struct {
// Device EUI (HEX encoded).
DevEui string `protobuf:"bytes,1,opt,name=dev_eui,json=devEUI,proto3" json:"dev_eui,omitempty"`
// Return only the count, not the result-set.
CountOnly bool `protobuf:"varint,2,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDeviceQueueItemsRequest) Reset() { *m = ListDeviceQueueItemsRequest{} }
func (m *ListDeviceQueueItemsRequest) String() string { return proto.CompactTextString(m) }
func (*ListDeviceQueueItemsRequest) ProtoMessage() {}
func (*ListDeviceQueueItemsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6bc7c26115164240, []int{4}
}
func (m *ListDeviceQueueItemsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDeviceQueueItemsRequest.Unmarshal(m, b)
}
func (m *ListDeviceQueueItemsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDeviceQueueItemsRequest.Marshal(b, m, deterministic)
}
func (m *ListDeviceQueueItemsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDeviceQueueItemsRequest.Merge(m, src)
}
func (m *ListDeviceQueueItemsRequest) XXX_Size() int {
return xxx_messageInfo_ListDeviceQueueItemsRequest.Size(m)
}
func (m *ListDeviceQueueItemsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListDeviceQueueItemsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListDeviceQueueItemsRequest proto.InternalMessageInfo
func (m *ListDeviceQueueItemsRequest) GetDevEui() string {
if m != nil {
return m.DevEui
}
return ""
}
func (m *ListDeviceQueueItemsRequest) GetCountOnly() bool {
if m != nil {
return m.CountOnly
}
return false
}
type ListDeviceQueueItemsResponse struct {
// The device queue items.
DeviceQueueItems []*DeviceQueueItem `protobuf:"bytes,1,rep,name=device_queue_items,json=deviceQueueItems,proto3" json:"device_queue_items,omitempty"`
// Total number of items in the queue.
TotalCount uint32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDeviceQueueItemsResponse) Reset() { *m = ListDeviceQueueItemsResponse{} }
func (m *ListDeviceQueueItemsResponse) String() string { return proto.CompactTextString(m) }
func (*ListDeviceQueueItemsResponse) ProtoMessage() {}
func (*ListDeviceQueueItemsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6bc7c26115164240, []int{5}
}
func (m *ListDeviceQueueItemsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDeviceQueueItemsResponse.Unmarshal(m, b)
}
func (m *ListDeviceQueueItemsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDeviceQueueItemsResponse.Marshal(b, m, deterministic)
}
func (m *ListDeviceQueueItemsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDeviceQueueItemsResponse.Merge(m, src)
}
func (m *ListDeviceQueueItemsResponse) XXX_Size() int {
return xxx_messageInfo_ListDeviceQueueItemsResponse.Size(m)
}
func (m *ListDeviceQueueItemsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListDeviceQueueItemsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListDeviceQueueItemsResponse proto.InternalMessageInfo
func (m *ListDeviceQueueItemsResponse) GetDeviceQueueItems() []*DeviceQueueItem {
if m != nil {
return m.DeviceQueueItems
}
return nil
}
func (m *ListDeviceQueueItemsResponse) GetTotalCount() uint32 {
if m != nil {
return m.TotalCount
}
return 0
}
func init() {
proto.RegisterType((*DeviceQueueItem)(nil), "api.DeviceQueueItem")
proto.RegisterType((*EnqueueDeviceQueueItemRequest)(nil), "api.EnqueueDeviceQueueItemRequest")
proto.RegisterType((*EnqueueDeviceQueueItemResponse)(nil), "api.EnqueueDeviceQueueItemResponse")
proto.RegisterType((*FlushDeviceQueueRequest)(nil), "api.FlushDeviceQueueRequest")
proto.RegisterType((*ListDeviceQueueItemsRequest)(nil), "api.ListDeviceQueueItemsRequest")
proto.RegisterType((*ListDeviceQueueItemsResponse)(nil), "api.ListDeviceQueueItemsResponse")
}
func init() {
proto.RegisterFile("as/external/api/deviceQueue.proto", fileDescriptor_6bc7c26115164240)
}
var fileDescriptor_6bc7c26115164240 = []byte{
// 601 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xc1, 0x6e, 0xd3, 0x4c,
0x10, 0xc7, 0xe5, 0x36, 0x49, 0xdb, 0xe9, 0x57, 0xf5, 0x63, 0x29, 0xd4, 0x72, 0xd3, 0xe2, 0x1a,
0x0e, 0x51, 0x24, 0x6c, 0x29, 0x55, 0x0f, 0x70, 0xa2, 0x2d, 0x41, 0xaa, 0x14, 0xa9, 0x60, 0x54,
0x0e, 0xbd, 0x98, 0x8d, 0xbd, 0x4e, 0xb7, 0x38, 0xbb, 0x8e, 0x77, 0x1d, 0x11, 0x21, 0x2e, 0x70,
0xe6, 0xc4, 0x53, 0xf0, 0x02, 0xbc, 0x08, 0xaf, 0xc0, 0x83, 0x20, 0xaf, 0x1d, 0x39, 0x4d, 0xea,
0xc0, 0xcd, 0xfe, 0x7b, 0x66, 0x7e, 0xf3, 0x9f, 0xd1, 0x18, 0x0e, 0xb1, 0x70, 0xc8, 0x47, 0x49,
0x12, 0x86, 0x23, 0x07, 0xc7, 0xd4, 0x09, 0xc8, 0x98, 0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, 0xf2, 0x0c, 0x07, 0x8d, 0xa0,
0x96, 0x2d, 0x04, 0x99, 0x8a, 0xb1, 0x64, 0xe7, 0xc6, 0xe1, 0x92, 0x88, 0xc2, 0x6c, 0x81, 0x44,
0xcb, 0x91, 0xef, 0x60, 0x5d, 0x79, 0x39, 0x89, 0x22, 0x54, 0xd1, 0x7c, 0xa5, 0x29, 0x43, 0x11,
0x76, 0xda, 0xe8, 0x16, 0x21, 0xaf, 0xfb, 0x1e, 0xd6, 0xb2, 0xee, 0x4e, 0x7a, 0xbd, 0xca, 0xb2,
0xff, 0xe0, 0xa1, 0x20, 0xa0, 0x3b, 0x08, 0xa7, 0x57, 0x70, 0x48, 0xb9, 0xed, 0x5f, 0xd3, 0x24,
0x16, 0x12, 0xfb, 0x1f, 0x54, 0x35, 0x2c, 0xec, 0xe9, 0x6f, 0x30, 0x7b, 0xbf, 0x3a, 0x1e, 0x50,
0x49, 0x88, 0xed, 0xf3, 0xa1, 0x13, 0x84, 0x09, 0xef, 0x73, 0xe9, 0x07, 0x4e, 0x99, 0xf3, 0x34,
0x2b, 0x3b, 0xe0, 0xce, 0xdc, 0xdf, 0xb3, 0xdf, 0x50, 0xad, 0x1e, 0xfd, 0x09, 0x00, 0x00, 0xff,
0xff, 0xf7, 0xbe, 0x82, 0x4a, 0x57, 0x05, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// DeviceQueueServiceClient is the client API for DeviceQueueService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DeviceQueueServiceClient interface {
// Enqueue adds the given item to the device-queue.
Enqueue(ctx context.Context, in *EnqueueDeviceQueueItemRequest, opts ...grpc.CallOption) (*EnqueueDeviceQueueItemResponse, error)
// Flush flushes the downlink device-queue.
Flush(ctx context.Context, in *FlushDeviceQueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// List lists the items in the device-queue.
List(ctx context.Context, in *ListDeviceQueueItemsRequest, opts ...grpc.CallOption) (*ListDeviceQueueItemsResponse, error)
FlushAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
ListALL(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDeviceQueueItemsResponse, error)
}
type deviceQueueServiceClient struct {
cc grpc.ClientConnInterface
}
func NewDeviceQueueServiceClient(cc grpc.ClientConnInterface) DeviceQueueServiceClient {
return &deviceQueueServiceClient{cc}
}
func (c *deviceQueueServiceClient) Enqueue(ctx context.Context, in *EnqueueDeviceQueueItemRequest, opts ...grpc.CallOption) (*EnqueueDeviceQueueItemResponse, error) {
out := new(EnqueueDeviceQueueItemResponse)
err := c.cc.Invoke(ctx, "/api.DeviceQueueService/Enqueue", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *deviceQueueServiceClient) Flush(ctx context.Context, in *FlushDeviceQueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.DeviceQueueService/Flush", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *deviceQueueServiceClient) List(ctx context.Context, in *ListDeviceQueueItemsRequest, opts ...grpc.CallOption) (*ListDeviceQueueItemsResponse, error) {
out := new(ListDeviceQueueItemsResponse)
err := c.cc.Invoke(ctx, "/api.DeviceQueueService/List", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *deviceQueueServiceClient) FlushAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.DeviceQueueService/FlushAll", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *deviceQueueServiceClient) ListALL(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDeviceQueueItemsResponse, error) {
out := new(ListDeviceQueueItemsResponse)
err := c.cc.Invoke(ctx, "/api.DeviceQueueService/ListALL", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DeviceQueueServiceServer is the server API for DeviceQueueService service.
type DeviceQueueServiceServer interface {
// Enqueue adds the given item to the device-queue.
Enqueue(context.Context, *EnqueueDeviceQueueItemRequest) (*EnqueueDeviceQueueItemResponse, error)
// Flush flushes the downlink device-queue.
Flush(context.Context, *FlushDeviceQueueRequest) (*emptypb.Empty, error)
// List lists the items in the device-queue.
List(context.Context, *ListDeviceQueueItemsRequest) (*ListDeviceQueueItemsResponse, error)
FlushAll(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
ListALL(context.Context, *emptypb.Empty) (*ListDeviceQueueItemsResponse, error)
}
// UnimplementedDeviceQueueServiceServer can be embedded to have forward compatible implementations.
type UnimplementedDeviceQueueServiceServer struct {
}
func (*UnimplementedDeviceQueueServiceServer) Enqueue(ctx context.Context, req *EnqueueDeviceQueueItemRequest) (*EnqueueDeviceQueueItemResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Enqueue not implemented")
}
func (*UnimplementedDeviceQueueServiceServer) Flush(ctx context.Context, req *FlushDeviceQueueRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented")
}
func (*UnimplementedDeviceQueueServiceServer) List(ctx context.Context, req *ListDeviceQueueItemsRequest) (*ListDeviceQueueItemsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func (*UnimplementedDeviceQueueServiceServer) FlushAll(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method FlushAll not implemented")
}
func (*UnimplementedDeviceQueueServiceServer) ListALL(ctx context.Context, req *emptypb.Empty) (*ListDeviceQueueItemsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListALL not implemented")
}
func RegisterDeviceQueueServiceServer(s *grpc.Server, srv DeviceQueueServiceServer) {
s.RegisterService(&_DeviceQueueService_serviceDesc, srv)
}
func _DeviceQueueService_Enqueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EnqueueDeviceQueueItemRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DeviceQueueServiceServer).Enqueue(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.DeviceQueueService/Enqueue",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DeviceQueueServiceServer).Enqueue(ctx, req.(*EnqueueDeviceQueueItemRequest))
}
return interceptor(ctx, in, info, handler)
}
func _DeviceQueueService_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FlushDeviceQueueRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DeviceQueueServiceServer).Flush(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.DeviceQueueService/Flush",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DeviceQueueServiceServer).Flush(ctx, req.(*FlushDeviceQueueRequest))
}
return interceptor(ctx, in, info, handler)
}
func _DeviceQueueService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListDeviceQueueItemsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DeviceQueueServiceServer).List(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.DeviceQueueService/List",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DeviceQueueServiceServer).List(ctx, req.(*ListDeviceQueueItemsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _DeviceQueueService_FlushAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DeviceQueueServiceServer).FlushAll(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.DeviceQueueService/FlushAll",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DeviceQueueServiceServer).FlushAll(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _DeviceQueueService_ListALL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DeviceQueueServiceServer).ListALL(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.DeviceQueueService/ListALL",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DeviceQueueServiceServer).ListALL(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
var _DeviceQueueService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.DeviceQueueService",
HandlerType: (*DeviceQueueServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Enqueue",
Handler: _DeviceQueueService_Enqueue_Handler,
},
{
MethodName: "Flush",
Handler: _DeviceQueueService_Flush_Handler,
},
{
MethodName: "List",
Handler: _DeviceQueueService_List_Handler,
},
{
MethodName: "FlushAll",
Handler: _DeviceQueueService_FlushAll_Handler,
},
{
MethodName: "ListALL",
Handler: _DeviceQueueService_ListALL_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "as/external/api/deviceQueue.proto",
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。