2021-01-19 19:41:39 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
2021-03-22 09:00:44 +03:00
|
|
|
// protoc-gen-go v1.26.0
|
2021-10-27 18:27:04 +03:00
|
|
|
// protoc v3.17.3
|
2021-01-19 19:41:39 +03:00
|
|
|
// source: broker.proto
|
|
|
|
|
2021-10-27 18:27:04 +03:00
|
|
|
package servicepb
|
2021-01-19 19:41:39 +03:00
|
|
|
|
|
|
|
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)
|
|
|
|
)
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
type PublishRequest struct {
|
2021-01-19 19:41:39 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2021-10-27 18:47:36 +03:00
|
|
|
|
|
|
|
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
|
|
|
|
Message *Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
2021-01-19 19:41:39 +03:00
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (x *PublishRequest) Reset() {
|
|
|
|
*x = PublishRequest{}
|
2021-01-19 19:41:39 +03:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_broker_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (x *PublishRequest) String() string {
|
2021-01-19 19:41:39 +03:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (*PublishRequest) ProtoMessage() {}
|
2021-01-19 19:41:39 +03:00
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (x *PublishRequest) ProtoReflect() protoreflect.Message {
|
2021-01-19 19:41:39 +03:00
|
|
|
mi := &file_broker_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)
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
// Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PublishRequest) Descriptor() ([]byte, []int) {
|
2021-01-19 19:41:39 +03:00
|
|
|
return file_broker_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (x *PublishRequest) GetTopic() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Topic
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PublishRequest) GetMessage() *Message {
|
|
|
|
if x != nil {
|
|
|
|
return x.Message
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type BatchPublishRequest struct {
|
2021-01-19 19:41:39 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
|
|
|
|
Message []*Message `protobuf:"bytes,2,rep,name=message,proto3" json:"message,omitempty"`
|
2021-01-19 19:41:39 +03:00
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (x *BatchPublishRequest) Reset() {
|
|
|
|
*x = BatchPublishRequest{}
|
2021-01-19 19:41:39 +03:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_broker_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (x *BatchPublishRequest) String() string {
|
2021-01-19 19:41:39 +03:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (*BatchPublishRequest) ProtoMessage() {}
|
2021-01-19 19:41:39 +03:00
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (x *BatchPublishRequest) ProtoReflect() protoreflect.Message {
|
2021-01-19 19:41:39 +03:00
|
|
|
mi := &file_broker_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)
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
// Deprecated: Use BatchPublishRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*BatchPublishRequest) Descriptor() ([]byte, []int) {
|
2021-01-19 19:41:39 +03:00
|
|
|
return file_broker_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (x *BatchPublishRequest) GetTopic() string {
|
2021-01-19 19:41:39 +03:00
|
|
|
if x != nil {
|
|
|
|
return x.Topic
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
func (x *BatchPublishRequest) GetMessage() []*Message {
|
2021-01-19 19:41:39 +03:00
|
|
|
if x != nil {
|
|
|
|
return x.Message
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
type PublishResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PublishResponse) Reset() {
|
|
|
|
*x = PublishResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_broker_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PublishResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*PublishResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PublishResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_broker_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 PublishResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PublishResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_broker_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
type BatchPublishResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BatchPublishResponse) Reset() {
|
|
|
|
*x = BatchPublishResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_broker_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BatchPublishResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*BatchPublishResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *BatchPublishResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_broker_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 BatchPublishResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*BatchPublishResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_broker_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
|
|
|
|
2021-01-19 19:41:39 +03:00
|
|
|
type SubscribeRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
|
|
|
|
Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubscribeRequest) Reset() {
|
|
|
|
*x = SubscribeRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-10-27 18:47:36 +03:00
|
|
|
mi := &file_broker_proto_msgTypes[4]
|
2021-01-19 19:41:39 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubscribeRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*SubscribeRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SubscribeRequest) ProtoReflect() protoreflect.Message {
|
2021-10-27 18:47:36 +03:00
|
|
|
mi := &file_broker_proto_msgTypes[4]
|
2021-01-19 19:41:39 +03:00
|
|
|
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 SubscribeRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubscribeRequest) Descriptor() ([]byte, []int) {
|
2021-10-27 18:47:36 +03:00
|
|
|
return file_broker_proto_rawDescGZIP(), []int{4}
|
2021-01-19 19:41:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubscribeRequest) GetTopic() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Topic
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubscribeRequest) GetGroup() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Group
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
type BatchSubscribeRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
|
|
|
|
Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BatchSubscribeRequest) Reset() {
|
|
|
|
*x = BatchSubscribeRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_broker_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BatchSubscribeRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*BatchSubscribeRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *BatchSubscribeRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_broker_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 BatchSubscribeRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*BatchSubscribeRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_broker_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BatchSubscribeRequest) GetTopic() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Topic
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BatchSubscribeRequest) GetGroup() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Group
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-01-19 19:41:39 +03:00
|
|
|
type Message struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Header map[string]string `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
|
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Message) Reset() {
|
|
|
|
*x = Message{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-10-27 18:47:36 +03:00
|
|
|
mi := &file_broker_proto_msgTypes[6]
|
2021-01-19 19:41:39 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Message) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Message) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Message) ProtoReflect() protoreflect.Message {
|
2021-10-27 18:47:36 +03:00
|
|
|
mi := &file_broker_proto_msgTypes[6]
|
2021-01-19 19:41:39 +03:00
|
|
|
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 Message.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Message) Descriptor() ([]byte, []int) {
|
2021-10-27 18:47:36 +03:00
|
|
|
return file_broker_proto_rawDescGZIP(), []int{6}
|
2021-01-19 19:41:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Message) GetHeader() map[string]string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Header
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Message) GetBody() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Body
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
var File_broker_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_broker_proto_rawDesc = []byte{
|
2021-10-27 18:27:04 +03:00
|
|
|
0x0a, 0x0c, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09,
|
2021-10-27 18:47:36 +03:00
|
|
|
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x22, 0x54, 0x0a, 0x0e, 0x50, 0x75, 0x62,
|
|
|
|
0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74,
|
|
|
|
0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69,
|
|
|
|
0x63, 0x12, 0x2c, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x2e, 0x4d,
|
|
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22,
|
|
|
|
0x59, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x2c, 0x0a, 0x07,
|
|
|
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e,
|
|
|
|
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
|
|
0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x75,
|
|
|
|
0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x0a,
|
|
|
|
0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
|
|
|
|
0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70,
|
|
|
|
0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12,
|
|
|
|
0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x43, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75,
|
|
|
|
0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14,
|
|
|
|
0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
|
|
|
|
0x6f, 0x70, 0x69, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x90, 0x01, 0x0a, 0x07, 0x4d,
|
|
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
|
|
|
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
|
|
|
0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65,
|
|
|
|
0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12,
|
|
|
|
0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f,
|
|
|
|
0x64, 0x79, 0x1a, 0x39, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72,
|
|
|
|
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
|
|
|
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xb4, 0x02,
|
|
|
|
0x0a, 0x0d, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
|
|
|
|
0x42, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72,
|
|
|
|
0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70,
|
|
|
|
0x62, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x62, 0x6c,
|
|
|
|
0x69, 0x73, 0x68, 0x12, 0x1e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x2e,
|
|
|
|
0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x2e,
|
|
|
|
0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
|
|
|
|
0x69, 0x62, 0x65, 0x12, 0x1b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x2e,
|
|
|
|
0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73,
|
|
|
|
0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x4a, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63,
|
|
|
|
0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x20, 0x2e, 0x73, 0x65, 0x72,
|
|
|
|
0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73,
|
|
|
|
0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x73,
|
|
|
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
|
0x22, 0x00, 0x30, 0x01, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x6f, 0x2e, 0x75, 0x6e, 0x69, 0x73, 0x74,
|
|
|
|
0x61, 0x63, 0x6b, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2d, 0x62, 0x72,
|
|
|
|
0x6f, 0x6b, 0x65, 0x72, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x33, 0x2f,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x62, 0x62,
|
|
|
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2021-01-19 19:41:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_broker_proto_rawDescOnce sync.Once
|
|
|
|
file_broker_proto_rawDescData = file_broker_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_broker_proto_rawDescGZIP() []byte {
|
|
|
|
file_broker_proto_rawDescOnce.Do(func() {
|
|
|
|
file_broker_proto_rawDescData = protoimpl.X.CompressGZIP(file_broker_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_broker_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
var file_broker_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
2021-01-19 19:41:39 +03:00
|
|
|
var file_broker_proto_goTypes = []interface{}{
|
2021-10-27 18:47:36 +03:00
|
|
|
(*PublishRequest)(nil), // 0: servicepb.PublishRequest
|
|
|
|
(*BatchPublishRequest)(nil), // 1: servicepb.BatchPublishRequest
|
|
|
|
(*PublishResponse)(nil), // 2: servicepb.PublishResponse
|
|
|
|
(*BatchPublishResponse)(nil), // 3: servicepb.BatchPublishResponse
|
|
|
|
(*SubscribeRequest)(nil), // 4: servicepb.SubscribeRequest
|
|
|
|
(*BatchSubscribeRequest)(nil), // 5: servicepb.BatchSubscribeRequest
|
|
|
|
(*Message)(nil), // 6: servicepb.Message
|
|
|
|
nil, // 7: servicepb.Message.HeaderEntry
|
2021-01-19 19:41:39 +03:00
|
|
|
}
|
|
|
|
var file_broker_proto_depIdxs = []int32{
|
2021-10-27 18:47:36 +03:00
|
|
|
6, // 0: servicepb.PublishRequest.message:type_name -> servicepb.Message
|
|
|
|
6, // 1: servicepb.BatchPublishRequest.message:type_name -> servicepb.Message
|
|
|
|
7, // 2: servicepb.Message.header:type_name -> servicepb.Message.HeaderEntry
|
|
|
|
0, // 3: servicepb.BrokerService.Publish:input_type -> servicepb.PublishRequest
|
|
|
|
1, // 4: servicepb.BrokerService.BatchPublish:input_type -> servicepb.BatchPublishRequest
|
|
|
|
4, // 5: servicepb.BrokerService.Subscribe:input_type -> servicepb.SubscribeRequest
|
|
|
|
5, // 6: servicepb.BrokerService.BatchSubscribe:input_type -> servicepb.BatchSubscribeRequest
|
|
|
|
2, // 7: servicepb.BrokerService.Publish:output_type -> servicepb.PublishResponse
|
|
|
|
3, // 8: servicepb.BrokerService.BatchPublish:output_type -> servicepb.BatchPublishResponse
|
|
|
|
6, // 9: servicepb.BrokerService.Subscribe:output_type -> servicepb.Message
|
|
|
|
6, // 10: servicepb.BrokerService.BatchSubscribe:output_type -> servicepb.Message
|
|
|
|
7, // [7:11] is the sub-list for method output_type
|
|
|
|
3, // [3:7] is the sub-list for method input_type
|
|
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
|
|
0, // [0:3] is the sub-list for field type_name
|
2021-01-19 19:41:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_broker_proto_init() }
|
|
|
|
func file_broker_proto_init() {
|
|
|
|
if File_broker_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_broker_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2021-10-27 18:47:36 +03:00
|
|
|
switch v := v.(*PublishRequest); i {
|
2021-01-19 19:41:39 +03:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_broker_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2021-10-27 18:47:36 +03:00
|
|
|
switch v := v.(*BatchPublishRequest); i {
|
2021-01-19 19:41:39 +03:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_broker_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2021-10-27 18:47:36 +03:00
|
|
|
switch v := v.(*PublishResponse); i {
|
2021-01-19 19:41:39 +03:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_broker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2021-10-27 18:47:36 +03:00
|
|
|
switch v := v.(*BatchPublishResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_broker_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SubscribeRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_broker_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*BatchSubscribeRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_broker_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 19:41:39 +03:00
|
|
|
switch v := v.(*Message); 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_broker_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
2021-10-27 18:47:36 +03:00
|
|
|
NumMessages: 8,
|
2021-01-19 19:41:39 +03:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_broker_proto_goTypes,
|
|
|
|
DependencyIndexes: file_broker_proto_depIdxs,
|
|
|
|
MessageInfos: file_broker_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_broker_proto = out.File
|
|
|
|
file_broker_proto_rawDesc = nil
|
|
|
|
file_broker_proto_goTypes = nil
|
|
|
|
file_broker_proto_depIdxs = nil
|
|
|
|
}
|