diff --git a/pkg/sql/create_database.go b/pkg/sql/create_database.go index 1570012ee2c5..4b3ee3b81052 100644 --- a/pkg/sql/create_database.go +++ b/pkg/sql/create_database.go @@ -21,6 +21,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sem/tree" "github.com/cockroachdb/cockroach/pkg/sql/sqltelemetry" "github.com/cockroachdb/cockroach/pkg/util/errorutil/unimplemented" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" ) type createDatabaseNode struct { @@ -107,18 +108,10 @@ func (n *createDatabaseNode) startExec(params runParams) error { if created { // Log Create Database event. This is an auditable log event and is // recorded in the same transaction as the table descriptor update. - if err := MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - params.ctx, - params.p.txn, - EventLogCreateDatabase, - int32(desc.GetID()), - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - struct { - DatabaseName string - Statement string - User string - }{n.n.Name.String(), n.n.String(), params.p.User().Normalized()}, - ); err != nil { + if err := params.p.logEvent(params.ctx, desc.GetID(), + &eventpb.CreateDatabase{ + DatabaseName: n.n.Name.String(), + }); err != nil { return err } } diff --git a/pkg/sql/drop_database.go b/pkg/sql/drop_database.go index d99b463bf72c..1f1226acebef 100644 --- a/pkg/sql/drop_database.go +++ b/pkg/sql/drop_database.go @@ -30,6 +30,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sessiondata" "github.com/cockroachdb/cockroach/pkg/sql/sqltelemetry" "github.com/cockroachdb/cockroach/pkg/util/log" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/errors" ) @@ -195,19 +196,12 @@ func (n *dropDatabaseNode) startExec(params runParams) error { // Log Drop Database event. This is an auditable log event and is recorded // in the same transaction as the table descriptor update. - return MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - ctx, - p.txn, - EventLogDropDatabase, - int32(n.dbDesc.GetID()), - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - struct { - DatabaseName string - Statement string - User string - DroppedSchemaObjects []string - }{n.n.Name.String(), n.n.String(), p.User().Normalized(), n.d.droppedNames}, - ) + return p.logEvent(ctx, + n.dbDesc.GetID(), + &eventpb.DropDatabase{ + DatabaseName: n.n.Name.String(), + DroppedSchemaObjects: n.d.droppedNames, + }) } func (*dropDatabaseNode) Next(runParams) (bool, error) { return false, nil } diff --git a/pkg/sql/drop_table.go b/pkg/sql/drop_table.go index 280333578069..89f6d1c15cbc 100644 --- a/pkg/sql/drop_table.go +++ b/pkg/sql/drop_table.go @@ -26,6 +26,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sessiondata" "github.com/cockroachdb/cockroach/pkg/sql/sqltelemetry" "github.com/cockroachdb/cockroach/pkg/util/errorutil/unimplemented" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/cockroach/pkg/util/timeutil" "github.com/cockroachdb/errors" ) @@ -134,20 +135,14 @@ func (n *dropTableNode) startExec(params runParams) error { // Log a Drop Table event for this table. This is an auditable log event // and is recorded in the same transaction as the table descriptor // update. - if err := MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - ctx, - params.p.txn, - EventLogDropTable, - int32(droppedDesc.ID), - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - struct { - TableName string - Statement string - User string - CascadeDroppedViews []string - }{toDel.tn.FQString(), n.n.String(), - params.p.User().Normalized(), droppedViews}, - ); err != nil { + if err := params.p.logEvent(params.ctx, + droppedDesc.ID, + &eventpb.DropTable{ + TableName: toDel.tn.FQString(), + // TODO(knz): the droppedViews are insufficiently qualified + // See: https://github.com/cockroachdb/cockroach/issues/57735 + CascadeDroppedViews: droppedViews, + }); err != nil { return err } } diff --git a/pkg/sql/drop_type.go b/pkg/sql/drop_type.go index 41295a35a428..387f2123fc30 100644 --- a/pkg/sql/drop_type.go +++ b/pkg/sql/drop_type.go @@ -24,6 +24,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sem/tree" "github.com/cockroachdb/cockroach/pkg/sql/sqltelemetry" "github.com/cockroachdb/cockroach/pkg/util/errorutil/unimplemented" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/errors" ) @@ -142,18 +143,9 @@ func (n *dropTypeNode) startExec(params runParams) error { return err } // Log a Drop Type event. - if err := MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - params.ctx, - params.p.txn, - EventLogDropType, - int32(typ.ID), - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - struct { - TypeName string - Statement string - User string - }{typ.Name, tree.AsStringWithFQNames(n.n, params.Ann()), params.p.User().Normalized()}, - ); err != nil { + // TODO(knz): This logging is imperfect, see this issue: + // https://github.com/cockroachdb/cockroach/issues/57734 + if err := params.p.logEvent(params.ctx, typ.ID, &eventpb.DropType{TypeName: typ.Name}); err != nil { return err } } diff --git a/pkg/sql/drop_view.go b/pkg/sql/drop_view.go index 3c0d40ada742..cde7d390cb29 100644 --- a/pkg/sql/drop_view.go +++ b/pkg/sql/drop_view.go @@ -22,6 +22,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sqlerrors" "github.com/cockroachdb/cockroach/pkg/sql/sqltelemetry" "github.com/cockroachdb/cockroach/pkg/util/log" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/errors" ) @@ -108,19 +109,11 @@ func (n *dropViewNode) startExec(params runParams) error { // Log a Drop View event for this table. This is an auditable log event // and is recorded in the same transaction as the table descriptor // update. - if err := MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - ctx, - params.p.txn, - EventLogDropView, - int32(droppedDesc.ID), - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - struct { - ViewName string - Statement string - User string - CascadeDroppedViews []string - }{toDel.tn.FQString(), n.n.String(), params.p.User().Normalized(), cascadeDroppedViews}, - ); err != nil { + if err := params.p.logEvent(ctx, + droppedDesc.ID, + &eventpb.DropView{ + ViewName: toDel.tn.FQString(), + CascadeDroppedViews: cascadeDroppedViews}); err != nil { return err } } diff --git a/pkg/sql/event_log.go b/pkg/sql/event_log.go index b3decc49b786..9512c9c570e4 100644 --- a/pkg/sql/event_log.go +++ b/pkg/sql/event_log.go @@ -15,7 +15,10 @@ import ( "encoding/json" "github.com/cockroachdb/cockroach/pkg/kv" + "github.com/cockroachdb/cockroach/pkg/sql/catalog/descpb" + "github.com/cockroachdb/cockroach/pkg/sql/sem/tree" "github.com/cockroachdb/cockroach/pkg/util/log" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/errors" ) @@ -176,6 +179,38 @@ func MakeEventLogger(execCfg *ExecutorConfig) EventLogger { return EventLogger{InternalExecutor: execCfg.InternalExecutor} } +// logEvent logs an event using an event logger derived from the current planner. +func (p *planner) logEvent( + ctx context.Context, descID descpb.ID, event eventpb.EventPayload, +) error { + // Compute the common fields from data already known to the planner. + ts := p.extendedEvalCtx.TxnTimestamp + sqlInstanceID := p.extendedEvalCtx.NodeID.SQLInstanceID() + user := p.User().Normalized() + stmt := tree.AsStringWithFQNames(p.stmt.AST, p.extendedEvalCtx.EvalContext.Annotations) + + // Inject the common fields into the payload provided by the caller. + event.CommonDetails().Timestamp = ts + sqlCommon, ok := event.(eventpb.EventWithCommonSQLPayload) + if !ok { + return errors.AssertionFailedf("unknown event type: %T", event) + } + m := sqlCommon.CommonSQLDetails() + m.Statement = stmt + m.User = user + m.InstanceID = int32(sqlInstanceID) + m.DescriptorID = uint32(descID) + + // Delegate the storing of the event to the regular event logic. + return MakeEventLogger(p.extendedEvalCtx.ExecCfg).InsertEventRecord( + ctx, + p.txn, + EventLogType(eventpb.GetEventName(event)), + int32(descID), + int32(sqlInstanceID), + event) +} + // InsertEventRecord inserts a single event into the event log as part of the // provided transaction. func (ev EventLogger) InsertEventRecord( diff --git a/pkg/sql/rename_database.go b/pkg/sql/rename_database.go index ff4bc48dd95f..649d3df5b9ae 100644 --- a/pkg/sql/rename_database.go +++ b/pkg/sql/rename_database.go @@ -28,6 +28,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sqlerrors" "github.com/cockroachdb/cockroach/pkg/util" "github.com/cockroachdb/cockroach/pkg/util/log" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/cockroach/pkg/util/sequence" "github.com/cockroachdb/errors" ) @@ -243,19 +244,12 @@ func (n *renameDatabaseNode) startExec(params runParams) error { // Log Rename Database event. This is an auditable log event and is recorded // in the same transaction as the table descriptor update. - return MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - ctx, - p.txn, - EventLogRenameDatabase, - int32(n.dbDesc.GetID()), - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - struct { - DatabaseName string - Statement string - User string - NewDatabaseName string - }{n.n.Name.String(), n.n.String(), p.User().Normalized(), n.newName}, - ) + return p.logEvent(ctx, + n.dbDesc.GetID(), + &eventpb.RenameDatabase{ + DatabaseName: n.n.Name.String(), + NewDatabaseName: n.newName, + }) } // isAllowedDependentDescInRename determines when rename database is allowed with diff --git a/pkg/sql/rename_table.go b/pkg/sql/rename_table.go index a87f2e9c2d4e..2b77c9249ce8 100644 --- a/pkg/sql/rename_table.go +++ b/pkg/sql/rename_table.go @@ -26,6 +26,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sem/tree" "github.com/cockroachdb/cockroach/pkg/sql/sqlerrors" "github.com/cockroachdb/cockroach/pkg/util/log" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/errors" ) @@ -257,19 +258,12 @@ func (n *renameTableNode) startExec(params runParams) error { // Log Rename Table event. This is an auditable log event and is recorded // in the same transaction as the table descriptor update. - return MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - params.ctx, - params.p.txn, - EventLogRenameTable, - int32(tableDesc.ID), - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - struct { - TableName string - Statement string - User string - NewTableName string - }{oldTn.FQString(), n.n.String(), params.p.User().Normalized(), newTn.FQString()}, - ) + return p.logEvent(ctx, + tableDesc.ID, + &eventpb.RenameTable{ + TableName: oldTn.FQString(), + NewTableName: newTn.FQString(), + }) } func (n *renameTableNode) Next(runParams) (bool, error) { return false, nil } diff --git a/pkg/sql/reparent_database.go b/pkg/sql/reparent_database.go index 5b53791c518e..9ff6a065f3eb 100644 --- a/pkg/sql/reparent_database.go +++ b/pkg/sql/reparent_database.go @@ -28,6 +28,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sem/tree" "github.com/cockroachdb/cockroach/pkg/sql/sqlerrors" "github.com/cockroachdb/cockroach/pkg/sql/sqltelemetry" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/cockroach/pkg/util/protoutil" "github.com/cockroachdb/errors" ) @@ -297,18 +298,12 @@ func (n *reparentDatabaseNode) startExec(params runParams) error { // Log Rename Database event. This is an auditable log event and is recorded // in the same transaction as the table descriptor update. - return MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - ctx, - p.txn, - EventLogConvertToSchema, - int32(n.db.ID), - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - struct { - DatabaseName string - NewDatabaseName string - User string - }{n.db.Name, n.newParent.Name, p.User().Normalized()}, - ) + return p.logEvent(ctx, + n.db.ID, + &eventpb.ConvertToSchema{ + DatabaseName: n.db.Name, + NewDatabaseParent: n.newParent.Name, + }) } func (n *reparentDatabaseNode) Next(params runParams) (bool, error) { return false, nil } diff --git a/pkg/sql/set_cluster_setting.go b/pkg/sql/set_cluster_setting.go index 2811ce56e9d3..249ad5d68cfc 100644 --- a/pkg/sql/set_cluster_setting.go +++ b/pkg/sql/set_cluster_setting.go @@ -36,6 +36,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/types" "github.com/cockroachdb/cockroach/pkg/util/humanizeutil" "github.com/cockroachdb/cockroach/pkg/util/log" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/cockroach/pkg/util/protoutil" "github.com/cockroachdb/cockroach/pkg/util/retry" "github.com/cockroachdb/errors" @@ -315,14 +316,12 @@ func (n *setClusterSettingNode) startExec(params runParams) error { telemetry.Inc(sqltelemetry.VecModeCounter(validatedExecMode.String())) } - return MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - ctx, - txn, - EventLogSetClusterSetting, + return params.p.logEvent(ctx, 0, /* no target */ - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - EventLogSetClusterSettingDetail{n.name, reportedValue, params.p.User().Normalized()}, - ) + &eventpb.SetClusterSetting{ + SettingName: n.name, + Value: reportedValue, + }) }); err != nil { return err } diff --git a/pkg/sql/set_zone_config.go b/pkg/sql/set_zone_config.go index 6a74b1180440..c64347cb2a01 100644 --- a/pkg/sql/set_zone_config.go +++ b/pkg/sql/set_zone_config.go @@ -35,6 +35,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sqltelemetry" "github.com/cockroachdb/cockroach/pkg/sql/types" "github.com/cockroachdb/cockroach/pkg/util/errorutil" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/cockroach/pkg/util/protoutil" "github.com/cockroachdb/errors" "github.com/gogo/protobuf/proto" @@ -274,7 +275,7 @@ func (n *setZoneConfigNode) startExec(params runParams) error { // We'll add back the missing newline below. yamlConfig = strings.TrimSpace(yamlConfig) } - var optionStr strings.Builder + var optionsStr []string var copyFromParentList []tree.Name if n.options != nil { // Set from var = value attributes. @@ -296,10 +297,7 @@ func (n *setZoneConfigNode) startExec(params runParams) error { inheritVal, expr := val.inheritValue, val.explicitValue if inheritVal { copyFromParentList = append(copyFromParentList, *name) - if optionStr.Len() > 0 { - optionStr.WriteString(", ") - } - fmt.Fprintf(&optionStr, "%s = COPY FROM PARENT", name) + optionsStr = append(optionsStr, fmt.Sprintf("%s = COPY FROM PARENT", name)) continue } datum, err := expr.Eval(params.EvalContext()) @@ -312,11 +310,7 @@ func (n *setZoneConfigNode) startExec(params runParams) error { } setter := supportedZoneConfigOptions[*name].setter setters = append(setters, func(c *zonepb.ZoneConfig) { setter(c, datum) }) - if optionStr.Len() > 0 { - optionStr.WriteString(", ") - } - fmt.Fprintf(&optionStr, "%s = %s", name, datum) - + optionsStr = append(optionsStr, fmt.Sprintf("%s = %s", name, datum)) } } @@ -677,31 +671,18 @@ func (n *setZoneConfigNode) startExec(params runParams) error { } // Record that the change has occurred for auditing. - var eventLogType EventLogType - info := struct { - Target string - Config string `json:",omitempty"` - Options string `json:",omitempty"` - User string - }{ + eventDetails := eventpb.ZoneConfigDetails{ Target: tree.AsStringWithFQNames(&zs, params.Ann()), Config: strings.TrimSpace(yamlConfig), - Options: optionStr.String(), - User: params.p.User().Normalized(), + Options: optionsStr, } + var info eventpb.EventPayload if deleteZone { - eventLogType = EventLogRemoveZoneConfig + info = &eventpb.RemoveZoneConfig{ZoneConfigDetails: eventDetails} } else { - eventLogType = EventLogSetZoneConfig - } - return MakeEventLogger(params.extendedEvalCtx.ExecCfg).InsertEventRecord( - params.ctx, - params.p.txn, - eventLogType, - int32(targetID), - int32(params.extendedEvalCtx.NodeID.SQLInstanceID()), - info, - ) + info = &eventpb.SetZoneConfig{ZoneConfigDetails: eventDetails} + } + return params.p.logEvent(params.ctx, targetID, info) } for _, zs := range specifiers { // Note(solon): Currently the zone configurations are applied serially for diff --git a/pkg/sql/truncate.go b/pkg/sql/truncate.go index 6ba47d98e425..95d9ca4e34c4 100644 --- a/pkg/sql/truncate.go +++ b/pkg/sql/truncate.go @@ -27,6 +27,7 @@ import ( "github.com/cockroachdb/cockroach/pkg/sql/sem/tree" "github.com/cockroachdb/cockroach/pkg/sql/sessiondata" "github.com/cockroachdb/cockroach/pkg/util/log" + "github.com/cockroachdb/cockroach/pkg/util/log/eventpb" "github.com/cockroachdb/cockroach/pkg/util/protoutil" "github.com/cockroachdb/cockroach/pkg/util/timeutil" "github.com/cockroachdb/errors" @@ -151,18 +152,11 @@ func (t *truncateNode) startExec(params runParams) error { } // Log a Truncate Table event for this table. - if err := MakeEventLogger(p.extendedEvalCtx.ExecCfg).InsertEventRecord( - ctx, - p.txn, - EventLogTruncateTable, - int32(id), - int32(p.extendedEvalCtx.NodeID.SQLInstanceID()), - struct { - TableName string - Statement string - User string - }{name, n.String(), p.User().Normalized()}, - ); err != nil { + if err := params.p.logEvent(ctx, + id, + &eventpb.TruncateTable{ + TableName: name, + }); err != nil { return err } } diff --git a/pkg/util/log/eventpb/events.go b/pkg/util/log/eventpb/events.go new file mode 100644 index 000000000000..320a1151405c --- /dev/null +++ b/pkg/util/log/eventpb/events.go @@ -0,0 +1,39 @@ +package eventpb + +import ( + "reflect" + "strings" +) + +// GetEventName retrieves the system.eventlog type name for the given payload. +func GetEventName(event EventPayload) string { + // This logic takes the type names and converts from CamelCase to snake_case. + typeName := reflect.TypeOf(event).Elem().Name() + var res strings.Builder + res.WriteByte(typeName[0] + 'a' - 'A') + for i := 1; i < len(typeName); i++ { + if typeName[i] >= 'A' && typeName[i] <= 'Z' { + res.WriteByte('_') + res.WriteByte(typeName[i] + 'a' - 'A') + } else { + res.WriteByte(typeName[i]) + } + } + return res.String() +} + +// EventPayload is implemented by CommonEventDetails. +type EventPayload interface { + CommonDetails() *CommonEventDetails +} + +// CommonDetails implements the EventWithCommonPayload interface. +func (m *CommonEventDetails) CommonDetails() *CommonEventDetails { return m } + +// EventWithCommonSQLPayload is implemented by CommonSQLEventDetails. +type EventWithCommonSQLPayload interface { + CommonSQLDetails() *CommonSQLEventDetails +} + +// CommonSQLDetails implements the EventWithCommonSQLPayload interface. +func (m *CommonSQLEventDetails) CommonSQLDetails() *CommonSQLEventDetails { return m } diff --git a/pkg/util/log/eventpb/events.pb.go b/pkg/util/log/eventpb/events.pb.go new file mode 100644 index 000000000000..b7216b05f19d --- /dev/null +++ b/pkg/util/log/eventpb/events.pb.go @@ -0,0 +1,16249 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: util/log/eventpb/events.proto + +package eventpb + +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" +import roachpb "github.com/cockroachdb/cockroach/pkg/roachpb" + +import time "time" +import github_com_cockroachdb_cockroach_pkg_util_uuid "github.com/cockroachdb/cockroach/pkg/util/uuid" + +import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + +import io "io" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +// CommonEventDetails contains the fields common to all events. +// +// Notes: +// - the fields time, nodeID, instanceID are omitted from the JSON +// output to preserve compatibility with the "info" columns in +// system.eventlog. +// - likewise, the entire CommonEventDetails payload is marked +// as embedded and its json tag is removed in every event log +// message before, to ensure that it appears inline in JSON, again +// for compatibility with system.eventlog. +// +// Beware: because this is marked inline in the individual events, +// care must be taken to not reuse field identifiers across the +// message types, otherwise the JSON conversions cannot work. +type CommonEventDetails struct { + // The timestamp of the event. + Timestamp time.Time `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"timestamp,omitempty"` +} + +func (m *CommonEventDetails) Reset() { *m = CommonEventDetails{} } +func (m *CommonEventDetails) String() string { return proto.CompactTextString(m) } +func (*CommonEventDetails) ProtoMessage() {} +func (*CommonEventDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{0} +} +func (m *CommonEventDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommonEventDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CommonEventDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonEventDetails.Merge(dst, src) +} +func (m *CommonEventDetails) XXX_Size() int { + return m.Size() +} +func (m *CommonEventDetails) XXX_DiscardUnknown() { + xxx_messageInfo_CommonEventDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonEventDetails proto.InternalMessageInfo + +// CommonSQLEventDetails contains the fields common to all +// SQL events. +// +// As above, the field is marked inline in the events below to +// preserve compatibility with system.eventlog. Likewise, because this +// is marked inline in the individual events, care must be taken to +// not reuse field identifiers across the message types, otherwise the +// JSON conversions cannot work. +type CommonSQLEventDetails struct { + Statement string `protobuf:"bytes,1,opt,name=statement,proto3" json:"statement,omitempty"` + // The user account that triggered the event. + User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + // The instance ID (not tenant ID) of the SQL server where the event was originated. + InstanceID int32 `protobuf:"varint,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + // The primary object descriptor affected by the operation. Set to zero for operations + // that don't affect descriptors. + DescriptorID uint32 `protobuf:"varint,4,opt,name=descriptor_id,json=descriptorId,proto3" json:"descriptor_id,omitempty"` +} + +func (m *CommonSQLEventDetails) Reset() { *m = CommonSQLEventDetails{} } +func (m *CommonSQLEventDetails) String() string { return proto.CompactTextString(m) } +func (*CommonSQLEventDetails) ProtoMessage() {} +func (*CommonSQLEventDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{1} +} +func (m *CommonSQLEventDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommonSQLEventDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CommonSQLEventDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonSQLEventDetails.Merge(dst, src) +} +func (m *CommonSQLEventDetails) XXX_Size() int { + return m.Size() +} +func (m *CommonSQLEventDetails) XXX_DiscardUnknown() { + xxx_messageInfo_CommonSQLEventDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonSQLEventDetails proto.InternalMessageInfo + +// CommonSQLPrivilegeEventDetails contains the fields copmmon to all +// grant/revoke events. +// +// As above, the field is marked inline in the events below to +// preserve compatibility with system.eventlog. Likewise, because this +// is marked inline in the individual events, care must be taken to +// not reuse field identifiers across the message types, otherwise the +// JSON conversions cannot work. +type CommonSQLPrivilegeEventDetails struct { + Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` + Privileges []string `protobuf:"bytes,2,rep,name=privileges,proto3" json:"privileges,omitempty"` +} + +func (m *CommonSQLPrivilegeEventDetails) Reset() { *m = CommonSQLPrivilegeEventDetails{} } +func (m *CommonSQLPrivilegeEventDetails) String() string { return proto.CompactTextString(m) } +func (*CommonSQLPrivilegeEventDetails) ProtoMessage() {} +func (*CommonSQLPrivilegeEventDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{2} +} +func (m *CommonSQLPrivilegeEventDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommonSQLPrivilegeEventDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CommonSQLPrivilegeEventDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonSQLPrivilegeEventDetails.Merge(dst, src) +} +func (m *CommonSQLPrivilegeEventDetails) XXX_Size() int { + return m.Size() +} +func (m *CommonSQLPrivilegeEventDetails) XXX_DiscardUnknown() { + xxx_messageInfo_CommonSQLPrivilegeEventDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonSQLPrivilegeEventDetails proto.InternalMessageInfo + +// CommonNodeEventDetails contains the fields common to all +// node-level events. +// +// As above, the field is marked inline in the events below to +// preserve compatibility with system.eventlog. Likewise, because this +// is marked inline in the individual events, care must be taken to +// not reuse field identifiers across the message types, otherwise the +// JSON conversions cannot work. +type CommonNodeEventDetails struct { + // The node ID where the event was originated. + NodeID int32 `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:",omitempty"` + // The descriptor for the node. + Descriptor_ *roachpb.NodeDescriptor `protobuf:"bytes,2,opt,name=descriptor,proto3" json:"descriptor,omitempty"` + // The cluster ID for the event. + ClusterID github_com_cockroachdb_cockroach_pkg_util_uuid.UUID `protobuf:"bytes,3,opt,name=cluster_id,json=clusterId,proto3,customtype=github.com/cockroachdb/cockroach/pkg/util/uuid.UUID" json:"cluster_id"` + StartedAt int64 `protobuf:"varint,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + LastUp int64 `protobuf:"varint,5,opt,name=last_up,json=lastUp,proto3" json:"last_up,omitempty"` +} + +func (m *CommonNodeEventDetails) Reset() { *m = CommonNodeEventDetails{} } +func (m *CommonNodeEventDetails) String() string { return proto.CompactTextString(m) } +func (*CommonNodeEventDetails) ProtoMessage() {} +func (*CommonNodeEventDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{3} +} +func (m *CommonNodeEventDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommonNodeEventDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CommonNodeEventDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonNodeEventDetails.Merge(dst, src) +} +func (m *CommonNodeEventDetails) XXX_Size() int { + return m.Size() +} +func (m *CommonNodeEventDetails) XXX_DiscardUnknown() { + xxx_messageInfo_CommonNodeEventDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonNodeEventDetails proto.InternalMessageInfo + +// CreateDatabase is recorded when a database is created. +type CreateDatabase struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + DatabaseName string `protobuf:"bytes,3,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` +} + +func (m *CreateDatabase) Reset() { *m = CreateDatabase{} } +func (m *CreateDatabase) String() string { return proto.CompactTextString(m) } +func (*CreateDatabase) ProtoMessage() {} +func (*CreateDatabase) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{4} +} +func (m *CreateDatabase) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateDatabase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CreateDatabase) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDatabase.Merge(dst, src) +} +func (m *CreateDatabase) XXX_Size() int { + return m.Size() +} +func (m *CreateDatabase) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDatabase.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDatabase proto.InternalMessageInfo + +// DropDatabase is recorded when a database is dropped. +type DropDatabase struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + DatabaseName string `protobuf:"bytes,3,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` + DroppedSchemaObjects []string `protobuf:"bytes,4,rep,name=dropped_schema_objects,json=droppedSchemaObjects,proto3" json:"dropped_schema_objects,omitempty"` +} + +func (m *DropDatabase) Reset() { *m = DropDatabase{} } +func (m *DropDatabase) String() string { return proto.CompactTextString(m) } +func (*DropDatabase) ProtoMessage() {} +func (*DropDatabase) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{5} +} +func (m *DropDatabase) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DropDatabase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *DropDatabase) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropDatabase.Merge(dst, src) +} +func (m *DropDatabase) XXX_Size() int { + return m.Size() +} +func (m *DropDatabase) XXX_DiscardUnknown() { + xxx_messageInfo_DropDatabase.DiscardUnknown(m) +} + +var xxx_messageInfo_DropDatabase proto.InternalMessageInfo + +// RenameDatabase is recorded when a database is renamed. +type RenameDatabase struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + DatabaseName string `protobuf:"bytes,3,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` + NewDatabaseName string `protobuf:"bytes,4,opt,name=new_database_name,json=newDatabaseName,proto3" json:"new_database_name,omitempty"` +} + +func (m *RenameDatabase) Reset() { *m = RenameDatabase{} } +func (m *RenameDatabase) String() string { return proto.CompactTextString(m) } +func (*RenameDatabase) ProtoMessage() {} +func (*RenameDatabase) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{6} +} +func (m *RenameDatabase) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RenameDatabase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *RenameDatabase) XXX_Merge(src proto.Message) { + xxx_messageInfo_RenameDatabase.Merge(dst, src) +} +func (m *RenameDatabase) XXX_Size() int { + return m.Size() +} +func (m *RenameDatabase) XXX_DiscardUnknown() { + xxx_messageInfo_RenameDatabase.DiscardUnknown(m) +} + +var xxx_messageInfo_RenameDatabase proto.InternalMessageInfo + +// ConvertToSchema is recorded when a database is converted to a schema. +type ConvertToSchema struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + DatabaseName string `protobuf:"bytes,3,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` + NewDatabaseParent string `protobuf:"bytes,4,opt,name=new_database_parent,json=newDatabaseParent,proto3" json:"new_database_parent,omitempty"` +} + +func (m *ConvertToSchema) Reset() { *m = ConvertToSchema{} } +func (m *ConvertToSchema) String() string { return proto.CompactTextString(m) } +func (*ConvertToSchema) ProtoMessage() {} +func (*ConvertToSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{7} +} +func (m *ConvertToSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConvertToSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *ConvertToSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConvertToSchema.Merge(dst, src) +} +func (m *ConvertToSchema) XXX_Size() int { + return m.Size() +} +func (m *ConvertToSchema) XXX_DiscardUnknown() { + xxx_messageInfo_ConvertToSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ConvertToSchema proto.InternalMessageInfo + +// AlterDatabaseOwner is recorded when a database's owner is changed. +type AlterDatabaseOwner struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + DatabaseName string `protobuf:"bytes,3,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *AlterDatabaseOwner) Reset() { *m = AlterDatabaseOwner{} } +func (m *AlterDatabaseOwner) String() string { return proto.CompactTextString(m) } +func (*AlterDatabaseOwner) ProtoMessage() {} +func (*AlterDatabaseOwner) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{8} +} +func (m *AlterDatabaseOwner) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlterDatabaseOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *AlterDatabaseOwner) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlterDatabaseOwner.Merge(dst, src) +} +func (m *AlterDatabaseOwner) XXX_Size() int { + return m.Size() +} +func (m *AlterDatabaseOwner) XXX_DiscardUnknown() { + xxx_messageInfo_AlterDatabaseOwner.DiscardUnknown(m) +} + +var xxx_messageInfo_AlterDatabaseOwner proto.InternalMessageInfo + +// CreateSchema is recorded when a schema is created. +type CreateSchema struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + SchemaName string `protobuf:"bytes,3,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *CreateSchema) Reset() { *m = CreateSchema{} } +func (m *CreateSchema) String() string { return proto.CompactTextString(m) } +func (*CreateSchema) ProtoMessage() {} +func (*CreateSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{9} +} +func (m *CreateSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CreateSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSchema.Merge(dst, src) +} +func (m *CreateSchema) XXX_Size() int { + return m.Size() +} +func (m *CreateSchema) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSchema proto.InternalMessageInfo + +// DropSchema is recorded when a schema is dropped. +type DropSchema struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + SchemaName string `protobuf:"bytes,3,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` +} + +func (m *DropSchema) Reset() { *m = DropSchema{} } +func (m *DropSchema) String() string { return proto.CompactTextString(m) } +func (*DropSchema) ProtoMessage() {} +func (*DropSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{10} +} +func (m *DropSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DropSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *DropSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropSchema.Merge(dst, src) +} +func (m *DropSchema) XXX_Size() int { + return m.Size() +} +func (m *DropSchema) XXX_DiscardUnknown() { + xxx_messageInfo_DropSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_DropSchema proto.InternalMessageInfo + +// RenameSchema is recorded when a schema is renamed. +type RenameSchema struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + SchemaName string `protobuf:"bytes,3,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` + NewSchemaName string `protobuf:"bytes,4,opt,name=new_schema_name,json=newSchemaName,proto3" json:"new_schema_name,omitempty"` +} + +func (m *RenameSchema) Reset() { *m = RenameSchema{} } +func (m *RenameSchema) String() string { return proto.CompactTextString(m) } +func (*RenameSchema) ProtoMessage() {} +func (*RenameSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{11} +} +func (m *RenameSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RenameSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *RenameSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_RenameSchema.Merge(dst, src) +} +func (m *RenameSchema) XXX_Size() int { + return m.Size() +} +func (m *RenameSchema) XXX_DiscardUnknown() { + xxx_messageInfo_RenameSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_RenameSchema proto.InternalMessageInfo + +// AlterSchemaOwner is recorded when a schema's owner is changed. +type AlterSchemaOwner struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + SchemaName string `protobuf:"bytes,3,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *AlterSchemaOwner) Reset() { *m = AlterSchemaOwner{} } +func (m *AlterSchemaOwner) String() string { return proto.CompactTextString(m) } +func (*AlterSchemaOwner) ProtoMessage() {} +func (*AlterSchemaOwner) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{12} +} +func (m *AlterSchemaOwner) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlterSchemaOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *AlterSchemaOwner) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlterSchemaOwner.Merge(dst, src) +} +func (m *AlterSchemaOwner) XXX_Size() int { + return m.Size() +} +func (m *AlterSchemaOwner) XXX_DiscardUnknown() { + xxx_messageInfo_AlterSchemaOwner.DiscardUnknown(m) +} + +var xxx_messageInfo_AlterSchemaOwner proto.InternalMessageInfo + +// CreateTable is recorded when a table is created. +type CreateTable struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *CreateTable) Reset() { *m = CreateTable{} } +func (m *CreateTable) String() string { return proto.CompactTextString(m) } +func (*CreateTable) ProtoMessage() {} +func (*CreateTable) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{13} +} +func (m *CreateTable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CreateTable) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateTable.Merge(dst, src) +} +func (m *CreateTable) XXX_Size() int { + return m.Size() +} +func (m *CreateTable) XXX_DiscardUnknown() { + xxx_messageInfo_CreateTable.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateTable proto.InternalMessageInfo + +// DropTable is recorded when a table is dropped. +type DropTable struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + CascadeDroppedViews []string `protobuf:"bytes,4,rep,name=cascade_dropped_views,json=cascadeDroppedViews,proto3" json:"cascade_dropped_views,omitempty"` +} + +func (m *DropTable) Reset() { *m = DropTable{} } +func (m *DropTable) String() string { return proto.CompactTextString(m) } +func (*DropTable) ProtoMessage() {} +func (*DropTable) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{14} +} +func (m *DropTable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DropTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *DropTable) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropTable.Merge(dst, src) +} +func (m *DropTable) XXX_Size() int { + return m.Size() +} +func (m *DropTable) XXX_DiscardUnknown() { + xxx_messageInfo_DropTable.DiscardUnknown(m) +} + +var xxx_messageInfo_DropTable proto.InternalMessageInfo + +// RenameTable is recorded when a table, sequence or view is renamed. +type RenameTable struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + NewTableName string `protobuf:"bytes,4,opt,name=new_table_name,json=newTableName,proto3" json:"new_table_name,omitempty"` +} + +func (m *RenameTable) Reset() { *m = RenameTable{} } +func (m *RenameTable) String() string { return proto.CompactTextString(m) } +func (*RenameTable) ProtoMessage() {} +func (*RenameTable) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{15} +} +func (m *RenameTable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RenameTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *RenameTable) XXX_Merge(src proto.Message) { + xxx_messageInfo_RenameTable.Merge(dst, src) +} +func (m *RenameTable) XXX_Size() int { + return m.Size() +} +func (m *RenameTable) XXX_DiscardUnknown() { + xxx_messageInfo_RenameTable.DiscardUnknown(m) +} + +var xxx_messageInfo_RenameTable proto.InternalMessageInfo + +// TruncateTable is recorded when a table is truncated. +type TruncateTable struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` +} + +func (m *TruncateTable) Reset() { *m = TruncateTable{} } +func (m *TruncateTable) String() string { return proto.CompactTextString(m) } +func (*TruncateTable) ProtoMessage() {} +func (*TruncateTable) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{16} +} +func (m *TruncateTable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TruncateTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *TruncateTable) XXX_Merge(src proto.Message) { + xxx_messageInfo_TruncateTable.Merge(dst, src) +} +func (m *TruncateTable) XXX_Size() int { + return m.Size() +} +func (m *TruncateTable) XXX_DiscardUnknown() { + xxx_messageInfo_TruncateTable.DiscardUnknown(m) +} + +var xxx_messageInfo_TruncateTable proto.InternalMessageInfo + +// AlterTable is recorded when a table is altered. +type AlterTable struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + MutationID uint32 `protobuf:"varint,4,opt,name=mutation_id,json=mutationId,proto3" json:"mutation_id,omitempty"` + CascadeDroppedViews []string `protobuf:"bytes,5,rep,name=cascade_dropped_views,json=cascadeDroppedViews,proto3" json:"cascade_dropped_views,omitempty"` +} + +func (m *AlterTable) Reset() { *m = AlterTable{} } +func (m *AlterTable) String() string { return proto.CompactTextString(m) } +func (*AlterTable) ProtoMessage() {} +func (*AlterTable) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{17} +} +func (m *AlterTable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlterTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *AlterTable) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlterTable.Merge(dst, src) +} +func (m *AlterTable) XXX_Size() int { + return m.Size() +} +func (m *AlterTable) XXX_DiscardUnknown() { + xxx_messageInfo_AlterTable.DiscardUnknown(m) +} + +var xxx_messageInfo_AlterTable proto.InternalMessageInfo + +// CommentOnColumn is recorded when a column is commented. +type CommentOnColumn struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + ColumnName string `protobuf:"bytes,4,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` + Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"` +} + +func (m *CommentOnColumn) Reset() { *m = CommentOnColumn{} } +func (m *CommentOnColumn) String() string { return proto.CompactTextString(m) } +func (*CommentOnColumn) ProtoMessage() {} +func (*CommentOnColumn) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{18} +} +func (m *CommentOnColumn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommentOnColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CommentOnColumn) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommentOnColumn.Merge(dst, src) +} +func (m *CommentOnColumn) XXX_Size() int { + return m.Size() +} +func (m *CommentOnColumn) XXX_DiscardUnknown() { + xxx_messageInfo_CommentOnColumn.DiscardUnknown(m) +} + +var xxx_messageInfo_CommentOnColumn proto.InternalMessageInfo + +// CommentOnTable is recorded when a table is commented. +type CommentOnDatabase struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + DatabaseName string `protobuf:"bytes,3,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` + Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` +} + +func (m *CommentOnDatabase) Reset() { *m = CommentOnDatabase{} } +func (m *CommentOnDatabase) String() string { return proto.CompactTextString(m) } +func (*CommentOnDatabase) ProtoMessage() {} +func (*CommentOnDatabase) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{19} +} +func (m *CommentOnDatabase) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommentOnDatabase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CommentOnDatabase) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommentOnDatabase.Merge(dst, src) +} +func (m *CommentOnDatabase) XXX_Size() int { + return m.Size() +} +func (m *CommentOnDatabase) XXX_DiscardUnknown() { + xxx_messageInfo_CommentOnDatabase.DiscardUnknown(m) +} + +var xxx_messageInfo_CommentOnDatabase proto.InternalMessageInfo + +// CommentOnTable is recorded when a table is commented. +type CommentOnTable struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` +} + +func (m *CommentOnTable) Reset() { *m = CommentOnTable{} } +func (m *CommentOnTable) String() string { return proto.CompactTextString(m) } +func (*CommentOnTable) ProtoMessage() {} +func (*CommentOnTable) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{20} +} +func (m *CommentOnTable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommentOnTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CommentOnTable) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommentOnTable.Merge(dst, src) +} +func (m *CommentOnTable) XXX_Size() int { + return m.Size() +} +func (m *CommentOnTable) XXX_DiscardUnknown() { + xxx_messageInfo_CommentOnTable.DiscardUnknown(m) +} + +var xxx_messageInfo_CommentOnTable proto.InternalMessageInfo + +// CommentOnIndex is recorded when a index is commented. +type CommentOnIndex struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + IndexName string `protobuf:"bytes,4,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` + Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"` +} + +func (m *CommentOnIndex) Reset() { *m = CommentOnIndex{} } +func (m *CommentOnIndex) String() string { return proto.CompactTextString(m) } +func (*CommentOnIndex) ProtoMessage() {} +func (*CommentOnIndex) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{21} +} +func (m *CommentOnIndex) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommentOnIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CommentOnIndex) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommentOnIndex.Merge(dst, src) +} +func (m *CommentOnIndex) XXX_Size() int { + return m.Size() +} +func (m *CommentOnIndex) XXX_DiscardUnknown() { + xxx_messageInfo_CommentOnIndex.DiscardUnknown(m) +} + +var xxx_messageInfo_CommentOnIndex proto.InternalMessageInfo + +// CreateIndex is recorded when an index is created. +type CreateIndex struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + IndexName string `protobuf:"bytes,4,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` + MutationID uint32 `protobuf:"varint,5,opt,name=mutation_id,json=mutationId,proto3" json:"mutation_id,omitempty"` +} + +func (m *CreateIndex) Reset() { *m = CreateIndex{} } +func (m *CreateIndex) String() string { return proto.CompactTextString(m) } +func (*CreateIndex) ProtoMessage() {} +func (*CreateIndex) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{22} +} +func (m *CreateIndex) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CreateIndex) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateIndex.Merge(dst, src) +} +func (m *CreateIndex) XXX_Size() int { + return m.Size() +} +func (m *CreateIndex) XXX_DiscardUnknown() { + xxx_messageInfo_CreateIndex.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateIndex proto.InternalMessageInfo + +// DropIndex is recorded when an index is dropped. +type DropIndex struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + IndexName string `protobuf:"bytes,4,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` + MutationID uint32 `protobuf:"varint,5,opt,name=mutation_id,json=mutationId,proto3" json:"mutation_id,omitempty"` + CascadeDroppedViews []string `protobuf:"bytes,6,rep,name=cascade_dropped_views,json=cascadeDroppedViews,proto3" json:"cascade_dropped_views,omitempty"` +} + +func (m *DropIndex) Reset() { *m = DropIndex{} } +func (m *DropIndex) String() string { return proto.CompactTextString(m) } +func (*DropIndex) ProtoMessage() {} +func (*DropIndex) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{23} +} +func (m *DropIndex) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DropIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *DropIndex) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropIndex.Merge(dst, src) +} +func (m *DropIndex) XXX_Size() int { + return m.Size() +} +func (m *DropIndex) XXX_DiscardUnknown() { + xxx_messageInfo_DropIndex.DiscardUnknown(m) +} + +var xxx_messageInfo_DropIndex proto.InternalMessageInfo + +// AlterIndex is recorded when an index is altered. +type AlterIndex struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + IndexName string `protobuf:"bytes,4,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` + MutationID uint32 `protobuf:"varint,5,opt,name=mutation_id,json=mutationId,proto3" json:"mutation_id,omitempty"` +} + +func (m *AlterIndex) Reset() { *m = AlterIndex{} } +func (m *AlterIndex) String() string { return proto.CompactTextString(m) } +func (*AlterIndex) ProtoMessage() {} +func (*AlterIndex) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{24} +} +func (m *AlterIndex) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlterIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *AlterIndex) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlterIndex.Merge(dst, src) +} +func (m *AlterIndex) XXX_Size() int { + return m.Size() +} +func (m *AlterIndex) XXX_DiscardUnknown() { + xxx_messageInfo_AlterIndex.DiscardUnknown(m) +} + +var xxx_messageInfo_AlterIndex proto.InternalMessageInfo + +// CreateView is recorded when a view is created. +type CreateView struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + ViewName string `protobuf:"bytes,3,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` + ViewQuery string `protobuf:"bytes,5,opt,name=view_query,json=viewQuery,proto3" json:"view_query,omitempty"` +} + +func (m *CreateView) Reset() { *m = CreateView{} } +func (m *CreateView) String() string { return proto.CompactTextString(m) } +func (*CreateView) ProtoMessage() {} +func (*CreateView) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{25} +} +func (m *CreateView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CreateView) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateView.Merge(dst, src) +} +func (m *CreateView) XXX_Size() int { + return m.Size() +} +func (m *CreateView) XXX_DiscardUnknown() { + xxx_messageInfo_CreateView.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateView proto.InternalMessageInfo + +// DropView is recorded when a view is dropped. +type DropView struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + ViewName string `protobuf:"bytes,3,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` + CascadeDroppedViews []string `protobuf:"bytes,4,rep,name=cascade_dropped_views,json=cascadeDroppedViews,proto3" json:"cascade_dropped_views,omitempty"` +} + +func (m *DropView) Reset() { *m = DropView{} } +func (m *DropView) String() string { return proto.CompactTextString(m) } +func (*DropView) ProtoMessage() {} +func (*DropView) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{26} +} +func (m *DropView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DropView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *DropView) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropView.Merge(dst, src) +} +func (m *DropView) XXX_Size() int { + return m.Size() +} +func (m *DropView) XXX_DiscardUnknown() { + xxx_messageInfo_DropView.DiscardUnknown(m) +} + +var xxx_messageInfo_DropView proto.InternalMessageInfo + +// CreateSequence is recorded when a sequence is created. +type CreateSequence struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + SequenceName string `protobuf:"bytes,3,opt,name=sequence_name,json=sequenceName,proto3" json:"sequence_name,omitempty"` + Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *CreateSequence) Reset() { *m = CreateSequence{} } +func (m *CreateSequence) String() string { return proto.CompactTextString(m) } +func (*CreateSequence) ProtoMessage() {} +func (*CreateSequence) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{27} +} +func (m *CreateSequence) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateSequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CreateSequence) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSequence.Merge(dst, src) +} +func (m *CreateSequence) XXX_Size() int { + return m.Size() +} +func (m *CreateSequence) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSequence.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSequence proto.InternalMessageInfo + +// DropSequence is recorded when a sequence is dropped. +type DropSequence struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + SequenceName string `protobuf:"bytes,3,opt,name=sequence_name,json=sequenceName,proto3" json:"sequence_name,omitempty"` +} + +func (m *DropSequence) Reset() { *m = DropSequence{} } +func (m *DropSequence) String() string { return proto.CompactTextString(m) } +func (*DropSequence) ProtoMessage() {} +func (*DropSequence) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{28} +} +func (m *DropSequence) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DropSequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *DropSequence) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropSequence.Merge(dst, src) +} +func (m *DropSequence) XXX_Size() int { + return m.Size() +} +func (m *DropSequence) XXX_DiscardUnknown() { + xxx_messageInfo_DropSequence.DiscardUnknown(m) +} + +var xxx_messageInfo_DropSequence proto.InternalMessageInfo + +// AlterSequence is recorded when a sequence is altered. +type AlterSequence struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + SequenceName string `protobuf:"bytes,3,opt,name=sequence_name,json=sequenceName,proto3" json:"sequence_name,omitempty"` +} + +func (m *AlterSequence) Reset() { *m = AlterSequence{} } +func (m *AlterSequence) String() string { return proto.CompactTextString(m) } +func (*AlterSequence) ProtoMessage() {} +func (*AlterSequence) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{29} +} +func (m *AlterSequence) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlterSequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *AlterSequence) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlterSequence.Merge(dst, src) +} +func (m *AlterSequence) XXX_Size() int { + return m.Size() +} +func (m *AlterSequence) XXX_DiscardUnknown() { + xxx_messageInfo_AlterSequence.DiscardUnknown(m) +} + +var xxx_messageInfo_AlterSequence proto.InternalMessageInfo + +// ReverseSchemaChange is recorded when an in-progress schema change +// encounters a problem and is reversed. +type ReverseSchemaChange struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + MutationID uint32 `protobuf:"varint,3,opt,name=mutation_id,json=mutationId,proto3" json:"mutation_id,omitempty"` + Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *ReverseSchemaChange) Reset() { *m = ReverseSchemaChange{} } +func (m *ReverseSchemaChange) String() string { return proto.CompactTextString(m) } +func (*ReverseSchemaChange) ProtoMessage() {} +func (*ReverseSchemaChange) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{30} +} +func (m *ReverseSchemaChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReverseSchemaChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *ReverseSchemaChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReverseSchemaChange.Merge(dst, src) +} +func (m *ReverseSchemaChange) XXX_Size() int { + return m.Size() +} +func (m *ReverseSchemaChange) XXX_DiscardUnknown() { + xxx_messageInfo_ReverseSchemaChange.DiscardUnknown(m) +} + +var xxx_messageInfo_ReverseSchemaChange proto.InternalMessageInfo + +// FinishSchemaChange is recorded when a previously initiated schema +// change has completed. +type FinishSchemaChange struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + MutationID uint32 `protobuf:"varint,3,opt,name=mutation_id,json=mutationId,proto3" json:"mutation_id,omitempty"` +} + +func (m *FinishSchemaChange) Reset() { *m = FinishSchemaChange{} } +func (m *FinishSchemaChange) String() string { return proto.CompactTextString(m) } +func (*FinishSchemaChange) ProtoMessage() {} +func (*FinishSchemaChange) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{31} +} +func (m *FinishSchemaChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FinishSchemaChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *FinishSchemaChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinishSchemaChange.Merge(dst, src) +} +func (m *FinishSchemaChange) XXX_Size() int { + return m.Size() +} +func (m *FinishSchemaChange) XXX_DiscardUnknown() { + xxx_messageInfo_FinishSchemaChange.DiscardUnknown(m) +} + +var xxx_messageInfo_FinishSchemaChange proto.InternalMessageInfo + +// FinishSchemaRollback is recorded when a previously +// initiated schema change rollback has completed. +type FinishSchemaRollback struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + MutationID uint32 `protobuf:"varint,3,opt,name=mutation_id,json=mutationId,proto3" json:"mutation_id,omitempty"` +} + +func (m *FinishSchemaRollback) Reset() { *m = FinishSchemaRollback{} } +func (m *FinishSchemaRollback) String() string { return proto.CompactTextString(m) } +func (*FinishSchemaRollback) ProtoMessage() {} +func (*FinishSchemaRollback) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{32} +} +func (m *FinishSchemaRollback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FinishSchemaRollback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *FinishSchemaRollback) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinishSchemaRollback.Merge(dst, src) +} +func (m *FinishSchemaRollback) XXX_Size() int { + return m.Size() +} +func (m *FinishSchemaRollback) XXX_DiscardUnknown() { + xxx_messageInfo_FinishSchemaRollback.DiscardUnknown(m) +} + +var xxx_messageInfo_FinishSchemaRollback proto.InternalMessageInfo + +// CreateType is recorded when a type is created. +type CreateType struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TypeName string `protobuf:"bytes,4,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *CreateType) Reset() { *m = CreateType{} } +func (m *CreateType) String() string { return proto.CompactTextString(m) } +func (*CreateType) ProtoMessage() {} +func (*CreateType) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{33} +} +func (m *CreateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CreateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateType.Merge(dst, src) +} +func (m *CreateType) XXX_Size() int { + return m.Size() +} +func (m *CreateType) XXX_DiscardUnknown() { + xxx_messageInfo_CreateType.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateType proto.InternalMessageInfo + +// DropType is recorded when a type is dropped. +type DropType struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TypeName string `protobuf:"bytes,3,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` +} + +func (m *DropType) Reset() { *m = DropType{} } +func (m *DropType) String() string { return proto.CompactTextString(m) } +func (*DropType) ProtoMessage() {} +func (*DropType) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{34} +} +func (m *DropType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DropType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *DropType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropType.Merge(dst, src) +} +func (m *DropType) XXX_Size() int { + return m.Size() +} +func (m *DropType) XXX_DiscardUnknown() { + xxx_messageInfo_DropType.DiscardUnknown(m) +} + +var xxx_messageInfo_DropType proto.InternalMessageInfo + +// EventAlterType is recorded when a type is altered. +type AlterType struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TypeName string `protobuf:"bytes,3,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` +} + +func (m *AlterType) Reset() { *m = AlterType{} } +func (m *AlterType) String() string { return proto.CompactTextString(m) } +func (*AlterType) ProtoMessage() {} +func (*AlterType) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{35} +} +func (m *AlterType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlterType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *AlterType) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlterType.Merge(dst, src) +} +func (m *AlterType) XXX_Size() int { + return m.Size() +} +func (m *AlterType) XXX_DiscardUnknown() { + xxx_messageInfo_AlterType.DiscardUnknown(m) +} + +var xxx_messageInfo_AlterType proto.InternalMessageInfo + +// NodeJoin is recorded when a node joins the cluster. +type NodeJoin struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonNodeEventDetails `protobuf:"bytes,2,opt,name=node,proto3,embedded=node" json:""` +} + +func (m *NodeJoin) Reset() { *m = NodeJoin{} } +func (m *NodeJoin) String() string { return proto.CompactTextString(m) } +func (*NodeJoin) ProtoMessage() {} +func (*NodeJoin) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{36} +} +func (m *NodeJoin) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NodeJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *NodeJoin) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeJoin.Merge(dst, src) +} +func (m *NodeJoin) XXX_Size() int { + return m.Size() +} +func (m *NodeJoin) XXX_DiscardUnknown() { + xxx_messageInfo_NodeJoin.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeJoin proto.InternalMessageInfo + +// NodeRestart is recorded when an existing node rejoins the cluster +// after being offline. +type NodeRestart struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonNodeEventDetails `protobuf:"bytes,2,opt,name=node,proto3,embedded=node" json:""` +} + +func (m *NodeRestart) Reset() { *m = NodeRestart{} } +func (m *NodeRestart) String() string { return proto.CompactTextString(m) } +func (*NodeRestart) ProtoMessage() {} +func (*NodeRestart) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{37} +} +func (m *NodeRestart) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NodeRestart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *NodeRestart) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeRestart.Merge(dst, src) +} +func (m *NodeRestart) XXX_Size() int { + return m.Size() +} +func (m *NodeRestart) XXX_DiscardUnknown() { + xxx_messageInfo_NodeRestart.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeRestart proto.InternalMessageInfo + +// NodeDecommissioned is recorded when a node is marked as +// decommissioning. +type NodeDecommissioning struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonNodeEventDetails `protobuf:"bytes,2,opt,name=node,proto3,embedded=node" json:""` +} + +func (m *NodeDecommissioning) Reset() { *m = NodeDecommissioning{} } +func (m *NodeDecommissioning) String() string { return proto.CompactTextString(m) } +func (*NodeDecommissioning) ProtoMessage() {} +func (*NodeDecommissioning) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{38} +} +func (m *NodeDecommissioning) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NodeDecommissioning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *NodeDecommissioning) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeDecommissioning.Merge(dst, src) +} +func (m *NodeDecommissioning) XXX_Size() int { + return m.Size() +} +func (m *NodeDecommissioning) XXX_DiscardUnknown() { + xxx_messageInfo_NodeDecommissioning.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeDecommissioning proto.InternalMessageInfo + +// NodeDecommissioned is recorded when a node is marked as +// decommissioned. +type NodeDecommissioned struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonNodeEventDetails `protobuf:"bytes,2,opt,name=node,proto3,embedded=node" json:""` +} + +func (m *NodeDecommissioned) Reset() { *m = NodeDecommissioned{} } +func (m *NodeDecommissioned) String() string { return proto.CompactTextString(m) } +func (*NodeDecommissioned) ProtoMessage() {} +func (*NodeDecommissioned) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{39} +} +func (m *NodeDecommissioned) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NodeDecommissioned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *NodeDecommissioned) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeDecommissioned.Merge(dst, src) +} +func (m *NodeDecommissioned) XXX_Size() int { + return m.Size() +} +func (m *NodeDecommissioned) XXX_DiscardUnknown() { + xxx_messageInfo_NodeDecommissioned.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeDecommissioned proto.InternalMessageInfo + +// NodeRecommissioned is recorded when a decommissioning node is +// recommissioned. +type NodeRecommissioned struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonNodeEventDetails `protobuf:"bytes,2,opt,name=node,proto3,embedded=node" json:""` +} + +func (m *NodeRecommissioned) Reset() { *m = NodeRecommissioned{} } +func (m *NodeRecommissioned) String() string { return proto.CompactTextString(m) } +func (*NodeRecommissioned) ProtoMessage() {} +func (*NodeRecommissioned) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{40} +} +func (m *NodeRecommissioned) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NodeRecommissioned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *NodeRecommissioned) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeRecommissioned.Merge(dst, src) +} +func (m *NodeRecommissioned) XXX_Size() int { + return m.Size() +} +func (m *NodeRecommissioned) XXX_DiscardUnknown() { + xxx_messageInfo_NodeRecommissioned.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeRecommissioned proto.InternalMessageInfo + +// SetClusterSetting is recorded when a cluster setting is changed. +type SetClusterSetting struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + SettingName string `protobuf:"bytes,3,opt,name=setting_name,json=settingName,proto3" json:"setting_name,omitempty"` + Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *SetClusterSetting) Reset() { *m = SetClusterSetting{} } +func (m *SetClusterSetting) String() string { return proto.CompactTextString(m) } +func (*SetClusterSetting) ProtoMessage() {} +func (*SetClusterSetting) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{41} +} +func (m *SetClusterSetting) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetClusterSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *SetClusterSetting) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetClusterSetting.Merge(dst, src) +} +func (m *SetClusterSetting) XXX_Size() int { + return m.Size() +} +func (m *SetClusterSetting) XXX_DiscardUnknown() { + xxx_messageInfo_SetClusterSetting.DiscardUnknown(m) +} + +var xxx_messageInfo_SetClusterSetting proto.InternalMessageInfo + +// ZoneConfigDetails is common to zone config change events. +type ZoneConfigDetails struct { + Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + Config string `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + Options []string `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` +} + +func (m *ZoneConfigDetails) Reset() { *m = ZoneConfigDetails{} } +func (m *ZoneConfigDetails) String() string { return proto.CompactTextString(m) } +func (*ZoneConfigDetails) ProtoMessage() {} +func (*ZoneConfigDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{42} +} +func (m *ZoneConfigDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ZoneConfigDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *ZoneConfigDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZoneConfigDetails.Merge(dst, src) +} +func (m *ZoneConfigDetails) XXX_Size() int { + return m.Size() +} +func (m *ZoneConfigDetails) XXX_DiscardUnknown() { + xxx_messageInfo_ZoneConfigDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_ZoneConfigDetails proto.InternalMessageInfo + +// SetZoneConfig is recorded when a zone config is changed. +type SetZoneConfig struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + ZoneConfigDetails `protobuf:"bytes,3,opt,name=config,proto3,embedded=config" json:""` +} + +func (m *SetZoneConfig) Reset() { *m = SetZoneConfig{} } +func (m *SetZoneConfig) String() string { return proto.CompactTextString(m) } +func (*SetZoneConfig) ProtoMessage() {} +func (*SetZoneConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{43} +} +func (m *SetZoneConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetZoneConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *SetZoneConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetZoneConfig.Merge(dst, src) +} +func (m *SetZoneConfig) XXX_Size() int { + return m.Size() +} +func (m *SetZoneConfig) XXX_DiscardUnknown() { + xxx_messageInfo_SetZoneConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_SetZoneConfig proto.InternalMessageInfo + +// RemoveZoneConfig is recorded when a zone config is removed. +type RemoveZoneConfig struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + ZoneConfigDetails `protobuf:"bytes,3,opt,name=config,proto3,embedded=config" json:""` +} + +func (m *RemoveZoneConfig) Reset() { *m = RemoveZoneConfig{} } +func (m *RemoveZoneConfig) String() string { return proto.CompactTextString(m) } +func (*RemoveZoneConfig) ProtoMessage() {} +func (*RemoveZoneConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{44} +} +func (m *RemoveZoneConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveZoneConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *RemoveZoneConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveZoneConfig.Merge(dst, src) +} +func (m *RemoveZoneConfig) XXX_Size() int { + return m.Size() +} +func (m *RemoveZoneConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveZoneConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveZoneConfig proto.InternalMessageInfo + +// CreateStatistics is recorded when statistics are collected for a +// table. +type CreateStatistics struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` +} + +func (m *CreateStatistics) Reset() { *m = CreateStatistics{} } +func (m *CreateStatistics) String() string { return proto.CompactTextString(m) } +func (*CreateStatistics) ProtoMessage() {} +func (*CreateStatistics) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{45} +} +func (m *CreateStatistics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateStatistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CreateStatistics) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateStatistics.Merge(dst, src) +} +func (m *CreateStatistics) XXX_Size() int { + return m.Size() +} +func (m *CreateStatistics) XXX_DiscardUnknown() { + xxx_messageInfo_CreateStatistics.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateStatistics proto.InternalMessageInfo + +// GrantDatabasePrivilege is recorded when privileges are added to a user +// for a database object. +type GrantDatabasePrivilege struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + CommonSQLPrivilegeEventDetails `protobuf:"bytes,3,opt,name=privs,proto3,embedded=privs" json:""` + DatabaseName string `protobuf:"bytes,4,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` +} + +func (m *GrantDatabasePrivilege) Reset() { *m = GrantDatabasePrivilege{} } +func (m *GrantDatabasePrivilege) String() string { return proto.CompactTextString(m) } +func (*GrantDatabasePrivilege) ProtoMessage() {} +func (*GrantDatabasePrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{46} +} +func (m *GrantDatabasePrivilege) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GrantDatabasePrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *GrantDatabasePrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrantDatabasePrivilege.Merge(dst, src) +} +func (m *GrantDatabasePrivilege) XXX_Size() int { + return m.Size() +} +func (m *GrantDatabasePrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_GrantDatabasePrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_GrantDatabasePrivilege proto.InternalMessageInfo + +// RevokeDatabasePrivilege is recorded when privileges are removed from a +// user for a database object. +type RevokeDatabasePrivilege struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + CommonSQLPrivilegeEventDetails `protobuf:"bytes,3,opt,name=privs,proto3,embedded=privs" json:""` + DatabaseName string `protobuf:"bytes,4,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"` +} + +func (m *RevokeDatabasePrivilege) Reset() { *m = RevokeDatabasePrivilege{} } +func (m *RevokeDatabasePrivilege) String() string { return proto.CompactTextString(m) } +func (*RevokeDatabasePrivilege) ProtoMessage() {} +func (*RevokeDatabasePrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{47} +} +func (m *RevokeDatabasePrivilege) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RevokeDatabasePrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *RevokeDatabasePrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeDatabasePrivilege.Merge(dst, src) +} +func (m *RevokeDatabasePrivilege) XXX_Size() int { + return m.Size() +} +func (m *RevokeDatabasePrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeDatabasePrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_RevokeDatabasePrivilege proto.InternalMessageInfo + +// GrantTablePrivilege is recorded when privileges are added to a user +// for a table, sequence or view object. +type GrantTablePrivilege struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + CommonSQLPrivilegeEventDetails `protobuf:"bytes,3,opt,name=privs,proto3,embedded=privs" json:""` + TableName string `protobuf:"bytes,4,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` +} + +func (m *GrantTablePrivilege) Reset() { *m = GrantTablePrivilege{} } +func (m *GrantTablePrivilege) String() string { return proto.CompactTextString(m) } +func (*GrantTablePrivilege) ProtoMessage() {} +func (*GrantTablePrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{48} +} +func (m *GrantTablePrivilege) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GrantTablePrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *GrantTablePrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrantTablePrivilege.Merge(dst, src) +} +func (m *GrantTablePrivilege) XXX_Size() int { + return m.Size() +} +func (m *GrantTablePrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_GrantTablePrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_GrantTablePrivilege proto.InternalMessageInfo + +// RevokeTablePrivilege is recorded when privileges are removed from a +// user for a table, sequence or view object. +type RevokeTablePrivilege struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + CommonSQLPrivilegeEventDetails `protobuf:"bytes,3,opt,name=privs,proto3,embedded=privs" json:""` + TableName string `protobuf:"bytes,4,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` +} + +func (m *RevokeTablePrivilege) Reset() { *m = RevokeTablePrivilege{} } +func (m *RevokeTablePrivilege) String() string { return proto.CompactTextString(m) } +func (*RevokeTablePrivilege) ProtoMessage() {} +func (*RevokeTablePrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{49} +} +func (m *RevokeTablePrivilege) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RevokeTablePrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *RevokeTablePrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeTablePrivilege.Merge(dst, src) +} +func (m *RevokeTablePrivilege) XXX_Size() int { + return m.Size() +} +func (m *RevokeTablePrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeTablePrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_RevokeTablePrivilege proto.InternalMessageInfo + +// GrantSchemaPrivilege is recorded when privileges are added to a user +// for a schema object. +type GrantSchemaPrivilege struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + CommonSQLPrivilegeEventDetails `protobuf:"bytes,3,opt,name=privs,proto3,embedded=privs" json:""` + SchemaName string `protobuf:"bytes,4,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` +} + +func (m *GrantSchemaPrivilege) Reset() { *m = GrantSchemaPrivilege{} } +func (m *GrantSchemaPrivilege) String() string { return proto.CompactTextString(m) } +func (*GrantSchemaPrivilege) ProtoMessage() {} +func (*GrantSchemaPrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{50} +} +func (m *GrantSchemaPrivilege) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GrantSchemaPrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *GrantSchemaPrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrantSchemaPrivilege.Merge(dst, src) +} +func (m *GrantSchemaPrivilege) XXX_Size() int { + return m.Size() +} +func (m *GrantSchemaPrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_GrantSchemaPrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_GrantSchemaPrivilege proto.InternalMessageInfo + +// RevokeSchemaPrivilege is recorded when privileges are removed from a +// user for a schema object. +type RevokeSchemaPrivilege struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + CommonSQLPrivilegeEventDetails `protobuf:"bytes,3,opt,name=privs,proto3,embedded=privs" json:""` + SchemaName string `protobuf:"bytes,4,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` +} + +func (m *RevokeSchemaPrivilege) Reset() { *m = RevokeSchemaPrivilege{} } +func (m *RevokeSchemaPrivilege) String() string { return proto.CompactTextString(m) } +func (*RevokeSchemaPrivilege) ProtoMessage() {} +func (*RevokeSchemaPrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{51} +} +func (m *RevokeSchemaPrivilege) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RevokeSchemaPrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *RevokeSchemaPrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeSchemaPrivilege.Merge(dst, src) +} +func (m *RevokeSchemaPrivilege) XXX_Size() int { + return m.Size() +} +func (m *RevokeSchemaPrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeSchemaPrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_RevokeSchemaPrivilege proto.InternalMessageInfo + +// GrantTypePrivilege is recorded when privileges are added to a user +// for a type object. +type GrantTypePrivilege struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + CommonSQLPrivilegeEventDetails `protobuf:"bytes,3,opt,name=privs,proto3,embedded=privs" json:""` + TypeName string `protobuf:"bytes,4,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` +} + +func (m *GrantTypePrivilege) Reset() { *m = GrantTypePrivilege{} } +func (m *GrantTypePrivilege) String() string { return proto.CompactTextString(m) } +func (*GrantTypePrivilege) ProtoMessage() {} +func (*GrantTypePrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{52} +} +func (m *GrantTypePrivilege) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GrantTypePrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *GrantTypePrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrantTypePrivilege.Merge(dst, src) +} +func (m *GrantTypePrivilege) XXX_Size() int { + return m.Size() +} +func (m *GrantTypePrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_GrantTypePrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_GrantTypePrivilege proto.InternalMessageInfo + +// RevokeTypePrivilege is recorded when privileges are removed from a +// user for a type object. +type RevokeTypePrivilege struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + CommonSQLPrivilegeEventDetails `protobuf:"bytes,3,opt,name=privs,proto3,embedded=privs" json:""` + TypeName string `protobuf:"bytes,4,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` +} + +func (m *RevokeTypePrivilege) Reset() { *m = RevokeTypePrivilege{} } +func (m *RevokeTypePrivilege) String() string { return proto.CompactTextString(m) } +func (*RevokeTypePrivilege) ProtoMessage() {} +func (*RevokeTypePrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{53} +} +func (m *RevokeTypePrivilege) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RevokeTypePrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *RevokeTypePrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeTypePrivilege.Merge(dst, src) +} +func (m *RevokeTypePrivilege) XXX_Size() int { + return m.Size() +} +func (m *RevokeTypePrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeTypePrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_RevokeTypePrivilege proto.InternalMessageInfo + +// CreateRole is recorded when a role is created. +type CreateRole struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` +} + +func (m *CreateRole) Reset() { *m = CreateRole{} } +func (m *CreateRole) String() string { return proto.CompactTextString(m) } +func (*CreateRole) ProtoMessage() {} +func (*CreateRole) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{54} +} +func (m *CreateRole) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *CreateRole) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateRole.Merge(dst, src) +} +func (m *CreateRole) XXX_Size() int { + return m.Size() +} +func (m *CreateRole) XXX_DiscardUnknown() { + xxx_messageInfo_CreateRole.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateRole proto.InternalMessageInfo + +// DropRole is recorded when a role is dropped. +type DropRole struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` +} + +func (m *DropRole) Reset() { *m = DropRole{} } +func (m *DropRole) String() string { return proto.CompactTextString(m) } +func (*DropRole) ProtoMessage() {} +func (*DropRole) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{55} +} +func (m *DropRole) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DropRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *DropRole) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropRole.Merge(dst, src) +} +func (m *DropRole) XXX_Size() int { + return m.Size() +} +func (m *DropRole) XXX_DiscardUnknown() { + xxx_messageInfo_DropRole.DiscardUnknown(m) +} + +var xxx_messageInfo_DropRole proto.InternalMessageInfo + +// AlterRole is recorded when a role is altered. +type AlterRole struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` +} + +func (m *AlterRole) Reset() { *m = AlterRole{} } +func (m *AlterRole) String() string { return proto.CompactTextString(m) } +func (*AlterRole) ProtoMessage() {} +func (*AlterRole) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{56} +} +func (m *AlterRole) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlterRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *AlterRole) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlterRole.Merge(dst, src) +} +func (m *AlterRole) XXX_Size() int { + return m.Size() +} +func (m *AlterRole) XXX_DiscardUnknown() { + xxx_messageInfo_AlterRole.DiscardUnknown(m) +} + +var xxx_messageInfo_AlterRole proto.InternalMessageInfo + +// UnsafeUpsertDescriptor is recorded when a descriptor is written +// using crdb_internal.unsafe_upsert_descriptor. +type UnsafeUpsertDescriptor struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + PreviousDescriptor string `protobuf:"bytes,3,opt,name=previous_descriptor,json=previousDescriptor,proto3" json:"previous_descriptor,omitempty"` + NewDescriptor string `protobuf:"bytes,4,opt,name=new_descriptor,json=newDescriptor,proto3" json:"new_descriptor,omitempty"` +} + +func (m *UnsafeUpsertDescriptor) Reset() { *m = UnsafeUpsertDescriptor{} } +func (m *UnsafeUpsertDescriptor) String() string { return proto.CompactTextString(m) } +func (*UnsafeUpsertDescriptor) ProtoMessage() {} +func (*UnsafeUpsertDescriptor) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{57} +} +func (m *UnsafeUpsertDescriptor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UnsafeUpsertDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *UnsafeUpsertDescriptor) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnsafeUpsertDescriptor.Merge(dst, src) +} +func (m *UnsafeUpsertDescriptor) XXX_Size() int { + return m.Size() +} +func (m *UnsafeUpsertDescriptor) XXX_DiscardUnknown() { + xxx_messageInfo_UnsafeUpsertDescriptor.DiscardUnknown(m) +} + +var xxx_messageInfo_UnsafeUpsertDescriptor proto.InternalMessageInfo + +// UnsafeDeleteDescriptor is recorded when a descriptor is written +// using crdb_internal.unsafe_delete_descriptor. +type UnsafeDeleteDescriptor struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + ParentID uint32 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` + ParentSchemaID uint32 `protobuf:"varint,4,opt,name=parent_schema_id,json=parentSchemaId,proto3" json:"parent_schema_id,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *UnsafeDeleteDescriptor) Reset() { *m = UnsafeDeleteDescriptor{} } +func (m *UnsafeDeleteDescriptor) String() string { return proto.CompactTextString(m) } +func (*UnsafeDeleteDescriptor) ProtoMessage() {} +func (*UnsafeDeleteDescriptor) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{58} +} +func (m *UnsafeDeleteDescriptor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UnsafeDeleteDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *UnsafeDeleteDescriptor) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnsafeDeleteDescriptor.Merge(dst, src) +} +func (m *UnsafeDeleteDescriptor) XXX_Size() int { + return m.Size() +} +func (m *UnsafeDeleteDescriptor) XXX_DiscardUnknown() { + xxx_messageInfo_UnsafeDeleteDescriptor.DiscardUnknown(m) +} + +var xxx_messageInfo_UnsafeDeleteDescriptor proto.InternalMessageInfo + +// UnsafeUpsertNamespaceEntry is recorded when a namespace entry is +// written using crdb_internal.unsafe_upsert_namespace_entry. +type UnsafeUpsertNamespaceEntry struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + ParentID uint32 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` + ParentSchemaID uint32 `protobuf:"varint,4,opt,name=parent_schema_id,json=parentSchemaId,proto3" json:"parent_schema_id,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + PreviousId uint32 `protobuf:"varint,6,opt,name=previous_id,json=previousId,proto3" json:"previous_id,omitempty"` + Force bool `protobuf:"varint,7,opt,name=force,proto3" json:"force,omitempty"` + FailedValidation bool `protobuf:"varint,8,opt,name=failed_validation,json=failedValidation,proto3" json:"failed_validation,omitempty"` + ValidationErrors string `protobuf:"bytes,9,opt,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"` +} + +func (m *UnsafeUpsertNamespaceEntry) Reset() { *m = UnsafeUpsertNamespaceEntry{} } +func (m *UnsafeUpsertNamespaceEntry) String() string { return proto.CompactTextString(m) } +func (*UnsafeUpsertNamespaceEntry) ProtoMessage() {} +func (*UnsafeUpsertNamespaceEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{59} +} +func (m *UnsafeUpsertNamespaceEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UnsafeUpsertNamespaceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *UnsafeUpsertNamespaceEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnsafeUpsertNamespaceEntry.Merge(dst, src) +} +func (m *UnsafeUpsertNamespaceEntry) XXX_Size() int { + return m.Size() +} +func (m *UnsafeUpsertNamespaceEntry) XXX_DiscardUnknown() { + xxx_messageInfo_UnsafeUpsertNamespaceEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_UnsafeUpsertNamespaceEntry proto.InternalMessageInfo + +// UnsafeDeleteNamespaceEntry is recorded when a namespace entry is +// written using crdb_internal.unsafe_delete_namespace_entry. +type UnsafeDeleteNamespaceEntry struct { + CommonEventDetails `protobuf:"bytes,1,opt,name=common,proto3,embedded=common" json:""` + CommonSQLEventDetails `protobuf:"bytes,2,opt,name=sql,proto3,embedded=sql" json:""` + ParentID uint32 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` + ParentSchemaID uint32 `protobuf:"varint,4,opt,name=parent_schema_id,json=parentSchemaId,proto3" json:"parent_schema_id,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *UnsafeDeleteNamespaceEntry) Reset() { *m = UnsafeDeleteNamespaceEntry{} } +func (m *UnsafeDeleteNamespaceEntry) String() string { return proto.CompactTextString(m) } +func (*UnsafeDeleteNamespaceEntry) ProtoMessage() {} +func (*UnsafeDeleteNamespaceEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_events_915e589753a6fd1a, []int{60} +} +func (m *UnsafeDeleteNamespaceEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UnsafeDeleteNamespaceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *UnsafeDeleteNamespaceEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnsafeDeleteNamespaceEntry.Merge(dst, src) +} +func (m *UnsafeDeleteNamespaceEntry) XXX_Size() int { + return m.Size() +} +func (m *UnsafeDeleteNamespaceEntry) XXX_DiscardUnknown() { + xxx_messageInfo_UnsafeDeleteNamespaceEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_UnsafeDeleteNamespaceEntry proto.InternalMessageInfo + +func init() { + proto.RegisterType((*CommonEventDetails)(nil), "cockroach.util.eventlog.CommonEventDetails") + proto.RegisterType((*CommonSQLEventDetails)(nil), "cockroach.util.eventlog.CommonSQLEventDetails") + proto.RegisterType((*CommonSQLPrivilegeEventDetails)(nil), "cockroach.util.eventlog.CommonSQLPrivilegeEventDetails") + proto.RegisterType((*CommonNodeEventDetails)(nil), "cockroach.util.eventlog.CommonNodeEventDetails") + proto.RegisterType((*CreateDatabase)(nil), "cockroach.util.eventlog.CreateDatabase") + proto.RegisterType((*DropDatabase)(nil), "cockroach.util.eventlog.DropDatabase") + proto.RegisterType((*RenameDatabase)(nil), "cockroach.util.eventlog.RenameDatabase") + proto.RegisterType((*ConvertToSchema)(nil), "cockroach.util.eventlog.ConvertToSchema") + proto.RegisterType((*AlterDatabaseOwner)(nil), "cockroach.util.eventlog.AlterDatabaseOwner") + proto.RegisterType((*CreateSchema)(nil), "cockroach.util.eventlog.CreateSchema") + proto.RegisterType((*DropSchema)(nil), "cockroach.util.eventlog.DropSchema") + proto.RegisterType((*RenameSchema)(nil), "cockroach.util.eventlog.RenameSchema") + proto.RegisterType((*AlterSchemaOwner)(nil), "cockroach.util.eventlog.AlterSchemaOwner") + proto.RegisterType((*CreateTable)(nil), "cockroach.util.eventlog.CreateTable") + proto.RegisterType((*DropTable)(nil), "cockroach.util.eventlog.DropTable") + proto.RegisterType((*RenameTable)(nil), "cockroach.util.eventlog.RenameTable") + proto.RegisterType((*TruncateTable)(nil), "cockroach.util.eventlog.TruncateTable") + proto.RegisterType((*AlterTable)(nil), "cockroach.util.eventlog.AlterTable") + proto.RegisterType((*CommentOnColumn)(nil), "cockroach.util.eventlog.CommentOnColumn") + proto.RegisterType((*CommentOnDatabase)(nil), "cockroach.util.eventlog.CommentOnDatabase") + proto.RegisterType((*CommentOnTable)(nil), "cockroach.util.eventlog.CommentOnTable") + proto.RegisterType((*CommentOnIndex)(nil), "cockroach.util.eventlog.CommentOnIndex") + proto.RegisterType((*CreateIndex)(nil), "cockroach.util.eventlog.CreateIndex") + proto.RegisterType((*DropIndex)(nil), "cockroach.util.eventlog.DropIndex") + proto.RegisterType((*AlterIndex)(nil), "cockroach.util.eventlog.AlterIndex") + proto.RegisterType((*CreateView)(nil), "cockroach.util.eventlog.CreateView") + proto.RegisterType((*DropView)(nil), "cockroach.util.eventlog.DropView") + proto.RegisterType((*CreateSequence)(nil), "cockroach.util.eventlog.CreateSequence") + proto.RegisterType((*DropSequence)(nil), "cockroach.util.eventlog.DropSequence") + proto.RegisterType((*AlterSequence)(nil), "cockroach.util.eventlog.AlterSequence") + proto.RegisterType((*ReverseSchemaChange)(nil), "cockroach.util.eventlog.ReverseSchemaChange") + proto.RegisterType((*FinishSchemaChange)(nil), "cockroach.util.eventlog.FinishSchemaChange") + proto.RegisterType((*FinishSchemaRollback)(nil), "cockroach.util.eventlog.FinishSchemaRollback") + proto.RegisterType((*CreateType)(nil), "cockroach.util.eventlog.CreateType") + proto.RegisterType((*DropType)(nil), "cockroach.util.eventlog.DropType") + proto.RegisterType((*AlterType)(nil), "cockroach.util.eventlog.AlterType") + proto.RegisterType((*NodeJoin)(nil), "cockroach.util.eventlog.NodeJoin") + proto.RegisterType((*NodeRestart)(nil), "cockroach.util.eventlog.NodeRestart") + proto.RegisterType((*NodeDecommissioning)(nil), "cockroach.util.eventlog.NodeDecommissioning") + proto.RegisterType((*NodeDecommissioned)(nil), "cockroach.util.eventlog.NodeDecommissioned") + proto.RegisterType((*NodeRecommissioned)(nil), "cockroach.util.eventlog.NodeRecommissioned") + proto.RegisterType((*SetClusterSetting)(nil), "cockroach.util.eventlog.SetClusterSetting") + proto.RegisterType((*ZoneConfigDetails)(nil), "cockroach.util.eventlog.ZoneConfigDetails") + proto.RegisterType((*SetZoneConfig)(nil), "cockroach.util.eventlog.SetZoneConfig") + proto.RegisterType((*RemoveZoneConfig)(nil), "cockroach.util.eventlog.RemoveZoneConfig") + proto.RegisterType((*CreateStatistics)(nil), "cockroach.util.eventlog.CreateStatistics") + proto.RegisterType((*GrantDatabasePrivilege)(nil), "cockroach.util.eventlog.GrantDatabasePrivilege") + proto.RegisterType((*RevokeDatabasePrivilege)(nil), "cockroach.util.eventlog.RevokeDatabasePrivilege") + proto.RegisterType((*GrantTablePrivilege)(nil), "cockroach.util.eventlog.GrantTablePrivilege") + proto.RegisterType((*RevokeTablePrivilege)(nil), "cockroach.util.eventlog.RevokeTablePrivilege") + proto.RegisterType((*GrantSchemaPrivilege)(nil), "cockroach.util.eventlog.GrantSchemaPrivilege") + proto.RegisterType((*RevokeSchemaPrivilege)(nil), "cockroach.util.eventlog.RevokeSchemaPrivilege") + proto.RegisterType((*GrantTypePrivilege)(nil), "cockroach.util.eventlog.GrantTypePrivilege") + proto.RegisterType((*RevokeTypePrivilege)(nil), "cockroach.util.eventlog.RevokeTypePrivilege") + proto.RegisterType((*CreateRole)(nil), "cockroach.util.eventlog.CreateRole") + proto.RegisterType((*DropRole)(nil), "cockroach.util.eventlog.DropRole") + proto.RegisterType((*AlterRole)(nil), "cockroach.util.eventlog.AlterRole") + proto.RegisterType((*UnsafeUpsertDescriptor)(nil), "cockroach.util.eventlog.UnsafeUpsertDescriptor") + proto.RegisterType((*UnsafeDeleteDescriptor)(nil), "cockroach.util.eventlog.UnsafeDeleteDescriptor") + proto.RegisterType((*UnsafeUpsertNamespaceEntry)(nil), "cockroach.util.eventlog.UnsafeUpsertNamespaceEntry") + proto.RegisterType((*UnsafeDeleteNamespaceEntry)(nil), "cockroach.util.eventlog.UnsafeDeleteNamespaceEntry") +} +func (m *CommonEventDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommonEventDetails) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp))) + n1, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + return i, nil +} + +func (m *CommonSQLEventDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommonSQLEventDetails) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Statement) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Statement))) + i += copy(dAtA[i:], m.Statement) + } + if len(m.User) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.User))) + i += copy(dAtA[i:], m.User) + } + if m.InstanceID != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.InstanceID)) + } + if m.DescriptorID != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.DescriptorID)) + } + return i, nil +} + +func (m *CommonSQLPrivilegeEventDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommonSQLPrivilegeEventDetails) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Grantee) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Grantee))) + i += copy(dAtA[i:], m.Grantee) + } + if len(m.Privileges) > 0 { + for _, s := range m.Privileges { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func (m *CommonNodeEventDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommonNodeEventDetails) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.NodeID != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.NodeID)) + } + if m.Descriptor_ != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.Descriptor_.Size())) + n2, err := m.Descriptor_.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + } + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.ClusterID.Size())) + n3, err := m.ClusterID.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + if m.StartedAt != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.StartedAt)) + } + if m.LastUp != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.LastUp)) + } + return i, nil +} + +func (m *CreateDatabase) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateDatabase) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n4, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n5, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + if len(m.DatabaseName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.DatabaseName))) + i += copy(dAtA[i:], m.DatabaseName) + } + return i, nil +} + +func (m *DropDatabase) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DropDatabase) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n6, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n7, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 + if len(m.DatabaseName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.DatabaseName))) + i += copy(dAtA[i:], m.DatabaseName) + } + if len(m.DroppedSchemaObjects) > 0 { + for _, s := range m.DroppedSchemaObjects { + dAtA[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func (m *RenameDatabase) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RenameDatabase) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n8, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n9, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 + if len(m.DatabaseName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.DatabaseName))) + i += copy(dAtA[i:], m.DatabaseName) + } + if len(m.NewDatabaseName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewDatabaseName))) + i += copy(dAtA[i:], m.NewDatabaseName) + } + return i, nil +} + +func (m *ConvertToSchema) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConvertToSchema) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n10, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n11, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + if len(m.DatabaseName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.DatabaseName))) + i += copy(dAtA[i:], m.DatabaseName) + } + if len(m.NewDatabaseParent) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewDatabaseParent))) + i += copy(dAtA[i:], m.NewDatabaseParent) + } + return i, nil +} + +func (m *AlterDatabaseOwner) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AlterDatabaseOwner) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n12, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n13, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 + if len(m.DatabaseName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.DatabaseName))) + i += copy(dAtA[i:], m.DatabaseName) + } + if len(m.Owner) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Owner))) + i += copy(dAtA[i:], m.Owner) + } + return i, nil +} + +func (m *CreateSchema) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateSchema) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n14, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n15, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 + if len(m.SchemaName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SchemaName))) + i += copy(dAtA[i:], m.SchemaName) + } + if len(m.Owner) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Owner))) + i += copy(dAtA[i:], m.Owner) + } + return i, nil +} + +func (m *DropSchema) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DropSchema) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n16, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n17, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 + if len(m.SchemaName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SchemaName))) + i += copy(dAtA[i:], m.SchemaName) + } + return i, nil +} + +func (m *RenameSchema) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RenameSchema) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n18, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n19, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 + if len(m.SchemaName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SchemaName))) + i += copy(dAtA[i:], m.SchemaName) + } + if len(m.NewSchemaName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewSchemaName))) + i += copy(dAtA[i:], m.NewSchemaName) + } + return i, nil +} + +func (m *AlterSchemaOwner) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AlterSchemaOwner) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n20, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n21, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 + if len(m.SchemaName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SchemaName))) + i += copy(dAtA[i:], m.SchemaName) + } + if len(m.Owner) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Owner))) + i += copy(dAtA[i:], m.Owner) + } + return i, nil +} + +func (m *CreateTable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateTable) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n22, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n23, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.Owner) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Owner))) + i += copy(dAtA[i:], m.Owner) + } + return i, nil +} + +func (m *DropTable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DropTable) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n24, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n24 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n25, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.CascadeDroppedViews) > 0 { + for _, s := range m.CascadeDroppedViews { + dAtA[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func (m *RenameTable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RenameTable) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n26, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n26 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n27, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.NewTableName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewTableName))) + i += copy(dAtA[i:], m.NewTableName) + } + return i, nil +} + +func (m *TruncateTable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TruncateTable) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n28, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n29, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + return i, nil +} + +func (m *AlterTable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AlterTable) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n30, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n31, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n31 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if m.MutationID != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.MutationID)) + } + if len(m.CascadeDroppedViews) > 0 { + for _, s := range m.CascadeDroppedViews { + dAtA[i] = 0x2a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func (m *CommentOnColumn) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommentOnColumn) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n32, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n32 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n33, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n33 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.ColumnName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.ColumnName))) + i += copy(dAtA[i:], m.ColumnName) + } + if len(m.Comment) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Comment))) + i += copy(dAtA[i:], m.Comment) + } + return i, nil +} + +func (m *CommentOnDatabase) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommentOnDatabase) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n34, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n34 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n35, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n35 + if len(m.DatabaseName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.DatabaseName))) + i += copy(dAtA[i:], m.DatabaseName) + } + if len(m.Comment) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Comment))) + i += copy(dAtA[i:], m.Comment) + } + return i, nil +} + +func (m *CommentOnTable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommentOnTable) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n36, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n36 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n37, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n37 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.Comment) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Comment))) + i += copy(dAtA[i:], m.Comment) + } + return i, nil +} + +func (m *CommentOnIndex) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommentOnIndex) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n38, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n39, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n39 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.IndexName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.IndexName))) + i += copy(dAtA[i:], m.IndexName) + } + if len(m.Comment) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Comment))) + i += copy(dAtA[i:], m.Comment) + } + return i, nil +} + +func (m *CreateIndex) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateIndex) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n40, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n40 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n41, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n41 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.IndexName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.IndexName))) + i += copy(dAtA[i:], m.IndexName) + } + if m.MutationID != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.MutationID)) + } + return i, nil +} + +func (m *DropIndex) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DropIndex) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n42, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n42 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n43, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n43 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.IndexName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.IndexName))) + i += copy(dAtA[i:], m.IndexName) + } + if m.MutationID != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.MutationID)) + } + if len(m.CascadeDroppedViews) > 0 { + for _, s := range m.CascadeDroppedViews { + dAtA[i] = 0x32 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func (m *AlterIndex) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AlterIndex) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n44, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n44 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n45, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n45 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if len(m.IndexName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.IndexName))) + i += copy(dAtA[i:], m.IndexName) + } + if m.MutationID != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.MutationID)) + } + return i, nil +} + +func (m *CreateView) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateView) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n46, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n46 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n47, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n47 + if len(m.ViewName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.ViewName))) + i += copy(dAtA[i:], m.ViewName) + } + if len(m.Owner) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Owner))) + i += copy(dAtA[i:], m.Owner) + } + if len(m.ViewQuery) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.ViewQuery))) + i += copy(dAtA[i:], m.ViewQuery) + } + return i, nil +} + +func (m *DropView) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DropView) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n48, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n49, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n49 + if len(m.ViewName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.ViewName))) + i += copy(dAtA[i:], m.ViewName) + } + if len(m.CascadeDroppedViews) > 0 { + for _, s := range m.CascadeDroppedViews { + dAtA[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func (m *CreateSequence) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateSequence) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n50, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n50 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n51, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n51 + if len(m.SequenceName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SequenceName))) + i += copy(dAtA[i:], m.SequenceName) + } + if len(m.Owner) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Owner))) + i += copy(dAtA[i:], m.Owner) + } + return i, nil +} + +func (m *DropSequence) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DropSequence) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n52, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n52 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n53, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n53 + if len(m.SequenceName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SequenceName))) + i += copy(dAtA[i:], m.SequenceName) + } + return i, nil +} + +func (m *AlterSequence) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AlterSequence) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n54, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n54 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n55, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n55 + if len(m.SequenceName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SequenceName))) + i += copy(dAtA[i:], m.SequenceName) + } + return i, nil +} + +func (m *ReverseSchemaChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReverseSchemaChange) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n56, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n56 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n57, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n57 + if m.MutationID != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.MutationID)) + } + if len(m.Error) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) + } + return i, nil +} + +func (m *FinishSchemaChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FinishSchemaChange) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n58, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n58 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n59, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n59 + if m.MutationID != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.MutationID)) + } + return i, nil +} + +func (m *FinishSchemaRollback) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FinishSchemaRollback) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n60, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n60 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n61, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n61 + if m.MutationID != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.MutationID)) + } + return i, nil +} + +func (m *CreateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateType) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n62, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n62 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n63, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n63 + if len(m.TypeName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TypeName))) + i += copy(dAtA[i:], m.TypeName) + } + if len(m.Owner) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Owner))) + i += copy(dAtA[i:], m.Owner) + } + return i, nil +} + +func (m *DropType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DropType) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n64, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n64 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n65, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n65 + if len(m.TypeName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TypeName))) + i += copy(dAtA[i:], m.TypeName) + } + return i, nil +} + +func (m *AlterType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AlterType) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n66, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n66 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n67, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n67 + if len(m.TypeName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TypeName))) + i += copy(dAtA[i:], m.TypeName) + } + return i, nil +} + +func (m *NodeJoin) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NodeJoin) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n68, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n68 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonNodeEventDetails.Size())) + n69, err := m.CommonNodeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n69 + return i, nil +} + +func (m *NodeRestart) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NodeRestart) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n70, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n70 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonNodeEventDetails.Size())) + n71, err := m.CommonNodeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n71 + return i, nil +} + +func (m *NodeDecommissioning) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NodeDecommissioning) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n72, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n72 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonNodeEventDetails.Size())) + n73, err := m.CommonNodeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n73 + return i, nil +} + +func (m *NodeDecommissioned) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NodeDecommissioned) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n74, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n74 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonNodeEventDetails.Size())) + n75, err := m.CommonNodeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n75 + return i, nil +} + +func (m *NodeRecommissioned) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NodeRecommissioned) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n76, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n76 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonNodeEventDetails.Size())) + n77, err := m.CommonNodeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n77 + return i, nil +} + +func (m *SetClusterSetting) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetClusterSetting) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n78, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n78 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n79, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n79 + if len(m.SettingName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SettingName))) + i += copy(dAtA[i:], m.SettingName) + } + if len(m.Value) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) + } + return i, nil +} + +func (m *ZoneConfigDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ZoneConfigDetails) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Target) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Target))) + i += copy(dAtA[i:], m.Target) + } + if len(m.Config) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Config))) + i += copy(dAtA[i:], m.Config) + } + if len(m.Options) > 0 { + for _, s := range m.Options { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func (m *SetZoneConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetZoneConfig) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n80, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n80 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n81, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n81 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.ZoneConfigDetails.Size())) + n82, err := m.ZoneConfigDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n82 + return i, nil +} + +func (m *RemoveZoneConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveZoneConfig) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n83, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n83 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n84, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n84 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.ZoneConfigDetails.Size())) + n85, err := m.ZoneConfigDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n85 + return i, nil +} + +func (m *CreateStatistics) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateStatistics) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n86, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n86 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n87, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n87 + if len(m.TableName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + return i, nil +} + +func (m *GrantDatabasePrivilege) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GrantDatabasePrivilege) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n88, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n88 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n89, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n89 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLPrivilegeEventDetails.Size())) + n90, err := m.CommonSQLPrivilegeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n90 + if len(m.DatabaseName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.DatabaseName))) + i += copy(dAtA[i:], m.DatabaseName) + } + return i, nil +} + +func (m *RevokeDatabasePrivilege) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RevokeDatabasePrivilege) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n91, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n91 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n92, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n92 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLPrivilegeEventDetails.Size())) + n93, err := m.CommonSQLPrivilegeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n93 + if len(m.DatabaseName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.DatabaseName))) + i += copy(dAtA[i:], m.DatabaseName) + } + return i, nil +} + +func (m *GrantTablePrivilege) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GrantTablePrivilege) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n94, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n94 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n95, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n95 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLPrivilegeEventDetails.Size())) + n96, err := m.CommonSQLPrivilegeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n96 + if len(m.TableName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + return i, nil +} + +func (m *RevokeTablePrivilege) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RevokeTablePrivilege) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n97, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n97 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n98, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n98 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLPrivilegeEventDetails.Size())) + n99, err := m.CommonSQLPrivilegeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n99 + if len(m.TableName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + return i, nil +} + +func (m *GrantSchemaPrivilege) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GrantSchemaPrivilege) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n100, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n100 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n101, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n101 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLPrivilegeEventDetails.Size())) + n102, err := m.CommonSQLPrivilegeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n102 + if len(m.SchemaName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SchemaName))) + i += copy(dAtA[i:], m.SchemaName) + } + return i, nil +} + +func (m *RevokeSchemaPrivilege) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RevokeSchemaPrivilege) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n103, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n103 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n104, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n104 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLPrivilegeEventDetails.Size())) + n105, err := m.CommonSQLPrivilegeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n105 + if len(m.SchemaName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.SchemaName))) + i += copy(dAtA[i:], m.SchemaName) + } + return i, nil +} + +func (m *GrantTypePrivilege) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GrantTypePrivilege) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n106, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n106 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n107, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n107 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLPrivilegeEventDetails.Size())) + n108, err := m.CommonSQLPrivilegeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n108 + if len(m.TypeName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TypeName))) + i += copy(dAtA[i:], m.TypeName) + } + return i, nil +} + +func (m *RevokeTypePrivilege) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RevokeTypePrivilege) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n109, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n109 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n110, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n110 + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLPrivilegeEventDetails.Size())) + n111, err := m.CommonSQLPrivilegeEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n111 + if len(m.TypeName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.TypeName))) + i += copy(dAtA[i:], m.TypeName) + } + return i, nil +} + +func (m *CreateRole) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateRole) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n112, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n112 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n113, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n113 + if len(m.RoleName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.RoleName))) + i += copy(dAtA[i:], m.RoleName) + } + return i, nil +} + +func (m *DropRole) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DropRole) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n114, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n114 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n115, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n115 + if len(m.RoleName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.RoleName))) + i += copy(dAtA[i:], m.RoleName) + } + return i, nil +} + +func (m *AlterRole) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AlterRole) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n116, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n116 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n117, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n117 + if len(m.RoleName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.RoleName))) + i += copy(dAtA[i:], m.RoleName) + } + return i, nil +} + +func (m *UnsafeUpsertDescriptor) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnsafeUpsertDescriptor) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n118, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n118 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n119, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n119 + if len(m.PreviousDescriptor) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.PreviousDescriptor))) + i += copy(dAtA[i:], m.PreviousDescriptor) + } + if len(m.NewDescriptor) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewDescriptor))) + i += copy(dAtA[i:], m.NewDescriptor) + } + return i, nil +} + +func (m *UnsafeDeleteDescriptor) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnsafeDeleteDescriptor) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n120, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n120 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n121, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n121 + if m.ParentID != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.ParentID)) + } + if m.ParentSchemaID != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.ParentSchemaID)) + } + if len(m.Name) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + return i, nil +} + +func (m *UnsafeUpsertNamespaceEntry) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnsafeUpsertNamespaceEntry) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n122, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n122 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n123, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n123 + if m.ParentID != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.ParentID)) + } + if m.ParentSchemaID != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.ParentSchemaID)) + } + if len(m.Name) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if m.PreviousId != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.PreviousId)) + } + if m.Force { + dAtA[i] = 0x38 + i++ + if m.Force { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.FailedValidation { + dAtA[i] = 0x40 + i++ + if m.FailedValidation { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.ValidationErrors) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.ValidationErrors))) + i += copy(dAtA[i:], m.ValidationErrors) + } + return i, nil +} + +func (m *UnsafeDeleteNamespaceEntry) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnsafeDeleteNamespaceEntry) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonEventDetails.Size())) + n124, err := m.CommonEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n124 + dAtA[i] = 0x12 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.CommonSQLEventDetails.Size())) + n125, err := m.CommonSQLEventDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n125 + if m.ParentID != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.ParentID)) + } + if m.ParentSchemaID != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintEvents(dAtA, i, uint64(m.ParentSchemaID)) + } + if len(m.Name) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEvents(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + return i, nil +} + +func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *CommonEventDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *CommonSQLEventDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Statement) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.User) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.InstanceID != 0 { + n += 1 + sovEvents(uint64(m.InstanceID)) + } + if m.DescriptorID != 0 { + n += 1 + sovEvents(uint64(m.DescriptorID)) + } + return n +} + +func (m *CommonSQLPrivilegeEventDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Grantee) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if len(m.Privileges) > 0 { + for _, s := range m.Privileges { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + +func (m *CommonNodeEventDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NodeID != 0 { + n += 1 + sovEvents(uint64(m.NodeID)) + } + if m.Descriptor_ != nil { + l = m.Descriptor_.Size() + n += 1 + l + sovEvents(uint64(l)) + } + l = m.ClusterID.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.StartedAt != 0 { + n += 1 + sovEvents(uint64(m.StartedAt)) + } + if m.LastUp != 0 { + n += 1 + sovEvents(uint64(m.LastUp)) + } + return n +} + +func (m *CreateDatabase) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.DatabaseName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *DropDatabase) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.DatabaseName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if len(m.DroppedSchemaObjects) > 0 { + for _, s := range m.DroppedSchemaObjects { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + +func (m *RenameDatabase) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.DatabaseName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewDatabaseName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *ConvertToSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.DatabaseName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewDatabaseParent) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *AlterDatabaseOwner) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.DatabaseName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *CreateSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SchemaName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *DropSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SchemaName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *RenameSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SchemaName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewSchemaName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *AlterSchemaOwner) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SchemaName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *CreateTable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *DropTable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if len(m.CascadeDroppedViews) > 0 { + for _, s := range m.CascadeDroppedViews { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + +func (m *RenameTable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewTableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *TruncateTable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *AlterTable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.MutationID != 0 { + n += 1 + sovEvents(uint64(m.MutationID)) + } + if len(m.CascadeDroppedViews) > 0 { + for _, s := range m.CascadeDroppedViews { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + +func (m *CommentOnColumn) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.ColumnName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Comment) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *CommentOnDatabase) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.DatabaseName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Comment) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *CommentOnTable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Comment) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *CommentOnIndex) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.IndexName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Comment) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *CreateIndex) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.IndexName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.MutationID != 0 { + n += 1 + sovEvents(uint64(m.MutationID)) + } + return n +} + +func (m *DropIndex) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.IndexName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.MutationID != 0 { + n += 1 + sovEvents(uint64(m.MutationID)) + } + if len(m.CascadeDroppedViews) > 0 { + for _, s := range m.CascadeDroppedViews { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + +func (m *AlterIndex) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.IndexName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.MutationID != 0 { + n += 1 + sovEvents(uint64(m.MutationID)) + } + return n +} + +func (m *CreateView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.ViewName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.ViewQuery) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *DropView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.ViewName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if len(m.CascadeDroppedViews) > 0 { + for _, s := range m.CascadeDroppedViews { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + +func (m *CreateSequence) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SequenceName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *DropSequence) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SequenceName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *AlterSequence) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SequenceName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *ReverseSchemaChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.MutationID != 0 { + n += 1 + sovEvents(uint64(m.MutationID)) + } + l = len(m.Error) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *FinishSchemaChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.MutationID != 0 { + n += 1 + sovEvents(uint64(m.MutationID)) + } + return n +} + +func (m *FinishSchemaRollback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.MutationID != 0 { + n += 1 + sovEvents(uint64(m.MutationID)) + } + return n +} + +func (m *CreateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TypeName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *DropType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TypeName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *AlterType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TypeName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *NodeJoin) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonNodeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *NodeRestart) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonNodeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *NodeDecommissioning) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonNodeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *NodeDecommissioned) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonNodeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *NodeRecommissioned) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonNodeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *SetClusterSetting) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SettingName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *ZoneConfigDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Target) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Config) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if len(m.Options) > 0 { + for _, s := range m.Options { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + +func (m *SetZoneConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.ZoneConfigDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *RemoveZoneConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.ZoneConfigDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *CreateStatistics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *GrantDatabasePrivilege) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLPrivilegeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.DatabaseName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *RevokeDatabasePrivilege) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLPrivilegeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.DatabaseName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *GrantTablePrivilege) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLPrivilegeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *RevokeTablePrivilege) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLPrivilegeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *GrantSchemaPrivilege) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLPrivilegeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SchemaName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *RevokeSchemaPrivilege) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLPrivilegeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.SchemaName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *GrantTypePrivilege) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLPrivilegeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TypeName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *RevokeTypePrivilege) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLPrivilegeEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.TypeName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *CreateRole) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.RoleName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *DropRole) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.RoleName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *AlterRole) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.RoleName) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *UnsafeUpsertDescriptor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.PreviousDescriptor) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewDescriptor) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *UnsafeDeleteDescriptor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.ParentID != 0 { + n += 1 + sovEvents(uint64(m.ParentID)) + } + if m.ParentSchemaID != 0 { + n += 1 + sovEvents(uint64(m.ParentSchemaID)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *UnsafeUpsertNamespaceEntry) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.ParentID != 0 { + n += 1 + sovEvents(uint64(m.ParentID)) + } + if m.ParentSchemaID != 0 { + n += 1 + sovEvents(uint64(m.ParentSchemaID)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.PreviousId != 0 { + n += 1 + sovEvents(uint64(m.PreviousId)) + } + if m.Force { + n += 2 + } + if m.FailedValidation { + n += 2 + } + l = len(m.ValidationErrors) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func (m *UnsafeDeleteNamespaceEntry) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CommonEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CommonSQLEventDetails.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.ParentID != 0 { + n += 1 + sovEvents(uint64(m.ParentID)) + } + if m.ParentSchemaID != 0 { + n += 1 + sovEvents(uint64(m.ParentSchemaID)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + +func sovEvents(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozEvents(x uint64) (n int) { + return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CommonEventDetails) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommonEventDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommonEventDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommonSQLEventDetails) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommonSQLEventDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommonSQLEventDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statement", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Statement = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.User = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceID", wireType) + } + m.InstanceID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.InstanceID |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DescriptorID", wireType) + } + m.DescriptorID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DescriptorID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommonSQLPrivilegeEventDetails) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommonSQLPrivilegeEventDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommonSQLPrivilegeEventDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Grantee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Privileges", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Privileges = append(m.Privileges, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommonNodeEventDetails) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommonNodeEventDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommonNodeEventDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeID", wireType) + } + m.NodeID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodeID |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Descriptor_", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Descriptor_ == nil { + m.Descriptor_ = &roachpb.NodeDescriptor{} + } + if err := m.Descriptor_.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterID", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ClusterID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) + } + m.StartedAt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartedAt |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUp", wireType) + } + m.LastUp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastUp |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateDatabase) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateDatabase: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateDatabase: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatabaseName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DropDatabase) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DropDatabase: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DropDatabase: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatabaseName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedSchemaObjects", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DroppedSchemaObjects = append(m.DroppedSchemaObjects, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RenameDatabase) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RenameDatabase: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RenameDatabase: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatabaseName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewDatabaseName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewDatabaseName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConvertToSchema) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ConvertToSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConvertToSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatabaseName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewDatabaseParent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewDatabaseParent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlterDatabaseOwner) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AlterDatabaseOwner: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlterDatabaseOwner: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatabaseName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateSchema) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DropSchema) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DropSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DropSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RenameSchema) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RenameSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RenameSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewSchemaName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewSchemaName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlterSchemaOwner) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AlterSchemaOwner: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlterSchemaOwner: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateTable) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateTable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateTable: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DropTable) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DropTable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DropTable: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CascadeDroppedViews", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CascadeDroppedViews = append(m.CascadeDroppedViews, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RenameTable) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RenameTable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RenameTable: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewTableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewTableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TruncateTable) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TruncateTable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TruncateTable: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlterTable) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AlterTable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlterTable: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MutationID", wireType) + } + m.MutationID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MutationID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CascadeDroppedViews", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CascadeDroppedViews = append(m.CascadeDroppedViews, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommentOnColumn) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommentOnColumn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommentOnColumn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ColumnName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ColumnName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Comment", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Comment = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommentOnDatabase) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommentOnDatabase: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommentOnDatabase: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatabaseName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Comment", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Comment = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommentOnTable) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommentOnTable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommentOnTable: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Comment", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Comment = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CommentOnIndex) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommentOnIndex: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommentOnIndex: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IndexName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IndexName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Comment", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Comment = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateIndex) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateIndex: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateIndex: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IndexName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IndexName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MutationID", wireType) + } + m.MutationID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MutationID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DropIndex) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DropIndex: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DropIndex: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IndexName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IndexName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MutationID", wireType) + } + m.MutationID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MutationID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CascadeDroppedViews", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CascadeDroppedViews = append(m.CascadeDroppedViews, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlterIndex) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AlterIndex: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlterIndex: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IndexName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IndexName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MutationID", wireType) + } + m.MutationID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MutationID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateView) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ViewName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ViewName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ViewQuery", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ViewQuery = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DropView) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DropView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DropView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ViewName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ViewName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CascadeDroppedViews", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CascadeDroppedViews = append(m.CascadeDroppedViews, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateSequence) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateSequence: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateSequence: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SequenceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SequenceName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DropSequence) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DropSequence: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DropSequence: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SequenceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SequenceName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlterSequence) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AlterSequence: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlterSequence: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SequenceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SequenceName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReverseSchemaChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReverseSchemaChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReverseSchemaChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MutationID", wireType) + } + m.MutationID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MutationID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FinishSchemaChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FinishSchemaChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FinishSchemaChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MutationID", wireType) + } + m.MutationID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MutationID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FinishSchemaRollback) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FinishSchemaRollback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FinishSchemaRollback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MutationID", wireType) + } + m.MutationID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MutationID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateType: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateType: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TypeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DropType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DropType: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DropType: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TypeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlterType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AlterType: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlterType: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TypeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NodeJoin) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NodeJoin: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeJoin: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonNodeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonNodeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NodeRestart) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NodeRestart: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeRestart: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonNodeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonNodeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NodeDecommissioning) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NodeDecommissioning: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeDecommissioning: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonNodeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonNodeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NodeDecommissioned) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NodeDecommissioned: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeDecommissioned: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonNodeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonNodeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NodeRecommissioned) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NodeRecommissioned: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeRecommissioned: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonNodeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonNodeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetClusterSetting) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetClusterSetting: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetClusterSetting: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SettingName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SettingName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ZoneConfigDetails) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ZoneConfigDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ZoneConfigDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Target = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Config = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Options = append(m.Options, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetZoneConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetZoneConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetZoneConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ZoneConfigDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ZoneConfigDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveZoneConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveZoneConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveZoneConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ZoneConfigDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ZoneConfigDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateStatistics) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateStatistics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateStatistics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GrantDatabasePrivilege) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GrantDatabasePrivilege: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GrantDatabasePrivilege: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLPrivilegeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLPrivilegeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatabaseName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RevokeDatabasePrivilege) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RevokeDatabasePrivilege: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RevokeDatabasePrivilege: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLPrivilegeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLPrivilegeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatabaseName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GrantTablePrivilege) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GrantTablePrivilege: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GrantTablePrivilege: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLPrivilegeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLPrivilegeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RevokeTablePrivilege) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RevokeTablePrivilege: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RevokeTablePrivilege: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLPrivilegeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLPrivilegeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GrantSchemaPrivilege) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GrantSchemaPrivilege: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GrantSchemaPrivilege: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLPrivilegeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLPrivilegeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RevokeSchemaPrivilege) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RevokeSchemaPrivilege: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RevokeSchemaPrivilege: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLPrivilegeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLPrivilegeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GrantTypePrivilege) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GrantTypePrivilege: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GrantTypePrivilege: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLPrivilegeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLPrivilegeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TypeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RevokeTypePrivilege) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RevokeTypePrivilege: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RevokeTypePrivilege: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLPrivilegeEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLPrivilegeEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TypeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateRole) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateRole: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateRole: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoleName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RoleName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DropRole) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DropRole: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DropRole: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoleName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RoleName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlterRole) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AlterRole: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlterRole: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoleName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RoleName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnsafeUpsertDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnsafeUpsertDescriptor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnsafeUpsertDescriptor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousDescriptor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousDescriptor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewDescriptor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewDescriptor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnsafeDeleteDescriptor) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnsafeDeleteDescriptor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnsafeDeleteDescriptor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentID", wireType) + } + m.ParentID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ParentID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentSchemaID", wireType) + } + m.ParentSchemaID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ParentSchemaID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnsafeUpsertNamespaceEntry) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnsafeUpsertNamespaceEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnsafeUpsertNamespaceEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentID", wireType) + } + m.ParentID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ParentID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentSchemaID", wireType) + } + m.ParentSchemaID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ParentSchemaID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousId", wireType) + } + m.PreviousId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PreviousId |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Force = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailedValidation", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.FailedValidation = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidationErrors", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidationErrors = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UnsafeDeleteNamespaceEntry) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UnsafeDeleteNamespaceEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnsafeDeleteNamespaceEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommonSQLEventDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommonSQLEventDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentID", wireType) + } + m.ParentID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ParentID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentSchemaID", wireType) + } + m.ParentSchemaID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ParentSchemaID |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEvents(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthEvents + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEvents + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipEvents(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") +) + +func init() { + proto.RegisterFile("util/log/eventpb/events.proto", fileDescriptor_events_915e589753a6fd1a) +} + +var fileDescriptor_events_915e589753a6fd1a = []byte{ + // 1942 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0xcd, 0x6f, 0x23, 0x49, + 0x15, 0x4f, 0xb5, 0x9d, 0xc4, 0x7e, 0x76, 0xb2, 0x49, 0x27, 0x93, 0xb1, 0x06, 0xc6, 0xce, 0x36, + 0x1f, 0xca, 0xee, 0x22, 0x5b, 0xcc, 0x82, 0xb8, 0x70, 0x99, 0xc4, 0x03, 0x18, 0xc1, 0x7c, 0x74, + 0x92, 0x95, 0x18, 0x84, 0xac, 0x76, 0xf7, 0x8b, 0xd3, 0x4c, 0xbb, 0xab, 0xa7, 0xbb, 0xec, 0x90, + 0xe3, 0x4a, 0x2b, 0x21, 0x04, 0x42, 0x2b, 0x71, 0x87, 0x3f, 0x01, 0x96, 0x05, 0x81, 0xf8, 0x3a, + 0x8f, 0xf8, 0x90, 0x66, 0x25, 0x04, 0x23, 0x0e, 0x06, 0x3c, 0x42, 0x5a, 0x8d, 0x56, 0x20, 0x21, + 0x71, 0xe1, 0x00, 0xa8, 0xaa, 0xba, 0xdd, 0x6d, 0x67, 0x92, 0x90, 0xd1, 0xee, 0xa1, 0x7b, 0x7d, + 0xb2, 0xeb, 0xd5, 0xeb, 0x57, 0xf5, 0xfb, 0xd5, 0x7b, 0xaf, 0x3e, 0xba, 0x1a, 0xae, 0xf6, 0x99, + 0xed, 0x34, 0x1c, 0xda, 0x6d, 0xe0, 0x00, 0x5d, 0xe6, 0x75, 0xe4, 0x6f, 0x50, 0xf7, 0x7c, 0xca, + 0xa8, 0x7a, 0xd9, 0xa4, 0xe6, 0x3d, 0x9f, 0x1a, 0xe6, 0x61, 0x9d, 0x2b, 0xd6, 0x45, 0xa5, 0x43, + 0xbb, 0x57, 0xd6, 0xbb, 0xb4, 0x4b, 0x85, 0x4e, 0x83, 0xff, 0x93, 0xea, 0x57, 0x6a, 0x5d, 0x4a, + 0xbb, 0x0e, 0x36, 0x44, 0xa9, 0xd3, 0x3f, 0x68, 0x30, 0xbb, 0x87, 0x01, 0x33, 0x7a, 0x5e, 0xa8, + 0xb0, 0x21, 0x6c, 0x79, 0x9d, 0x46, 0x0f, 0x99, 0x61, 0x19, 0xcc, 0x90, 0x72, 0x8d, 0x82, 0xba, + 0x43, 0x7b, 0x3d, 0xea, 0xde, 0xe0, 0x0d, 0x34, 0x91, 0x19, 0xb6, 0x13, 0xa8, 0x5f, 0x82, 0xe2, + 0xd8, 0x40, 0x85, 0x6c, 0x92, 0xad, 0xd2, 0xb5, 0x2b, 0x75, 0xd9, 0x44, 0x3d, 0x6a, 0xa2, 0xbe, + 0x17, 0x69, 0x6c, 0xd7, 0x1e, 0x0c, 0x6b, 0x73, 0x4f, 0x86, 0xb5, 0xb5, 0xf1, 0x43, 0x1f, 0xa3, + 0x3d, 0x9b, 0x61, 0xcf, 0x63, 0xc7, 0xaf, 0xff, 0xb9, 0x46, 0xf4, 0xd8, 0x9a, 0xf6, 0x06, 0x81, + 0x4b, 0xb2, 0xc5, 0xdd, 0x3b, 0x5f, 0x98, 0x68, 0xf4, 0x83, 0x50, 0x0c, 0x98, 0xc1, 0xb0, 0x87, + 0x2e, 0x13, 0x8d, 0x16, 0xf5, 0x58, 0xa0, 0xaa, 0x90, 0xef, 0x07, 0xe8, 0x57, 0x14, 0x51, 0x21, + 0xfe, 0xab, 0x0d, 0x28, 0xd9, 0x6e, 0xc0, 0x0c, 0xd7, 0xc4, 0xb6, 0x6d, 0x55, 0x72, 0x9b, 0x64, + 0x6b, 0x7e, 0x7b, 0x79, 0x34, 0xac, 0x41, 0x2b, 0x14, 0xb7, 0x9a, 0x3a, 0x44, 0x2a, 0x2d, 0x4b, + 0xfd, 0x24, 0x2c, 0x59, 0x18, 0x98, 0xbe, 0xed, 0x31, 0xea, 0xf3, 0x47, 0xf2, 0x9b, 0x64, 0x6b, + 0x69, 0x7b, 0x65, 0x34, 0xac, 0x95, 0x9b, 0xe3, 0x8a, 0x56, 0x53, 0x2f, 0xc7, 0x6a, 0x2d, 0x4b, + 0xbb, 0x0b, 0xd5, 0x71, 0x97, 0x6f, 0xfb, 0xf6, 0xc0, 0x76, 0xb0, 0x8b, 0x13, 0x7d, 0xaf, 0xc0, + 0x62, 0xd7, 0x37, 0x5c, 0x86, 0x18, 0xf6, 0x3c, 0x2a, 0xaa, 0x55, 0x00, 0x2f, 0x7a, 0x24, 0xa8, + 0x28, 0x9b, 0xb9, 0xad, 0xa2, 0x9e, 0x90, 0x68, 0xdf, 0x57, 0x60, 0x43, 0x1a, 0xbf, 0x49, 0xad, + 0x49, 0xa3, 0x1f, 0x87, 0x45, 0x97, 0x5a, 0x02, 0x1a, 0x11, 0xd0, 0x2a, 0xa3, 0x61, 0x6d, 0x81, + 0xab, 0xb5, 0x9a, 0x4f, 0x86, 0x35, 0x88, 0x49, 0xd6, 0x17, 0xb8, 0x62, 0xcb, 0x52, 0xaf, 0x03, + 0xc4, 0x3d, 0x17, 0x5c, 0x95, 0xae, 0x3d, 0x5f, 0x8f, 0x7d, 0x29, 0xf4, 0x82, 0x3a, 0x37, 0x12, + 0x03, 0xd6, 0x13, 0x0f, 0xa9, 0x5d, 0x00, 0xd3, 0xe9, 0x07, 0x0c, 0xfd, 0x88, 0xd3, 0xf2, 0xf6, + 0xe7, 0xf8, 0x00, 0xff, 0x69, 0x58, 0x7b, 0xb9, 0x6b, 0xb3, 0xc3, 0x7e, 0xa7, 0x6e, 0xd2, 0x5e, + 0x63, 0x6c, 0xd4, 0xea, 0xc4, 0xff, 0x1b, 0xde, 0xbd, 0x6e, 0x43, 0x78, 0x76, 0xbf, 0x6f, 0x5b, + 0xf5, 0xfd, 0xfd, 0x56, 0x73, 0x34, 0xac, 0x15, 0x77, 0xa4, 0xc1, 0x56, 0x53, 0x2f, 0x86, 0xb6, + 0x5b, 0x96, 0x7a, 0x15, 0x20, 0x60, 0x86, 0xcf, 0xd0, 0x6a, 0x1b, 0x4c, 0x8c, 0x44, 0x4e, 0x0c, + 0x38, 0x97, 0x5c, 0x67, 0xea, 0x65, 0x58, 0x74, 0x8c, 0x80, 0xb5, 0xfb, 0x5e, 0x65, 0x5e, 0xd4, + 0x2d, 0xf0, 0xe2, 0xbe, 0xa7, 0x3d, 0x22, 0xb0, 0xbc, 0xe3, 0xa3, 0xc1, 0xb0, 0x69, 0x30, 0xa3, + 0x63, 0x04, 0xa8, 0xde, 0x81, 0x05, 0x53, 0x70, 0x18, 0x3a, 0xeb, 0x4b, 0xf5, 0x53, 0xc2, 0xa7, + 0x7e, 0xd2, 0xd9, 0xb7, 0xcb, 0x1c, 0xdc, 0xc3, 0x61, 0x8d, 0x3c, 0x19, 0xd6, 0xe6, 0xf4, 0xd0, + 0x90, 0x7a, 0x13, 0x72, 0xc1, 0x7d, 0x27, 0xa4, 0xb0, 0x7e, 0x8e, 0xbd, 0x29, 0x57, 0x9e, 0x32, + 0xc9, 0x0d, 0xa9, 0x1f, 0x82, 0x25, 0x2b, 0xec, 0x6e, 0xdb, 0x35, 0x7a, 0x28, 0x98, 0x2d, 0xea, + 0xe5, 0x48, 0x78, 0xd3, 0xe8, 0xa1, 0xf6, 0x2d, 0x05, 0xca, 0x4d, 0x9f, 0x7a, 0x59, 0x03, 0xa6, + 0x7e, 0x02, 0x36, 0x2c, 0x9f, 0x7a, 0x1e, 0x5a, 0xed, 0xc0, 0x3c, 0xc4, 0x9e, 0xd1, 0xa6, 0x9d, + 0xaf, 0xa2, 0xc9, 0x82, 0x4a, 0x5e, 0x44, 0xc4, 0x7a, 0x58, 0xbb, 0x2b, 0x2a, 0x6f, 0xc9, 0x3a, + 0xed, 0x35, 0x05, 0x96, 0x75, 0xe4, 0x46, 0x33, 0x47, 0xc8, 0x8b, 0xb0, 0xea, 0xe2, 0x51, 0x7b, + 0x52, 0x31, 0x2f, 0x14, 0x9f, 0x73, 0xf1, 0xa8, 0x99, 0xf4, 0x8a, 0x6f, 0x28, 0xf0, 0xdc, 0x0e, + 0x75, 0x07, 0xe8, 0xb3, 0x3d, 0x2a, 0x19, 0xca, 0x0c, 0x0f, 0x75, 0x58, 0x9b, 0xe0, 0xc1, 0x33, + 0x7c, 0x9e, 0xfe, 0x25, 0x13, 0xab, 0x09, 0x26, 0x6e, 0x8b, 0x0a, 0xed, 0x9f, 0x04, 0xd4, 0xeb, + 0x0e, 0x43, 0x3f, 0x92, 0xdf, 0x3a, 0x72, 0xd1, 0xcf, 0x0c, 0x1d, 0xeb, 0x30, 0x4f, 0x39, 0xa0, + 0x90, 0x00, 0x59, 0xd0, 0xde, 0x26, 0x50, 0x96, 0x19, 0x2f, 0x3d, 0xa3, 0x5f, 0x83, 0x52, 0x18, + 0xe9, 0x09, 0xb0, 0x20, 0x45, 0x67, 0x40, 0x7d, 0x48, 0x00, 0x78, 0x06, 0xcc, 0x0e, 0x50, 0xed, + 0xdf, 0x04, 0xca, 0x32, 0x8b, 0x65, 0x68, 0xf4, 0x3e, 0x0a, 0x3c, 0x4d, 0xb5, 0x93, 0x4a, 0x72, + 0x1c, 0x97, 0x5c, 0x3c, 0xda, 0x8d, 0xc1, 0xbf, 0x43, 0x60, 0x45, 0xc4, 0x6b, 0x98, 0xd9, 0xd3, + 0x12, 0xad, 0xcf, 0xe8, 0xbe, 0x7f, 0x23, 0x50, 0x92, 0x91, 0xba, 0x67, 0x74, 0x9c, 0x54, 0x4c, + 0x57, 0x57, 0x01, 0x18, 0xef, 0x6b, 0x12, 0x68, 0x51, 0x48, 0xce, 0xc0, 0xf9, 0xaa, 0x02, 0x45, + 0x1e, 0xa6, 0x59, 0x41, 0x79, 0x0d, 0x2e, 0x99, 0x46, 0x60, 0x1a, 0x16, 0xb6, 0xa3, 0x75, 0xca, + 0xc0, 0xc6, 0xa3, 0x68, 0x79, 0xb2, 0x16, 0x56, 0x36, 0x65, 0xdd, 0x2b, 0xbc, 0x4a, 0xfb, 0x17, + 0x81, 0x92, 0x8c, 0xeb, 0xac, 0xb0, 0xf0, 0x61, 0x58, 0xe6, 0x41, 0x9d, 0x50, 0x91, 0x83, 0x5e, + 0x76, 0xf1, 0x68, 0x2f, 0xd2, 0xd2, 0xde, 0x22, 0xb0, 0xb4, 0xe7, 0xf7, 0x5d, 0x33, 0x3b, 0x5e, + 0xae, 0xbd, 0xa9, 0x00, 0x88, 0x34, 0x95, 0x95, 0xa1, 0x6c, 0x40, 0xa9, 0xd7, 0x67, 0x06, 0xb3, + 0xa9, 0x1b, 0xef, 0x73, 0xc5, 0xd6, 0xf8, 0x8b, 0xa1, 0x98, 0x6f, 0x8d, 0x23, 0x95, 0x96, 0x75, + 0x7a, 0x04, 0xcc, 0x9f, 0x1e, 0x01, 0xdf, 0x16, 0x0b, 0xd3, 0x1e, 0xdf, 0x9f, 0xdf, 0x72, 0x77, + 0xa8, 0xd3, 0xef, 0xb9, 0x19, 0xa0, 0xae, 0x06, 0x25, 0x53, 0x60, 0x49, 0x86, 0x00, 0x48, 0x91, + 0x50, 0xa8, 0xc0, 0xa2, 0x29, 0x51, 0x8b, 0x9d, 0x69, 0x51, 0x8f, 0x8a, 0x3c, 0x25, 0xac, 0x8e, + 0x09, 0xc9, 0xdc, 0x9e, 0x25, 0x81, 0x3b, 0x3f, 0x89, 0xfb, 0x1d, 0xbe, 0x25, 0x8f, 0x70, 0x67, + 0x25, 0x84, 0x4e, 0x87, 0xfb, 0x4d, 0x25, 0x01, 0xb7, 0xe5, 0x5a, 0xf8, 0xb5, 0x0c, 0xc0, 0xbd, + 0x0a, 0x60, 0x73, 0x28, 0x49, 0xaf, 0x2f, 0x0a, 0xc9, 0x39, 0x4e, 0xff, 0x3d, 0x25, 0x5a, 0xf3, + 0xbc, 0x4f, 0xa8, 0x98, 0xca, 0xad, 0xf3, 0xe7, 0xe5, 0x56, 0xed, 0xad, 0x70, 0xb5, 0x34, 0xe3, + 0xe7, 0x82, 0x73, 0xcf, 0xc2, 0xe9, 0x73, 0xcf, 0x77, 0xa3, 0x19, 0x7b, 0x46, 0xea, 0xd3, 0x9d, + 0xee, 0x55, 0x05, 0x40, 0x86, 0x25, 0x27, 0x2c, 0x0d, 0x04, 0x7d, 0x00, 0x8a, 0x7c, 0xd8, 0x93, + 0xfc, 0x14, 0xb8, 0xe0, 0xf4, 0x7d, 0x08, 0x27, 0x4d, 0x3c, 0x72, 0xbf, 0x8f, 0xfe, 0x71, 0x98, + 0x98, 0x84, 0x91, 0x3b, 0x5c, 0xa0, 0xfd, 0x87, 0x40, 0x81, 0x7b, 0x4d, 0x26, 0x18, 0x78, 0x96, + 0x3d, 0xca, 0xdf, 0xc7, 0x67, 0xe5, 0xbb, 0x78, 0xbf, 0x8f, 0xae, 0x99, 0x96, 0xd5, 0x48, 0x10, + 0x76, 0x77, 0x62, 0x35, 0x12, 0x09, 0xcf, 0xd8, 0x98, 0xfe, 0x81, 0xc8, 0x13, 0xf4, 0xac, 0xc1, + 0xd5, 0xfe, 0x48, 0x60, 0x49, 0x1e, 0xa4, 0x64, 0x0d, 0xd9, 0x7f, 0x09, 0xac, 0xe9, 0x38, 0x40, + 0x3f, 0x08, 0x0f, 0xc8, 0x76, 0x0e, 0x0d, 0xb7, 0x9b, 0x0a, 0x7c, 0x53, 0x49, 0x39, 0x77, 0xee, + 0x4c, 0xb7, 0x0e, 0xf3, 0xe8, 0xfb, 0x74, 0xec, 0xb4, 0xa2, 0xa0, 0xbd, 0x4d, 0x40, 0xfd, 0x8c, + 0xed, 0xda, 0xc1, 0x61, 0xd6, 0x09, 0xd0, 0x9e, 0x10, 0x58, 0x4f, 0x42, 0xd5, 0xa9, 0xe3, 0x74, + 0x0c, 0xf3, 0x5e, 0x26, 0xc1, 0x8e, 0x48, 0x34, 0x05, 0xef, 0x1d, 0x7b, 0x98, 0x92, 0x09, 0x88, + 0x1d, 0x7b, 0x13, 0x87, 0x3f, 0x05, 0x2e, 0x98, 0xcc, 0xb8, 0xf3, 0xc9, 0x8c, 0xfb, 0xeb, 0x70, + 0x8e, 0x4d, 0x25, 0xc4, 0xdc, 0x24, 0x44, 0xed, 0x37, 0x04, 0x8a, 0xf2, 0x1c, 0x28, 0x0b, 0x68, + 0x7e, 0x40, 0xa0, 0x70, 0x93, 0x5a, 0xf8, 0x79, 0x6a, 0xbf, 0x27, 0x07, 0x33, 0x77, 0x20, 0xef, + 0x52, 0x0b, 0x43, 0x34, 0x8d, 0x73, 0x0c, 0x4e, 0xdf, 0x6f, 0x98, 0x32, 0x2a, 0x4c, 0x69, 0x6f, + 0x12, 0x28, 0x71, 0x45, 0x1d, 0xc5, 0x4d, 0x80, 0x94, 0xf4, 0xfa, 0xe7, 0x04, 0xd6, 0xe4, 0x95, + 0x0a, 0xde, 0x86, 0x1d, 0x04, 0x36, 0x75, 0x6d, 0xb7, 0x9b, 0x92, 0xde, 0xff, 0x8c, 0x80, 0x3a, + 0xdd, 0x7b, 0xb4, 0x52, 0xd6, 0x79, 0x3d, 0x8d, 0x9d, 0xff, 0x07, 0x81, 0xd5, 0x5d, 0x64, 0xe1, + 0xf5, 0x98, 0x5d, 0x64, 0xec, 0x3d, 0xf2, 0x9a, 0x77, 0x3b, 0xed, 0x3c, 0x0f, 0xe5, 0x40, 0xf6, + 0x36, 0x99, 0x79, 0x4a, 0xa1, 0x2c, 0x9a, 0x2d, 0x06, 0x86, 0xd3, 0x8f, 0xa6, 0x11, 0x59, 0xd0, + 0xbe, 0x02, 0xab, 0x77, 0xa9, 0x8b, 0x3b, 0xd4, 0x3d, 0xb0, 0xbb, 0xd1, 0x45, 0xa7, 0x0d, 0x58, + 0x60, 0x86, 0xdf, 0xc5, 0xe8, 0xda, 0x57, 0x58, 0xe2, 0x72, 0x53, 0x28, 0x86, 0xb7, 0xbe, 0xc2, + 0x92, 0x5a, 0x81, 0x45, 0xea, 0xf1, 0x39, 0x36, 0xa8, 0xe4, 0xc4, 0xde, 0x27, 0x2a, 0x6a, 0xaf, + 0x29, 0xb0, 0xb4, 0x8b, 0x2c, 0x6e, 0x22, 0x0d, 0x64, 0xde, 0x1e, 0xc3, 0xcc, 0x09, 0x93, 0x2f, + 0x9e, 0x6a, 0xf2, 0x04, 0x75, 0x27, 0x7b, 0xc8, 0x2b, 0xb5, 0xaf, 0x2b, 0xb0, 0xa2, 0x63, 0x8f, + 0x0e, 0xf0, 0xfd, 0xce, 0xc4, 0xef, 0x09, 0xac, 0x84, 0x1b, 0x60, 0xbe, 0x2c, 0x0b, 0x98, 0x6d, + 0x06, 0x19, 0x78, 0x5f, 0xf5, 0x4b, 0x05, 0x36, 0x3e, 0xeb, 0x1b, 0x2e, 0x1b, 0x5f, 0x8f, 0x89, + 0x6e, 0x14, 0xa6, 0x01, 0xdc, 0x97, 0x61, 0xde, 0xf3, 0xed, 0x41, 0x10, 0x8e, 0xf2, 0xa7, 0xce, + 0xb7, 0xf8, 0xd4, 0x5b, 0x97, 0x53, 0xa6, 0xa5, 0xcd, 0x93, 0xaf, 0x32, 0xf2, 0x4f, 0xb9, 0x68, + 0xf7, 0x2b, 0x05, 0x2e, 0xeb, 0x38, 0xa0, 0xf7, 0x70, 0x46, 0xe0, 0x33, 0x11, 0xf8, 0x23, 0x05, + 0xd6, 0x84, 0x03, 0x8a, 0xb7, 0x3d, 0x33, 0xf2, 0x22, 0xf2, 0x26, 0xe3, 0x36, 0x3f, 0x1d, 0xb7, + 0x3f, 0x56, 0x60, 0x5d, 0xfa, 0xdd, 0x8c, 0xb7, 0x8b, 0xf0, 0xf6, 0x13, 0x05, 0xd6, 0x85, 0xbb, + 0xc9, 0x53, 0x83, 0x19, 0x6f, 0x11, 0x6f, 0x53, 0xf7, 0x94, 0xf2, 0x27, 0x6e, 0x9f, 0xfd, 0x54, + 0x81, 0x4b, 0xd2, 0xe3, 0x66, 0xd4, 0x5d, 0x90, 0xba, 0x37, 0x14, 0x50, 0x65, 0x8e, 0x3b, 0xf6, + 0x66, 0xa1, 0x3a, 0xe6, 0xed, 0xac, 0x33, 0x22, 0xed, 0x87, 0x8a, 0x38, 0xcc, 0xe5, 0x09, 0x6e, + 0x46, 0xda, 0xff, 0x4b, 0xda, 0x6f, 0xc7, 0xe7, 0x84, 0x3a, 0x75, 0xd2, 0x72, 0xec, 0xe4, 0xd3, + 0xc9, 0xd5, 0x69, 0x81, 0x0b, 0x04, 0x9c, 0xe8, 0x44, 0x30, 0x13, 0x60, 0xc6, 0x27, 0x82, 0x99, + 0x40, 0xf3, 0x1d, 0x05, 0x36, 0xf6, 0xdd, 0xc0, 0x38, 0xc0, 0x7d, 0x2f, 0x40, 0x9f, 0xc5, 0xdf, + 0x00, 0xa5, 0xe3, 0x00, 0x7e, 0xcd, 0xf3, 0x71, 0x60, 0xd3, 0x7e, 0xd0, 0x4e, 0x7c, 0xe6, 0x24, + 0x41, 0xaa, 0x51, 0x55, 0x02, 0xd3, 0x47, 0xe4, 0x85, 0xc6, 0x84, 0x6e, 0x7c, 0x49, 0x39, 0x56, + 0xe3, 0x73, 0x64, 0xc8, 0x4a, 0x13, 0x1d, 0x64, 0x98, 0x2e, 0x56, 0x5e, 0x80, 0xa2, 0xfc, 0x6a, + 0x22, 0x7e, 0x29, 0x51, 0x1e, 0x0d, 0x6b, 0x05, 0xf9, 0xc5, 0x44, 0xab, 0xa9, 0x17, 0x64, 0x75, + 0xcb, 0x52, 0x3f, 0x0d, 0x2b, 0xa1, 0x6a, 0x38, 0xf3, 0x8d, 0xaf, 0x06, 0xaa, 0xa3, 0x61, 0x6d, + 0x59, 0x3e, 0x21, 0xd7, 0x09, 0xad, 0xa6, 0xbe, 0xec, 0x25, 0xcb, 0x96, 0xaa, 0x42, 0x5e, 0x38, + 0x95, 0x3c, 0xfe, 0x17, 0xff, 0xb5, 0xdf, 0xe5, 0xe0, 0x4a, 0xd2, 0xa1, 0xb8, 0x97, 0x05, 0x9e, + 0x61, 0xe2, 0x0d, 0x97, 0xf9, 0xc7, 0x33, 0xfa, 0xce, 0xa6, 0x8f, 0xaf, 0x41, 0xc6, 0x1e, 0x6d, + 0x5b, 0x95, 0x05, 0x6e, 0x4c, 0x87, 0x48, 0x24, 0x5f, 0x18, 0x1e, 0x50, 0xdf, 0xc4, 0xca, 0xe2, + 0x26, 0xd9, 0x2a, 0xe8, 0xb2, 0xa0, 0xbe, 0x04, 0xab, 0x07, 0x86, 0xed, 0xa0, 0xd5, 0x1e, 0x18, + 0x8e, 0x6d, 0x89, 0xf7, 0x4d, 0x95, 0x82, 0xd0, 0x58, 0x91, 0x15, 0xaf, 0x8c, 0xe5, 0x5c, 0x39, + 0xd6, 0x6a, 0x8b, 0x37, 0x8e, 0x41, 0xa5, 0x28, 0x3a, 0xb1, 0x12, 0x57, 0xdc, 0x10, 0x72, 0xed, + 0x17, 0x4a, 0x34, 0x9e, 0x32, 0x14, 0x66, 0xe3, 0x79, 0x91, 0xf1, 0xdc, 0x7e, 0xe1, 0xc1, 0x5f, + 0xab, 0x73, 0x0f, 0x46, 0x55, 0xf2, 0x70, 0x54, 0x25, 0x8f, 0x46, 0x55, 0xf2, 0x97, 0x51, 0x95, + 0xbc, 0xfe, 0xb8, 0x3a, 0xf7, 0xf0, 0x71, 0x75, 0xee, 0xd1, 0xe3, 0xea, 0xdc, 0xdd, 0xc5, 0xf0, + 0x73, 0xdf, 0xce, 0x82, 0xf8, 0x90, 0xf6, 0xe5, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x4f, + 0xb0, 0xe3, 0x09, 0x3c, 0x00, 0x00, +} diff --git a/pkg/util/log/eventpb/events.proto b/pkg/util/log/eventpb/events.proto new file mode 100644 index 000000000000..9d8fabad0de8 --- /dev/null +++ b/pkg/util/log/eventpb/events.proto @@ -0,0 +1,579 @@ +// Copyright 2020 The Cockroach Authors. +// +// Use of this software is governed by the Business Source License +// included in the file licenses/BSL.txt. +// +// As of the Change Date specified in that file, in accordance with +// the Business Source License, use of this software will be governed +// by the Apache License, Version 2.0, included in the file +// licenses/APL.txt. + +syntax = "proto3"; +package cockroach.util.eventlog; +option go_package = "eventpb"; + +import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; +import "roachpb/metadata.proto"; + +// CommonEventDetails contains the fields common to all events. +// +// Notes: +// - the fields time, nodeID, instanceID are omitted from the JSON +// output to preserve compatibility with the "info" columns in +// system.eventlog. +// - likewise, the entire CommonEventDetails payload is marked +// as embedded and its json tag is removed in every event log +// message before, to ensure that it appears inline in JSON, again +// for compatibility with system.eventlog. +// +// Beware: because this is marked inline in the individual events, +// care must be taken to not reuse field identifiers across the +// message types, otherwise the JSON conversions cannot work. +message CommonEventDetails { + // The timestamp of the event. + google.protobuf.Timestamp timestamp = 1 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.jsontag) = "timestamp,omitempty"]; +} + +// CommonSQLEventDetails contains the fields common to all +// SQL events. +// +// As above, the field is marked inline in the events below to +// preserve compatibility with system.eventlog. Likewise, because this +// is marked inline in the individual events, care must be taken to +// not reuse field identifiers across the message types, otherwise the +// JSON conversions cannot work. +message CommonSQLEventDetails { + string statement = 1; + + // The user account that triggered the event. + string user = 2; + + // The instance ID (not tenant ID) of the SQL server where the event was originated. + int32 instance_id = 3 [(gogoproto.customname) = "InstanceID"]; + + // The primary object descriptor affected by the operation. Set to zero for operations + // that don't affect descriptors. + uint32 descriptor_id = 4 [(gogoproto.customname) = "DescriptorID"]; +} + +// CommonSQLPrivilegeEventDetails contains the fields copmmon to all +// grant/revoke events. +// +// As above, the field is marked inline in the events below to +// preserve compatibility with system.eventlog. Likewise, because this +// is marked inline in the individual events, care must be taken to +// not reuse field identifiers across the message types, otherwise the +// JSON conversions cannot work. +message CommonSQLPrivilegeEventDetails { + string grantee = 1; + repeated string privileges = 2; +} + +// CommonNodeEventDetails contains the fields common to all +// node-level events. +// +// As above, the field is marked inline in the events below to +// preserve compatibility with system.eventlog. Likewise, because this +// is marked inline in the individual events, care must be taken to +// not reuse field identifiers across the message types, otherwise the +// JSON conversions cannot work. +message CommonNodeEventDetails { + // The node ID where the event was originated. + int32 node_id = 1 [(gogoproto.customname) = "NodeID", (gogoproto.jsontag) = ",omitempty"]; + + // The descriptor for the node. + cockroach.roachpb.NodeDescriptor descriptor = 2; + + // The cluster ID for the event. + bytes cluster_id = 3 [(gogoproto.nullable) = false, + (gogoproto.customname) = "ClusterID", + (gogoproto.customtype) = "github.com/cockroachdb/cockroach/pkg/util/uuid.UUID"]; + int64 started_at = 4; + int64 last_up = 5; +} + + +// CreateDatabase is recorded when a database is created. +message CreateDatabase { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string database_name = 3; +} + +// DropDatabase is recorded when a database is dropped. +message DropDatabase { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string database_name = 3; + repeated string dropped_schema_objects = 4; +} + +// RenameDatabase is recorded when a database is renamed. +message RenameDatabase { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string database_name = 3; + string new_database_name = 4; +} + +// ConvertToSchema is recorded when a database is converted to a schema. +message ConvertToSchema { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string database_name = 3; + string new_database_parent = 4; +} + +// AlterDatabaseOwner is recorded when a database's owner is changed. +message AlterDatabaseOwner { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string database_name = 3; + string owner = 4; +} + + +// CreateSchema is recorded when a schema is created. +message CreateSchema { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string schema_name = 3; + string owner = 4; +} + +// DropSchema is recorded when a schema is dropped. +message DropSchema { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string schema_name = 3; +} + +// RenameSchema is recorded when a schema is renamed. +message RenameSchema { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string schema_name = 3; + string new_schema_name = 4; +} + +// AlterSchemaOwner is recorded when a schema's owner is changed. +message AlterSchemaOwner { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string schema_name = 3; + string owner = 4; +} + +// CreateTable is recorded when a table is created. +message CreateTable { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + string owner = 4; +} + +// DropTable is recorded when a table is dropped. +message DropTable { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + repeated string cascade_dropped_views = 4; +} + +// RenameTable is recorded when a table, sequence or view is renamed. +message RenameTable { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + string new_table_name = 4; +} + +// TruncateTable is recorded when a table is truncated. +message TruncateTable { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; +} + +// AlterTable is recorded when a table is altered. +message AlterTable { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + uint32 mutation_id = 4 [(gogoproto.customname) = "MutationID"]; + repeated string cascade_dropped_views = 5; +} + +// CommentOnColumn is recorded when a column is commented. +message CommentOnColumn { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + string column_name = 4; + string comment = 5; +} + +// CommentOnTable is recorded when a table is commented. +message CommentOnDatabase { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string database_name = 3; + string comment = 4; +} + +// CommentOnTable is recorded when a table is commented. +message CommentOnTable { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + string comment = 4; +} + +// CommentOnIndex is recorded when a index is commented. +message CommentOnIndex { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + string index_name = 4; + string comment = 5; +} + + +// CreateIndex is recorded when an index is created. +message CreateIndex { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + string index_name = 4; + uint32 mutation_id = 5 [(gogoproto.customname) = "MutationID"]; +} + +// DropIndex is recorded when an index is dropped. +message DropIndex { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + string index_name = 4; + uint32 mutation_id = 5 [(gogoproto.customname) = "MutationID"]; + repeated string cascade_dropped_views = 6; +} + +// AlterIndex is recorded when an index is altered. +message AlterIndex { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; + string index_name = 4; + uint32 mutation_id = 5 [(gogoproto.customname) = "MutationID"]; +} + + +// CreateView is recorded when a view is created. +message CreateView { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string view_name = 3; + string owner = 4; + string view_query = 5; +} + +// DropView is recorded when a view is dropped. +message DropView { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string view_name = 3; + repeated string cascade_dropped_views = 4; +} + + +// CreateSequence is recorded when a sequence is created. +message CreateSequence { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string sequence_name = 3; + string owner = 4; +} + +// DropSequence is recorded when a sequence is dropped. +message DropSequence { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string sequence_name = 3; +} + +// AlterSequence is recorded when a sequence is altered. +message AlterSequence { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string sequence_name = 3; +} + + +// ReverseSchemaChange is recorded when an in-progress schema change +// encounters a problem and is reversed. +message ReverseSchemaChange { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + uint32 mutation_id = 3 [(gogoproto.customname) = "MutationID"]; + string error = 4; +} + +// FinishSchemaChange is recorded when a previously initiated schema +// change has completed. +message FinishSchemaChange { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + uint32 mutation_id = 3 [(gogoproto.customname) = "MutationID"]; +} + +// FinishSchemaRollback is recorded when a previously +// initiated schema change rollback has completed. +message FinishSchemaRollback { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + uint32 mutation_id = 3 [(gogoproto.customname) = "MutationID"]; +} + + +// CreateType is recorded when a type is created. +message CreateType { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string type_name = 4; + string owner = 5; +} + +// DropType is recorded when a type is dropped. +message DropType { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string type_name = 3; +} + +// EventAlterType is recorded when a type is altered. +message AlterType { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string type_name = 3; +} + + +// NodeJoin is recorded when a node joins the cluster. +message NodeJoin { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonNodeEventDetails node = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; +} + +// NodeRestart is recorded when an existing node rejoins the cluster +// after being offline. +message NodeRestart { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonNodeEventDetails node = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; +} + + +// NodeDecommissioned is recorded when a node is marked as +// decommissioning. +message NodeDecommissioning { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonNodeEventDetails node = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; +} + +// NodeDecommissioned is recorded when a node is marked as +// decommissioned. +message NodeDecommissioned { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonNodeEventDetails node = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; +} + +// NodeRecommissioned is recorded when a decommissioning node is +// recommissioned. +message NodeRecommissioned { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonNodeEventDetails node = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; +} + + +// SetClusterSetting is recorded when a cluster setting is changed. +message SetClusterSetting { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string setting_name = 3; + string value = 4; +} + +// ZoneConfigDetails is common to zone config change events. +message ZoneConfigDetails { + string target = 1; + string config = 2; + repeated string options = 3; +} + +// SetZoneConfig is recorded when a zone config is changed. +message SetZoneConfig { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + ZoneConfigDetails config = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; +} + +// RemoveZoneConfig is recorded when a zone config is removed. +message RemoveZoneConfig { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + ZoneConfigDetails config = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; +} + + +// CreateStatistics is recorded when statistics are collected for a +// table. +message CreateStatistics { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 3; +} + + +// GrantDatabasePrivilege is recorded when privileges are added to a user +// for a database object. +message GrantDatabasePrivilege { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLPrivilegeEventDetails privs = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string database_name = 4; +} + +// RevokeDatabasePrivilege is recorded when privileges are removed from a +// user for a database object. +message RevokeDatabasePrivilege { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLPrivilegeEventDetails privs = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string database_name = 4; +} + +// GrantTablePrivilege is recorded when privileges are added to a user +// for a table, sequence or view object. +message GrantTablePrivilege { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLPrivilegeEventDetails privs = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 4; +} + +// RevokeTablePrivilege is recorded when privileges are removed from a +// user for a table, sequence or view object. +message RevokeTablePrivilege { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLPrivilegeEventDetails privs = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string table_name = 4; +} + +// GrantSchemaPrivilege is recorded when privileges are added to a user +// for a schema object. +message GrantSchemaPrivilege { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLPrivilegeEventDetails privs = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string schema_name = 4; +} + +// RevokeSchemaPrivilege is recorded when privileges are removed from a +// user for a schema object. +message RevokeSchemaPrivilege { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLPrivilegeEventDetails privs = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string schema_name = 4; +} + + +// GrantTypePrivilege is recorded when privileges are added to a user +// for a type object. +message GrantTypePrivilege { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLPrivilegeEventDetails privs = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string type_name = 4; +} + +// RevokeTypePrivilege is recorded when privileges are removed from a +// user for a type object. +message RevokeTypePrivilege { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLPrivilegeEventDetails privs = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string type_name = 4; +} + + + +// CreateRole is recorded when a role is created. +message CreateRole { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string role_name = 3; +} + +// DropRole is recorded when a role is dropped. +message DropRole { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string role_name = 3; +} + +// AlterRole is recorded when a role is altered. +message AlterRole { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string role_name = 3; +} + + +// UnsafeUpsertDescriptor is recorded when a descriptor is written +// using crdb_internal.unsafe_upsert_descriptor. +message UnsafeUpsertDescriptor { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + string previous_descriptor = 3; + string new_descriptor = 4; +} + + +// UnsafeDeleteDescriptor is recorded when a descriptor is written +// using crdb_internal.unsafe_delete_descriptor. +message UnsafeDeleteDescriptor { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + uint32 parent_id = 3 [(gogoproto.customname) = "ParentID"]; + uint32 parent_schema_id = 4 [(gogoproto.customname) = "ParentSchemaID"]; + string name = 5; +} + + +// UnsafeUpsertNamespaceEntry is recorded when a namespace entry is +// written using crdb_internal.unsafe_upsert_namespace_entry. +message UnsafeUpsertNamespaceEntry { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + uint32 parent_id = 3 [(gogoproto.customname) = "ParentID"]; + uint32 parent_schema_id = 4 [(gogoproto.customname) = "ParentSchemaID"]; + string name = 5; + uint32 previous_id = 6; + bool force = 7; + bool failed_validation = 8; + string validation_errors = 9; +} + + +// UnsafeDeleteNamespaceEntry is recorded when a namespace entry is +// written using crdb_internal.unsafe_delete_namespace_entry. +message UnsafeDeleteNamespaceEntry { + CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true]; + uint32 parent_id = 3 [(gogoproto.customname) = "ParentID"]; + uint32 parent_schema_id = 4 [(gogoproto.customname) = "ParentSchemaID"]; + string name = 5; +} + diff --git a/pkg/util/log/eventpb/events_test.go b/pkg/util/log/eventpb/events_test.go new file mode 100644 index 000000000000..30fe65e1a0b2 --- /dev/null +++ b/pkg/util/log/eventpb/events_test.go @@ -0,0 +1,16 @@ +package eventpb + +import ( + "encoding/json" + "testing" +) + +func TestEvents(t *testing.T) { + e := &EventCreateDatabase{CommonEventDetails{User: "hello"}} + b, err := json.Marshal(e) + if err != nil { + t.Fatal(err) + } + + t.Errorf("WOO %s", b) +}