github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/proto/events/events.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: events/events.proto
     3  
     4  package events
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	grpc "google.golang.org/grpc"
    11  	math "math"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the proto package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // proto package needs to be updated.
    23  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  type PublishRequest struct {
    26  	Topic                string            `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
    27  	Metadata             map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    28  	Payload              []byte            `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
    29  	Timestamp            int64             `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
    30  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    31  	XXX_unrecognized     []byte            `json:"-"`
    32  	XXX_sizecache        int32             `json:"-"`
    33  }
    34  
    35  func (m *PublishRequest) Reset()         { *m = PublishRequest{} }
    36  func (m *PublishRequest) String() string { return proto.CompactTextString(m) }
    37  func (*PublishRequest) ProtoMessage()    {}
    38  func (*PublishRequest) Descriptor() ([]byte, []int) {
    39  	return fileDescriptor_8ec31f2d2a3db598, []int{0}
    40  }
    41  
    42  func (m *PublishRequest) XXX_Unmarshal(b []byte) error {
    43  	return xxx_messageInfo_PublishRequest.Unmarshal(m, b)
    44  }
    45  func (m *PublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    46  	return xxx_messageInfo_PublishRequest.Marshal(b, m, deterministic)
    47  }
    48  func (m *PublishRequest) XXX_Merge(src proto.Message) {
    49  	xxx_messageInfo_PublishRequest.Merge(m, src)
    50  }
    51  func (m *PublishRequest) XXX_Size() int {
    52  	return xxx_messageInfo_PublishRequest.Size(m)
    53  }
    54  func (m *PublishRequest) XXX_DiscardUnknown() {
    55  	xxx_messageInfo_PublishRequest.DiscardUnknown(m)
    56  }
    57  
    58  var xxx_messageInfo_PublishRequest proto.InternalMessageInfo
    59  
    60  func (m *PublishRequest) GetTopic() string {
    61  	if m != nil {
    62  		return m.Topic
    63  	}
    64  	return ""
    65  }
    66  
    67  func (m *PublishRequest) GetMetadata() map[string]string {
    68  	if m != nil {
    69  		return m.Metadata
    70  	}
    71  	return nil
    72  }
    73  
    74  func (m *PublishRequest) GetPayload() []byte {
    75  	if m != nil {
    76  		return m.Payload
    77  	}
    78  	return nil
    79  }
    80  
    81  func (m *PublishRequest) GetTimestamp() int64 {
    82  	if m != nil {
    83  		return m.Timestamp
    84  	}
    85  	return 0
    86  }
    87  
    88  type PublishResponse struct {
    89  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    90  	XXX_unrecognized     []byte   `json:"-"`
    91  	XXX_sizecache        int32    `json:"-"`
    92  }
    93  
    94  func (m *PublishResponse) Reset()         { *m = PublishResponse{} }
    95  func (m *PublishResponse) String() string { return proto.CompactTextString(m) }
    96  func (*PublishResponse) ProtoMessage()    {}
    97  func (*PublishResponse) Descriptor() ([]byte, []int) {
    98  	return fileDescriptor_8ec31f2d2a3db598, []int{1}
    99  }
   100  
   101  func (m *PublishResponse) XXX_Unmarshal(b []byte) error {
   102  	return xxx_messageInfo_PublishResponse.Unmarshal(m, b)
   103  }
   104  func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   105  	return xxx_messageInfo_PublishResponse.Marshal(b, m, deterministic)
   106  }
   107  func (m *PublishResponse) XXX_Merge(src proto.Message) {
   108  	xxx_messageInfo_PublishResponse.Merge(m, src)
   109  }
   110  func (m *PublishResponse) XXX_Size() int {
   111  	return xxx_messageInfo_PublishResponse.Size(m)
   112  }
   113  func (m *PublishResponse) XXX_DiscardUnknown() {
   114  	xxx_messageInfo_PublishResponse.DiscardUnknown(m)
   115  }
   116  
   117  var xxx_messageInfo_PublishResponse proto.InternalMessageInfo
   118  
   119  type ConsumeRequest struct {
   120  	Group   string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
   121  	Topic   string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
   122  	Offset  int64  `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
   123  	AutoAck bool   `protobuf:"varint,4,opt,name=auto_ack,json=autoAck,proto3" json:"auto_ack,omitempty"`
   124  	// duration in nanoseconds
   125  	AckWait              int64    `protobuf:"varint,5,opt,name=ack_wait,json=ackWait,proto3" json:"ack_wait,omitempty"`
   126  	RetryLimit           int64    `protobuf:"varint,6,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"`
   127  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   128  	XXX_unrecognized     []byte   `json:"-"`
   129  	XXX_sizecache        int32    `json:"-"`
   130  }
   131  
   132  func (m *ConsumeRequest) Reset()         { *m = ConsumeRequest{} }
   133  func (m *ConsumeRequest) String() string { return proto.CompactTextString(m) }
   134  func (*ConsumeRequest) ProtoMessage()    {}
   135  func (*ConsumeRequest) Descriptor() ([]byte, []int) {
   136  	return fileDescriptor_8ec31f2d2a3db598, []int{2}
   137  }
   138  
   139  func (m *ConsumeRequest) XXX_Unmarshal(b []byte) error {
   140  	return xxx_messageInfo_ConsumeRequest.Unmarshal(m, b)
   141  }
   142  func (m *ConsumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   143  	return xxx_messageInfo_ConsumeRequest.Marshal(b, m, deterministic)
   144  }
   145  func (m *ConsumeRequest) XXX_Merge(src proto.Message) {
   146  	xxx_messageInfo_ConsumeRequest.Merge(m, src)
   147  }
   148  func (m *ConsumeRequest) XXX_Size() int {
   149  	return xxx_messageInfo_ConsumeRequest.Size(m)
   150  }
   151  func (m *ConsumeRequest) XXX_DiscardUnknown() {
   152  	xxx_messageInfo_ConsumeRequest.DiscardUnknown(m)
   153  }
   154  
   155  var xxx_messageInfo_ConsumeRequest proto.InternalMessageInfo
   156  
   157  func (m *ConsumeRequest) GetGroup() string {
   158  	if m != nil {
   159  		return m.Group
   160  	}
   161  	return ""
   162  }
   163  
   164  func (m *ConsumeRequest) GetTopic() string {
   165  	if m != nil {
   166  		return m.Topic
   167  	}
   168  	return ""
   169  }
   170  
   171  func (m *ConsumeRequest) GetOffset() int64 {
   172  	if m != nil {
   173  		return m.Offset
   174  	}
   175  	return 0
   176  }
   177  
   178  func (m *ConsumeRequest) GetAutoAck() bool {
   179  	if m != nil {
   180  		return m.AutoAck
   181  	}
   182  	return false
   183  }
   184  
   185  func (m *ConsumeRequest) GetAckWait() int64 {
   186  	if m != nil {
   187  		return m.AckWait
   188  	}
   189  	return 0
   190  }
   191  
   192  func (m *ConsumeRequest) GetRetryLimit() int64 {
   193  	if m != nil {
   194  		return m.RetryLimit
   195  	}
   196  	return 0
   197  }
   198  
   199  type Event struct {
   200  	Id                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   201  	Topic                string            `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
   202  	Metadata             map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   203  	Payload              []byte            `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
   204  	Timestamp            int64             `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   205  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   206  	XXX_unrecognized     []byte            `json:"-"`
   207  	XXX_sizecache        int32             `json:"-"`
   208  }
   209  
   210  func (m *Event) Reset()         { *m = Event{} }
   211  func (m *Event) String() string { return proto.CompactTextString(m) }
   212  func (*Event) ProtoMessage()    {}
   213  func (*Event) Descriptor() ([]byte, []int) {
   214  	return fileDescriptor_8ec31f2d2a3db598, []int{3}
   215  }
   216  
   217  func (m *Event) XXX_Unmarshal(b []byte) error {
   218  	return xxx_messageInfo_Event.Unmarshal(m, b)
   219  }
   220  func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   221  	return xxx_messageInfo_Event.Marshal(b, m, deterministic)
   222  }
   223  func (m *Event) XXX_Merge(src proto.Message) {
   224  	xxx_messageInfo_Event.Merge(m, src)
   225  }
   226  func (m *Event) XXX_Size() int {
   227  	return xxx_messageInfo_Event.Size(m)
   228  }
   229  func (m *Event) XXX_DiscardUnknown() {
   230  	xxx_messageInfo_Event.DiscardUnknown(m)
   231  }
   232  
   233  var xxx_messageInfo_Event proto.InternalMessageInfo
   234  
   235  func (m *Event) GetId() string {
   236  	if m != nil {
   237  		return m.Id
   238  	}
   239  	return ""
   240  }
   241  
   242  func (m *Event) GetTopic() string {
   243  	if m != nil {
   244  		return m.Topic
   245  	}
   246  	return ""
   247  }
   248  
   249  func (m *Event) GetMetadata() map[string]string {
   250  	if m != nil {
   251  		return m.Metadata
   252  	}
   253  	return nil
   254  }
   255  
   256  func (m *Event) GetPayload() []byte {
   257  	if m != nil {
   258  		return m.Payload
   259  	}
   260  	return nil
   261  }
   262  
   263  func (m *Event) GetTimestamp() int64 {
   264  	if m != nil {
   265  		return m.Timestamp
   266  	}
   267  	return 0
   268  }
   269  
   270  type ReadRequest struct {
   271  	Topic                string   `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
   272  	Limit                uint64   `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
   273  	Offset               uint64   `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
   274  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   275  	XXX_unrecognized     []byte   `json:"-"`
   276  	XXX_sizecache        int32    `json:"-"`
   277  }
   278  
   279  func (m *ReadRequest) Reset()         { *m = ReadRequest{} }
   280  func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
   281  func (*ReadRequest) ProtoMessage()    {}
   282  func (*ReadRequest) Descriptor() ([]byte, []int) {
   283  	return fileDescriptor_8ec31f2d2a3db598, []int{4}
   284  }
   285  
   286  func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
   287  	return xxx_messageInfo_ReadRequest.Unmarshal(m, b)
   288  }
   289  func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   290  	return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic)
   291  }
   292  func (m *ReadRequest) XXX_Merge(src proto.Message) {
   293  	xxx_messageInfo_ReadRequest.Merge(m, src)
   294  }
   295  func (m *ReadRequest) XXX_Size() int {
   296  	return xxx_messageInfo_ReadRequest.Size(m)
   297  }
   298  func (m *ReadRequest) XXX_DiscardUnknown() {
   299  	xxx_messageInfo_ReadRequest.DiscardUnknown(m)
   300  }
   301  
   302  var xxx_messageInfo_ReadRequest proto.InternalMessageInfo
   303  
   304  func (m *ReadRequest) GetTopic() string {
   305  	if m != nil {
   306  		return m.Topic
   307  	}
   308  	return ""
   309  }
   310  
   311  func (m *ReadRequest) GetLimit() uint64 {
   312  	if m != nil {
   313  		return m.Limit
   314  	}
   315  	return 0
   316  }
   317  
   318  func (m *ReadRequest) GetOffset() uint64 {
   319  	if m != nil {
   320  		return m.Offset
   321  	}
   322  	return 0
   323  }
   324  
   325  type ReadResponse struct {
   326  	Events               []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
   327  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   328  	XXX_unrecognized     []byte   `json:"-"`
   329  	XXX_sizecache        int32    `json:"-"`
   330  }
   331  
   332  func (m *ReadResponse) Reset()         { *m = ReadResponse{} }
   333  func (m *ReadResponse) String() string { return proto.CompactTextString(m) }
   334  func (*ReadResponse) ProtoMessage()    {}
   335  func (*ReadResponse) Descriptor() ([]byte, []int) {
   336  	return fileDescriptor_8ec31f2d2a3db598, []int{5}
   337  }
   338  
   339  func (m *ReadResponse) XXX_Unmarshal(b []byte) error {
   340  	return xxx_messageInfo_ReadResponse.Unmarshal(m, b)
   341  }
   342  func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   343  	return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic)
   344  }
   345  func (m *ReadResponse) XXX_Merge(src proto.Message) {
   346  	xxx_messageInfo_ReadResponse.Merge(m, src)
   347  }
   348  func (m *ReadResponse) XXX_Size() int {
   349  	return xxx_messageInfo_ReadResponse.Size(m)
   350  }
   351  func (m *ReadResponse) XXX_DiscardUnknown() {
   352  	xxx_messageInfo_ReadResponse.DiscardUnknown(m)
   353  }
   354  
   355  var xxx_messageInfo_ReadResponse proto.InternalMessageInfo
   356  
   357  func (m *ReadResponse) GetEvents() []*Event {
   358  	if m != nil {
   359  		return m.Events
   360  	}
   361  	return nil
   362  }
   363  
   364  type WriteRequest struct {
   365  	Event                *Event   `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
   366  	Ttl                  int64    `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
   367  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   368  	XXX_unrecognized     []byte   `json:"-"`
   369  	XXX_sizecache        int32    `json:"-"`
   370  }
   371  
   372  func (m *WriteRequest) Reset()         { *m = WriteRequest{} }
   373  func (m *WriteRequest) String() string { return proto.CompactTextString(m) }
   374  func (*WriteRequest) ProtoMessage()    {}
   375  func (*WriteRequest) Descriptor() ([]byte, []int) {
   376  	return fileDescriptor_8ec31f2d2a3db598, []int{6}
   377  }
   378  
   379  func (m *WriteRequest) XXX_Unmarshal(b []byte) error {
   380  	return xxx_messageInfo_WriteRequest.Unmarshal(m, b)
   381  }
   382  func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   383  	return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic)
   384  }
   385  func (m *WriteRequest) XXX_Merge(src proto.Message) {
   386  	xxx_messageInfo_WriteRequest.Merge(m, src)
   387  }
   388  func (m *WriteRequest) XXX_Size() int {
   389  	return xxx_messageInfo_WriteRequest.Size(m)
   390  }
   391  func (m *WriteRequest) XXX_DiscardUnknown() {
   392  	xxx_messageInfo_WriteRequest.DiscardUnknown(m)
   393  }
   394  
   395  var xxx_messageInfo_WriteRequest proto.InternalMessageInfo
   396  
   397  func (m *WriteRequest) GetEvent() *Event {
   398  	if m != nil {
   399  		return m.Event
   400  	}
   401  	return nil
   402  }
   403  
   404  func (m *WriteRequest) GetTtl() int64 {
   405  	if m != nil {
   406  		return m.Ttl
   407  	}
   408  	return 0
   409  }
   410  
   411  type WriteResponse struct {
   412  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   413  	XXX_unrecognized     []byte   `json:"-"`
   414  	XXX_sizecache        int32    `json:"-"`
   415  }
   416  
   417  func (m *WriteResponse) Reset()         { *m = WriteResponse{} }
   418  func (m *WriteResponse) String() string { return proto.CompactTextString(m) }
   419  func (*WriteResponse) ProtoMessage()    {}
   420  func (*WriteResponse) Descriptor() ([]byte, []int) {
   421  	return fileDescriptor_8ec31f2d2a3db598, []int{7}
   422  }
   423  
   424  func (m *WriteResponse) XXX_Unmarshal(b []byte) error {
   425  	return xxx_messageInfo_WriteResponse.Unmarshal(m, b)
   426  }
   427  func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   428  	return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic)
   429  }
   430  func (m *WriteResponse) XXX_Merge(src proto.Message) {
   431  	xxx_messageInfo_WriteResponse.Merge(m, src)
   432  }
   433  func (m *WriteResponse) XXX_Size() int {
   434  	return xxx_messageInfo_WriteResponse.Size(m)
   435  }
   436  func (m *WriteResponse) XXX_DiscardUnknown() {
   437  	xxx_messageInfo_WriteResponse.DiscardUnknown(m)
   438  }
   439  
   440  var xxx_messageInfo_WriteResponse proto.InternalMessageInfo
   441  
   442  type AckRequest struct {
   443  	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   444  	Success              bool     `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
   445  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   446  	XXX_unrecognized     []byte   `json:"-"`
   447  	XXX_sizecache        int32    `json:"-"`
   448  }
   449  
   450  func (m *AckRequest) Reset()         { *m = AckRequest{} }
   451  func (m *AckRequest) String() string { return proto.CompactTextString(m) }
   452  func (*AckRequest) ProtoMessage()    {}
   453  func (*AckRequest) Descriptor() ([]byte, []int) {
   454  	return fileDescriptor_8ec31f2d2a3db598, []int{8}
   455  }
   456  
   457  func (m *AckRequest) XXX_Unmarshal(b []byte) error {
   458  	return xxx_messageInfo_AckRequest.Unmarshal(m, b)
   459  }
   460  func (m *AckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   461  	return xxx_messageInfo_AckRequest.Marshal(b, m, deterministic)
   462  }
   463  func (m *AckRequest) XXX_Merge(src proto.Message) {
   464  	xxx_messageInfo_AckRequest.Merge(m, src)
   465  }
   466  func (m *AckRequest) XXX_Size() int {
   467  	return xxx_messageInfo_AckRequest.Size(m)
   468  }
   469  func (m *AckRequest) XXX_DiscardUnknown() {
   470  	xxx_messageInfo_AckRequest.DiscardUnknown(m)
   471  }
   472  
   473  var xxx_messageInfo_AckRequest proto.InternalMessageInfo
   474  
   475  func (m *AckRequest) GetId() string {
   476  	if m != nil {
   477  		return m.Id
   478  	}
   479  	return ""
   480  }
   481  
   482  func (m *AckRequest) GetSuccess() bool {
   483  	if m != nil {
   484  		return m.Success
   485  	}
   486  	return false
   487  }
   488  
   489  func init() {
   490  	proto.RegisterType((*PublishRequest)(nil), "events.PublishRequest")
   491  	proto.RegisterMapType((map[string]string)(nil), "events.PublishRequest.MetadataEntry")
   492  	proto.RegisterType((*PublishResponse)(nil), "events.PublishResponse")
   493  	proto.RegisterType((*ConsumeRequest)(nil), "events.ConsumeRequest")
   494  	proto.RegisterType((*Event)(nil), "events.Event")
   495  	proto.RegisterMapType((map[string]string)(nil), "events.Event.MetadataEntry")
   496  	proto.RegisterType((*ReadRequest)(nil), "events.ReadRequest")
   497  	proto.RegisterType((*ReadResponse)(nil), "events.ReadResponse")
   498  	proto.RegisterType((*WriteRequest)(nil), "events.WriteRequest")
   499  	proto.RegisterType((*WriteResponse)(nil), "events.WriteResponse")
   500  	proto.RegisterType((*AckRequest)(nil), "events.AckRequest")
   501  }
   502  
   503  func init() { proto.RegisterFile("events/events.proto", fileDescriptor_8ec31f2d2a3db598) }
   504  
   505  var fileDescriptor_8ec31f2d2a3db598 = []byte{
   506  	// 562 bytes of a gzipped FileDescriptorProto
   507  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x6f, 0xd3, 0x40,
   508  	0x10, 0x95, 0xed, 0x38, 0x4e, 0x27, 0x1f, 0x85, 0x6d, 0x28, 0x26, 0x20, 0x11, 0x19, 0x90, 0x72,
   509  	0x40, 0x09, 0xa4, 0x7c, 0xa9, 0xbd, 0x50, 0x50, 0x6e, 0x20, 0xc1, 0xf6, 0x50, 0x89, 0x4b, 0xb4,
   510  	0x71, 0xb6, 0xed, 0xca, 0x71, 0xd6, 0x78, 0xd7, 0x81, 0xfc, 0x26, 0x7e, 0x12, 0xe2, 0xbf, 0x20,
   511  	0xef, 0xae, 0x13, 0x3b, 0x85, 0x8a, 0x03, 0x97, 0xc4, 0x6f, 0xc6, 0x33, 0x9e, 0xf7, 0xde, 0xec,
   512  	0xc2, 0x01, 0x5d, 0xd1, 0xa5, 0x14, 0x23, 0xfd, 0x37, 0x4c, 0x52, 0x2e, 0x39, 0xaa, 0x6b, 0x14,
   513  	0xfc, 0xb2, 0xa0, 0xf3, 0x29, 0x9b, 0x2d, 0x98, 0xb8, 0xc2, 0xf4, 0x6b, 0x46, 0x85, 0x44, 0x5d,
   514  	0x70, 0x25, 0x4f, 0x58, 0xe8, 0x5b, 0x7d, 0x6b, 0xb0, 0x87, 0x35, 0x40, 0x6f, 0xa1, 0x11, 0x53,
   515  	0x49, 0xe6, 0x44, 0x12, 0xdf, 0xee, 0x3b, 0x83, 0xe6, 0xf8, 0xf1, 0xd0, 0x74, 0xac, 0xd6, 0x0f,
   516  	0x3f, 0x9a, 0xd7, 0x26, 0x4b, 0x99, 0xae, 0xf1, 0xa6, 0x0a, 0xf9, 0xe0, 0x25, 0x64, 0xbd, 0xe0,
   517  	0x64, 0xee, 0x3b, 0x7d, 0x6b, 0xd0, 0xc2, 0x05, 0x44, 0x0f, 0x60, 0x4f, 0xb2, 0x98, 0x0a, 0x49,
   518  	0xe2, 0xc4, 0xaf, 0xf5, 0xad, 0x81, 0x83, 0xb7, 0x81, 0xde, 0x09, 0xb4, 0x2b, 0x2d, 0xd1, 0x2d,
   519  	0x70, 0x22, 0xba, 0x36, 0xe3, 0xe5, 0x8f, 0xf9, 0xc8, 0x2b, 0xb2, 0xc8, 0xa8, 0x6f, 0xeb, 0x91,
   520  	0x15, 0x38, 0xb6, 0xdf, 0x58, 0xc1, 0x6d, 0xd8, 0xdf, 0x8c, 0x27, 0x12, 0xbe, 0x14, 0x34, 0xf8,
   521  	0x61, 0x41, 0xe7, 0x3d, 0x5f, 0x8a, 0x2c, 0xa6, 0x25, 0xca, 0x97, 0x29, 0xcf, 0x92, 0x82, 0xb2,
   522  	0x02, 0x5b, 0x21, 0xec, 0xb2, 0x10, 0x87, 0x50, 0xe7, 0x17, 0x17, 0x82, 0x4a, 0xc5, 0xc2, 0xc1,
   523  	0x06, 0xa1, 0x7b, 0xd0, 0x20, 0x99, 0xe4, 0x53, 0x12, 0x46, 0x8a, 0x43, 0x03, 0x7b, 0x39, 0x3e,
   524  	0x0d, 0x23, 0x95, 0x0a, 0xa3, 0xe9, 0x37, 0xc2, 0xa4, 0xef, 0xaa, 0x22, 0x8f, 0x84, 0xd1, 0x39,
   525  	0x61, 0x12, 0x3d, 0x84, 0x66, 0x4a, 0x65, 0xba, 0x9e, 0x2e, 0x58, 0xcc, 0xa4, 0x5f, 0x57, 0x59,
   526  	0x50, 0xa1, 0x0f, 0x79, 0x24, 0xf8, 0x69, 0x81, 0x3b, 0xc9, 0x75, 0x46, 0x1d, 0xb0, 0xd9, 0xdc,
   527  	0x4c, 0x68, 0xb3, 0xf9, 0x5f, 0xc6, 0x7b, 0x5d, 0xf2, 0xc9, 0x51, 0x3e, 0xdd, 0x2f, 0x7c, 0x52,
   528  	0x6d, 0xfe, 0xc5, 0x9e, 0xda, 0x0d, 0xf6, 0xb8, 0xff, 0xd5, 0x9e, 0xcf, 0xd0, 0xc4, 0x94, 0xcc,
   529  	0x6f, 0x5e, 0xbd, 0x2e, 0xb8, 0x5a, 0x9d, 0xbc, 0xbc, 0x86, 0x35, 0xd8, 0xf1, 0xa1, 0x56, 0xf8,
   530  	0x10, 0xbc, 0x84, 0x96, 0x6e, 0xa9, 0xed, 0x46, 0x4f, 0xc0, 0xec, 0xba, 0x6f, 0x29, 0x39, 0xda,
   531  	0x15, 0x39, 0x70, 0x71, 0x10, 0x26, 0xd0, 0x3a, 0x4f, 0x99, 0xdc, 0xac, 0xc4, 0x23, 0x70, 0x55,
   532  	0x46, 0x8d, 0x72, 0xad, 0x4a, 0xe7, 0x72, 0xaa, 0x52, 0x2e, 0xd4, 0x5c, 0x0e, 0xce, 0x1f, 0x83,
   533  	0x7d, 0x68, 0x9b, 0x36, 0x66, 0xdb, 0x5e, 0x01, 0x9c, 0x86, 0x51, 0xd1, 0x75, 0xd7, 0x43, 0x1f,
   534  	0x3c, 0x91, 0x85, 0x21, 0x15, 0x42, 0x35, 0x69, 0xe0, 0x02, 0x8e, 0xbf, 0x43, 0xfd, 0x4c, 0xa6,
   535  	0x94, 0xc4, 0xe8, 0x18, 0x3c, 0xb3, 0xc2, 0xe8, 0xf0, 0xcf, 0x47, 0xae, 0x77, 0xf7, 0x5a, 0xdc,
   536  	0x90, 0x1f, 0x83, 0x67, 0x56, 0x7d, 0x5b, 0x5b, 0xdd, 0xfd, 0x5e, 0x95, 0xd9, 0x33, 0x6b, 0x9c,
   537  	0x80, 0x7b, 0x26, 0x79, 0x4a, 0xd1, 0x73, 0xa8, 0xe5, 0x4a, 0xa2, 0x83, 0xe2, 0x8d, 0x92, 0x55,
   538  	0xbd, 0x6e, 0x35, 0x68, 0xbe, 0xf7, 0x02, 0x5c, 0x45, 0x1f, 0x6d, 0xd2, 0x65, 0x51, 0x7b, 0x77,
   539  	0x76, 0xa2, 0xba, 0xea, 0xdd, 0xf0, 0xcb, 0xd3, 0x4b, 0x26, 0xaf, 0xb2, 0xd9, 0x30, 0xe4, 0xf1,
   540  	0x28, 0x66, 0x61, 0xca, 0xcd, 0xef, 0xea, 0x68, 0xa4, 0xee, 0x2b, 0x7d, 0x79, 0x9d, 0xe8, 0xea,
   541  	0x59, 0x5d, 0xc5, 0x8e, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x87, 0x7d, 0x33, 0xda, 0x04,
   542  	0x00, 0x00,
   543  }
   544  
   545  // Reference imports to suppress errors if they are not otherwise used.
   546  var _ context.Context
   547  var _ grpc.ClientConn
   548  
   549  // This is a compile-time assertion to ensure that this generated file
   550  // is compatible with the grpc package it is being compiled against.
   551  const _ = grpc.SupportPackageIsVersion4
   552  
   553  // StreamClient is the client API for Stream service.
   554  //
   555  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   556  type StreamClient interface {
   557  	Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
   558  	Consume(ctx context.Context, in *ConsumeRequest, opts ...grpc.CallOption) (Stream_ConsumeClient, error)
   559  }
   560  
   561  type streamClient struct {
   562  	cc *grpc.ClientConn
   563  }
   564  
   565  func NewStreamClient(cc *grpc.ClientConn) StreamClient {
   566  	return &streamClient{cc}
   567  }
   568  
   569  func (c *streamClient) Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error) {
   570  	out := new(PublishResponse)
   571  	err := c.cc.Invoke(ctx, "/events.Stream/Publish", in, out, opts...)
   572  	if err != nil {
   573  		return nil, err
   574  	}
   575  	return out, nil
   576  }
   577  
   578  func (c *streamClient) Consume(ctx context.Context, in *ConsumeRequest, opts ...grpc.CallOption) (Stream_ConsumeClient, error) {
   579  	stream, err := c.cc.NewStream(ctx, &_Stream_serviceDesc.Streams[0], "/events.Stream/Consume", opts...)
   580  	if err != nil {
   581  		return nil, err
   582  	}
   583  	x := &streamConsumeClient{stream}
   584  	if err := x.ClientStream.SendMsg(in); err != nil {
   585  		return nil, err
   586  	}
   587  	if err := x.ClientStream.CloseSend(); err != nil {
   588  		return nil, err
   589  	}
   590  	return x, nil
   591  }
   592  
   593  type Stream_ConsumeClient interface {
   594  	Recv() (*Event, error)
   595  	grpc.ClientStream
   596  }
   597  
   598  type streamConsumeClient struct {
   599  	grpc.ClientStream
   600  }
   601  
   602  func (x *streamConsumeClient) Recv() (*Event, error) {
   603  	m := new(Event)
   604  	if err := x.ClientStream.RecvMsg(m); err != nil {
   605  		return nil, err
   606  	}
   607  	return m, nil
   608  }
   609  
   610  // StreamServer is the server API for Stream service.
   611  type StreamServer interface {
   612  	Publish(context.Context, *PublishRequest) (*PublishResponse, error)
   613  	Consume(*ConsumeRequest, Stream_ConsumeServer) error
   614  }
   615  
   616  func RegisterStreamServer(s *grpc.Server, srv StreamServer) {
   617  	s.RegisterService(&_Stream_serviceDesc, srv)
   618  }
   619  
   620  func _Stream_Publish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   621  	in := new(PublishRequest)
   622  	if err := dec(in); err != nil {
   623  		return nil, err
   624  	}
   625  	if interceptor == nil {
   626  		return srv.(StreamServer).Publish(ctx, in)
   627  	}
   628  	info := &grpc.UnaryServerInfo{
   629  		Server:     srv,
   630  		FullMethod: "/events.Stream/Publish",
   631  	}
   632  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   633  		return srv.(StreamServer).Publish(ctx, req.(*PublishRequest))
   634  	}
   635  	return interceptor(ctx, in, info, handler)
   636  }
   637  
   638  func _Stream_Consume_Handler(srv interface{}, stream grpc.ServerStream) error {
   639  	m := new(ConsumeRequest)
   640  	if err := stream.RecvMsg(m); err != nil {
   641  		return err
   642  	}
   643  	return srv.(StreamServer).Consume(m, &streamConsumeServer{stream})
   644  }
   645  
   646  type Stream_ConsumeServer interface {
   647  	Send(*Event) error
   648  	grpc.ServerStream
   649  }
   650  
   651  type streamConsumeServer struct {
   652  	grpc.ServerStream
   653  }
   654  
   655  func (x *streamConsumeServer) Send(m *Event) error {
   656  	return x.ServerStream.SendMsg(m)
   657  }
   658  
   659  var _Stream_serviceDesc = grpc.ServiceDesc{
   660  	ServiceName: "events.Stream",
   661  	HandlerType: (*StreamServer)(nil),
   662  	Methods: []grpc.MethodDesc{
   663  		{
   664  			MethodName: "Publish",
   665  			Handler:    _Stream_Publish_Handler,
   666  		},
   667  	},
   668  	Streams: []grpc.StreamDesc{
   669  		{
   670  			StreamName:    "Consume",
   671  			Handler:       _Stream_Consume_Handler,
   672  			ServerStreams: true,
   673  		},
   674  	},
   675  	Metadata: "events/events.proto",
   676  }
   677  
   678  // StoreClient is the client API for Store service.
   679  //
   680  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   681  type StoreClient interface {
   682  	Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
   683  	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
   684  }
   685  
   686  type storeClient struct {
   687  	cc *grpc.ClientConn
   688  }
   689  
   690  func NewStoreClient(cc *grpc.ClientConn) StoreClient {
   691  	return &storeClient{cc}
   692  }
   693  
   694  func (c *storeClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) {
   695  	out := new(ReadResponse)
   696  	err := c.cc.Invoke(ctx, "/events.Store/Read", in, out, opts...)
   697  	if err != nil {
   698  		return nil, err
   699  	}
   700  	return out, nil
   701  }
   702  
   703  func (c *storeClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) {
   704  	out := new(WriteResponse)
   705  	err := c.cc.Invoke(ctx, "/events.Store/Write", in, out, opts...)
   706  	if err != nil {
   707  		return nil, err
   708  	}
   709  	return out, nil
   710  }
   711  
   712  // StoreServer is the server API for Store service.
   713  type StoreServer interface {
   714  	Read(context.Context, *ReadRequest) (*ReadResponse, error)
   715  	Write(context.Context, *WriteRequest) (*WriteResponse, error)
   716  }
   717  
   718  func RegisterStoreServer(s *grpc.Server, srv StoreServer) {
   719  	s.RegisterService(&_Store_serviceDesc, srv)
   720  }
   721  
   722  func _Store_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   723  	in := new(ReadRequest)
   724  	if err := dec(in); err != nil {
   725  		return nil, err
   726  	}
   727  	if interceptor == nil {
   728  		return srv.(StoreServer).Read(ctx, in)
   729  	}
   730  	info := &grpc.UnaryServerInfo{
   731  		Server:     srv,
   732  		FullMethod: "/events.Store/Read",
   733  	}
   734  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   735  		return srv.(StoreServer).Read(ctx, req.(*ReadRequest))
   736  	}
   737  	return interceptor(ctx, in, info, handler)
   738  }
   739  
   740  func _Store_Write_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   741  	in := new(WriteRequest)
   742  	if err := dec(in); err != nil {
   743  		return nil, err
   744  	}
   745  	if interceptor == nil {
   746  		return srv.(StoreServer).Write(ctx, in)
   747  	}
   748  	info := &grpc.UnaryServerInfo{
   749  		Server:     srv,
   750  		FullMethod: "/events.Store/Write",
   751  	}
   752  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   753  		return srv.(StoreServer).Write(ctx, req.(*WriteRequest))
   754  	}
   755  	return interceptor(ctx, in, info, handler)
   756  }
   757  
   758  var _Store_serviceDesc = grpc.ServiceDesc{
   759  	ServiceName: "events.Store",
   760  	HandlerType: (*StoreServer)(nil),
   761  	Methods: []grpc.MethodDesc{
   762  		{
   763  			MethodName: "Read",
   764  			Handler:    _Store_Read_Handler,
   765  		},
   766  		{
   767  			MethodName: "Write",
   768  			Handler:    _Store_Write_Handler,
   769  		},
   770  	},
   771  	Streams:  []grpc.StreamDesc{},
   772  	Metadata: "events/events.proto",
   773  }