mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
674 lines
22 KiB
Go
674 lines
22 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.31.0
|
||
// protoc v3.11.4
|
||
// source: test/rpc/messagequeue.proto
|
||
|
||
package rpc
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
)
|
||
|
||
const (
|
||
// Verify that this generated code is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
)
|
||
|
||
type SubscribeType int32
|
||
|
||
const (
|
||
SubscribeType_Subscribe SubscribeType = 0
|
||
SubscribeType_Unsubscribe SubscribeType = 1
|
||
)
|
||
|
||
// Enum value maps for SubscribeType.
|
||
var (
|
||
SubscribeType_name = map[int32]string{
|
||
0: "Subscribe",
|
||
1: "Unsubscribe",
|
||
}
|
||
SubscribeType_value = map[string]int32{
|
||
"Subscribe": 0,
|
||
"Unsubscribe": 1,
|
||
}
|
||
)
|
||
|
||
func (x SubscribeType) Enum() *SubscribeType {
|
||
p := new(SubscribeType)
|
||
*p = x
|
||
return p
|
||
}
|
||
|
||
func (x SubscribeType) String() string {
|
||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||
}
|
||
|
||
func (SubscribeType) Descriptor() protoreflect.EnumDescriptor {
|
||
return file_test_rpc_messagequeue_proto_enumTypes[0].Descriptor()
|
||
}
|
||
|
||
func (SubscribeType) Type() protoreflect.EnumType {
|
||
return &file_test_rpc_messagequeue_proto_enumTypes[0]
|
||
}
|
||
|
||
func (x SubscribeType) Number() protoreflect.EnumNumber {
|
||
return protoreflect.EnumNumber(x)
|
||
}
|
||
|
||
// Deprecated: Use SubscribeType.Descriptor instead.
|
||
func (SubscribeType) EnumDescriptor() ([]byte, []int) {
|
||
return file_test_rpc_messagequeue_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
type SubscribeMethod int32
|
||
|
||
const (
|
||
SubscribeMethod_Method_Custom SubscribeMethod = 0 //自定义模式,以消费者设置的StartIndex开始获取或订阅
|
||
SubscribeMethod_Method_Last SubscribeMethod = 1 //Last模式,以该消费者上次记录的位置开始订阅
|
||
)
|
||
|
||
// Enum value maps for SubscribeMethod.
|
||
var (
|
||
SubscribeMethod_name = map[int32]string{
|
||
0: "Method_Custom",
|
||
1: "Method_Last",
|
||
}
|
||
SubscribeMethod_value = map[string]int32{
|
||
"Method_Custom": 0,
|
||
"Method_Last": 1,
|
||
}
|
||
)
|
||
|
||
func (x SubscribeMethod) Enum() *SubscribeMethod {
|
||
p := new(SubscribeMethod)
|
||
*p = x
|
||
return p
|
||
}
|
||
|
||
func (x SubscribeMethod) String() string {
|
||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||
}
|
||
|
||
func (SubscribeMethod) Descriptor() protoreflect.EnumDescriptor {
|
||
return file_test_rpc_messagequeue_proto_enumTypes[1].Descriptor()
|
||
}
|
||
|
||
func (SubscribeMethod) Type() protoreflect.EnumType {
|
||
return &file_test_rpc_messagequeue_proto_enumTypes[1]
|
||
}
|
||
|
||
func (x SubscribeMethod) Number() protoreflect.EnumNumber {
|
||
return protoreflect.EnumNumber(x)
|
||
}
|
||
|
||
// Deprecated: Use SubscribeMethod.Descriptor instead.
|
||
func (SubscribeMethod) EnumDescriptor() ([]byte, []int) {
|
||
return file_test_rpc_messagequeue_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
type DBQueuePopReq struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
|
||
CustomerId string `protobuf:"bytes,1,opt,name=CustomerId,proto3" json:"CustomerId,omitempty"`
|
||
QueueName string `protobuf:"bytes,2,opt,name=QueueName,proto3" json:"QueueName,omitempty"`
|
||
PopStartPos int32 `protobuf:"varint,3,opt,name=PopStartPos,proto3" json:"PopStartPos,omitempty"`
|
||
PopNum int32 `protobuf:"varint,4,opt,name=PopNum,proto3" json:"PopNum,omitempty"`
|
||
PushData []byte `protobuf:"bytes,5,opt,name=pushData,proto3" json:"pushData,omitempty"`
|
||
}
|
||
|
||
func (x *DBQueuePopReq) Reset() {
|
||
*x = DBQueuePopReq{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *DBQueuePopReq) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DBQueuePopReq) ProtoMessage() {}
|
||
|
||
func (x *DBQueuePopReq) ProtoReflect() protoreflect.Message {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[0]
|
||
if protoimpl.UnsafeEnabled && x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DBQueuePopReq.ProtoReflect.Descriptor instead.
|
||
func (*DBQueuePopReq) Descriptor() ([]byte, []int) {
|
||
return file_test_rpc_messagequeue_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *DBQueuePopReq) GetCustomerId() string {
|
||
if x != nil {
|
||
return x.CustomerId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DBQueuePopReq) GetQueueName() string {
|
||
if x != nil {
|
||
return x.QueueName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DBQueuePopReq) GetPopStartPos() int32 {
|
||
if x != nil {
|
||
return x.PopStartPos
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *DBQueuePopReq) GetPopNum() int32 {
|
||
if x != nil {
|
||
return x.PopNum
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *DBQueuePopReq) GetPushData() []byte {
|
||
if x != nil {
|
||
return x.PushData
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type DBQueuePopRes struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
|
||
QueueName string `protobuf:"bytes,1,opt,name=QueueName,proto3" json:"QueueName,omitempty"`
|
||
PushData [][]byte `protobuf:"bytes,2,rep,name=pushData,proto3" json:"pushData,omitempty"`
|
||
}
|
||
|
||
func (x *DBQueuePopRes) Reset() {
|
||
*x = DBQueuePopRes{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *DBQueuePopRes) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DBQueuePopRes) ProtoMessage() {}
|
||
|
||
func (x *DBQueuePopRes) ProtoReflect() protoreflect.Message {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[1]
|
||
if protoimpl.UnsafeEnabled && x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DBQueuePopRes.ProtoReflect.Descriptor instead.
|
||
func (*DBQueuePopRes) Descriptor() ([]byte, []int) {
|
||
return file_test_rpc_messagequeue_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *DBQueuePopRes) GetQueueName() string {
|
||
if x != nil {
|
||
return x.QueueName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DBQueuePopRes) GetPushData() [][]byte {
|
||
if x != nil {
|
||
return x.PushData
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 订阅
|
||
type DBQueueSubscribeReq struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
|
||
SubType SubscribeType `protobuf:"varint,1,opt,name=SubType,proto3,enum=SubscribeType" json:"SubType,omitempty"` //订阅类型
|
||
Method SubscribeMethod `protobuf:"varint,2,opt,name=Method,proto3,enum=SubscribeMethod" json:"Method,omitempty"` //订阅方法
|
||
CustomerId string `protobuf:"bytes,3,opt,name=CustomerId,proto3" json:"CustomerId,omitempty"` //消费者Id
|
||
FromNodeId int32 `protobuf:"varint,4,opt,name=FromNodeId,proto3" json:"FromNodeId,omitempty"`
|
||
RpcMethod string `protobuf:"bytes,5,opt,name=RpcMethod,proto3" json:"RpcMethod,omitempty"`
|
||
TopicName string `protobuf:"bytes,6,opt,name=TopicName,proto3" json:"TopicName,omitempty"` //主题名称
|
||
StartIndex uint64 `protobuf:"varint,7,opt,name=StartIndex,proto3" json:"StartIndex,omitempty"` //开始位置 ,格式前4位是时间戳秒,后面是序号。如果填0时,服务自动修改成:(4bit 当前时间秒)| (0000 4bit)
|
||
OneBatchQuantity int32 `protobuf:"varint,8,opt,name=OneBatchQuantity,proto3" json:"OneBatchQuantity,omitempty"` //订阅一次发送的数量,不设置有默认值1000条
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) Reset() {
|
||
*x = DBQueueSubscribeReq{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DBQueueSubscribeReq) ProtoMessage() {}
|
||
|
||
func (x *DBQueueSubscribeReq) ProtoReflect() protoreflect.Message {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[2]
|
||
if protoimpl.UnsafeEnabled && x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DBQueueSubscribeReq.ProtoReflect.Descriptor instead.
|
||
func (*DBQueueSubscribeReq) Descriptor() ([]byte, []int) {
|
||
return file_test_rpc_messagequeue_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) GetSubType() SubscribeType {
|
||
if x != nil {
|
||
return x.SubType
|
||
}
|
||
return SubscribeType_Subscribe
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) GetMethod() SubscribeMethod {
|
||
if x != nil {
|
||
return x.Method
|
||
}
|
||
return SubscribeMethod_Method_Custom
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) GetCustomerId() string {
|
||
if x != nil {
|
||
return x.CustomerId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) GetFromNodeId() int32 {
|
||
if x != nil {
|
||
return x.FromNodeId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) GetRpcMethod() string {
|
||
if x != nil {
|
||
return x.RpcMethod
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) GetTopicName() string {
|
||
if x != nil {
|
||
return x.TopicName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) GetStartIndex() uint64 {
|
||
if x != nil {
|
||
return x.StartIndex
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *DBQueueSubscribeReq) GetOneBatchQuantity() int32 {
|
||
if x != nil {
|
||
return x.OneBatchQuantity
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type DBQueueSubscribeRes struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
}
|
||
|
||
func (x *DBQueueSubscribeRes) Reset() {
|
||
*x = DBQueueSubscribeRes{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *DBQueueSubscribeRes) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DBQueueSubscribeRes) ProtoMessage() {}
|
||
|
||
func (x *DBQueueSubscribeRes) ProtoReflect() protoreflect.Message {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[3]
|
||
if protoimpl.UnsafeEnabled && x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DBQueueSubscribeRes.ProtoReflect.Descriptor instead.
|
||
func (*DBQueueSubscribeRes) Descriptor() ([]byte, []int) {
|
||
return file_test_rpc_messagequeue_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
type DBQueuePublishReq struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
|
||
TopicName string `protobuf:"bytes,1,opt,name=TopicName,proto3" json:"TopicName,omitempty"` //主是,名称,数据
|
||
PushData [][]byte `protobuf:"bytes,2,rep,name=pushData,proto3" json:"pushData,omitempty"`
|
||
}
|
||
|
||
func (x *DBQueuePublishReq) Reset() {
|
||
*x = DBQueuePublishReq{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *DBQueuePublishReq) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DBQueuePublishReq) ProtoMessage() {}
|
||
|
||
func (x *DBQueuePublishReq) ProtoReflect() protoreflect.Message {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[4]
|
||
if protoimpl.UnsafeEnabled && x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DBQueuePublishReq.ProtoReflect.Descriptor instead.
|
||
func (*DBQueuePublishReq) Descriptor() ([]byte, []int) {
|
||
return file_test_rpc_messagequeue_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *DBQueuePublishReq) GetTopicName() string {
|
||
if x != nil {
|
||
return x.TopicName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DBQueuePublishReq) GetPushData() [][]byte {
|
||
if x != nil {
|
||
return x.PushData
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type DBQueuePublishRes struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
}
|
||
|
||
func (x *DBQueuePublishRes) Reset() {
|
||
*x = DBQueuePublishRes{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *DBQueuePublishRes) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DBQueuePublishRes) ProtoMessage() {}
|
||
|
||
func (x *DBQueuePublishRes) ProtoReflect() protoreflect.Message {
|
||
mi := &file_test_rpc_messagequeue_proto_msgTypes[5]
|
||
if protoimpl.UnsafeEnabled && x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DBQueuePublishRes.ProtoReflect.Descriptor instead.
|
||
func (*DBQueuePublishRes) Descriptor() ([]byte, []int) {
|
||
return file_test_rpc_messagequeue_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
var File_test_rpc_messagequeue_proto protoreflect.FileDescriptor
|
||
|
||
var file_test_rpc_messagequeue_proto_rawDesc = []byte{
|
||
0x0a, 0x1b, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
||
0x67, 0x65, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x01,
|
||
0x0a, 0x0d, 0x44, 0x42, 0x51, 0x75, 0x65, 0x75, 0x65, 0x50, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x12,
|
||
0x1e, 0x0a, 0x0a, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
|
||
0x01, 0x28, 0x09, 0x52, 0x0a, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12,
|
||
0x1c, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||
0x28, 0x09, 0x52, 0x09, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a,
|
||
0x0b, 0x50, 0x6f, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01,
|
||
0x28, 0x05, 0x52, 0x0b, 0x50, 0x6f, 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x12,
|
||
0x16, 0x0a, 0x06, 0x50, 0x6f, 0x70, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||
0x06, 0x50, 0x6f, 0x70, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x75, 0x73, 0x68, 0x44,
|
||
0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x75, 0x73, 0x68, 0x44,
|
||
0x61, 0x74, 0x61, 0x22, 0x49, 0x0a, 0x0d, 0x44, 0x42, 0x51, 0x75, 0x65, 0x75, 0x65, 0x50, 0x6f,
|
||
0x70, 0x52, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4e, 0x61, 0x6d,
|
||
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4e, 0x61,
|
||
0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x75, 0x73, 0x68, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02,
|
||
0x20, 0x03, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x75, 0x73, 0x68, 0x44, 0x61, 0x74, 0x61, 0x22, 0xb1,
|
||
0x02, 0x0a, 0x13, 0x44, 0x42, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
|
||
0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x12, 0x28, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, 0x79, 0x70,
|
||
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
|
||
0x69, 0x62, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x53, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65,
|
||
0x12, 0x28, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
|
||
0x32, 0x10, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4d, 0x65, 0x74, 0x68,
|
||
0x6f, 0x64, 0x52, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x75,
|
||
0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
|
||
0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x46, 0x72,
|
||
0x6f, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a,
|
||
0x46, 0x72, 0x6f, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x52, 0x70,
|
||
0x63, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x52,
|
||
0x70, 0x63, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69,
|
||
0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x54, 0x6f, 0x70,
|
||
0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x72, 0x74, 0x49,
|
||
0x6e, 0x64, 0x65, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x53, 0x74, 0x61, 0x72,
|
||
0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2a, 0x0a, 0x10, 0x4f, 0x6e, 0x65, 0x42, 0x61, 0x74,
|
||
0x63, 0x68, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05,
|
||
0x52, 0x10, 0x4f, 0x6e, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69,
|
||
0x74, 0x79, 0x22, 0x15, 0x0a, 0x13, 0x44, 0x42, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x75, 0x62,
|
||
0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x22, 0x4d, 0x0a, 0x11, 0x44, 0x42, 0x51,
|
||
0x75, 0x65, 0x75, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x12, 0x1c,
|
||
0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||
0x09, 0x52, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
||
0x70, 0x75, 0x73, 0x68, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x08,
|
||
0x70, 0x75, 0x73, 0x68, 0x44, 0x61, 0x74, 0x61, 0x22, 0x13, 0x0a, 0x11, 0x44, 0x42, 0x51, 0x75,
|
||
0x65, 0x75, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x2a, 0x2f, 0x0a,
|
||
0x0d, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d,
|
||
0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x10, 0x00, 0x12, 0x0f, 0x0a,
|
||
0x0b, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x10, 0x01, 0x2a, 0x35,
|
||
0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4d, 0x65, 0x74, 0x68, 0x6f,
|
||
0x64, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x43, 0x75, 0x73, 0x74,
|
||
0x6f, 0x6d, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x4c,
|
||
0x61, 0x73, 0x74, 0x10, 0x01, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x3b, 0x72, 0x70, 0x63, 0x62, 0x06,
|
||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
}
|
||
|
||
var (
|
||
file_test_rpc_messagequeue_proto_rawDescOnce sync.Once
|
||
file_test_rpc_messagequeue_proto_rawDescData = file_test_rpc_messagequeue_proto_rawDesc
|
||
)
|
||
|
||
func file_test_rpc_messagequeue_proto_rawDescGZIP() []byte {
|
||
file_test_rpc_messagequeue_proto_rawDescOnce.Do(func() {
|
||
file_test_rpc_messagequeue_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_rpc_messagequeue_proto_rawDescData)
|
||
})
|
||
return file_test_rpc_messagequeue_proto_rawDescData
|
||
}
|
||
|
||
var file_test_rpc_messagequeue_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||
var file_test_rpc_messagequeue_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||
var file_test_rpc_messagequeue_proto_goTypes = []interface{}{
|
||
(SubscribeType)(0), // 0: SubscribeType
|
||
(SubscribeMethod)(0), // 1: SubscribeMethod
|
||
(*DBQueuePopReq)(nil), // 2: DBQueuePopReq
|
||
(*DBQueuePopRes)(nil), // 3: DBQueuePopRes
|
||
(*DBQueueSubscribeReq)(nil), // 4: DBQueueSubscribeReq
|
||
(*DBQueueSubscribeRes)(nil), // 5: DBQueueSubscribeRes
|
||
(*DBQueuePublishReq)(nil), // 6: DBQueuePublishReq
|
||
(*DBQueuePublishRes)(nil), // 7: DBQueuePublishRes
|
||
}
|
||
var file_test_rpc_messagequeue_proto_depIdxs = []int32{
|
||
0, // 0: DBQueueSubscribeReq.SubType:type_name -> SubscribeType
|
||
1, // 1: DBQueueSubscribeReq.Method:type_name -> SubscribeMethod
|
||
2, // [2:2] is the sub-list for method output_type
|
||
2, // [2:2] is the sub-list for method input_type
|
||
2, // [2:2] is the sub-list for extension type_name
|
||
2, // [2:2] is the sub-list for extension extendee
|
||
0, // [0:2] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_test_rpc_messagequeue_proto_init() }
|
||
func file_test_rpc_messagequeue_proto_init() {
|
||
if File_test_rpc_messagequeue_proto != nil {
|
||
return
|
||
}
|
||
if !protoimpl.UnsafeEnabled {
|
||
file_test_rpc_messagequeue_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*DBQueuePopReq); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_test_rpc_messagequeue_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*DBQueuePopRes); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_test_rpc_messagequeue_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*DBQueueSubscribeReq); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_test_rpc_messagequeue_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*DBQueueSubscribeRes); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_test_rpc_messagequeue_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*DBQueuePublishReq); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_test_rpc_messagequeue_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*DBQueuePublishRes); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: file_test_rpc_messagequeue_proto_rawDesc,
|
||
NumEnums: 2,
|
||
NumMessages: 6,
|
||
NumExtensions: 0,
|
||
NumServices: 0,
|
||
},
|
||
GoTypes: file_test_rpc_messagequeue_proto_goTypes,
|
||
DependencyIndexes: file_test_rpc_messagequeue_proto_depIdxs,
|
||
EnumInfos: file_test_rpc_messagequeue_proto_enumTypes,
|
||
MessageInfos: file_test_rpc_messagequeue_proto_msgTypes,
|
||
}.Build()
|
||
File_test_rpc_messagequeue_proto = out.File
|
||
file_test_rpc_messagequeue_proto_rawDesc = nil
|
||
file_test_rpc_messagequeue_proto_goTypes = nil
|
||
file_test_rpc_messagequeue_proto_depIdxs = nil
|
||
}
|