484 lines
17 KiB
Go
484 lines
17 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.31.0
|
|
// protoc v4.24.4
|
|
// source: events.proto
|
|
|
|
package cqrs_test
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Status int32
|
|
|
|
const (
|
|
Status_STATUS_UNSPECIFIED Status = 0
|
|
Status_ACTIVE Status = 1
|
|
Status_DELETED Status = 2
|
|
)
|
|
|
|
// Enum value maps for Status.
|
|
var (
|
|
Status_name = map[int32]string{
|
|
0: "STATUS_UNSPECIFIED",
|
|
1: "ACTIVE",
|
|
2: "DELETED",
|
|
}
|
|
Status_value = map[string]int32{
|
|
"STATUS_UNSPECIFIED": 0,
|
|
"ACTIVE": 1,
|
|
"DELETED": 2,
|
|
}
|
|
)
|
|
|
|
func (x Status) Enum() *Status {
|
|
p := new(Status)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Status) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Status) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_events_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Status) Type() protoreflect.EnumType {
|
|
return &file_events_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Status) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Status.Descriptor instead.
|
|
func (Status) EnumDescriptor() ([]byte, []int) {
|
|
return file_events_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type TestProtobufLegacyEvent struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
When *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=when,proto3" json:"when,omitempty"`
|
|
}
|
|
|
|
func (x *TestProtobufLegacyEvent) Reset() {
|
|
*x = TestProtobufLegacyEvent{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_events_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *TestProtobufLegacyEvent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TestProtobufLegacyEvent) ProtoMessage() {}
|
|
|
|
func (x *TestProtobufLegacyEvent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_events_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 TestProtobufLegacyEvent.ProtoReflect.Descriptor instead.
|
|
func (*TestProtobufLegacyEvent) Descriptor() ([]byte, []int) {
|
|
return file_events_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *TestProtobufLegacyEvent) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TestProtobufLegacyEvent) GetWhen() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.When
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SubEvent struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
|
|
Flags map[string]bool `protobuf:"bytes,2,rep,name=flags,proto3" json:"flags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (x *SubEvent) Reset() {
|
|
*x = SubEvent{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_events_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SubEvent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubEvent) ProtoMessage() {}
|
|
|
|
func (x *SubEvent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_events_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 SubEvent.ProtoReflect.Descriptor instead.
|
|
func (*SubEvent) Descriptor() ([]byte, []int) {
|
|
return file_events_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *SubEvent) GetTags() []string {
|
|
if x != nil {
|
|
return x.Tags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SubEvent) GetFlags() map[string]bool {
|
|
if x != nil {
|
|
return x.Flags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TestComplexProtobufEvent struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
When *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=when,proto3" json:"when,omitempty"`
|
|
// Complex fields to test edge cases
|
|
NestedMap map[string]*SubEvent `protobuf:"bytes,4,rep,name=nested_map,json=nestedMap,proto3" json:"nested_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
Events []*SubEvent `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"`
|
|
// Types that are assignable to Result:
|
|
//
|
|
// *TestComplexProtobufEvent_Success
|
|
// *TestComplexProtobufEvent_Error
|
|
// *TestComplexProtobufEvent_Fallback
|
|
Result isTestComplexProtobufEvent_Result `protobuf_oneof:"result"`
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) Reset() {
|
|
*x = TestComplexProtobufEvent{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_events_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TestComplexProtobufEvent) ProtoMessage() {}
|
|
|
|
func (x *TestComplexProtobufEvent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_events_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 TestComplexProtobufEvent.ProtoReflect.Descriptor instead.
|
|
func (*TestComplexProtobufEvent) Descriptor() ([]byte, []int) {
|
|
return file_events_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) GetWhen() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.When
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) GetNestedMap() map[string]*SubEvent {
|
|
if x != nil {
|
|
return x.NestedMap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) GetEvents() []*SubEvent {
|
|
if x != nil {
|
|
return x.Events
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TestComplexProtobufEvent) GetResult() isTestComplexProtobufEvent_Result {
|
|
if m != nil {
|
|
return m.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) GetSuccess() *SubEvent {
|
|
if x, ok := x.GetResult().(*TestComplexProtobufEvent_Success); ok {
|
|
return x.Success
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) GetError() string {
|
|
if x, ok := x.GetResult().(*TestComplexProtobufEvent_Error); ok {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TestComplexProtobufEvent) GetFallback() Status {
|
|
if x, ok := x.GetResult().(*TestComplexProtobufEvent_Fallback); ok {
|
|
return x.Fallback
|
|
}
|
|
return Status_STATUS_UNSPECIFIED
|
|
}
|
|
|
|
type isTestComplexProtobufEvent_Result interface {
|
|
isTestComplexProtobufEvent_Result()
|
|
}
|
|
|
|
type TestComplexProtobufEvent_Success struct {
|
|
Success *SubEvent `protobuf:"bytes,6,opt,name=success,proto3,oneof"`
|
|
}
|
|
|
|
type TestComplexProtobufEvent_Error struct {
|
|
Error string `protobuf:"bytes,7,opt,name=error,proto3,oneof"`
|
|
}
|
|
|
|
type TestComplexProtobufEvent_Fallback struct {
|
|
Fallback Status `protobuf:"varint,8,opt,name=fallback,proto3,enum=cqrs_test.Status,oneof"`
|
|
}
|
|
|
|
func (*TestComplexProtobufEvent_Success) isTestComplexProtobufEvent_Result() {}
|
|
|
|
func (*TestComplexProtobufEvent_Error) isTestComplexProtobufEvent_Result() {}
|
|
|
|
func (*TestComplexProtobufEvent_Fallback) isTestComplexProtobufEvent_Result() {}
|
|
|
|
var File_events_proto protoreflect.FileDescriptor
|
|
|
|
var file_events_proto_rawDesc = []byte{
|
|
0x0a, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09,
|
|
0x63, 0x71, 0x72, 0x73, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
|
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
|
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, 0x0a, 0x17, 0x54, 0x65,
|
|
0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79,
|
|
0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x18, 0x03, 0x20,
|
|
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
|
|
0x04, 0x77, 0x68, 0x65, 0x6e, 0x22, 0x8e, 0x01, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x45, 0x76, 0x65,
|
|
0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
|
|
0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18,
|
|
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x71, 0x72, 0x73, 0x5f, 0x74, 0x65, 0x73,
|
|
0x74, 0x2e, 0x53, 0x75, 0x62, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x6c, 0x61, 0x67, 0x73,
|
|
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x1a, 0x38, 0x0a, 0x0a,
|
|
0x46, 0x6c, 0x61, 0x67, 0x73, 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, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c,
|
|
0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcb, 0x03, 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74, 0x43,
|
|
0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x45, 0x76,
|
|
0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2e, 0x0a, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x18,
|
|
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
|
0x70, 0x52, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x12, 0x51, 0x0a, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65,
|
|
0x64, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x63, 0x71,
|
|
0x72, 0x73, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70,
|
|
0x6c, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x45, 0x76, 0x65, 0x6e, 0x74,
|
|
0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
|
0x09, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x61, 0x70, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x76,
|
|
0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x71, 0x72,
|
|
0x73, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x75, 0x62, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52,
|
|
0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65,
|
|
0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x71, 0x72, 0x73, 0x5f,
|
|
0x74, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x75, 0x62, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52,
|
|
0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f,
|
|
0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
|
|
0x12, 0x2f, 0x0a, 0x08, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x08, 0x20, 0x01,
|
|
0x28, 0x0e, 0x32, 0x11, 0x2e, 0x63, 0x71, 0x72, 0x73, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x53,
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x08, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
|
|
0x6b, 0x1a, 0x51, 0x0a, 0x0e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x61, 0x70, 0x45, 0x6e,
|
|
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x71, 0x72, 0x73, 0x5f, 0x74, 0x65, 0x73, 0x74,
|
|
0x2e, 0x53, 0x75, 0x62, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
|
0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x4a, 0x04,
|
|
0x08, 0x17, 0x10, 0x1f, 0x2a, 0x39, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16,
|
|
0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
|
|
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45,
|
|
0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x42,
|
|
0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x63, 0x71, 0x72, 0x73, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x62, 0x06,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_events_proto_rawDescOnce sync.Once
|
|
file_events_proto_rawDescData = file_events_proto_rawDesc
|
|
)
|
|
|
|
func file_events_proto_rawDescGZIP() []byte {
|
|
file_events_proto_rawDescOnce.Do(func() {
|
|
file_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_events_proto_rawDescData)
|
|
})
|
|
return file_events_proto_rawDescData
|
|
}
|
|
|
|
var file_events_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_events_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_events_proto_goTypes = []interface{}{
|
|
(Status)(0), // 0: cqrs_test.Status
|
|
(*TestProtobufLegacyEvent)(nil), // 1: cqrs_test.TestProtobufLegacyEvent
|
|
(*SubEvent)(nil), // 2: cqrs_test.SubEvent
|
|
(*TestComplexProtobufEvent)(nil), // 3: cqrs_test.TestComplexProtobufEvent
|
|
nil, // 4: cqrs_test.SubEvent.FlagsEntry
|
|
nil, // 5: cqrs_test.TestComplexProtobufEvent.NestedMapEntry
|
|
(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
|
|
}
|
|
var file_events_proto_depIdxs = []int32{
|
|
6, // 0: cqrs_test.TestProtobufLegacyEvent.when:type_name -> google.protobuf.Timestamp
|
|
4, // 1: cqrs_test.SubEvent.flags:type_name -> cqrs_test.SubEvent.FlagsEntry
|
|
6, // 2: cqrs_test.TestComplexProtobufEvent.when:type_name -> google.protobuf.Timestamp
|
|
5, // 3: cqrs_test.TestComplexProtobufEvent.nested_map:type_name -> cqrs_test.TestComplexProtobufEvent.NestedMapEntry
|
|
2, // 4: cqrs_test.TestComplexProtobufEvent.events:type_name -> cqrs_test.SubEvent
|
|
2, // 5: cqrs_test.TestComplexProtobufEvent.success:type_name -> cqrs_test.SubEvent
|
|
0, // 6: cqrs_test.TestComplexProtobufEvent.fallback:type_name -> cqrs_test.Status
|
|
2, // 7: cqrs_test.TestComplexProtobufEvent.NestedMapEntry.value:type_name -> cqrs_test.SubEvent
|
|
8, // [8:8] is the sub-list for method output_type
|
|
8, // [8:8] is the sub-list for method input_type
|
|
8, // [8:8] is the sub-list for extension type_name
|
|
8, // [8:8] is the sub-list for extension extendee
|
|
0, // [0:8] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_events_proto_init() }
|
|
func file_events_proto_init() {
|
|
if File_events_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*TestProtobufLegacyEvent); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*SubEvent); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*TestComplexProtobufEvent); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
file_events_proto_msgTypes[2].OneofWrappers = []interface{}{
|
|
(*TestComplexProtobufEvent_Success)(nil),
|
|
(*TestComplexProtobufEvent_Error)(nil),
|
|
(*TestComplexProtobufEvent_Fallback)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_events_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_events_proto_goTypes,
|
|
DependencyIndexes: file_events_proto_depIdxs,
|
|
EnumInfos: file_events_proto_enumTypes,
|
|
MessageInfos: file_events_proto_msgTypes,
|
|
}.Build()
|
|
File_events_proto = out.File
|
|
file_events_proto_rawDesc = nil
|
|
file_events_proto_goTypes = nil
|
|
file_events_proto_depIdxs = nil
|
|
}
|