Fetch the repository succeeded.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v4.25.3
// source: pubsub.proto
package cluster
import (
actor "gitee.com/wujianhai/protoactor-go/actor"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
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)
)
// Delivery status as seen by the delivery actor
type DeliveryStatus int32
const (
// Message was put in the queue of the subscriber
DeliveryStatus_Delivered DeliveryStatus = 0
// Message did not reach subscriber, because it was dead
DeliveryStatus_SubscriberNoLongerReachable DeliveryStatus = 1
// Delivery timed out
DeliveryStatus_Timeout DeliveryStatus = 2
// Some other problem happened
DeliveryStatus_OtherError DeliveryStatus = 127
)
// Enum value maps for DeliveryStatus.
var (
DeliveryStatus_name = map[int32]string{
0: "Delivered",
1: "SubscriberNoLongerReachable",
2: "Timeout",
127: "OtherError",
}
DeliveryStatus_value = map[string]int32{
"Delivered": 0,
"SubscriberNoLongerReachable": 1,
"Timeout": 2,
"OtherError": 127,
}
)
func (x DeliveryStatus) Enum() *DeliveryStatus {
p := new(DeliveryStatus)
*p = x
return p
}
func (x DeliveryStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DeliveryStatus) Descriptor() protoreflect.EnumDescriptor {
return file_pubsub_proto_enumTypes[0].Descriptor()
}
func (DeliveryStatus) Type() protoreflect.EnumType {
return &file_pubsub_proto_enumTypes[0]
}
func (x DeliveryStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DeliveryStatus.Descriptor instead.
func (DeliveryStatus) EnumDescriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{0}
}
// Status of the whole published batch or single message
type PublishStatus int32
const (
// Batch or message was successfully published according to the delivery guarantees
PublishStatus_Ok PublishStatus = 0
// Topic failed to forward the message
PublishStatus_Failed PublishStatus = 1
)
// Enum value maps for PublishStatus.
var (
PublishStatus_name = map[int32]string{
0: "Ok",
1: "Failed",
}
PublishStatus_value = map[string]int32{
"Ok": 0,
"Failed": 1,
}
)
func (x PublishStatus) Enum() *PublishStatus {
p := new(PublishStatus)
*p = x
return p
}
func (x PublishStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PublishStatus) Descriptor() protoreflect.EnumDescriptor {
return file_pubsub_proto_enumTypes[1].Descriptor()
}
func (PublishStatus) Type() protoreflect.EnumType {
return &file_pubsub_proto_enumTypes[1]
}
func (x PublishStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PublishStatus.Descriptor instead.
func (PublishStatus) EnumDescriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{1}
}
// Identifies a subscriber by either ClusterIdentity or PID
type SubscriberIdentity struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Identity:
// *SubscriberIdentity_Pid
// *SubscriberIdentity_ClusterIdentity
Identity isSubscriberIdentity_Identity `protobuf_oneof:"Identity"`
}
func (x *SubscriberIdentity) Reset() {
*x = SubscriberIdentity{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubscriberIdentity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubscriberIdentity) ProtoMessage() {}
func (x *SubscriberIdentity) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_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 SubscriberIdentity.ProtoReflect.Descriptor instead.
func (*SubscriberIdentity) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{0}
}
func (m *SubscriberIdentity) GetIdentity() isSubscriberIdentity_Identity {
if m != nil {
return m.Identity
}
return nil
}
func (x *SubscriberIdentity) GetPid() *actor.PID {
if x, ok := x.GetIdentity().(*SubscriberIdentity_Pid); ok {
return x.Pid
}
return nil
}
func (x *SubscriberIdentity) GetClusterIdentity() *ClusterIdentity {
if x, ok := x.GetIdentity().(*SubscriberIdentity_ClusterIdentity); ok {
return x.ClusterIdentity
}
return nil
}
type isSubscriberIdentity_Identity interface {
isSubscriberIdentity_Identity()
}
type SubscriberIdentity_Pid struct {
Pid *actor.PID `protobuf:"bytes,1,opt,name=pid,proto3,oneof"`
}
type SubscriberIdentity_ClusterIdentity struct {
ClusterIdentity *ClusterIdentity `protobuf:"bytes,2,opt,name=cluster_identity,json=clusterIdentity,proto3,oneof"`
}
func (*SubscriberIdentity_Pid) isSubscriberIdentity_Identity() {}
func (*SubscriberIdentity_ClusterIdentity) isSubscriberIdentity_Identity() {}
// First request to initialize the actor.
type Initialize struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IdleTimeout *durationpb.Duration `protobuf:"bytes,1,opt,name=idleTimeout,proto3" json:"idleTimeout,omitempty"`
}
func (x *Initialize) Reset() {
*x = Initialize{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Initialize) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Initialize) ProtoMessage() {}
func (x *Initialize) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_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 Initialize.ProtoReflect.Descriptor instead.
func (*Initialize) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{1}
}
func (x *Initialize) GetIdleTimeout() *durationpb.Duration {
if x != nil {
return x.IdleTimeout
}
return nil
}
type Acknowledge struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *Acknowledge) Reset() {
*x = Acknowledge{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Acknowledge) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Acknowledge) ProtoMessage() {}
func (x *Acknowledge) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_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 Acknowledge.ProtoReflect.Descriptor instead.
func (*Acknowledge) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{2}
}
// A list of subscribers
type Subscribers struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Subscribers []*SubscriberIdentity `protobuf:"bytes,1,rep,name=subscribers,proto3" json:"subscribers,omitempty"`
}
func (x *Subscribers) Reset() {
*x = Subscribers{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Subscribers) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Subscribers) ProtoMessage() {}
func (x *Subscribers) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_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 Subscribers.ProtoReflect.Descriptor instead.
func (*Subscribers) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{3}
}
func (x *Subscribers) GetSubscribers() []*SubscriberIdentity {
if x != nil {
return x.Subscribers
}
return nil
}
// Sent to topic actor to add a subscriber
type SubscribeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Subscriber *SubscriberIdentity `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
}
func (x *SubscribeRequest) Reset() {
*x = SubscribeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[4]
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 {
mi := &file_pubsub_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 SubscribeRequest.ProtoReflect.Descriptor instead.
func (*SubscribeRequest) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{4}
}
func (x *SubscribeRequest) GetSubscriber() *SubscriberIdentity {
if x != nil {
return x.Subscriber
}
return nil
}
// Subscribe acknowledgement
type SubscribeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *SubscribeResponse) Reset() {
*x = SubscribeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubscribeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubscribeResponse) ProtoMessage() {}
func (x *SubscribeResponse) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_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 SubscribeResponse.ProtoReflect.Descriptor instead.
func (*SubscribeResponse) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{5}
}
// Sent to topic actor to remove a subscriber
type UnsubscribeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Subscriber *SubscriberIdentity `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
}
func (x *UnsubscribeRequest) Reset() {
*x = UnsubscribeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UnsubscribeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnsubscribeRequest) ProtoMessage() {}
func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_proto_msgTypes[6]
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 UnsubscribeRequest.ProtoReflect.Descriptor instead.
func (*UnsubscribeRequest) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{6}
}
func (x *UnsubscribeRequest) GetSubscriber() *SubscriberIdentity {
if x != nil {
return x.Subscriber
}
return nil
}
// Unsubscribe acknowledgement
type UnsubscribeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *UnsubscribeResponse) Reset() {
*x = UnsubscribeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UnsubscribeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnsubscribeResponse) ProtoMessage() {}
func (x *UnsubscribeResponse) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_proto_msgTypes[7]
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 UnsubscribeResponse.ProtoReflect.Descriptor instead.
func (*UnsubscribeResponse) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{7}
}
// Message sent from publisher to topic actor
// See also PubSubBatch
type PubSubBatchTransport struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TypeNames []string `protobuf:"bytes,1,rep,name=type_names,json=typeNames,proto3" json:"type_names,omitempty"`
Envelopes []*PubSubEnvelope `protobuf:"bytes,2,rep,name=envelopes,proto3" json:"envelopes,omitempty"`
}
func (x *PubSubBatchTransport) Reset() {
*x = PubSubBatchTransport{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PubSubBatchTransport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PubSubBatchTransport) ProtoMessage() {}
func (x *PubSubBatchTransport) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_proto_msgTypes[8]
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 PubSubBatchTransport.ProtoReflect.Descriptor instead.
func (*PubSubBatchTransport) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{8}
}
func (x *PubSubBatchTransport) GetTypeNames() []string {
if x != nil {
return x.TypeNames
}
return nil
}
func (x *PubSubBatchTransport) GetEnvelopes() []*PubSubEnvelope {
if x != nil {
return x.Envelopes
}
return nil
}
// Contains message byte representation and type reference
type PubSubEnvelope struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TypeId int32 `protobuf:"varint,1,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
MessageData []byte `protobuf:"bytes,2,opt,name=message_data,json=messageData,proto3" json:"message_data,omitempty"`
SerializerId int32 `protobuf:"varint,3,opt,name=serializer_id,json=serializerId,proto3" json:"serializer_id,omitempty"`
}
func (x *PubSubEnvelope) Reset() {
*x = PubSubEnvelope{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PubSubEnvelope) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PubSubEnvelope) ProtoMessage() {}
func (x *PubSubEnvelope) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_proto_msgTypes[9]
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 PubSubEnvelope.ProtoReflect.Descriptor instead.
func (*PubSubEnvelope) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{9}
}
func (x *PubSubEnvelope) GetTypeId() int32 {
if x != nil {
return x.TypeId
}
return 0
}
func (x *PubSubEnvelope) GetMessageData() []byte {
if x != nil {
return x.MessageData
}
return nil
}
func (x *PubSubEnvelope) GetSerializerId() int32 {
if x != nil {
return x.SerializerId
}
return 0
}
// Message sent from topic to delivery actor
type DeliverBatchRequestTransport struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Subscribers *Subscribers `protobuf:"bytes,1,opt,name=subscribers,proto3" json:"subscribers,omitempty"`
Batch *PubSubBatchTransport `protobuf:"bytes,2,opt,name=batch,proto3" json:"batch,omitempty"`
Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
}
func (x *DeliverBatchRequestTransport) Reset() {
*x = DeliverBatchRequestTransport{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeliverBatchRequestTransport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeliverBatchRequestTransport) ProtoMessage() {}
func (x *DeliverBatchRequestTransport) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_proto_msgTypes[10]
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 DeliverBatchRequestTransport.ProtoReflect.Descriptor instead.
func (*DeliverBatchRequestTransport) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{10}
}
func (x *DeliverBatchRequestTransport) GetSubscribers() *Subscribers {
if x != nil {
return x.Subscribers
}
return nil
}
func (x *DeliverBatchRequestTransport) GetBatch() *PubSubBatchTransport {
if x != nil {
return x.Batch
}
return nil
}
func (x *DeliverBatchRequestTransport) GetTopic() string {
if x != nil {
return x.Topic
}
return ""
}
// Message sent from delivery actor to topic to notify of subscribers that fail to process the messages
type NotifyAboutFailingSubscribersRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
InvalidDeliveries []*SubscriberDeliveryReport `protobuf:"bytes,1,rep,name=invalid_deliveries,json=invalidDeliveries,proto3" json:"invalid_deliveries,omitempty"`
}
func (x *NotifyAboutFailingSubscribersRequest) Reset() {
*x = NotifyAboutFailingSubscribersRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NotifyAboutFailingSubscribersRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NotifyAboutFailingSubscribersRequest) ProtoMessage() {}
func (x *NotifyAboutFailingSubscribersRequest) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_proto_msgTypes[11]
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 NotifyAboutFailingSubscribersRequest.ProtoReflect.Descriptor instead.
func (*NotifyAboutFailingSubscribersRequest) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{11}
}
func (x *NotifyAboutFailingSubscribersRequest) GetInvalidDeliveries() []*SubscriberDeliveryReport {
if x != nil {
return x.InvalidDeliveries
}
return nil
}
// Ack to the delivery actor after notification of subscribers that fail to process the messages
type NotifyAboutFailingSubscribersResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *NotifyAboutFailingSubscribersResponse) Reset() {
*x = NotifyAboutFailingSubscribersResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NotifyAboutFailingSubscribersResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NotifyAboutFailingSubscribersResponse) ProtoMessage() {}
func (x *NotifyAboutFailingSubscribersResponse) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_proto_msgTypes[12]
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 NotifyAboutFailingSubscribersResponse.ProtoReflect.Descriptor instead.
func (*NotifyAboutFailingSubscribersResponse) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{12}
}
// Contains information about a failed delivery
type SubscriberDeliveryReport struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Subscriber *SubscriberIdentity `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
Status DeliveryStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cluster.DeliveryStatus" json:"status,omitempty"`
}
func (x *SubscriberDeliveryReport) Reset() {
*x = SubscriberDeliveryReport{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubscriberDeliveryReport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubscriberDeliveryReport) ProtoMessage() {}
func (x *SubscriberDeliveryReport) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_proto_msgTypes[13]
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 SubscriberDeliveryReport.ProtoReflect.Descriptor instead.
func (*SubscriberDeliveryReport) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{13}
}
func (x *SubscriberDeliveryReport) GetSubscriber() *SubscriberIdentity {
if x != nil {
return x.Subscriber
}
return nil
}
func (x *SubscriberDeliveryReport) GetStatus() DeliveryStatus {
if x != nil {
return x.Status
}
return DeliveryStatus_Delivered
}
// Message posted to subscriber's mailbox, that is then unrolled to single messages, and has ability to auto respond
// See also PubSubAutoRespondBatch
type PubSubAutoRespondBatchTransport struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TypeNames []string `protobuf:"bytes,1,rep,name=type_names,json=typeNames,proto3" json:"type_names,omitempty"`
Envelopes []*PubSubEnvelope `protobuf:"bytes,2,rep,name=envelopes,proto3" json:"envelopes,omitempty"`
}
func (x *PubSubAutoRespondBatchTransport) Reset() {
*x = PubSubAutoRespondBatchTransport{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PubSubAutoRespondBatchTransport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PubSubAutoRespondBatchTransport) ProtoMessage() {}
func (x *PubSubAutoRespondBatchTransport) ProtoReflect() protoreflect.Message {
mi := &file_pubsub_proto_msgTypes[14]
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 PubSubAutoRespondBatchTransport.ProtoReflect.Descriptor instead.
func (*PubSubAutoRespondBatchTransport) Descriptor() ([]byte, []int) {
return file_pubsub_proto_rawDescGZIP(), []int{14}
}
func (x *PubSubAutoRespondBatchTransport) GetTypeNames() []string {
if x != nil {
return x.TypeNames
}
return nil
}
func (x *PubSubAutoRespondBatchTransport) GetEnvelopes() []*PubSubEnvelope {
if x != nil {
return x.Envelopes
}
return nil
}
// Publish ack/nack response
type PublishResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Status of the whole published batch or single message
Status PublishStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cluster.PublishStatus" json:"status,omitempty"`
}
func (x *PublishResponse) Reset() {
*x = PublishResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_pubsub_proto_msgTypes[15]
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_pubsub_proto_msgTypes[15]
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_pubsub_proto_rawDescGZIP(), []int{15}
}
func (x *PublishResponse) GetStatus() PublishStatus {
if x != nil {
return x.Status
}
return PublishStatus_Ok
}
var File_pubsub_proto protoreflect.FileDescriptor
var file_pubsub_proto_rawDesc = []byte{
0x0a, 0x0c, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07,
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x0d, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x87, 0x01, 0x0a, 0x12, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x03, 0x70, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2e,
0x50, 0x49, 0x44, 0x48, 0x00, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x45, 0x0a, 0x10, 0x63, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x43,
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x48, 0x00,
0x52, 0x0f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
0x79, 0x42, 0x0a, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x49, 0x0a,
0x0a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x69,
0x64, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x69, 0x64, 0x6c,
0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x0d, 0x0a, 0x0b, 0x41, 0x63, 0x6b, 0x6e,
0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x22, 0x4c, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x73, 0x63,
0x72, 0x69, 0x62, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72,
0x69, 0x62, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72,
0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72,
0x69, 0x62, 0x65, 0x72, 0x73, 0x22, 0x4f, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x73, 0x75, 0x62,
0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e,
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x73,
0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x0a, 0x12, 0x55,
0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e,
0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x74, 0x79, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x22, 0x15,
0x0a, 0x13, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x0a, 0x14, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x42,
0x61, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1d, 0x0a,
0x0a, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x09, 0x52, 0x09, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x09,
0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x17, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62,
0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x52, 0x09, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f,
0x70, 0x65, 0x73, 0x22, 0x71, 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x45, 0x6e, 0x76,
0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x21,
0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74,
0x61, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x5f,
0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c,
0x69, 0x7a, 0x65, 0x72, 0x49, 0x64, 0x22, 0xa1, 0x01, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x69, 0x76,
0x65, 0x72, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x72,
0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x73, 0x63,
0x72, 0x69, 0x62, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63,
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
0x72, 0x73, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x73, 0x12,
0x33, 0x0a, 0x05, 0x62, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d,
0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x42,
0x61, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x05, 0x62,
0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x78, 0x0a, 0x24, 0x4e, 0x6f,
0x74, 0x69, 0x66, 0x79, 0x41, 0x62, 0x6f, 0x75, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67,
0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x50, 0x0a, 0x12, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x64, 0x65,
0x6c, 0x69, 0x76, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21,
0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
0x62, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72,
0x74, 0x52, 0x11, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65,
0x72, 0x69, 0x65, 0x73, 0x22, 0x27, 0x0a, 0x25, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x41, 0x62,
0x6f, 0x75, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
0x69, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01,
0x0a, 0x18, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x69,
0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x73, 0x75,
0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
0x62, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x73, 0x75, 0x62,
0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65,
0x72, 0x2e, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x77, 0x0a, 0x1f, 0x50, 0x75, 0x62, 0x53,
0x75, 0x62, 0x41, 0x75, 0x74, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x42, 0x61, 0x74,
0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
0x09, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x09, 0x65, 0x6e,
0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e,
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x45, 0x6e,
0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x52, 0x09, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65,
0x73, 0x22, 0x41, 0x0a, 0x0f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50,
0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x2a, 0x5d, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65,
0x72, 0x65, 0x64, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
0x62, 0x65, 0x72, 0x4e, 0x6f, 0x4c, 0x6f, 0x6e, 0x67, 0x65, 0x72, 0x52, 0x65, 0x61, 0x63, 0x68,
0x61, 0x62, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75,
0x74, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f,
0x72, 0x10, 0x7f, 0x2a, 0x23, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x6b, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x01, 0x42, 0x2c, 0x5a, 0x2a, 0x2f, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x73, 0x79, 0x6e, 0x6b, 0x72, 0x6f, 0x6e,
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2d, 0x67, 0x6f, 0x2f, 0x63,
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_pubsub_proto_rawDescOnce sync.Once
file_pubsub_proto_rawDescData = file_pubsub_proto_rawDesc
)
func file_pubsub_proto_rawDescGZIP() []byte {
file_pubsub_proto_rawDescOnce.Do(func() {
file_pubsub_proto_rawDescData = protoimpl.X.CompressGZIP(file_pubsub_proto_rawDescData)
})
return file_pubsub_proto_rawDescData
}
var file_pubsub_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_pubsub_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_pubsub_proto_goTypes = []interface{}{
(DeliveryStatus)(0), // 0: cluster.DeliveryStatus
(PublishStatus)(0), // 1: cluster.PublishStatus
(*SubscriberIdentity)(nil), // 2: cluster.SubscriberIdentity
(*Initialize)(nil), // 3: cluster.Initialize
(*Acknowledge)(nil), // 4: cluster.Acknowledge
(*Subscribers)(nil), // 5: cluster.Subscribers
(*SubscribeRequest)(nil), // 6: cluster.SubscribeRequest
(*SubscribeResponse)(nil), // 7: cluster.SubscribeResponse
(*UnsubscribeRequest)(nil), // 8: cluster.UnsubscribeRequest
(*UnsubscribeResponse)(nil), // 9: cluster.UnsubscribeResponse
(*PubSubBatchTransport)(nil), // 10: cluster.PubSubBatchTransport
(*PubSubEnvelope)(nil), // 11: cluster.PubSubEnvelope
(*DeliverBatchRequestTransport)(nil), // 12: cluster.DeliverBatchRequestTransport
(*NotifyAboutFailingSubscribersRequest)(nil), // 13: cluster.NotifyAboutFailingSubscribersRequest
(*NotifyAboutFailingSubscribersResponse)(nil), // 14: cluster.NotifyAboutFailingSubscribersResponse
(*SubscriberDeliveryReport)(nil), // 15: cluster.SubscriberDeliveryReport
(*PubSubAutoRespondBatchTransport)(nil), // 16: cluster.PubSubAutoRespondBatchTransport
(*PublishResponse)(nil), // 17: cluster.PublishResponse
(*actor.PID)(nil), // 18: actor.PID
(*ClusterIdentity)(nil), // 19: cluster.ClusterIdentity
(*durationpb.Duration)(nil), // 20: google.protobuf.Duration
}
var file_pubsub_proto_depIdxs = []int32{
18, // 0: cluster.SubscriberIdentity.pid:type_name -> actor.PID
19, // 1: cluster.SubscriberIdentity.cluster_identity:type_name -> cluster.ClusterIdentity
20, // 2: cluster.Initialize.idleTimeout:type_name -> google.protobuf.Duration
2, // 3: cluster.Subscribers.subscribers:type_name -> cluster.SubscriberIdentity
2, // 4: cluster.SubscribeRequest.subscriber:type_name -> cluster.SubscriberIdentity
2, // 5: cluster.UnsubscribeRequest.subscriber:type_name -> cluster.SubscriberIdentity
11, // 6: cluster.PubSubBatchTransport.envelopes:type_name -> cluster.PubSubEnvelope
5, // 7: cluster.DeliverBatchRequestTransport.subscribers:type_name -> cluster.Subscribers
10, // 8: cluster.DeliverBatchRequestTransport.batch:type_name -> cluster.PubSubBatchTransport
15, // 9: cluster.NotifyAboutFailingSubscribersRequest.invalid_deliveries:type_name -> cluster.SubscriberDeliveryReport
2, // 10: cluster.SubscriberDeliveryReport.subscriber:type_name -> cluster.SubscriberIdentity
0, // 11: cluster.SubscriberDeliveryReport.status:type_name -> cluster.DeliveryStatus
11, // 12: cluster.PubSubAutoRespondBatchTransport.envelopes:type_name -> cluster.PubSubEnvelope
1, // 13: cluster.PublishResponse.status:type_name -> cluster.PublishStatus
14, // [14:14] is the sub-list for method output_type
14, // [14:14] is the sub-list for method input_type
14, // [14:14] is the sub-list for extension type_name
14, // [14:14] is the sub-list for extension extendee
0, // [0:14] is the sub-list for field type_name
}
func init() { file_pubsub_proto_init() }
func file_pubsub_proto_init() {
if File_pubsub_proto != nil {
return
}
file_cluster_proto_init()
if !protoimpl.UnsafeEnabled {
file_pubsub_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubscriberIdentity); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Initialize); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Acknowledge); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Subscribers); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_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_pubsub_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubscribeResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UnsubscribeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UnsubscribeResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PubSubBatchTransport); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PubSubEnvelope); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeliverBatchRequestTransport); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NotifyAboutFailingSubscribersRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NotifyAboutFailingSubscribersResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SubscriberDeliveryReport); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PubSubAutoRespondBatchTransport); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pubsub_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PublishResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_pubsub_proto_msgTypes[0].OneofWrappers = []interface{}{
(*SubscriberIdentity_Pid)(nil),
(*SubscriberIdentity_ClusterIdentity)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pubsub_proto_rawDesc,
NumEnums: 2,
NumMessages: 16,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_pubsub_proto_goTypes,
DependencyIndexes: file_pubsub_proto_depIdxs,
EnumInfos: file_pubsub_proto_enumTypes,
MessageInfos: file_pubsub_proto_msgTypes,
}.Build()
File_pubsub_proto = out.File
file_pubsub_proto_rawDesc = nil
file_pubsub_proto_goTypes = nil
file_pubsub_proto_depIdxs = nil
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。