diff --git a/api/gen/proto/go/usageevents/v1/usageevents.pb.go b/api/gen/proto/go/usageevents/v1/usageevents.pb.go index 454a1731a78a2..c4d0e4c79532b 100644 --- a/api/gen/proto/go/usageevents/v1/usageevents.pb.go +++ b/api/gen/proto/go/usageevents/v1/usageevents.pb.go @@ -851,40 +851,34 @@ func (m *UIDiscoverResourceSelectionEvent) GetStatus() *DiscoverStepStatus { return nil } -// UsageEventOneOf is a message that can accept a oneof of any supported -// external usage event. -type UsageEventOneOf struct { - // Types that are valid to be assigned to Event: - // - // *UsageEventOneOf_UiBannerClick - // *UsageEventOneOf_UiOnboardCompleteGoToDashboardClick - // *UsageEventOneOf_UiOnboardAddFirstResourceClick - // *UsageEventOneOf_UiOnboardAddFirstResourceLaterClick - // *UsageEventOneOf_UiOnboardSetCredentialSubmit - // *UsageEventOneOf_UiOnboardRegisterChallengeSubmit - // *UsageEventOneOf_UiRecoveryCodesContinueClick - // *UsageEventOneOf_UiRecoveryCodesCopyClick - // *UsageEventOneOf_UiRecoveryCodesPrintClick - // *UsageEventOneOf_UiDiscoverStartedEvent - // *UsageEventOneOf_UiDiscoverResourceSelectionEvent - Event isUsageEventOneOf_Event `protobuf_oneof:"event"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// UIDiscoverDeployServiceEvent is emitted after the user installs a Teleport Agent. +// For SSH this is the Teleport 'install-node' script. +// +// For Kubernetes this is the teleport-agent helm chart installation. +// +// For Database Access this step is the installation of the teleport 'install-db' script. +// It can be skipped if the cluster already has a Database Service capable of proxying the database. +type UIDiscoverDeployServiceEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UsageEventOneOf) Reset() { *m = UsageEventOneOf{} } -func (m *UsageEventOneOf) String() string { return proto.CompactTextString(m) } -func (*UsageEventOneOf) ProtoMessage() {} -func (*UsageEventOneOf) Descriptor() ([]byte, []int) { +func (m *UIDiscoverDeployServiceEvent) Reset() { *m = UIDiscoverDeployServiceEvent{} } +func (m *UIDiscoverDeployServiceEvent) String() string { return proto.CompactTextString(m) } +func (*UIDiscoverDeployServiceEvent) ProtoMessage() {} +func (*UIDiscoverDeployServiceEvent) Descriptor() ([]byte, []int) { return fileDescriptor_94cf2ca1c69fd564, []int{14} } -func (m *UsageEventOneOf) XXX_Unmarshal(b []byte) error { +func (m *UIDiscoverDeployServiceEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *UsageEventOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *UIDiscoverDeployServiceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_UsageEventOneOf.Marshal(b, m, deterministic) + return xxx_messageInfo_UIDiscoverDeployServiceEvent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -894,1469 +888,5143 @@ func (m *UsageEventOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *UsageEventOneOf) XXX_Merge(src proto.Message) { - xxx_messageInfo_UsageEventOneOf.Merge(m, src) +func (m *UIDiscoverDeployServiceEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverDeployServiceEvent.Merge(m, src) } -func (m *UsageEventOneOf) XXX_Size() int { +func (m *UIDiscoverDeployServiceEvent) XXX_Size() int { return m.Size() } -func (m *UsageEventOneOf) XXX_DiscardUnknown() { - xxx_messageInfo_UsageEventOneOf.DiscardUnknown(m) +func (m *UIDiscoverDeployServiceEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverDeployServiceEvent.DiscardUnknown(m) } -var xxx_messageInfo_UsageEventOneOf proto.InternalMessageInfo +var xxx_messageInfo_UIDiscoverDeployServiceEvent proto.InternalMessageInfo -type isUsageEventOneOf_Event interface { - isUsageEventOneOf_Event() - MarshalTo([]byte) (int, error) - Size() int +func (m *UIDiscoverDeployServiceEvent) GetMetadata() *DiscoverMetadata { + if m != nil { + return m.Metadata + } + return nil } -type UsageEventOneOf_UiBannerClick struct { - UiBannerClick *UIBannerClickEvent `protobuf:"bytes,1,opt,name=ui_banner_click,json=uiBannerClick,proto3,oneof" json:"ui_banner_click,omitempty"` -} -type UsageEventOneOf_UiOnboardCompleteGoToDashboardClick struct { - UiOnboardCompleteGoToDashboardClick *UIOnboardCompleteGoToDashboardClickEvent `protobuf:"bytes,3,opt,name=ui_onboard_complete_go_to_dashboard_click,json=uiOnboardCompleteGoToDashboardClick,proto3,oneof" json:"ui_onboard_complete_go_to_dashboard_click,omitempty"` -} -type UsageEventOneOf_UiOnboardAddFirstResourceClick struct { - UiOnboardAddFirstResourceClick *UIOnboardAddFirstResourceClickEvent `protobuf:"bytes,4,opt,name=ui_onboard_add_first_resource_click,json=uiOnboardAddFirstResourceClick,proto3,oneof" json:"ui_onboard_add_first_resource_click,omitempty"` +func (m *UIDiscoverDeployServiceEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource + } + return nil } -type UsageEventOneOf_UiOnboardAddFirstResourceLaterClick struct { - UiOnboardAddFirstResourceLaterClick *UIOnboardAddFirstResourceLaterClickEvent `protobuf:"bytes,5,opt,name=ui_onboard_add_first_resource_later_click,json=uiOnboardAddFirstResourceLaterClick,proto3,oneof" json:"ui_onboard_add_first_resource_later_click,omitempty"` + +func (m *UIDiscoverDeployServiceEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status + } + return nil } -type UsageEventOneOf_UiOnboardSetCredentialSubmit struct { - UiOnboardSetCredentialSubmit *UIOnboardSetCredentialSubmitEvent `protobuf:"bytes,6,opt,name=ui_onboard_set_credential_submit,json=uiOnboardSetCredentialSubmit,proto3,oneof" json:"ui_onboard_set_credential_submit,omitempty"` + +// UIDiscoverDatabaseRegisterEvent is emitted when a user is finished with the step that registers a database resource. +type UIDiscoverDatabaseRegisterEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -type UsageEventOneOf_UiOnboardRegisterChallengeSubmit struct { - UiOnboardRegisterChallengeSubmit *UIOnboardRegisterChallengeSubmitEvent `protobuf:"bytes,7,opt,name=ui_onboard_register_challenge_submit,json=uiOnboardRegisterChallengeSubmit,proto3,oneof" json:"ui_onboard_register_challenge_submit,omitempty"` + +func (m *UIDiscoverDatabaseRegisterEvent) Reset() { *m = UIDiscoverDatabaseRegisterEvent{} } +func (m *UIDiscoverDatabaseRegisterEvent) String() string { return proto.CompactTextString(m) } +func (*UIDiscoverDatabaseRegisterEvent) ProtoMessage() {} +func (*UIDiscoverDatabaseRegisterEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{15} } -type UsageEventOneOf_UiRecoveryCodesContinueClick struct { - UiRecoveryCodesContinueClick *UIRecoveryCodesContinueClickEvent `protobuf:"bytes,8,opt,name=ui_recovery_codes_continue_click,json=uiRecoveryCodesContinueClick,proto3,oneof" json:"ui_recovery_codes_continue_click,omitempty"` +func (m *UIDiscoverDatabaseRegisterEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -type UsageEventOneOf_UiRecoveryCodesCopyClick struct { - UiRecoveryCodesCopyClick *UIRecoveryCodesCopyClickEvent `protobuf:"bytes,9,opt,name=ui_recovery_codes_copy_click,json=uiRecoveryCodesCopyClick,proto3,oneof" json:"ui_recovery_codes_copy_click,omitempty"` +func (m *UIDiscoverDatabaseRegisterEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UIDiscoverDatabaseRegisterEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -type UsageEventOneOf_UiRecoveryCodesPrintClick struct { - UiRecoveryCodesPrintClick *UIRecoveryCodesPrintClickEvent `protobuf:"bytes,10,opt,name=ui_recovery_codes_print_click,json=uiRecoveryCodesPrintClick,proto3,oneof" json:"ui_recovery_codes_print_click,omitempty"` +func (m *UIDiscoverDatabaseRegisterEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverDatabaseRegisterEvent.Merge(m, src) } -type UsageEventOneOf_UiDiscoverStartedEvent struct { - UiDiscoverStartedEvent *UIDiscoverStartedEvent `protobuf:"bytes,11,opt,name=ui_discover_started_event,json=uiDiscoverStartedEvent,proto3,oneof" json:"ui_discover_started_event,omitempty"` +func (m *UIDiscoverDatabaseRegisterEvent) XXX_Size() int { + return m.Size() } -type UsageEventOneOf_UiDiscoverResourceSelectionEvent struct { - UiDiscoverResourceSelectionEvent *UIDiscoverResourceSelectionEvent `protobuf:"bytes,12,opt,name=ui_discover_resource_selection_event,json=uiDiscoverResourceSelectionEvent,proto3,oneof" json:"ui_discover_resource_selection_event,omitempty"` +func (m *UIDiscoverDatabaseRegisterEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverDatabaseRegisterEvent.DiscardUnknown(m) } -func (*UsageEventOneOf_UiBannerClick) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiOnboardCompleteGoToDashboardClick) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiOnboardAddFirstResourceClick) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiOnboardAddFirstResourceLaterClick) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiOnboardSetCredentialSubmit) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiOnboardRegisterChallengeSubmit) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiRecoveryCodesContinueClick) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiRecoveryCodesCopyClick) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiRecoveryCodesPrintClick) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiDiscoverStartedEvent) isUsageEventOneOf_Event() {} -func (*UsageEventOneOf_UiDiscoverResourceSelectionEvent) isUsageEventOneOf_Event() {} +var xxx_messageInfo_UIDiscoverDatabaseRegisterEvent proto.InternalMessageInfo -func (m *UsageEventOneOf) GetEvent() isUsageEventOneOf_Event { +func (m *UIDiscoverDatabaseRegisterEvent) GetMetadata() *DiscoverMetadata { if m != nil { - return m.Event + return m.Metadata } return nil } -func (m *UsageEventOneOf) GetUiBannerClick() *UIBannerClickEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiBannerClick); ok { - return x.UiBannerClick +func (m *UIDiscoverDatabaseRegisterEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource } return nil } -func (m *UsageEventOneOf) GetUiOnboardCompleteGoToDashboardClick() *UIOnboardCompleteGoToDashboardClickEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardCompleteGoToDashboardClick); ok { - return x.UiOnboardCompleteGoToDashboardClick +func (m *UIDiscoverDatabaseRegisterEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status } return nil } -func (m *UsageEventOneOf) GetUiOnboardAddFirstResourceClick() *UIOnboardAddFirstResourceClickEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardAddFirstResourceClick); ok { - return x.UiOnboardAddFirstResourceClick - } - return nil +// UIDiscoverDatabaseConfigureMTLSEvent is emitted when a user is finished with the step that configures mutual TLS for a self-hosted database. +type UIDiscoverDatabaseConfigureMTLSEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UsageEventOneOf) GetUiOnboardAddFirstResourceLaterClick() *UIOnboardAddFirstResourceLaterClickEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardAddFirstResourceLaterClick); ok { - return x.UiOnboardAddFirstResourceLaterClick +func (m *UIDiscoverDatabaseConfigureMTLSEvent) Reset() { *m = UIDiscoverDatabaseConfigureMTLSEvent{} } +func (m *UIDiscoverDatabaseConfigureMTLSEvent) String() string { return proto.CompactTextString(m) } +func (*UIDiscoverDatabaseConfigureMTLSEvent) ProtoMessage() {} +func (*UIDiscoverDatabaseConfigureMTLSEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{16} +} +func (m *UIDiscoverDatabaseConfigureMTLSEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UIDiscoverDatabaseConfigureMTLSEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UIDiscoverDatabaseConfigureMTLSEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *UIDiscoverDatabaseConfigureMTLSEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverDatabaseConfigureMTLSEvent.Merge(m, src) +} +func (m *UIDiscoverDatabaseConfigureMTLSEvent) XXX_Size() int { + return m.Size() +} +func (m *UIDiscoverDatabaseConfigureMTLSEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverDatabaseConfigureMTLSEvent.DiscardUnknown(m) } -func (m *UsageEventOneOf) GetUiOnboardSetCredentialSubmit() *UIOnboardSetCredentialSubmitEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardSetCredentialSubmit); ok { - return x.UiOnboardSetCredentialSubmit +var xxx_messageInfo_UIDiscoverDatabaseConfigureMTLSEvent proto.InternalMessageInfo + +func (m *UIDiscoverDatabaseConfigureMTLSEvent) GetMetadata() *DiscoverMetadata { + if m != nil { + return m.Metadata } return nil } -func (m *UsageEventOneOf) GetUiOnboardRegisterChallengeSubmit() *UIOnboardRegisterChallengeSubmitEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardRegisterChallengeSubmit); ok { - return x.UiOnboardRegisterChallengeSubmit +func (m *UIDiscoverDatabaseConfigureMTLSEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource } return nil } -func (m *UsageEventOneOf) GetUiRecoveryCodesContinueClick() *UIRecoveryCodesContinueClickEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiRecoveryCodesContinueClick); ok { - return x.UiRecoveryCodesContinueClick +func (m *UIDiscoverDatabaseConfigureMTLSEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status } return nil } -func (m *UsageEventOneOf) GetUiRecoveryCodesCopyClick() *UIRecoveryCodesCopyClickEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiRecoveryCodesCopyClick); ok { - return x.UiRecoveryCodesCopyClick - } - return nil +// UIDiscoverDesktopActiveDirectoryToolsInstallEvent is emitted when the user is finished with the step that asks user to run the install Active Directory tools script for the Desktop flow. +type UIDiscoverDesktopActiveDirectoryToolsInstallEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UsageEventOneOf) GetUiRecoveryCodesPrintClick() *UIRecoveryCodesPrintClickEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiRecoveryCodesPrintClick); ok { - return x.UiRecoveryCodesPrintClick +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Reset() { + *m = UIDiscoverDesktopActiveDirectoryToolsInstallEvent{} +} +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) String() string { + return proto.CompactTextString(m) +} +func (*UIDiscoverDesktopActiveDirectoryToolsInstallEvent) ProtoMessage() {} +func (*UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{17} +} +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UIDiscoverDesktopActiveDirectoryToolsInstallEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverDesktopActiveDirectoryToolsInstallEvent.Merge(m, src) +} +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) XXX_Size() int { + return m.Size() +} +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverDesktopActiveDirectoryToolsInstallEvent.DiscardUnknown(m) } -func (m *UsageEventOneOf) GetUiDiscoverStartedEvent() *UIDiscoverStartedEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverStartedEvent); ok { - return x.UiDiscoverStartedEvent +var xxx_messageInfo_UIDiscoverDesktopActiveDirectoryToolsInstallEvent proto.InternalMessageInfo + +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) GetMetadata() *DiscoverMetadata { + if m != nil { + return m.Metadata } return nil } -func (m *UsageEventOneOf) GetUiDiscoverResourceSelectionEvent() *UIDiscoverResourceSelectionEvent { - if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverResourceSelectionEvent); ok { - return x.UiDiscoverResourceSelectionEvent +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UsageEventOneOf) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*UsageEventOneOf_UiBannerClick)(nil), - (*UsageEventOneOf_UiOnboardCompleteGoToDashboardClick)(nil), - (*UsageEventOneOf_UiOnboardAddFirstResourceClick)(nil), - (*UsageEventOneOf_UiOnboardAddFirstResourceLaterClick)(nil), - (*UsageEventOneOf_UiOnboardSetCredentialSubmit)(nil), - (*UsageEventOneOf_UiOnboardRegisterChallengeSubmit)(nil), - (*UsageEventOneOf_UiRecoveryCodesContinueClick)(nil), - (*UsageEventOneOf_UiRecoveryCodesCopyClick)(nil), - (*UsageEventOneOf_UiRecoveryCodesPrintClick)(nil), - (*UsageEventOneOf_UiDiscoverStartedEvent)(nil), - (*UsageEventOneOf_UiDiscoverResourceSelectionEvent)(nil), +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status } + return nil } -func init() { - proto.RegisterEnum("teleport.usageevents.v1.DiscoverResource", DiscoverResource_name, DiscoverResource_value) - proto.RegisterEnum("teleport.usageevents.v1.DiscoverStatus", DiscoverStatus_name, DiscoverStatus_value) - proto.RegisterType((*UIBannerClickEvent)(nil), "teleport.usageevents.v1.UIBannerClickEvent") - proto.RegisterType((*UIOnboardCompleteGoToDashboardClickEvent)(nil), "teleport.usageevents.v1.UIOnboardCompleteGoToDashboardClickEvent") - proto.RegisterType((*UIOnboardAddFirstResourceClickEvent)(nil), "teleport.usageevents.v1.UIOnboardAddFirstResourceClickEvent") - proto.RegisterType((*UIOnboardAddFirstResourceLaterClickEvent)(nil), "teleport.usageevents.v1.UIOnboardAddFirstResourceLaterClickEvent") - proto.RegisterType((*UIOnboardSetCredentialSubmitEvent)(nil), "teleport.usageevents.v1.UIOnboardSetCredentialSubmitEvent") - proto.RegisterType((*UIOnboardRegisterChallengeSubmitEvent)(nil), "teleport.usageevents.v1.UIOnboardRegisterChallengeSubmitEvent") - proto.RegisterType((*UIRecoveryCodesContinueClickEvent)(nil), "teleport.usageevents.v1.UIRecoveryCodesContinueClickEvent") - proto.RegisterType((*UIRecoveryCodesCopyClickEvent)(nil), "teleport.usageevents.v1.UIRecoveryCodesCopyClickEvent") - proto.RegisterType((*UIRecoveryCodesPrintClickEvent)(nil), "teleport.usageevents.v1.UIRecoveryCodesPrintClickEvent") - proto.RegisterType((*DiscoverMetadata)(nil), "teleport.usageevents.v1.DiscoverMetadata") - proto.RegisterType((*DiscoverResourceMetadata)(nil), "teleport.usageevents.v1.DiscoverResourceMetadata") - proto.RegisterType((*DiscoverStepStatus)(nil), "teleport.usageevents.v1.DiscoverStepStatus") - proto.RegisterType((*UIDiscoverStartedEvent)(nil), "teleport.usageevents.v1.UIDiscoverStartedEvent") - proto.RegisterType((*UIDiscoverResourceSelectionEvent)(nil), "teleport.usageevents.v1.UIDiscoverResourceSelectionEvent") - proto.RegisterType((*UsageEventOneOf)(nil), "teleport.usageevents.v1.UsageEventOneOf") +// UIDiscoverDesktopActiveDirectoryConfigureEvent is emitted when the user is finished with the step that asks user to run the Configure Active Directory script for the Desktop flow. +type UIDiscoverDesktopActiveDirectoryConfigureEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func init() { - proto.RegisterFile("teleport/usageevents/v1/usageevents.proto", fileDescriptor_94cf2ca1c69fd564) +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) Reset() { + *m = UIDiscoverDesktopActiveDirectoryConfigureEvent{} } - -var fileDescriptor_94cf2ca1c69fd564 = []byte{ - // 1172 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x5d, 0x8f, 0xdb, 0x44, - 0x14, 0x8d, 0x93, 0xee, 0x6e, 0xf6, 0x16, 0x5a, 0x6b, 0x04, 0x6d, 0x96, 0xee, 0x2e, 0xdb, 0xb4, - 0xa5, 0xed, 0x16, 0x25, 0xb4, 0x95, 0x40, 0x40, 0x45, 0x95, 0x38, 0xde, 0x26, 0xec, 0x87, 0xc3, - 0x8c, 0xd3, 0x0a, 0x5e, 0x46, 0xde, 0x78, 0x36, 0x6b, 0xd5, 0xb1, 0x23, 0x7b, 0xbc, 0x65, 0x85, - 0x78, 0xe3, 0xad, 0x2f, 0xbc, 0xf3, 0x08, 0x3f, 0x86, 0x47, 0xfe, 0x00, 0x12, 0xda, 0xbf, 0xc0, - 0x33, 0x12, 0xf2, 0xf8, 0x23, 0xde, 0x7c, 0x5a, 0x88, 0xb7, 0x78, 0xee, 0xb9, 0xf7, 0x9c, 0xb9, - 0x33, 0xbe, 0x27, 0x86, 0x87, 0x9c, 0xd9, 0x6c, 0xe4, 0x7a, 0xbc, 0x1e, 0xf8, 0xc6, 0x80, 0xb1, - 0x33, 0xe6, 0x70, 0xbf, 0x7e, 0xf6, 0x38, 0xfb, 0x58, 0x1b, 0x79, 0x2e, 0x77, 0xd1, 0xcd, 0x04, - 0x5a, 0xcb, 0xc6, 0xce, 0x1e, 0x57, 0x77, 0x01, 0xf5, 0x3a, 0x4d, 0xc3, 0x71, 0x98, 0xa7, 0xd8, - 0x56, 0xff, 0xb5, 0x1a, 0x46, 0xd0, 0x7b, 0xb0, 0x62, 0xd8, 0xcc, 0xe3, 0x15, 0x69, 0x47, 0x7a, - 0xb0, 0x8e, 0xa3, 0x87, 0xea, 0x1e, 0x3c, 0xe8, 0x75, 0x34, 0xe7, 0xd8, 0x35, 0x3c, 0x53, 0x71, - 0x87, 0x23, 0x9b, 0x71, 0xf6, 0xc2, 0xd5, 0xdd, 0x96, 0xe1, 0x9f, 0x46, 0x8b, 0xe3, 0x0a, 0x1f, - 0x40, 0x39, 0xf0, 0x99, 0xe7, 0x18, 0x43, 0x16, 0x17, 0x49, 0x9f, 0xab, 0xf7, 0xe0, 0x4e, 0x5a, - 0xa7, 0x61, 0x9a, 0x7b, 0x96, 0xe7, 0x73, 0xcc, 0x7c, 0x37, 0xf0, 0xfa, 0x6c, 0x5c, 0xa2, 0xba, - 0x9b, 0xa1, 0x9b, 0x84, 0x1d, 0x18, 0x3c, 0x2b, 0xb8, 0xfa, 0x1c, 0x6e, 0xa7, 0x58, 0xc2, 0xb8, - 0xe2, 0x31, 0x93, 0x39, 0xdc, 0x32, 0x6c, 0x12, 0x1c, 0x0f, 0x2d, 0xbe, 0x5c, 0xd3, 0x8f, 0x70, - 0x2f, 0x2d, 0x80, 0xd9, 0xc0, 0xf2, 0xc3, 0xfa, 0xa7, 0x86, 0x6d, 0x33, 0x67, 0xc0, 0x72, 0x16, - 0x41, 0x1b, 0x50, 0x1e, 0x9e, 0x18, 0x94, 0x9f, 0x8f, 0x58, 0xa5, 0x28, 0x62, 0x6b, 0xc3, 0x13, - 0x43, 0x3f, 0x1f, 0x31, 0xb4, 0x05, 0x60, 0xbb, 0x03, 0xcb, 0xa1, 0x27, 0xb6, 0xfb, 0xa6, 0x52, - 0x12, 0xc1, 0x75, 0xb1, 0xb2, 0x67, 0xbb, 0x6f, 0x22, 0xfd, 0x98, 0xf5, 0xdd, 0x33, 0xe6, 0x9d, - 0x2b, 0xae, 0xc9, 0x7c, 0xc5, 0x75, 0xb8, 0xe5, 0x04, 0x2c, 0x67, 0x4f, 0xbf, 0x84, 0xad, 0xa9, - 0x02, 0xa3, 0xf3, 0x9c, 0xc9, 0xcf, 0x60, 0x7b, 0x22, 0xb9, 0xeb, 0x59, 0x0e, 0xcf, 0x99, 0x5d, - 0x05, 0xb9, 0x65, 0xf9, 0x22, 0xf9, 0x90, 0x71, 0xc3, 0x34, 0xb8, 0x81, 0xae, 0x41, 0xd1, 0x32, - 0x63, 0x64, 0xd1, 0x32, 0xab, 0x06, 0x54, 0x12, 0x4c, 0x72, 0x84, 0x29, 0x56, 0x85, 0xb2, 0x17, - 0xaf, 0x89, 0x8c, 0x6b, 0x4f, 0x1e, 0xd6, 0xe6, 0x5c, 0xd7, 0xda, 0x64, 0x11, 0x9c, 0xa6, 0x56, - 0x5f, 0x03, 0x4a, 0xa2, 0x84, 0xb3, 0x11, 0xe1, 0x06, 0x0f, 0x7c, 0xf4, 0x1c, 0x56, 0x7d, 0xf1, - 0x2b, 0x2e, 0x7d, 0x7f, 0x69, 0xe9, 0x28, 0x11, 0xc7, 0x69, 0xe1, 0xab, 0xc0, 0x3c, 0xcf, 0xf5, - 0xe2, 0x03, 0x8d, 0x1e, 0xaa, 0xbf, 0x49, 0x70, 0xa3, 0xd7, 0xc9, 0xa4, 0x78, 0x9c, 0x99, 0x51, - 0xab, 0x54, 0x28, 0x0f, 0xe3, 0xad, 0x09, 0xce, 0xab, 0x39, 0xb6, 0x93, 0xf4, 0x02, 0xa7, 0xa9, - 0x48, 0x49, 0x85, 0x17, 0x45, 0x91, 0x47, 0x39, 0x84, 0x27, 0xbb, 0x4e, 0xc4, 0x57, 0xff, 0x91, - 0x60, 0x67, 0x2c, 0x33, 0x69, 0x1a, 0x61, 0x36, 0xeb, 0x73, 0xcb, 0x75, 0xfe, 0x57, 0xc1, 0x87, - 0x99, 0x63, 0x8c, 0x24, 0x3f, 0xce, 0x7d, 0x8c, 0xe3, 0x72, 0x49, 0x89, 0xcc, 0xfe, 0x4b, 0xff, - 0x7d, 0xff, 0x7f, 0x5f, 0x85, 0xeb, 0xbd, 0x10, 0x2d, 0x76, 0xaa, 0x39, 0x4c, 0x3b, 0x41, 0x3d, - 0xb8, 0x1e, 0x58, 0xf4, 0x58, 0x8c, 0x3c, 0xda, 0x0f, 0xaf, 0x78, 0xbc, 0xeb, 0xf9, 0x0c, 0xd3, - 0x13, 0xb2, 0x5d, 0xc0, 0xef, 0x06, 0x56, 0x66, 0x15, 0xfd, 0x22, 0xc1, 0xc3, 0xc0, 0xa2, 0x6e, - 0x34, 0x42, 0x68, 0x3f, 0x9e, 0x8f, 0x74, 0xe0, 0x52, 0xee, 0x52, 0x33, 0x19, 0x91, 0x31, 0x63, - 0xb4, 0xa7, 0xc6, 0x02, 0xc6, 0x7c, 0x73, 0xb6, 0x5d, 0xc0, 0x77, 0x02, 0x6b, 0x29, 0x16, 0xbd, - 0x95, 0xe0, 0x4e, 0x46, 0x9d, 0x61, 0x9a, 0xf4, 0x24, 0x9c, 0xa7, 0x34, 0xe9, 0x77, 0xac, 0xeb, - 0x8a, 0xd0, 0xf5, 0x6c, 0xb9, 0xae, 0xf9, 0x73, 0xbb, 0x5d, 0xc0, 0xdb, 0xa9, 0xa4, 0x99, 0xb0, - 0xc9, 0x5e, 0xcd, 0x50, 0x63, 0x87, 0xf3, 0x3d, 0xd6, 0xb4, 0x92, 0xb7, 0x57, 0x4b, 0x4c, 0xe2, - 0x52, 0xaf, 0xe6, 0x63, 0xd1, 0x4f, 0x12, 0xec, 0x64, 0xd4, 0xf9, 0x8c, 0xd3, 0x7e, 0xea, 0x27, - 0xd4, 0x17, 0x5e, 0x50, 0x59, 0x15, 0xa2, 0xbe, 0x58, 0x2e, 0x6a, 0x9e, 0x1b, 0xb5, 0x0b, 0x78, - 0x33, 0x55, 0x33, 0x03, 0x84, 0x7e, 0x96, 0xe0, 0x6e, 0x46, 0x86, 0x17, 0x9b, 0x12, 0xed, 0x27, - 0xae, 0x94, 0x48, 0x59, 0x13, 0x52, 0xbe, 0x5a, 0x2e, 0x65, 0x91, 0xaf, 0xb5, 0x0b, 0x78, 0x27, - 0x95, 0x33, 0x07, 0x98, 0x74, 0xc6, 0x8b, 0x9d, 0x82, 0xf6, 0x43, 0xab, 0xa0, 0xfd, 0xd8, 0xa9, - 0xe2, 0xe3, 0x2a, 0x2f, 0xed, 0xcc, 0x12, 0x9f, 0x8b, 0x3a, 0x33, 0x1f, 0x84, 0xbe, 0x87, 0xcd, - 0x59, 0x2a, 0x46, 0xe7, 0xb1, 0x82, 0x75, 0xa1, 0xe0, 0xd3, 0xfc, 0x0a, 0xb2, 0x46, 0xd9, 0x2e, - 0xe0, 0xca, 0x14, 0x7b, 0x0c, 0x40, 0x3f, 0xc0, 0xd6, 0x34, 0xf3, 0x28, 0xf4, 0xca, 0x98, 0x1a, - 0x04, 0xf5, 0x67, 0x79, 0xa9, 0x27, 0x6c, 0xb6, 0x5d, 0xc0, 0x1b, 0x13, 0xdc, 0x63, 0x04, 0xb2, - 0x61, 0x23, 0xb0, 0xa8, 0x19, 0x4f, 0x3b, 0xea, 0x47, 0xa6, 0x43, 0x45, 0xf1, 0xca, 0x55, 0x41, - 0x5c, 0x5f, 0x40, 0x3c, 0xcb, 0xac, 0xda, 0x05, 0x7c, 0x23, 0xb0, 0x66, 0xda, 0xd8, 0xdb, 0xe8, - 0xfa, 0xa5, 0x74, 0xe9, 0xab, 0xe9, 0x27, 0xee, 0x11, 0x33, 0xbf, 0x23, 0x98, 0x3f, 0xcf, 0xc1, - 0x3c, 0xdb, 0x7f, 0xa2, 0x9b, 0xb7, 0x18, 0xd3, 0x5c, 0x83, 0x15, 0x51, 0xf1, 0xeb, 0x2b, 0xe5, - 0xa2, 0x5c, 0x0a, 0xef, 0x47, 0xfa, 0x62, 0x0c, 0x18, 0x4f, 0x7b, 0x21, 0x0e, 0x61, 0xf7, 0xcf, - 0xd2, 0xf8, 0x1f, 0x49, 0x52, 0x0f, 0xdd, 0x86, 0xad, 0x56, 0x87, 0x28, 0xda, 0x4b, 0x15, 0x53, - 0xac, 0x12, 0xad, 0x87, 0x15, 0x95, 0xf6, 0x8e, 0x48, 0x57, 0x55, 0x3a, 0x7b, 0x1d, 0xb5, 0x25, - 0x17, 0xd0, 0x26, 0x54, 0xa6, 0x21, 0x44, 0xc5, 0x2f, 0x55, 0x2c, 0x4b, 0x68, 0x07, 0x36, 0xa7, - 0xa3, 0xfb, 0xbd, 0xa6, 0x8a, 0x8f, 0x54, 0x5d, 0x25, 0x72, 0x11, 0x3d, 0x85, 0xfa, 0x34, 0xa2, - 0xd5, 0xd0, 0x1b, 0xcd, 0x06, 0x51, 0x69, 0x57, 0x23, 0xfa, 0x0b, 0xac, 0x12, 0x4a, 0xd4, 0x83, - 0x3d, 0xda, 0xd6, 0x88, 0xae, 0xb6, 0xe4, 0x12, 0xfa, 0x04, 0x3e, 0x5e, 0x90, 0x74, 0xf8, 0x2d, - 0xf9, 0xe6, 0xe0, 0x52, 0xc6, 0x15, 0xf4, 0x04, 0x6a, 0x8b, 0x32, 0xb4, 0xa3, 0x17, 0x5a, 0xab, - 0x79, 0x29, 0x67, 0x05, 0x3d, 0x82, 0xfb, 0x79, 0xa4, 0xe1, 0x16, 0x91, 0x57, 0xd1, 0x03, 0xb8, - 0xbb, 0x54, 0x52, 0x88, 0x5c, 0x43, 0x1f, 0x41, 0x75, 0x1a, 0xd9, 0xe8, 0x76, 0x0f, 0x3a, 0x4a, - 0x43, 0xef, 0x68, 0x47, 0xb4, 0xad, 0xeb, 0x5d, 0xb9, 0x8c, 0xee, 0xc1, 0xed, 0xc5, 0x38, 0x5d, - 0xe9, 0xca, 0xeb, 0xb3, 0x61, 0xaf, 0x3a, 0x47, 0x2d, 0xed, 0x15, 0xa1, 0x2d, 0x95, 0xec, 0xeb, - 0x5a, 0x57, 0x86, 0xdd, 0x5f, 0x25, 0xb8, 0x76, 0xf9, 0xdf, 0x1a, 0xfa, 0x10, 0x6e, 0xa5, 0x99, - 0x44, 0x6f, 0xe8, 0x3d, 0x32, 0x71, 0xb6, 0xb7, 0xe0, 0xe6, 0x24, 0x80, 0xf4, 0x14, 0x45, 0x25, - 0x44, 0x96, 0x66, 0x06, 0xf7, 0x3b, 0xdd, 0xae, 0xda, 0x92, 0x8b, 0x68, 0x03, 0xde, 0x9f, 0x0c, - 0xaa, 0x18, 0x6b, 0x58, 0x2e, 0xcd, 0xca, 0x6b, 0x34, 0x35, 0x2c, 0x8e, 0xa9, 0xa9, 0xfd, 0x7e, - 0xb1, 0x2d, 0xfd, 0x71, 0xb1, 0x2d, 0xfd, 0x75, 0xb1, 0x2d, 0x7d, 0xd7, 0x18, 0x58, 0xfc, 0x34, - 0x38, 0xae, 0xf5, 0xdd, 0x61, 0x7d, 0xe0, 0x19, 0x67, 0x16, 0x37, 0xc2, 0xdb, 0x6d, 0xd8, 0xf5, - 0xf4, 0x23, 0xce, 0x18, 0x59, 0xf5, 0x01, 0x73, 0xea, 0xe2, 0x8b, 0xad, 0x3e, 0x70, 0x27, 0xbe, - 0xea, 0x8e, 0x57, 0x45, 0xe0, 0xe9, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x5c, 0xaa, 0x52, 0xbe, - 0xf7, 0x0d, 0x00, 0x00, +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) String() string { + return proto.CompactTextString(m) } - -func (m *UIBannerClickEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UIDiscoverDesktopActiveDirectoryConfigureEvent) ProtoMessage() {} +func (*UIDiscoverDesktopActiveDirectoryConfigureEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{18} } - -func (m *UIBannerClickEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UIDiscoverDesktopActiveDirectoryConfigureEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverDesktopActiveDirectoryConfigureEvent.Merge(m, src) +} +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) XXX_Size() int { + return m.Size() +} +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverDesktopActiveDirectoryConfigureEvent.DiscardUnknown(m) } -func (m *UIBannerClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +var xxx_messageInfo_UIDiscoverDesktopActiveDirectoryConfigureEvent proto.InternalMessageInfo + +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) GetMetadata() *DiscoverMetadata { + if m != nil { + return m.Metadata } - if len(m.Alert) > 0 { - i -= len(m.Alert) - copy(dAtA[i:], m.Alert) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Alert))) - i-- - dAtA[i] = 0xa + return nil +} + +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource } - return len(dAtA) - i, nil + return nil } -func (m *UIOnboardCompleteGoToDashboardClickEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status } - return dAtA[:n], nil + return nil } -func (m *UIOnboardCompleteGoToDashboardClickEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// UIDiscoverAutoDiscoveredResourcesEvent is emitted when the user is finished with the step that auto discovers resources (waiting until resources show up). +// resources_count field must reflect the latest amount of discovered resources (get the number after user is finished with this step). +type UIDiscoverAutoDiscoveredResourcesEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + ResourcesCount int64 `protobuf:"varint,4,opt,name=resources_count,json=resourcesCount,proto3" json:"resources_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UIOnboardCompleteGoToDashboardClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Username) > 0 { - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa +func (m *UIDiscoverAutoDiscoveredResourcesEvent) Reset() { + *m = UIDiscoverAutoDiscoveredResourcesEvent{} +} +func (m *UIDiscoverAutoDiscoveredResourcesEvent) String() string { return proto.CompactTextString(m) } +func (*UIDiscoverAutoDiscoveredResourcesEvent) ProtoMessage() {} +func (*UIDiscoverAutoDiscoveredResourcesEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{19} +} +func (m *UIDiscoverAutoDiscoveredResourcesEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UIDiscoverAutoDiscoveredResourcesEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UIDiscoverAutoDiscoveredResourcesEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return len(dAtA) - i, nil +} +func (m *UIDiscoverAutoDiscoveredResourcesEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverAutoDiscoveredResourcesEvent.Merge(m, src) +} +func (m *UIDiscoverAutoDiscoveredResourcesEvent) XXX_Size() int { + return m.Size() +} +func (m *UIDiscoverAutoDiscoveredResourcesEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverAutoDiscoveredResourcesEvent.DiscardUnknown(m) } -func (m *UIOnboardAddFirstResourceClickEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_UIDiscoverAutoDiscoveredResourcesEvent proto.InternalMessageInfo + +func (m *UIDiscoverAutoDiscoveredResourcesEvent) GetMetadata() *DiscoverMetadata { + if m != nil { + return m.Metadata } - return dAtA[:n], nil + return nil } -func (m *UIOnboardAddFirstResourceClickEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UIDiscoverAutoDiscoveredResourcesEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource + } + return nil } -func (m *UIOnboardAddFirstResourceClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (m *UIDiscoverAutoDiscoveredResourcesEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status } - return len(dAtA) - i, nil + return nil } -func (m *UIOnboardAddFirstResourceLaterClickEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *UIDiscoverAutoDiscoveredResourcesEvent) GetResourcesCount() int64 { + if m != nil { + return m.ResourcesCount } - return dAtA[:n], nil + return 0 } -func (m *UIOnboardAddFirstResourceLaterClickEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// UIDiscoverDatabaseConfigureIAMPolicyEvent is emitted when a user is finished with the step that configures IAM policy for an RDS database. +type UIDiscoverDatabaseConfigureIAMPolicyEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UIOnboardAddFirstResourceLaterClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) Reset() { + *m = UIDiscoverDatabaseConfigureIAMPolicyEvent{} +} +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) String() string { + return proto.CompactTextString(m) +} +func (*UIDiscoverDatabaseConfigureIAMPolicyEvent) ProtoMessage() {} +func (*UIDiscoverDatabaseConfigureIAMPolicyEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{20} +} +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UIDiscoverDatabaseConfigureIAMPolicyEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return len(dAtA) - i, nil +} +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverDatabaseConfigureIAMPolicyEvent.Merge(m, src) +} +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) XXX_Size() int { + return m.Size() +} +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverDatabaseConfigureIAMPolicyEvent.DiscardUnknown(m) } -func (m *UIOnboardSetCredentialSubmitEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_UIDiscoverDatabaseConfigureIAMPolicyEvent proto.InternalMessageInfo + +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) GetMetadata() *DiscoverMetadata { + if m != nil { + return m.Metadata } - return dAtA[:n], nil + return nil } -func (m *UIOnboardSetCredentialSubmitEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource + } + return nil } -func (m *UIOnboardSetCredentialSubmitEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status } - if len(m.Username) > 0 { - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa + return nil +} + +// UIDiscoverPrincipalsConfigureEvent is emitted when a user is finished with the step that allows user to update their principals (setting up access). +type UIDiscoverPrincipalsConfigureEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UIDiscoverPrincipalsConfigureEvent) Reset() { *m = UIDiscoverPrincipalsConfigureEvent{} } +func (m *UIDiscoverPrincipalsConfigureEvent) String() string { return proto.CompactTextString(m) } +func (*UIDiscoverPrincipalsConfigureEvent) ProtoMessage() {} +func (*UIDiscoverPrincipalsConfigureEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{21} +} +func (m *UIDiscoverPrincipalsConfigureEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UIDiscoverPrincipalsConfigureEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UIDiscoverPrincipalsConfigureEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return len(dAtA) - i, nil +} +func (m *UIDiscoverPrincipalsConfigureEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverPrincipalsConfigureEvent.Merge(m, src) +} +func (m *UIDiscoverPrincipalsConfigureEvent) XXX_Size() int { + return m.Size() +} +func (m *UIDiscoverPrincipalsConfigureEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverPrincipalsConfigureEvent.DiscardUnknown(m) } -func (m *UIOnboardRegisterChallengeSubmitEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +var xxx_messageInfo_UIDiscoverPrincipalsConfigureEvent proto.InternalMessageInfo + +func (m *UIDiscoverPrincipalsConfigureEvent) GetMetadata() *DiscoverMetadata { + if m != nil { + return m.Metadata } - return dAtA[:n], nil + return nil } -func (m *UIOnboardRegisterChallengeSubmitEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UIDiscoverPrincipalsConfigureEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource + } + return nil } -func (m *UIOnboardRegisterChallengeSubmitEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (m *UIDiscoverPrincipalsConfigureEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status } - if len(m.LoginFlow) > 0 { - i -= len(m.LoginFlow) - copy(dAtA[i:], m.LoginFlow) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.LoginFlow))) - i-- - dAtA[i] = 0x1a - } - if len(m.MfaType) > 0 { - i -= len(m.MfaType) - copy(dAtA[i:], m.MfaType) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.MfaType))) - i-- - dAtA[i] = 0x12 - } - if len(m.Username) > 0 { - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return nil } -func (m *UIRecoveryCodesContinueClickEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// UIDiscoverTestConnectionEvent emitted on the "Test Connection" screen +// when the user clicked tested connection to their resource. +type UIDiscoverTestConnectionEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UIRecoveryCodesContinueClickEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UIDiscoverTestConnectionEvent) Reset() { *m = UIDiscoverTestConnectionEvent{} } +func (m *UIDiscoverTestConnectionEvent) String() string { return proto.CompactTextString(m) } +func (*UIDiscoverTestConnectionEvent) ProtoMessage() {} +func (*UIDiscoverTestConnectionEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{22} } - -func (m *UIRecoveryCodesContinueClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Username) > 0 { - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *UIDiscoverTestConnectionEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (m *UIRecoveryCodesCopyClickEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *UIDiscoverTestConnectionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UIDiscoverTestConnectionEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *UIRecoveryCodesCopyClickEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UIDiscoverTestConnectionEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverTestConnectionEvent.Merge(m, src) } - -func (m *UIRecoveryCodesCopyClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Username) > 0 { - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *UIDiscoverTestConnectionEvent) XXX_Size() int { + return m.Size() } - -func (m *UIRecoveryCodesPrintClickEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (m *UIDiscoverTestConnectionEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverTestConnectionEvent.DiscardUnknown(m) } -func (m *UIRecoveryCodesPrintClickEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +var xxx_messageInfo_UIDiscoverTestConnectionEvent proto.InternalMessageInfo -func (m *UIRecoveryCodesPrintClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Username) > 0 { - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa +func (m *UIDiscoverTestConnectionEvent) GetMetadata() *DiscoverMetadata { + if m != nil { + return m.Metadata } - return len(dAtA) - i, nil + return nil } -func (m *DiscoverMetadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *UIDiscoverTestConnectionEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource } - return dAtA[:n], nil -} - -func (m *DiscoverMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *DiscoverMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa +func (m *UIDiscoverTestConnectionEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status } - return len(dAtA) - i, nil + return nil } -func (m *DiscoverResourceMetadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// UIDiscoverCompletedEvent is emitted when user completes the Discover wizard. +type UIDiscoverCompletedEvent struct { + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DiscoverResourceMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UIDiscoverCompletedEvent) Reset() { *m = UIDiscoverCompletedEvent{} } +func (m *UIDiscoverCompletedEvent) String() string { return proto.CompactTextString(m) } +func (*UIDiscoverCompletedEvent) ProtoMessage() {} +func (*UIDiscoverCompletedEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{23} } - -func (m *DiscoverResourceMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Resource != 0 { - i = encodeVarintUsageevents(dAtA, i, uint64(m.Resource)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil +func (m *UIDiscoverCompletedEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (m *DiscoverStepStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *UIDiscoverCompletedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UIDiscoverCompletedEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *DiscoverStepStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UIDiscoverCompletedEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_UIDiscoverCompletedEvent.Merge(m, src) +} +func (m *UIDiscoverCompletedEvent) XXX_Size() int { + return m.Size() +} +func (m *UIDiscoverCompletedEvent) XXX_DiscardUnknown() { + xxx_messageInfo_UIDiscoverCompletedEvent.DiscardUnknown(m) } -func (m *DiscoverStepStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if m.Status != 0 { - i = encodeVarintUsageevents(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x8 +var xxx_messageInfo_UIDiscoverCompletedEvent proto.InternalMessageInfo + +func (m *UIDiscoverCompletedEvent) GetMetadata() *DiscoverMetadata { + if m != nil { + return m.Metadata } - return len(dAtA) - i, nil + return nil } -func (m *UIDiscoverStartedEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *UIDiscoverCompletedEvent) GetResource() *DiscoverResourceMetadata { + if m != nil { + return m.Resource } - return dAtA[:n], nil + return nil } -func (m *UIDiscoverStartedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UIDiscoverCompletedEvent) GetStatus() *DiscoverStepStatus { + if m != nil { + return m.Status + } + return nil } -func (m *UIDiscoverStartedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) +// UsageEventOneOf is a message that can accept a oneof of any supported +// external usage event. +type UsageEventOneOf struct { + // Types that are valid to be assigned to Event: + // + // *UsageEventOneOf_UiBannerClick + // *UsageEventOneOf_UiOnboardCompleteGoToDashboardClick + // *UsageEventOneOf_UiOnboardAddFirstResourceClick + // *UsageEventOneOf_UiOnboardAddFirstResourceLaterClick + // *UsageEventOneOf_UiOnboardSetCredentialSubmit + // *UsageEventOneOf_UiOnboardRegisterChallengeSubmit + // *UsageEventOneOf_UiRecoveryCodesContinueClick + // *UsageEventOneOf_UiRecoveryCodesCopyClick + // *UsageEventOneOf_UiRecoveryCodesPrintClick + // *UsageEventOneOf_UiDiscoverStartedEvent + // *UsageEventOneOf_UiDiscoverResourceSelectionEvent + // *UsageEventOneOf_UiDiscoverDeployServiceEvent + // *UsageEventOneOf_UiDiscoverDatabaseRegisterEvent + // *UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent + // *UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent + // *UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent + // *UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent + // *UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent + // *UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent + // *UsageEventOneOf_UiDiscoverTestConnectionEvent + // *UsageEventOneOf_UiDiscoverCompletedEvent + Event isUsageEventOneOf_Event `protobuf_oneof:"event"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UsageEventOneOf) Reset() { *m = UsageEventOneOf{} } +func (m *UsageEventOneOf) String() string { return proto.CompactTextString(m) } +func (*UsageEventOneOf) ProtoMessage() {} +func (*UsageEventOneOf) Descriptor() ([]byte, []int) { + return fileDescriptor_94cf2ca1c69fd564, []int{24} +} +func (m *UsageEventOneOf) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UsageEventOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UsageEventOneOf.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - i-- - dAtA[i] = 0xa + return b[:n], nil } - return len(dAtA) - i, nil +} +func (m *UsageEventOneOf) XXX_Merge(src proto.Message) { + xxx_messageInfo_UsageEventOneOf.Merge(m, src) +} +func (m *UsageEventOneOf) XXX_Size() int { + return m.Size() +} +func (m *UsageEventOneOf) XXX_DiscardUnknown() { + xxx_messageInfo_UsageEventOneOf.DiscardUnknown(m) } -func (m *UIDiscoverResourceSelectionEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +var xxx_messageInfo_UsageEventOneOf proto.InternalMessageInfo + +type isUsageEventOneOf_Event interface { + isUsageEventOneOf_Event() + MarshalTo([]byte) (int, error) + Size() int } -func (m *UIDiscoverResourceSelectionEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type UsageEventOneOf_UiBannerClick struct { + UiBannerClick *UIBannerClickEvent `protobuf:"bytes,1,opt,name=ui_banner_click,json=uiBannerClick,proto3,oneof" json:"ui_banner_click,omitempty"` +} +type UsageEventOneOf_UiOnboardCompleteGoToDashboardClick struct { + UiOnboardCompleteGoToDashboardClick *UIOnboardCompleteGoToDashboardClickEvent `protobuf:"bytes,3,opt,name=ui_onboard_complete_go_to_dashboard_click,json=uiOnboardCompleteGoToDashboardClick,proto3,oneof" json:"ui_onboard_complete_go_to_dashboard_click,omitempty"` +} +type UsageEventOneOf_UiOnboardAddFirstResourceClick struct { + UiOnboardAddFirstResourceClick *UIOnboardAddFirstResourceClickEvent `protobuf:"bytes,4,opt,name=ui_onboard_add_first_resource_click,json=uiOnboardAddFirstResourceClick,proto3,oneof" json:"ui_onboard_add_first_resource_click,omitempty"` +} +type UsageEventOneOf_UiOnboardAddFirstResourceLaterClick struct { + UiOnboardAddFirstResourceLaterClick *UIOnboardAddFirstResourceLaterClickEvent `protobuf:"bytes,5,opt,name=ui_onboard_add_first_resource_later_click,json=uiOnboardAddFirstResourceLaterClick,proto3,oneof" json:"ui_onboard_add_first_resource_later_click,omitempty"` +} +type UsageEventOneOf_UiOnboardSetCredentialSubmit struct { + UiOnboardSetCredentialSubmit *UIOnboardSetCredentialSubmitEvent `protobuf:"bytes,6,opt,name=ui_onboard_set_credential_submit,json=uiOnboardSetCredentialSubmit,proto3,oneof" json:"ui_onboard_set_credential_submit,omitempty"` +} +type UsageEventOneOf_UiOnboardRegisterChallengeSubmit struct { + UiOnboardRegisterChallengeSubmit *UIOnboardRegisterChallengeSubmitEvent `protobuf:"bytes,7,opt,name=ui_onboard_register_challenge_submit,json=uiOnboardRegisterChallengeSubmit,proto3,oneof" json:"ui_onboard_register_challenge_submit,omitempty"` +} +type UsageEventOneOf_UiRecoveryCodesContinueClick struct { + UiRecoveryCodesContinueClick *UIRecoveryCodesContinueClickEvent `protobuf:"bytes,8,opt,name=ui_recovery_codes_continue_click,json=uiRecoveryCodesContinueClick,proto3,oneof" json:"ui_recovery_codes_continue_click,omitempty"` +} +type UsageEventOneOf_UiRecoveryCodesCopyClick struct { + UiRecoveryCodesCopyClick *UIRecoveryCodesCopyClickEvent `protobuf:"bytes,9,opt,name=ui_recovery_codes_copy_click,json=uiRecoveryCodesCopyClick,proto3,oneof" json:"ui_recovery_codes_copy_click,omitempty"` +} +type UsageEventOneOf_UiRecoveryCodesPrintClick struct { + UiRecoveryCodesPrintClick *UIRecoveryCodesPrintClickEvent `protobuf:"bytes,10,opt,name=ui_recovery_codes_print_click,json=uiRecoveryCodesPrintClick,proto3,oneof" json:"ui_recovery_codes_print_click,omitempty"` +} +type UsageEventOneOf_UiDiscoverStartedEvent struct { + UiDiscoverStartedEvent *UIDiscoverStartedEvent `protobuf:"bytes,11,opt,name=ui_discover_started_event,json=uiDiscoverStartedEvent,proto3,oneof" json:"ui_discover_started_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverResourceSelectionEvent struct { + UiDiscoverResourceSelectionEvent *UIDiscoverResourceSelectionEvent `protobuf:"bytes,12,opt,name=ui_discover_resource_selection_event,json=uiDiscoverResourceSelectionEvent,proto3,oneof" json:"ui_discover_resource_selection_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverDeployServiceEvent struct { + UiDiscoverDeployServiceEvent *UIDiscoverDeployServiceEvent `protobuf:"bytes,13,opt,name=ui_discover_deploy_service_event,json=uiDiscoverDeployServiceEvent,proto3,oneof" json:"ui_discover_deploy_service_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverDatabaseRegisterEvent struct { + UiDiscoverDatabaseRegisterEvent *UIDiscoverDatabaseRegisterEvent `protobuf:"bytes,14,opt,name=ui_discover_database_register_event,json=uiDiscoverDatabaseRegisterEvent,proto3,oneof" json:"ui_discover_database_register_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent struct { + UiDiscoverDatabaseConfigureMtlsEvent *UIDiscoverDatabaseConfigureMTLSEvent `protobuf:"bytes,15,opt,name=ui_discover_database_configure_mtls_event,json=uiDiscoverDatabaseConfigureMtlsEvent,proto3,oneof" json:"ui_discover_database_configure_mtls_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent struct { + UiDiscoverDesktopActiveDirectoryToolsInstallEvent *UIDiscoverDesktopActiveDirectoryToolsInstallEvent `protobuf:"bytes,16,opt,name=ui_discover_desktop_active_directory_tools_install_event,json=uiDiscoverDesktopActiveDirectoryToolsInstallEvent,proto3,oneof" json:"ui_discover_desktop_active_directory_tools_install_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent struct { + UiDiscoverDesktopActiveDirectoryConfigureEvent *UIDiscoverDesktopActiveDirectoryConfigureEvent `protobuf:"bytes,17,opt,name=ui_discover_desktop_active_directory_configure_event,json=uiDiscoverDesktopActiveDirectoryConfigureEvent,proto3,oneof" json:"ui_discover_desktop_active_directory_configure_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent struct { + UiDiscoverAutoDiscoveredResourcesEvent *UIDiscoverAutoDiscoveredResourcesEvent `protobuf:"bytes,18,opt,name=ui_discover_auto_discovered_resources_event,json=uiDiscoverAutoDiscoveredResourcesEvent,proto3,oneof" json:"ui_discover_auto_discovered_resources_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent struct { + UiDiscoverDatabaseConfigureIamPolicyEvent *UIDiscoverDatabaseConfigureIAMPolicyEvent `protobuf:"bytes,19,opt,name=ui_discover_database_configure_iam_policy_event,json=uiDiscoverDatabaseConfigureIamPolicyEvent,proto3,oneof" json:"ui_discover_database_configure_iam_policy_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent struct { + UiDiscoverPrincipalsConfigureEvent *UIDiscoverPrincipalsConfigureEvent `protobuf:"bytes,20,opt,name=ui_discover_principals_configure_event,json=uiDiscoverPrincipalsConfigureEvent,proto3,oneof" json:"ui_discover_principals_configure_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverTestConnectionEvent struct { + UiDiscoverTestConnectionEvent *UIDiscoverTestConnectionEvent `protobuf:"bytes,21,opt,name=ui_discover_test_connection_event,json=uiDiscoverTestConnectionEvent,proto3,oneof" json:"ui_discover_test_connection_event,omitempty"` +} +type UsageEventOneOf_UiDiscoverCompletedEvent struct { + UiDiscoverCompletedEvent *UIDiscoverCompletedEvent `protobuf:"bytes,22,opt,name=ui_discover_completed_event,json=uiDiscoverCompletedEvent,proto3,oneof" json:"ui_discover_completed_event,omitempty"` } -func (m *UIDiscoverResourceSelectionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Resource != nil { - { - size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 +func (*UsageEventOneOf_UiBannerClick) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiOnboardCompleteGoToDashboardClick) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiOnboardAddFirstResourceClick) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiOnboardAddFirstResourceLaterClick) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiOnboardSetCredentialSubmit) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiOnboardRegisterChallengeSubmit) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiRecoveryCodesContinueClick) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiRecoveryCodesCopyClick) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiRecoveryCodesPrintClick) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverStartedEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverResourceSelectionEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverDeployServiceEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverDatabaseRegisterEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverTestConnectionEvent) isUsageEventOneOf_Event() {} +func (*UsageEventOneOf_UiDiscoverCompletedEvent) isUsageEventOneOf_Event() {} + +func (m *UsageEventOneOf) GetEvent() isUsageEventOneOf_Event { + if m != nil { + return m.Event } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + return nil +} + +func (m *UsageEventOneOf) GetUiBannerClick() *UIBannerClickEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiBannerClick); ok { + return x.UiBannerClick } - return len(dAtA) - i, nil + return nil } -func (m *UsageEventOneOf) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *UsageEventOneOf) GetUiOnboardCompleteGoToDashboardClick() *UIOnboardCompleteGoToDashboardClickEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardCompleteGoToDashboardClick); ok { + return x.UiOnboardCompleteGoToDashboardClick } - return dAtA[:n], nil + return nil } -func (m *UsageEventOneOf) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UsageEventOneOf) GetUiOnboardAddFirstResourceClick() *UIOnboardAddFirstResourceClickEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardAddFirstResourceClick); ok { + return x.UiOnboardAddFirstResourceClick + } + return nil } -func (m *UsageEventOneOf) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (m *UsageEventOneOf) GetUiOnboardAddFirstResourceLaterClick() *UIOnboardAddFirstResourceLaterClickEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardAddFirstResourceLaterClick); ok { + return x.UiOnboardAddFirstResourceLaterClick } - if m.Event != nil { - { - size := m.Event.Size() - i -= size - if _, err := m.Event.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } + return nil +} + +func (m *UsageEventOneOf) GetUiOnboardSetCredentialSubmit() *UIOnboardSetCredentialSubmitEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardSetCredentialSubmit); ok { + return x.UiOnboardSetCredentialSubmit } - return len(dAtA) - i, nil + return nil } -func (m *UsageEventOneOf_UiBannerClick) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *UsageEventOneOf) GetUiOnboardRegisterChallengeSubmit() *UIOnboardRegisterChallengeSubmitEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiOnboardRegisterChallengeSubmit); ok { + return x.UiOnboardRegisterChallengeSubmit + } + return nil } -func (m *UsageEventOneOf_UiBannerClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiBannerClick != nil { - { - size, err := m.UiBannerClick.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (m *UsageEventOneOf) GetUiRecoveryCodesContinueClick() *UIRecoveryCodesContinueClickEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiRecoveryCodesContinueClick); ok { + return x.UiRecoveryCodesContinueClick } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiOnboardCompleteGoToDashboardClick) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiOnboardCompleteGoToDashboardClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiOnboardCompleteGoToDashboardClick != nil { - { - size, err := m.UiOnboardCompleteGoToDashboardClick.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a +func (m *UsageEventOneOf) GetUiRecoveryCodesCopyClick() *UIRecoveryCodesCopyClickEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiRecoveryCodesCopyClick); ok { + return x.UiRecoveryCodesCopyClick } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiOnboardAddFirstResourceClick) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiOnboardAddFirstResourceClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiOnboardAddFirstResourceClick != nil { - { - size, err := m.UiOnboardAddFirstResourceClick.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 +func (m *UsageEventOneOf) GetUiRecoveryCodesPrintClick() *UIRecoveryCodesPrintClickEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiRecoveryCodesPrintClick); ok { + return x.UiRecoveryCodesPrintClick } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiOnboardAddFirstResourceLaterClick) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiOnboardAddFirstResourceLaterClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiOnboardAddFirstResourceLaterClick != nil { - { - size, err := m.UiOnboardAddFirstResourceLaterClick.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a +func (m *UsageEventOneOf) GetUiDiscoverStartedEvent() *UIDiscoverStartedEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverStartedEvent); ok { + return x.UiDiscoverStartedEvent } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiOnboardSetCredentialSubmit) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiOnboardSetCredentialSubmit) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiOnboardSetCredentialSubmit != nil { - { - size, err := m.UiOnboardSetCredentialSubmit.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 +func (m *UsageEventOneOf) GetUiDiscoverResourceSelectionEvent() *UIDiscoverResourceSelectionEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverResourceSelectionEvent); ok { + return x.UiDiscoverResourceSelectionEvent } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiOnboardRegisterChallengeSubmit) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiOnboardRegisterChallengeSubmit) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiOnboardRegisterChallengeSubmit != nil { - { - size, err := m.UiOnboardRegisterChallengeSubmit.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a +func (m *UsageEventOneOf) GetUiDiscoverDeployServiceEvent() *UIDiscoverDeployServiceEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverDeployServiceEvent); ok { + return x.UiDiscoverDeployServiceEvent } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiRecoveryCodesContinueClick) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiRecoveryCodesContinueClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiRecoveryCodesContinueClick != nil { - { - size, err := m.UiRecoveryCodesContinueClick.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 +func (m *UsageEventOneOf) GetUiDiscoverDatabaseRegisterEvent() *UIDiscoverDatabaseRegisterEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverDatabaseRegisterEvent); ok { + return x.UiDiscoverDatabaseRegisterEvent } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiRecoveryCodesCopyClick) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiRecoveryCodesCopyClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiRecoveryCodesCopyClick != nil { - { - size, err := m.UiRecoveryCodesCopyClick.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a +func (m *UsageEventOneOf) GetUiDiscoverDatabaseConfigureMtlsEvent() *UIDiscoverDatabaseConfigureMTLSEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent); ok { + return x.UiDiscoverDatabaseConfigureMtlsEvent } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiRecoveryCodesPrintClick) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiRecoveryCodesPrintClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiRecoveryCodesPrintClick != nil { - { - size, err := m.UiRecoveryCodesPrintClick.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 +func (m *UsageEventOneOf) GetUiDiscoverDesktopActiveDirectoryToolsInstallEvent() *UIDiscoverDesktopActiveDirectoryToolsInstallEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent); ok { + return x.UiDiscoverDesktopActiveDirectoryToolsInstallEvent } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiDiscoverStartedEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiDiscoverStartedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiDiscoverStartedEvent != nil { - { - size, err := m.UiDiscoverStartedEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a +func (m *UsageEventOneOf) GetUiDiscoverDesktopActiveDirectoryConfigureEvent() *UIDiscoverDesktopActiveDirectoryConfigureEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent); ok { + return x.UiDiscoverDesktopActiveDirectoryConfigureEvent } - return len(dAtA) - i, nil -} -func (m *UsageEventOneOf_UiDiscoverResourceSelectionEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *UsageEventOneOf_UiDiscoverResourceSelectionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UiDiscoverResourceSelectionEvent != nil { - { - size, err := m.UiDiscoverResourceSelectionEvent.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintUsageevents(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 +func (m *UsageEventOneOf) GetUiDiscoverAutoDiscoveredResourcesEvent() *UIDiscoverAutoDiscoveredResourcesEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent); ok { + return x.UiDiscoverAutoDiscoveredResourcesEvent } - return len(dAtA) - i, nil + return nil } -func encodeVarintUsageevents(dAtA []byte, offset int, v uint64) int { - offset -= sovUsageevents(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ + +func (m *UsageEventOneOf) GetUiDiscoverDatabaseConfigureIamPolicyEvent() *UIDiscoverDatabaseConfigureIAMPolicyEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent); ok { + return x.UiDiscoverDatabaseConfigureIamPolicyEvent } - dAtA[offset] = uint8(v) - return base + return nil } -func (m *UIBannerClickEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Alert) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + +func (m *UsageEventOneOf) GetUiDiscoverPrincipalsConfigureEvent() *UIDiscoverPrincipalsConfigureEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent); ok { + return x.UiDiscoverPrincipalsConfigureEvent } - return n + return nil } -func (m *UIOnboardCompleteGoToDashboardClickEvent) Size() (n int) { - if m == nil { - return 0 +func (m *UsageEventOneOf) GetUiDiscoverTestConnectionEvent() *UIDiscoverTestConnectionEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverTestConnectionEvent); ok { + return x.UiDiscoverTestConnectionEvent } - var l int - _ = l - l = len(m.Username) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) + return nil +} + +func (m *UsageEventOneOf) GetUiDiscoverCompletedEvent() *UIDiscoverCompletedEvent { + if x, ok := m.GetEvent().(*UsageEventOneOf_UiDiscoverCompletedEvent); ok { + return x.UiDiscoverCompletedEvent } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return nil } -func (m *UIOnboardAddFirstResourceClickEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +// XXX_OneofWrappers is for the internal use of the proto package. +func (*UsageEventOneOf) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*UsageEventOneOf_UiBannerClick)(nil), + (*UsageEventOneOf_UiOnboardCompleteGoToDashboardClick)(nil), + (*UsageEventOneOf_UiOnboardAddFirstResourceClick)(nil), + (*UsageEventOneOf_UiOnboardAddFirstResourceLaterClick)(nil), + (*UsageEventOneOf_UiOnboardSetCredentialSubmit)(nil), + (*UsageEventOneOf_UiOnboardRegisterChallengeSubmit)(nil), + (*UsageEventOneOf_UiRecoveryCodesContinueClick)(nil), + (*UsageEventOneOf_UiRecoveryCodesCopyClick)(nil), + (*UsageEventOneOf_UiRecoveryCodesPrintClick)(nil), + (*UsageEventOneOf_UiDiscoverStartedEvent)(nil), + (*UsageEventOneOf_UiDiscoverResourceSelectionEvent)(nil), + (*UsageEventOneOf_UiDiscoverDeployServiceEvent)(nil), + (*UsageEventOneOf_UiDiscoverDatabaseRegisterEvent)(nil), + (*UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent)(nil), + (*UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent)(nil), + (*UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent)(nil), + (*UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent)(nil), + (*UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent)(nil), + (*UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent)(nil), + (*UsageEventOneOf_UiDiscoverTestConnectionEvent)(nil), + (*UsageEventOneOf_UiDiscoverCompletedEvent)(nil), } - return n } -func (m *UIOnboardAddFirstResourceLaterClickEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func init() { + proto.RegisterEnum("teleport.usageevents.v1.DiscoverResource", DiscoverResource_name, DiscoverResource_value) + proto.RegisterEnum("teleport.usageevents.v1.DiscoverStatus", DiscoverStatus_name, DiscoverStatus_value) + proto.RegisterType((*UIBannerClickEvent)(nil), "teleport.usageevents.v1.UIBannerClickEvent") + proto.RegisterType((*UIOnboardCompleteGoToDashboardClickEvent)(nil), "teleport.usageevents.v1.UIOnboardCompleteGoToDashboardClickEvent") + proto.RegisterType((*UIOnboardAddFirstResourceClickEvent)(nil), "teleport.usageevents.v1.UIOnboardAddFirstResourceClickEvent") + proto.RegisterType((*UIOnboardAddFirstResourceLaterClickEvent)(nil), "teleport.usageevents.v1.UIOnboardAddFirstResourceLaterClickEvent") + proto.RegisterType((*UIOnboardSetCredentialSubmitEvent)(nil), "teleport.usageevents.v1.UIOnboardSetCredentialSubmitEvent") + proto.RegisterType((*UIOnboardRegisterChallengeSubmitEvent)(nil), "teleport.usageevents.v1.UIOnboardRegisterChallengeSubmitEvent") + proto.RegisterType((*UIRecoveryCodesContinueClickEvent)(nil), "teleport.usageevents.v1.UIRecoveryCodesContinueClickEvent") + proto.RegisterType((*UIRecoveryCodesCopyClickEvent)(nil), "teleport.usageevents.v1.UIRecoveryCodesCopyClickEvent") + proto.RegisterType((*UIRecoveryCodesPrintClickEvent)(nil), "teleport.usageevents.v1.UIRecoveryCodesPrintClickEvent") + proto.RegisterType((*DiscoverMetadata)(nil), "teleport.usageevents.v1.DiscoverMetadata") + proto.RegisterType((*DiscoverResourceMetadata)(nil), "teleport.usageevents.v1.DiscoverResourceMetadata") + proto.RegisterType((*DiscoverStepStatus)(nil), "teleport.usageevents.v1.DiscoverStepStatus") + proto.RegisterType((*UIDiscoverStartedEvent)(nil), "teleport.usageevents.v1.UIDiscoverStartedEvent") + proto.RegisterType((*UIDiscoverResourceSelectionEvent)(nil), "teleport.usageevents.v1.UIDiscoverResourceSelectionEvent") + proto.RegisterType((*UIDiscoverDeployServiceEvent)(nil), "teleport.usageevents.v1.UIDiscoverDeployServiceEvent") + proto.RegisterType((*UIDiscoverDatabaseRegisterEvent)(nil), "teleport.usageevents.v1.UIDiscoverDatabaseRegisterEvent") + proto.RegisterType((*UIDiscoverDatabaseConfigureMTLSEvent)(nil), "teleport.usageevents.v1.UIDiscoverDatabaseConfigureMTLSEvent") + proto.RegisterType((*UIDiscoverDesktopActiveDirectoryToolsInstallEvent)(nil), "teleport.usageevents.v1.UIDiscoverDesktopActiveDirectoryToolsInstallEvent") + proto.RegisterType((*UIDiscoverDesktopActiveDirectoryConfigureEvent)(nil), "teleport.usageevents.v1.UIDiscoverDesktopActiveDirectoryConfigureEvent") + proto.RegisterType((*UIDiscoverAutoDiscoveredResourcesEvent)(nil), "teleport.usageevents.v1.UIDiscoverAutoDiscoveredResourcesEvent") + proto.RegisterType((*UIDiscoverDatabaseConfigureIAMPolicyEvent)(nil), "teleport.usageevents.v1.UIDiscoverDatabaseConfigureIAMPolicyEvent") + proto.RegisterType((*UIDiscoverPrincipalsConfigureEvent)(nil), "teleport.usageevents.v1.UIDiscoverPrincipalsConfigureEvent") + proto.RegisterType((*UIDiscoverTestConnectionEvent)(nil), "teleport.usageevents.v1.UIDiscoverTestConnectionEvent") + proto.RegisterType((*UIDiscoverCompletedEvent)(nil), "teleport.usageevents.v1.UIDiscoverCompletedEvent") + proto.RegisterType((*UsageEventOneOf)(nil), "teleport.usageevents.v1.UsageEventOneOf") } -func (m *UIOnboardSetCredentialSubmitEvent) Size() (n int) { - if m == nil { - return 0 +func init() { + proto.RegisterFile("teleport/usageevents/v1/usageevents.proto", fileDescriptor_94cf2ca1c69fd564) +} + +var fileDescriptor_94cf2ca1c69fd564 = []byte{ + // 1722 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x99, 0xcf, 0x8f, 0xe3, 0x48, + 0x15, 0xc7, 0xed, 0xf4, 0xfc, 0xe8, 0x79, 0xcb, 0xf6, 0x04, 0xb3, 0x3b, 0x93, 0x61, 0xba, 0x7b, + 0x7a, 0x32, 0x33, 0x3d, 0xdd, 0x3d, 0x28, 0xa1, 0x77, 0xf9, 0xb1, 0xb0, 0x0b, 0xa3, 0xc4, 0x71, + 0xb7, 0xb3, 0xd3, 0xdd, 0x09, 0x65, 0x67, 0x57, 0x70, 0x29, 0xb9, 0xed, 0xea, 0x8c, 0x35, 0x8e, + 0x2b, 0xb2, 0xcb, 0xbd, 0x44, 0x08, 0x21, 0x10, 0x42, 0x48, 0x23, 0x21, 0xb8, 0x21, 0x21, 0x71, + 0x81, 0x03, 0x07, 0xee, 0x9c, 0xb9, 0x71, 0xe4, 0x1f, 0x40, 0x42, 0xf3, 0x1f, 0x70, 0xe0, 0x00, + 0x02, 0x81, 0x52, 0xfe, 0x99, 0x9f, 0x36, 0x23, 0x4e, 0xd9, 0x5b, 0xe2, 0x7a, 0xf5, 0xde, 0xe7, + 0xbd, 0x2a, 0xdb, 0xf5, 0x7d, 0x86, 0x7d, 0x46, 0x1c, 0x32, 0xa4, 0x1e, 0xab, 0x07, 0xbe, 0xd1, + 0x27, 0xe4, 0x92, 0xb8, 0xcc, 0xaf, 0x5f, 0x1e, 0x66, 0xff, 0xd6, 0x86, 0x1e, 0x65, 0x54, 0xba, + 0x1d, 0x9b, 0xd6, 0xb2, 0x63, 0x97, 0x87, 0xd5, 0x03, 0x90, 0x7a, 0xed, 0xa6, 0xe1, 0xba, 0xc4, + 0x93, 0x1d, 0xdb, 0x7c, 0xa1, 0x8c, 0x47, 0xa4, 0xb7, 0xe0, 0xaa, 0xe1, 0x10, 0x8f, 0x55, 0xc4, + 0x1d, 0x71, 0xef, 0x06, 0x0a, 0xff, 0x54, 0x8f, 0x60, 0xaf, 0xd7, 0xee, 0xb8, 0xe7, 0xd4, 0xf0, + 0x2c, 0x99, 0x0e, 0x86, 0x0e, 0x61, 0xe4, 0x98, 0xea, 0xb4, 0x65, 0xf8, 0xcf, 0xc3, 0x8b, 0xa9, + 0x87, 0xcf, 0xc3, 0x7a, 0xe0, 0x13, 0xcf, 0x35, 0x06, 0x24, 0x72, 0x92, 0xfc, 0xaf, 0x3e, 0x82, + 0x07, 0x89, 0x9f, 0x86, 0x65, 0x1d, 0xd9, 0x9e, 0xcf, 0x10, 0xf1, 0x69, 0xe0, 0x99, 0x24, 0x75, + 0x51, 0x3d, 0xc8, 0x84, 0x9b, 0x36, 0x3b, 0x31, 0x58, 0x16, 0xb8, 0xfa, 0x14, 0xee, 0x27, 0xb6, + 0x1a, 0x61, 0xb2, 0x47, 0x2c, 0xe2, 0x32, 0xdb, 0x70, 0xb4, 0xe0, 0x7c, 0x60, 0xb3, 0x7c, 0xa6, + 0xef, 0xc3, 0xa3, 0xc4, 0x01, 0x22, 0x7d, 0xdb, 0x1f, 0xfb, 0x7f, 0x6e, 0x38, 0x0e, 0x71, 0xfb, + 0xa4, 0xa0, 0x13, 0xe9, 0x0e, 0xac, 0x0f, 0x2e, 0x0c, 0xcc, 0x46, 0x43, 0x52, 0x29, 0xf1, 0xb1, + 0xeb, 0x83, 0x0b, 0x43, 0x1f, 0x0d, 0x89, 0xb4, 0x05, 0xe0, 0xd0, 0xbe, 0xed, 0xe2, 0x0b, 0x87, + 0x7e, 0x52, 0x59, 0xe3, 0x83, 0x37, 0xf8, 0x95, 0x23, 0x87, 0x7e, 0x12, 0xf2, 0x23, 0x62, 0xd2, + 0x4b, 0xe2, 0x8d, 0x64, 0x6a, 0x11, 0x5f, 0xa6, 0x2e, 0xb3, 0xdd, 0x80, 0x14, 0xac, 0xe9, 0xfb, + 0xb0, 0x35, 0xe3, 0x60, 0x38, 0x2a, 0x38, 0xf9, 0x03, 0xd8, 0x9e, 0x9a, 0xdc, 0xf5, 0x6c, 0x97, + 0x15, 0x9c, 0x5d, 0x85, 0x72, 0xcb, 0xf6, 0xf9, 0xe4, 0x53, 0xc2, 0x0c, 0xcb, 0x60, 0x86, 0xb4, + 0x01, 0x25, 0xdb, 0x8a, 0x2c, 0x4b, 0xb6, 0x55, 0x35, 0xa0, 0x12, 0xdb, 0xc4, 0x4b, 0x98, 0xd8, + 0x2a, 0xb0, 0xee, 0x45, 0xd7, 0xf8, 0x8c, 0x8d, 0x77, 0xf6, 0x6b, 0x0b, 0xb6, 0x6b, 0x6d, 0xda, + 0x09, 0x4a, 0xa6, 0x56, 0x5f, 0x80, 0x14, 0x8f, 0x6a, 0x8c, 0x0c, 0x35, 0x66, 0xb0, 0xc0, 0x97, + 0x9e, 0xc2, 0x35, 0x9f, 0xff, 0x8a, 0x5c, 0x3f, 0xce, 0x75, 0x1d, 0x4e, 0x44, 0xd1, 0xb4, 0xf1, + 0xad, 0x40, 0x3c, 0x8f, 0x7a, 0xd1, 0x82, 0x86, 0x7f, 0xaa, 0xbf, 0x15, 0xe1, 0x56, 0xaf, 0x9d, + 0x99, 0xe2, 0x31, 0x62, 0x85, 0xa5, 0x52, 0x60, 0x7d, 0x10, 0xa5, 0xc6, 0x63, 0xbe, 0x51, 0x20, + 0x9d, 0xb8, 0x16, 0x28, 0x99, 0x2a, 0xc9, 0x09, 0x78, 0x89, 0x3b, 0x79, 0x52, 0x00, 0x3c, 0xce, + 0x3a, 0x86, 0xaf, 0xfe, 0x5b, 0x84, 0x9d, 0x14, 0x33, 0x2e, 0x9a, 0x46, 0x1c, 0x62, 0x32, 0x9b, + 0xba, 0xff, 0x57, 0xe0, 0xd3, 0xcc, 0x32, 0x86, 0xc8, 0x87, 0x85, 0x97, 0x31, 0x75, 0x17, 0xbb, + 0xc8, 0xe4, 0xbf, 0xf6, 0xfa, 0xf9, 0xff, 0x43, 0x84, 0xcd, 0x34, 0xff, 0x16, 0x19, 0x3a, 0x74, + 0xa4, 0x11, 0xef, 0xd2, 0x36, 0xc9, 0xca, 0xe7, 0xfe, 0x2f, 0x11, 0xee, 0x65, 0x72, 0x37, 0x98, + 0x71, 0x6e, 0xf8, 0x24, 0x7e, 0xb6, 0xad, 0x7c, 0xfa, 0x3f, 0x2c, 0xc1, 0xc3, 0xd9, 0xf4, 0x65, + 0xea, 0x5e, 0xd8, 0xfd, 0xc0, 0x23, 0xa7, 0xfa, 0x89, 0xb6, 0xf2, 0x35, 0xf8, 0x59, 0x09, 0x0e, + 0xb3, 0xdb, 0xdf, 0x7f, 0xc1, 0xe8, 0xb0, 0x61, 0x32, 0xfb, 0x92, 0xb4, 0x6c, 0x8f, 0x98, 0x8c, + 0x7a, 0x23, 0x9d, 0x52, 0xc7, 0x6f, 0xbb, 0x3e, 0x33, 0x1c, 0x67, 0xe5, 0x0b, 0xf2, 0xb2, 0x04, + 0xb5, 0xbc, 0x82, 0x24, 0x5b, 0x64, 0xe5, 0xab, 0xf1, 0xfb, 0x12, 0xec, 0xa6, 0xd5, 0x68, 0x04, + 0x8c, 0xc6, 0xbf, 0x89, 0x15, 0xc7, 0xf6, 0x57, 0xbd, 0x0a, 0xd2, 0x63, 0xb8, 0x19, 0x3b, 0xf4, + 0xb1, 0x49, 0x03, 0x97, 0x55, 0xae, 0xec, 0x88, 0x7b, 0x6b, 0x68, 0x23, 0xb9, 0x2c, 0x8f, 0xaf, + 0x56, 0x7f, 0x52, 0x82, 0xfd, 0x25, 0x4f, 0x94, 0x76, 0xe3, 0xb4, 0x4b, 0x1d, 0xdb, 0x1c, 0xad, + 0xfc, 0xbe, 0xf9, 0x8f, 0x08, 0xd5, 0xb4, 0x10, 0xe3, 0xa3, 0xa2, 0x69, 0x0f, 0x0d, 0xc7, 0xff, + 0xf4, 0xdc, 0x39, 0xff, 0x14, 0xc7, 0xc7, 0xed, 0xd8, 0x40, 0x27, 0x3e, 0x93, 0xa9, 0xeb, 0x7e, + 0x4a, 0x0e, 0x55, 0x7f, 0x17, 0xa1, 0x92, 0x26, 0x1f, 0x0b, 0x41, 0x6b, 0xe5, 0xf3, 0xfe, 0xdb, + 0x6d, 0xb8, 0xd9, 0x1b, 0x5b, 0xf3, 0x4c, 0x3b, 0x2e, 0xe9, 0x5c, 0x48, 0x3d, 0xb8, 0x19, 0xd8, + 0xf8, 0x9c, 0xeb, 0x67, 0x6c, 0x8e, 0xf5, 0x52, 0x94, 0xf5, 0xe2, 0x08, 0xb3, 0x72, 0x5b, 0x15, + 0xd0, 0x9b, 0x81, 0x9d, 0xb9, 0x2a, 0xfd, 0x4a, 0x84, 0xfd, 0xc0, 0xc6, 0x34, 0xd4, 0xa3, 0xd8, + 0x8c, 0x6a, 0x8c, 0xfb, 0x14, 0x33, 0x8a, 0xad, 0x58, 0x6f, 0x47, 0x11, 0xc3, 0x9c, 0x1a, 0x4b, + 0x22, 0x16, 0x13, 0xed, 0xaa, 0x80, 0x1e, 0x04, 0x76, 0xae, 0xad, 0xf4, 0x52, 0x84, 0x07, 0x19, + 0x3a, 0xc3, 0xb2, 0xf0, 0xc5, 0x58, 0x9c, 0xe3, 0xb8, 0xde, 0x11, 0xd7, 0x15, 0xce, 0xf5, 0x41, + 0x3e, 0xd7, 0xe2, 0x26, 0x80, 0x2a, 0xa0, 0xed, 0x04, 0x69, 0xae, 0xd9, 0x74, 0xad, 0xe6, 0xd0, + 0x38, 0x06, 0x4b, 0x56, 0xe7, 0x6a, 0xd1, 0x5a, 0xe5, 0x74, 0x1c, 0x26, 0x6a, 0xb5, 0xd8, 0x56, + 0xfa, 0xb1, 0x08, 0x3b, 0x19, 0x3a, 0x9f, 0x30, 0x6c, 0x26, 0xcd, 0x09, 0xec, 0xf3, 0xc6, 0x42, + 0xe5, 0x1a, 0x87, 0xfa, 0x7a, 0x3e, 0xd4, 0xa2, 0xd6, 0x86, 0x2a, 0xa0, 0xcd, 0x84, 0x66, 0x8e, + 0x91, 0xf4, 0x73, 0x11, 0x1e, 0x66, 0x30, 0xbc, 0x48, 0x05, 0x60, 0x33, 0x6e, 0x71, 0xc4, 0x28, + 0xd7, 0x39, 0xca, 0x37, 0xf3, 0x51, 0x96, 0x35, 0x49, 0x54, 0x01, 0xed, 0x24, 0x38, 0x0b, 0x0c, + 0xe3, 0xca, 0x78, 0x51, 0xdb, 0x01, 0x9b, 0xd4, 0xe2, 0x2f, 0xe0, 0xb0, 0xed, 0x11, 0x2d, 0xd7, + 0x7a, 0x6e, 0x65, 0x72, 0x9a, 0x26, 0x61, 0x65, 0x16, 0x1b, 0x49, 0xdf, 0x85, 0xcd, 0x79, 0x14, + 0xc3, 0x51, 0x44, 0x70, 0x83, 0x13, 0x7c, 0xa5, 0x38, 0x41, 0xb6, 0xeb, 0xa2, 0x0a, 0xa8, 0x32, + 0x13, 0x3d, 0x32, 0x90, 0xbe, 0x07, 0x5b, 0xb3, 0x91, 0x87, 0x9e, 0xed, 0xb2, 0x28, 0x34, 0xf0, + 0xd0, 0x5f, 0x2d, 0x1a, 0x7a, 0xaa, 0x67, 0xa3, 0x0a, 0xe8, 0xce, 0x54, 0xec, 0xd4, 0x42, 0x72, + 0xe0, 0x4e, 0x60, 0x63, 0x2b, 0x7a, 0xda, 0x61, 0x3f, 0xec, 0x60, 0x60, 0xee, 0xbc, 0xf2, 0x06, + 0x0f, 0x5c, 0x5f, 0x12, 0x78, 0x5e, 0xe7, 0x43, 0x15, 0xd0, 0xad, 0xc0, 0x9e, 0xdb, 0x13, 0x79, + 0x19, 0x6e, 0xbf, 0x24, 0x5c, 0x72, 0x6b, 0xfa, 0x71, 0x2b, 0x22, 0x8a, 0xfc, 0x19, 0x1e, 0xf9, + 0x6b, 0x05, 0x22, 0xcf, 0x6f, 0x66, 0x84, 0x3b, 0x2f, 0xa7, 0xe1, 0xf1, 0x03, 0xbe, 0xf1, 0x12, + 0x18, 0x8b, 0xb7, 0x05, 0xb0, 0x1f, 0xf6, 0x05, 0x22, 0x90, 0x37, 0x39, 0xc8, 0x97, 0x0b, 0x80, + 0xcc, 0x76, 0x15, 0xc2, 0x3d, 0xb7, 0xa4, 0xeb, 0xf0, 0xd3, 0xf0, 0x01, 0x9a, 0x12, 0x44, 0x67, + 0xc9, 0xf4, 0xbe, 0x0c, 0x21, 0x36, 0x38, 0xc4, 0x7b, 0x45, 0x20, 0xe6, 0xc9, 0x7b, 0x55, 0x40, + 0xf7, 0x32, 0x1c, 0x73, 0x3b, 0x00, 0xbf, 0x0c, 0x9f, 0x9e, 0xb3, 0x28, 0x66, 0x7c, 0x98, 0xc3, + 0x03, 0xe6, 0xf8, 0x11, 0xd0, 0x4d, 0x0e, 0xf4, 0x8d, 0xff, 0x01, 0x68, 0x56, 0x70, 0xab, 0x02, + 0x7a, 0x38, 0x4b, 0x95, 0xda, 0x31, 0x27, 0xd2, 0x1c, 0x7f, 0x14, 0xe1, 0xbd, 0xc9, 0x75, 0xe2, + 0x72, 0x0d, 0x1b, 0x5c, 0xaf, 0x61, 0x2b, 0x16, 0x6c, 0x98, 0x8d, 0x25, 0x2c, 0xb6, 0x43, 0x0d, + 0x1b, 0x91, 0x96, 0x39, 0xe9, 0x87, 0x85, 0xd6, 0xaf, 0x90, 0x2c, 0x56, 0x05, 0x74, 0x98, 0x5d, + 0xd4, 0x62, 0x5a, 0xfa, 0x0f, 0x22, 0x7c, 0xa9, 0x50, 0x0e, 0x69, 0xb9, 0x43, 0xfe, 0xcf, 0x72, + 0xfe, 0xe3, 0xd7, 0xe6, 0x9f, 0x3c, 0x8b, 0xab, 0x02, 0xaa, 0xe5, 0xc1, 0x4f, 0x9d, 0xde, 0x7f, + 0x2d, 0xc2, 0x93, 0x2c, 0xb9, 0x11, 0x8c, 0x4f, 0x1e, 0x89, 0x3e, 0xc4, 0xa9, 0x66, 0x0a, 0x81, + 0x25, 0x0e, 0xfc, 0xb4, 0x00, 0xf0, 0x32, 0xa1, 0xa9, 0x0a, 0x68, 0x37, 0x05, 0x5d, 0x2a, 0x49, + 0x7f, 0x27, 0x42, 0x3d, 0x67, 0xe7, 0xda, 0xc6, 0x00, 0x0f, 0xb9, 0x26, 0x8b, 0x20, 0x3f, 0xc7, + 0x21, 0x9b, 0xaf, 0xb3, 0x7f, 0x27, 0xe5, 0x9d, 0x2a, 0xa0, 0xfd, 0x25, 0x9b, 0xb8, 0x6d, 0x0c, + 0xb2, 0x5a, 0xf0, 0x17, 0x22, 0xec, 0x66, 0x51, 0x87, 0x89, 0x64, 0x9a, 0x59, 0xf7, 0xb7, 0x38, + 0xe1, 0xfb, 0x05, 0x08, 0x17, 0xe9, 0x2e, 0x55, 0x40, 0xd5, 0x14, 0x6d, 0xa1, 0x3a, 0xfb, 0x91, + 0x08, 0xf7, 0xb3, 0x4c, 0x8c, 0xf8, 0x6c, 0x4c, 0xe3, 0x4e, 0x3c, 0x8f, 0xdf, 0xce, 0x7d, 0xfb, + 0x2d, 0x11, 0x41, 0xaa, 0x80, 0xb6, 0x52, 0x92, 0x79, 0x2a, 0xc9, 0x83, 0xbb, 0x59, 0x86, 0xf8, + 0x9c, 0x1b, 0xbf, 0x87, 0x6e, 0xe5, 0x9c, 0xfc, 0x17, 0xa9, 0x90, 0xf0, 0xb5, 0x3b, 0x7f, 0xac, + 0x79, 0x1d, 0xae, 0x72, 0x0f, 0x1f, 0x5e, 0x59, 0x2f, 0x95, 0xd7, 0xc6, 0x4f, 0xea, 0xe4, 0x58, + 0xd4, 0x27, 0x2c, 0x79, 0x13, 0xf2, 0x57, 0xf0, 0xc1, 0x5f, 0xd6, 0xd2, 0x8f, 0x1b, 0xf1, 0xfe, + 0x93, 0xee, 0xc3, 0x56, 0xab, 0xad, 0xc9, 0x9d, 0x8f, 0x14, 0x84, 0x91, 0xa2, 0x75, 0x7a, 0x48, + 0x56, 0x70, 0xef, 0x4c, 0xeb, 0x2a, 0x72, 0xfb, 0xa8, 0xad, 0xb4, 0xca, 0x82, 0xb4, 0x09, 0x95, + 0x59, 0x13, 0x4d, 0x41, 0x1f, 0x29, 0xa8, 0x2c, 0x4a, 0x3b, 0xb0, 0x39, 0x3b, 0xfa, 0xac, 0xd7, + 0x54, 0xd0, 0x99, 0xa2, 0x2b, 0x5a, 0xb9, 0x24, 0xbd, 0x0b, 0xf5, 0x59, 0x8b, 0x56, 0x43, 0x6f, + 0x34, 0x1b, 0x9a, 0x82, 0xbb, 0x1d, 0x4d, 0x3f, 0x46, 0x8a, 0x86, 0x35, 0xe5, 0xe4, 0x08, 0xab, + 0x1d, 0x4d, 0x57, 0x5a, 0xe5, 0x35, 0xe9, 0x8b, 0xf0, 0x85, 0x25, 0x93, 0x4e, 0xbf, 0xad, 0x7d, + 0xeb, 0x64, 0x62, 0xc6, 0x15, 0xe9, 0x1d, 0xa8, 0x2d, 0x9b, 0xd1, 0x39, 0x3b, 0xee, 0xb4, 0x9a, + 0x13, 0x73, 0xae, 0x4a, 0x4f, 0xe0, 0x71, 0x11, 0x34, 0xd4, 0xd2, 0xca, 0xd7, 0xa4, 0x3d, 0x78, + 0x98, 0x8b, 0x34, 0xb6, 0xbc, 0x2e, 0xed, 0x42, 0x75, 0xd6, 0xb2, 0xd1, 0xed, 0x9e, 0xb4, 0xe5, + 0x86, 0xde, 0xee, 0x9c, 0x61, 0x55, 0xd7, 0xbb, 0xe5, 0x75, 0xe9, 0x11, 0xdc, 0x5f, 0x6e, 0xa7, + 0xcb, 0xdd, 0xf2, 0x8d, 0xf9, 0x66, 0x1f, 0xb7, 0xcf, 0x5a, 0x9d, 0x8f, 0x35, 0xdc, 0x52, 0xb4, + 0x67, 0x7a, 0xa7, 0x5b, 0x86, 0x83, 0xdf, 0x88, 0xb0, 0x31, 0xf9, 0xe1, 0x47, 0xba, 0x07, 0x77, + 0x93, 0x99, 0x9a, 0xde, 0xd0, 0x7b, 0xda, 0xd4, 0xda, 0xde, 0x85, 0xdb, 0xd3, 0x06, 0x5a, 0x4f, + 0x96, 0x15, 0x4d, 0x2b, 0x8b, 0x73, 0x07, 0x9f, 0xb5, 0xbb, 0x5d, 0xa5, 0x55, 0x2e, 0x49, 0x77, + 0xe0, 0xed, 0xe9, 0x41, 0x05, 0xa1, 0x0e, 0x2a, 0xaf, 0xcd, 0x9b, 0xd7, 0x68, 0x76, 0x10, 0x5f, + 0xa6, 0x66, 0xe7, 0x4f, 0xaf, 0xb6, 0xc5, 0x3f, 0xbf, 0xda, 0x16, 0xff, 0xfa, 0x6a, 0x5b, 0xfc, + 0x4e, 0xa3, 0x6f, 0xb3, 0xe7, 0xc1, 0x79, 0xcd, 0xa4, 0x83, 0x7a, 0xdf, 0x33, 0x2e, 0x6d, 0x66, + 0x8c, 0xef, 0x28, 0xc3, 0xa9, 0x27, 0xdf, 0x83, 0x8d, 0xa1, 0x5d, 0xef, 0x13, 0xb7, 0xce, 0x3f, + 0xfe, 0xd6, 0xfb, 0x74, 0xea, 0x03, 0xf1, 0xf9, 0x35, 0x3e, 0xf0, 0xee, 0x7f, 0x03, 0x00, 0x00, + 0xff, 0xff, 0xf6, 0xfc, 0x2b, 0x45, 0x42, 0x1e, 0x00, 0x00, +} + +func (m *UIBannerClickEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIBannerClickEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIBannerClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Username) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if len(m.Alert) > 0 { + i -= len(m.Alert) + copy(dAtA[i:], m.Alert) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Alert))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *UIOnboardRegisterChallengeSubmitEvent) Size() (n int) { - if m == nil { - return 0 +func (m *UIOnboardCompleteGoToDashboardClickEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIOnboardCompleteGoToDashboardClickEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIOnboardCompleteGoToDashboardClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Username) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } - l = len(m.MfaType) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } - l = len(m.LoginFlow) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if len(m.Username) > 0 { + i -= len(m.Username) + copy(dAtA[i:], m.Username) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *UIRecoveryCodesContinueClickEvent) Size() (n int) { - if m == nil { - return 0 +func (m *UIOnboardAddFirstResourceClickEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIOnboardAddFirstResourceClickEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIOnboardAddFirstResourceClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Username) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + return len(dAtA) - i, nil } -func (m *UIRecoveryCodesCopyClickEvent) Size() (n int) { - if m == nil { - return 0 +func (m *UIOnboardAddFirstResourceLaterClickEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIOnboardAddFirstResourceLaterClickEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIOnboardAddFirstResourceLaterClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Username) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + return len(dAtA) - i, nil } -func (m *UIRecoveryCodesPrintClickEvent) Size() (n int) { - if m == nil { - return 0 +func (m *UIOnboardSetCredentialSubmitEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIOnboardSetCredentialSubmitEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIOnboardSetCredentialSubmitEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Username) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if len(m.Username) > 0 { + i -= len(m.Username) + copy(dAtA[i:], m.Username) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *DiscoverMetadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (m *UIOnboardRegisterChallengeSubmitEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *DiscoverResourceMetadata) Size() (n int) { - if m == nil { - return 0 - } +func (m *UIOnboardRegisterChallengeSubmitEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIOnboardRegisterChallengeSubmitEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Resource != 0 { - n += 1 + sovUsageevents(uint64(m.Resource)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if len(m.LoginFlow) > 0 { + i -= len(m.LoginFlow) + copy(dAtA[i:], m.LoginFlow) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.LoginFlow))) + i-- + dAtA[i] = 0x1a + } + if len(m.MfaType) > 0 { + i -= len(m.MfaType) + copy(dAtA[i:], m.MfaType) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.MfaType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Username) > 0 { + i -= len(m.Username) + copy(dAtA[i:], m.Username) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *DiscoverStepStatus) Size() (n int) { - if m == nil { - return 0 +func (m *UIRecoveryCodesContinueClickEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIRecoveryCodesContinueClickEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIRecoveryCodesContinueClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Status != 0 { - n += 1 + sovUsageevents(uint64(m.Status)) - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovUsageevents(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if len(m.Username) > 0 { + i -= len(m.Username) + copy(dAtA[i:], m.Username) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *UIDiscoverStartedEvent) Size() (n int) { - if m == nil { - return 0 +func (m *UIRecoveryCodesCopyClickEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIRecoveryCodesCopyClickEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIRecoveryCodesCopyClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovUsageevents(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovUsageevents(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if len(m.Username) > 0 { + i -= len(m.Username) + copy(dAtA[i:], m.Username) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *UIDiscoverResourceSelectionEvent) Size() (n int) { - if m == nil { - return 0 +func (m *UIRecoveryCodesPrintClickEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIRecoveryCodesPrintClickEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIRecoveryCodesPrintClickEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovUsageevents(uint64(l)) - } - if m.Resource != nil { - l = m.Resource.Size() - n += 1 + l + sovUsageevents(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovUsageevents(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if len(m.Username) > 0 { + i -= len(m.Username) + copy(dAtA[i:], m.Username) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Username))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *UsageEventOneOf) Size() (n int) { - if m == nil { - return 0 +func (m *DiscoverMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *DiscoverMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DiscoverMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Event != nil { - n += m.Event.Size() - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *UsageEventOneOf_UiBannerClick) Size() (n int) { - if m == nil { - return 0 +func (m *DiscoverResourceMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *DiscoverResourceMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DiscoverResourceMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.UiBannerClick != nil { - l = m.UiBannerClick.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if m.Resource != 0 { + i = encodeVarintUsageevents(dAtA, i, uint64(m.Resource)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } -func (m *UsageEventOneOf_UiOnboardCompleteGoToDashboardClick) Size() (n int) { - if m == nil { - return 0 + +func (m *DiscoverStepStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *DiscoverStepStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DiscoverStepStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.UiOnboardCompleteGoToDashboardClick != nil { - l = m.UiOnboardCompleteGoToDashboardClick.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n -} -func (m *UsageEventOneOf_UiOnboardAddFirstResourceClick) Size() (n int) { - if m == nil { - return 0 + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintUsageevents(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x12 } - var l int - _ = l - if m.UiOnboardAddFirstResourceClick != nil { - l = m.UiOnboardAddFirstResourceClick.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.Status != 0 { + i = encodeVarintUsageevents(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *UsageEventOneOf_UiOnboardAddFirstResourceLaterClick) Size() (n int) { - if m == nil { - return 0 + +func (m *UIDiscoverStartedEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIDiscoverStartedEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverStartedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.UiOnboardAddFirstResourceLaterClick != nil { - l = m.UiOnboardAddFirstResourceLaterClick.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n -} -func (m *UsageEventOneOf_UiOnboardSetCredentialSubmit) Size() (n int) { - if m == nil { - return 0 + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - var l int - _ = l - if m.UiOnboardSetCredentialSubmit != nil { - l = m.UiOnboardSetCredentialSubmit.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *UsageEventOneOf_UiOnboardRegisterChallengeSubmit) Size() (n int) { - if m == nil { - return 0 + +func (m *UIDiscoverResourceSelectionEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIDiscoverResourceSelectionEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverResourceSelectionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.UiOnboardRegisterChallengeSubmit != nil { - l = m.UiOnboardRegisterChallengeSubmit.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n -} -func (m *UsageEventOneOf_UiRecoveryCodesContinueClick) Size() (n int) { - if m == nil { - return 0 + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - var l int - _ = l - if m.UiRecoveryCodesContinueClick != nil { - l = m.UiRecoveryCodesContinueClick.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return n + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *UsageEventOneOf_UiRecoveryCodesCopyClick) Size() (n int) { - if m == nil { - return 0 + +func (m *UIDiscoverDeployServiceEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIDiscoverDeployServiceEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverDeployServiceEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.UiRecoveryCodesCopyClick != nil { - l = m.UiRecoveryCodesCopyClick.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n -} -func (m *UsageEventOneOf_UiRecoveryCodesPrintClick) Size() (n int) { - if m == nil { - return 0 + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - var l int - _ = l - if m.UiRecoveryCodesPrintClick != nil { - l = m.UiRecoveryCodesPrintClick.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return n + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *UsageEventOneOf_UiDiscoverStartedEvent) Size() (n int) { - if m == nil { - return 0 + +func (m *UIDiscoverDatabaseRegisterEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIDiscoverDatabaseRegisterEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverDatabaseRegisterEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.UiDiscoverStartedEvent != nil { - l = m.UiDiscoverStartedEvent.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n -} -func (m *UsageEventOneOf_UiDiscoverResourceSelectionEvent) Size() (n int) { - if m == nil { - return 0 + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UIDiscoverDatabaseConfigureMTLSEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UIDiscoverDatabaseConfigureMTLSEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverDatabaseConfigureMTLSEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.UiDiscoverResourceSelectionEvent != nil { - l = m.UiDiscoverResourceSelectionEvent.Size() - n += 1 + l + sovUsageevents(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UIDiscoverAutoDiscoveredResourcesEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UIDiscoverAutoDiscoveredResourcesEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverAutoDiscoveredResourcesEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResourcesCount != 0 { + i = encodeVarintUsageevents(dAtA, i, uint64(m.ResourcesCount)) + i-- + dAtA[i] = 0x20 + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UIDiscoverPrincipalsConfigureEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UIDiscoverPrincipalsConfigureEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverPrincipalsConfigureEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UIDiscoverTestConnectionEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UIDiscoverTestConnectionEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverTestConnectionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UIDiscoverCompletedEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UIDiscoverCompletedEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UIDiscoverCompletedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UsageEventOneOf) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UsageEventOneOf) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Event != nil { + { + size := m.Event.Size() + i -= size + if _, err := m.Event.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *UsageEventOneOf_UiBannerClick) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiBannerClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiBannerClick != nil { + { + size, err := m.UiBannerClick.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiOnboardCompleteGoToDashboardClick) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiOnboardCompleteGoToDashboardClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiOnboardCompleteGoToDashboardClick != nil { + { + size, err := m.UiOnboardCompleteGoToDashboardClick.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiOnboardAddFirstResourceClick) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiOnboardAddFirstResourceClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiOnboardAddFirstResourceClick != nil { + { + size, err := m.UiOnboardAddFirstResourceClick.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiOnboardAddFirstResourceLaterClick) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiOnboardAddFirstResourceLaterClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiOnboardAddFirstResourceLaterClick != nil { + { + size, err := m.UiOnboardAddFirstResourceLaterClick.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiOnboardSetCredentialSubmit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiOnboardSetCredentialSubmit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiOnboardSetCredentialSubmit != nil { + { + size, err := m.UiOnboardSetCredentialSubmit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiOnboardRegisterChallengeSubmit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiOnboardRegisterChallengeSubmit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiOnboardRegisterChallengeSubmit != nil { + { + size, err := m.UiOnboardRegisterChallengeSubmit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiRecoveryCodesContinueClick) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiRecoveryCodesContinueClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiRecoveryCodesContinueClick != nil { + { + size, err := m.UiRecoveryCodesContinueClick.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiRecoveryCodesCopyClick) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiRecoveryCodesCopyClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiRecoveryCodesCopyClick != nil { + { + size, err := m.UiRecoveryCodesCopyClick.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiRecoveryCodesPrintClick) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiRecoveryCodesPrintClick) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiRecoveryCodesPrintClick != nil { + { + size, err := m.UiRecoveryCodesPrintClick.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverStartedEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverStartedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverStartedEvent != nil { + { + size, err := m.UiDiscoverStartedEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverResourceSelectionEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverResourceSelectionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverResourceSelectionEvent != nil { + { + size, err := m.UiDiscoverResourceSelectionEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverDeployServiceEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverDeployServiceEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverDeployServiceEvent != nil { + { + size, err := m.UiDiscoverDeployServiceEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverDatabaseRegisterEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverDatabaseRegisterEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverDatabaseRegisterEvent != nil { + { + size, err := m.UiDiscoverDatabaseRegisterEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverDatabaseConfigureMtlsEvent != nil { + { + size, err := m.UiDiscoverDatabaseConfigureMtlsEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverDesktopActiveDirectoryToolsInstallEvent != nil { + { + size, err := m.UiDiscoverDesktopActiveDirectoryToolsInstallEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverDesktopActiveDirectoryConfigureEvent != nil { + { + size, err := m.UiDiscoverDesktopActiveDirectoryConfigureEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverAutoDiscoveredResourcesEvent != nil { + { + size, err := m.UiDiscoverAutoDiscoveredResourcesEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverDatabaseConfigureIamPolicyEvent != nil { + { + size, err := m.UiDiscoverDatabaseConfigureIamPolicyEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverPrincipalsConfigureEvent != nil { + { + size, err := m.UiDiscoverPrincipalsConfigureEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverTestConnectionEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverTestConnectionEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverTestConnectionEvent != nil { + { + size, err := m.UiDiscoverTestConnectionEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} +func (m *UsageEventOneOf_UiDiscoverCompletedEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UsageEventOneOf_UiDiscoverCompletedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UiDiscoverCompletedEvent != nil { + { + size, err := m.UiDiscoverCompletedEvent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUsageevents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + return len(dAtA) - i, nil +} +func encodeVarintUsageevents(dAtA []byte, offset int, v uint64) int { + offset -= sovUsageevents(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *UIBannerClickEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Alert) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIOnboardCompleteGoToDashboardClickEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Username) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIOnboardAddFirstResourceClickEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIOnboardAddFirstResourceLaterClickEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIOnboardSetCredentialSubmitEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Username) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIOnboardRegisterChallengeSubmitEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Username) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + l = len(m.MfaType) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + l = len(m.LoginFlow) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIRecoveryCodesContinueClickEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Username) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIRecoveryCodesCopyClickEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Username) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIRecoveryCodesPrintClickEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Username) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DiscoverMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DiscoverResourceMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Resource != 0 { + n += 1 + sovUsageevents(uint64(m.Resource)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DiscoverStepStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != 0 { + n += 1 + sovUsageevents(uint64(m.Status)) + } + l = len(m.Error) + if l > 0 { + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverStartedEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverResourceSelectionEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverDeployServiceEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverDatabaseRegisterEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverDatabaseConfigureMTLSEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverAutoDiscoveredResourcesEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.ResourcesCount != 0 { + n += 1 + sovUsageevents(uint64(m.ResourcesCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverPrincipalsConfigureEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverTestConnectionEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UIDiscoverCompletedEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UsageEventOneOf) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Event != nil { + n += m.Event.Size() + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UsageEventOneOf_UiBannerClick) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiBannerClick != nil { + l = m.UiBannerClick.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiOnboardCompleteGoToDashboardClick) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiOnboardCompleteGoToDashboardClick != nil { + l = m.UiOnboardCompleteGoToDashboardClick.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiOnboardAddFirstResourceClick) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiOnboardAddFirstResourceClick != nil { + l = m.UiOnboardAddFirstResourceClick.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiOnboardAddFirstResourceLaterClick) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiOnboardAddFirstResourceLaterClick != nil { + l = m.UiOnboardAddFirstResourceLaterClick.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiOnboardSetCredentialSubmit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiOnboardSetCredentialSubmit != nil { + l = m.UiOnboardSetCredentialSubmit.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiOnboardRegisterChallengeSubmit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiOnboardRegisterChallengeSubmit != nil { + l = m.UiOnboardRegisterChallengeSubmit.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiRecoveryCodesContinueClick) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiRecoveryCodesContinueClick != nil { + l = m.UiRecoveryCodesContinueClick.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiRecoveryCodesCopyClick) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiRecoveryCodesCopyClick != nil { + l = m.UiRecoveryCodesCopyClick.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiRecoveryCodesPrintClick) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiRecoveryCodesPrintClick != nil { + l = m.UiRecoveryCodesPrintClick.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverStartedEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverStartedEvent != nil { + l = m.UiDiscoverStartedEvent.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverResourceSelectionEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverResourceSelectionEvent != nil { + l = m.UiDiscoverResourceSelectionEvent.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverDeployServiceEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverDeployServiceEvent != nil { + l = m.UiDiscoverDeployServiceEvent.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverDatabaseRegisterEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverDatabaseRegisterEvent != nil { + l = m.UiDiscoverDatabaseRegisterEvent.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverDatabaseConfigureMtlsEvent != nil { + l = m.UiDiscoverDatabaseConfigureMtlsEvent.Size() + n += 1 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverDesktopActiveDirectoryToolsInstallEvent != nil { + l = m.UiDiscoverDesktopActiveDirectoryToolsInstallEvent.Size() + n += 2 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverDesktopActiveDirectoryConfigureEvent != nil { + l = m.UiDiscoverDesktopActiveDirectoryConfigureEvent.Size() + n += 2 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverAutoDiscoveredResourcesEvent != nil { + l = m.UiDiscoverAutoDiscoveredResourcesEvent.Size() + n += 2 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverDatabaseConfigureIamPolicyEvent != nil { + l = m.UiDiscoverDatabaseConfigureIamPolicyEvent.Size() + n += 2 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverPrincipalsConfigureEvent != nil { + l = m.UiDiscoverPrincipalsConfigureEvent.Size() + n += 2 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverTestConnectionEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverTestConnectionEvent != nil { + l = m.UiDiscoverTestConnectionEvent.Size() + n += 2 + l + sovUsageevents(uint64(l)) + } + return n +} +func (m *UsageEventOneOf_UiDiscoverCompletedEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UiDiscoverCompletedEvent != nil { + l = m.UiDiscoverCompletedEvent.Size() + n += 2 + l + sovUsageevents(uint64(l)) + } + return n +} + +func sovUsageevents(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozUsageevents(x uint64) (n int) { + return sovUsageevents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *UIBannerClickEvent) 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 ErrIntOverflowUsageevents + } + 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: UIBannerClickEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIBannerClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alert", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Alert = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIOnboardCompleteGoToDashboardClickEvent) 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 ErrIntOverflowUsageevents + } + 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: UIOnboardCompleteGoToDashboardClickEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIOnboardCompleteGoToDashboardClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Username = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIOnboardAddFirstResourceClickEvent) 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 ErrIntOverflowUsageevents + } + 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: UIOnboardAddFirstResourceClickEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIOnboardAddFirstResourceClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIOnboardAddFirstResourceLaterClickEvent) 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 ErrIntOverflowUsageevents + } + 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: UIOnboardAddFirstResourceLaterClickEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIOnboardAddFirstResourceLaterClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIOnboardSetCredentialSubmitEvent) 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 ErrIntOverflowUsageevents + } + 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: UIOnboardSetCredentialSubmitEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIOnboardSetCredentialSubmitEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Username = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIOnboardRegisterChallengeSubmitEvent) 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 ErrIntOverflowUsageevents + } + 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: UIOnboardRegisterChallengeSubmitEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIOnboardRegisterChallengeSubmitEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Username = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MfaType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MfaType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoginFlow", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LoginFlow = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIRecoveryCodesContinueClickEvent) 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 ErrIntOverflowUsageevents + } + 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: UIRecoveryCodesContinueClickEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIRecoveryCodesContinueClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Username = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIRecoveryCodesCopyClickEvent) 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 ErrIntOverflowUsageevents + } + 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: UIRecoveryCodesCopyClickEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIRecoveryCodesCopyClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Username = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIRecoveryCodesPrintClickEvent) 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 ErrIntOverflowUsageevents + } + 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: UIRecoveryCodesPrintClickEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIRecoveryCodesPrintClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Username = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DiscoverMetadata) 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 ErrIntOverflowUsageevents + } + 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: DiscoverMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DiscoverMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DiscoverResourceMetadata) 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 ErrIntOverflowUsageevents + } + 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: DiscoverResourceMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DiscoverResourceMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + m.Resource = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Resource |= DiscoverResource(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DiscoverStepStatus) 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 ErrIntOverflowUsageevents + } + 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: DiscoverStepStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DiscoverStepStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= DiscoverStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + 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 ErrIntOverflowUsageevents + } + 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 ErrInvalidLengthUsageevents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIDiscoverStartedEvent) 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 ErrIntOverflowUsageevents + } + 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: UIDiscoverStartedEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIDiscoverStartedEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIDiscoverResourceSelectionEvent) 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 ErrIntOverflowUsageevents + } + 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: UIDiscoverResourceSelectionEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIDiscoverResourceSelectionEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIDiscoverDeployServiceEvent) 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 ErrIntOverflowUsageevents + } + 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: UIDiscoverDeployServiceEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIDiscoverDeployServiceEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UIDiscoverDatabaseRegisterEvent) 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 ErrIntOverflowUsageevents + } + 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: UIDiscoverDatabaseRegisterEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UIDiscoverDatabaseRegisterEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUsageevents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUsageevents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } } - return n -} -func sovUsageevents(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozUsageevents(x uint64) (n int) { - return sovUsageevents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil } -func (m *UIBannerClickEvent) Unmarshal(dAtA []byte) error { +func (m *UIDiscoverDatabaseConfigureMTLSEvent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2379,17 +6047,17 @@ func (m *UIBannerClickEvent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UIBannerClickEvent: wiretype end group for non-group") + return fmt.Errorf("proto: UIDiscoverDatabaseConfigureMTLSEvent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UIBannerClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UIDiscoverDatabaseConfigureMTLSEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alert", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -2399,23 +6067,99 @@ func (m *UIBannerClickEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.Alert = string(dAtA[iNdEx:postIndex]) + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -2439,7 +6183,7 @@ func (m *UIBannerClickEvent) Unmarshal(dAtA []byte) error { } return nil } -func (m *UIOnboardCompleteGoToDashboardClickEvent) Unmarshal(dAtA []byte) error { +func (m *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2462,17 +6206,17 @@ func (m *UIOnboardCompleteGoToDashboardClickEvent) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UIOnboardCompleteGoToDashboardClickEvent: wiretype end group for non-group") + return fmt.Errorf("proto: UIDiscoverDesktopActiveDirectoryToolsInstallEvent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UIOnboardCompleteGoToDashboardClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UIDiscoverDesktopActiveDirectoryToolsInstallEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -2482,23 +6226,99 @@ func (m *UIOnboardCompleteGoToDashboardClickEvent) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.Username = string(dAtA[iNdEx:postIndex]) + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -2522,7 +6342,7 @@ func (m *UIOnboardCompleteGoToDashboardClickEvent) Unmarshal(dAtA []byte) error } return nil } -func (m *UIOnboardAddFirstResourceClickEvent) Unmarshal(dAtA []byte) error { +func (m *UIDiscoverDesktopActiveDirectoryConfigureEvent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2545,63 +6365,120 @@ func (m *UIOnboardAddFirstResourceClickEvent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UIOnboardAddFirstResourceClickEvent: wiretype end group for non-group") + return fmt.Errorf("proto: UIDiscoverDesktopActiveDirectoryConfigureEvent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UIOnboardAddFirstResourceClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UIDiscoverDesktopActiveDirectoryConfigureEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipUsageevents(dAtA[iNdEx:]) - if err != nil { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return ErrInvalidLengthUsageevents } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UIOnboardAddFirstResourceLaterClickEvent) 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 ErrIntOverflowUsageevents + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} } - if iNdEx >= l { + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Status == nil { + m.Status = &DiscoverStepStatus{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UIOnboardAddFirstResourceLaterClickEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UIOnboardAddFirstResourceLaterClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipUsageevents(dAtA[iNdEx:]) @@ -2624,7 +6501,7 @@ func (m *UIOnboardAddFirstResourceLaterClickEvent) Unmarshal(dAtA []byte) error } return nil } -func (m *UIOnboardSetCredentialSubmitEvent) Unmarshal(dAtA []byte) error { +func (m *UIDiscoverAutoDiscoveredResourcesEvent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2647,17 +6524,17 @@ func (m *UIOnboardSetCredentialSubmitEvent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UIOnboardSetCredentialSubmitEvent: wiretype end group for non-group") + return fmt.Errorf("proto: UIDiscoverAutoDiscoveredResourcesEvent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UIOnboardSetCredentialSubmitEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UIDiscoverAutoDiscoveredResourcesEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -2667,24 +6544,119 @@ func (m *UIOnboardSetCredentialSubmitEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourcesCount", wireType) + } + m.ResourcesCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ResourcesCount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipUsageevents(dAtA[iNdEx:]) @@ -2707,7 +6679,7 @@ func (m *UIOnboardSetCredentialSubmitEvent) Unmarshal(dAtA []byte) error { } return nil } -func (m *UIOnboardRegisterChallengeSubmitEvent) Unmarshal(dAtA []byte) error { +func (m *UIDiscoverDatabaseConfigureIAMPolicyEvent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2730,17 +6702,17 @@ func (m *UIOnboardRegisterChallengeSubmitEvent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UIOnboardRegisterChallengeSubmitEvent: wiretype end group for non-group") + return fmt.Errorf("proto: UIDiscoverDatabaseConfigureIAMPolicyEvent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UIOnboardRegisterChallengeSubmitEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UIDiscoverDatabaseConfigureIAMPolicyEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -2750,29 +6722,33 @@ func (m *UIOnboardRegisterChallengeSubmitEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.Username = string(dAtA[iNdEx:postIndex]) + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MfaType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -2782,29 +6758,33 @@ func (m *UIOnboardRegisterChallengeSubmitEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.MfaType = string(dAtA[iNdEx:postIndex]) + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LoginFlow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -2814,23 +6794,27 @@ func (m *UIOnboardRegisterChallengeSubmitEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.LoginFlow = string(dAtA[iNdEx:postIndex]) + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -2854,7 +6838,7 @@ func (m *UIOnboardRegisterChallengeSubmitEvent) Unmarshal(dAtA []byte) error { } return nil } -func (m *UIRecoveryCodesContinueClickEvent) Unmarshal(dAtA []byte) error { +func (m *UIDiscoverPrincipalsConfigureEvent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2877,17 +6861,17 @@ func (m *UIRecoveryCodesContinueClickEvent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UIRecoveryCodesContinueClickEvent: wiretype end group for non-group") + return fmt.Errorf("proto: UIDiscoverPrincipalsConfigureEvent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UIRecoveryCodesContinueClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UIDiscoverPrincipalsConfigureEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -2897,80 +6881,69 @@ func (m *UIRecoveryCodesContinueClickEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipUsageevents(dAtA[iNdEx:]) - if err != nil { + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthUsageevents + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UIRecoveryCodesCopyClickEvent) 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 ErrIntOverflowUsageevents + if msglen < 0 { + return ErrInvalidLengthUsageevents } - if iNdEx >= l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UIRecoveryCodesCopyClickEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UIRecoveryCodesCopyClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -2980,23 +6953,27 @@ func (m *UIRecoveryCodesCopyClickEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.Username = string(dAtA[iNdEx:postIndex]) + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -3020,7 +6997,7 @@ func (m *UIRecoveryCodesCopyClickEvent) Unmarshal(dAtA []byte) error { } return nil } -func (m *UIRecoveryCodesPrintClickEvent) Unmarshal(dAtA []byte) error { +func (m *UIDiscoverTestConnectionEvent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3043,17 +7020,89 @@ func (m *UIRecoveryCodesPrintClickEvent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UIRecoveryCodesPrintClickEvent: wiretype end group for non-group") + return fmt.Errorf("proto: UIDiscoverTestConnectionEvent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UIRecoveryCodesPrintClickEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UIDiscoverTestConnectionEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -3063,23 +7112,27 @@ func (m *UIRecoveryCodesPrintClickEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.Username = string(dAtA[iNdEx:postIndex]) + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -3103,7 +7156,7 @@ func (m *UIRecoveryCodesPrintClickEvent) Unmarshal(dAtA []byte) error { } return nil } -func (m *DiscoverMetadata) Unmarshal(dAtA []byte) error { +func (m *UIDiscoverCompletedEvent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3126,17 +7179,17 @@ func (m *DiscoverMetadata) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DiscoverMetadata: wiretype end group for non-group") + return fmt.Errorf("proto: UIDiscoverCompletedEvent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DiscoverMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UIDiscoverCompletedEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -3146,80 +7199,69 @@ func (m *DiscoverMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipUsageevents(dAtA[iNdEx:]) - if err != nil { + if m.Metadata == nil { + m.Metadata = &DiscoverMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthUsageevents + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DiscoverResourceMetadata) 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 ErrIntOverflowUsageevents + if msglen < 0 { + return ErrInvalidLengthUsageevents } - if iNdEx >= l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Resource == nil { + m.Resource = &DiscoverResourceMetadata{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DiscoverResourceMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DiscoverResourceMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Resource = 0 + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -3229,11 +7271,28 @@ func (m *DiscoverResourceMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Resource |= DiscoverResource(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Status == nil { + m.Status = &DiscoverStepStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipUsageevents(dAtA[iNdEx:]) @@ -3256,7 +7315,7 @@ func (m *DiscoverResourceMetadata) Unmarshal(dAtA []byte) error { } return nil } -func (m *DiscoverStepStatus) Unmarshal(dAtA []byte) error { +func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3279,17 +7338,17 @@ func (m *DiscoverStepStatus) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DiscoverStepStatus: wiretype end group for non-group") + return fmt.Errorf("proto: UsageEventOneOf: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DiscoverStepStatus: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UsageEventOneOf: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UiBannerClick", wireType) } - m.Status = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -3299,16 +7358,32 @@ func (m *DiscoverStepStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= DiscoverStatus(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: + if msglen < 0 { + return ErrInvalidLengthUsageevents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &UIBannerClickEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Event = &UsageEventOneOf_UiBannerClick{v} + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardCompleteGoToDashboardClick", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowUsageevents @@ -3318,78 +7393,65 @@ func (m *DiscoverStepStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthUsageevents } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthUsageevents } if postIndex > l { return io.ErrUnexpectedEOF } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipUsageevents(dAtA[iNdEx:]) - if err != nil { + v := &UIOnboardCompleteGoToDashboardClickEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthUsageevents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UIDiscoverStartedEvent) 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 ErrIntOverflowUsageevents + m.Event = &UsageEventOneOf_UiOnboardCompleteGoToDashboardClick{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardAddFirstResourceClick", wireType) } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if msglen < 0 { + return ErrInvalidLengthUsageevents } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UIDiscoverStartedEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UIDiscoverStartedEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &UIOnboardAddFirstResourceClickEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Event = &UsageEventOneOf_UiOnboardAddFirstResourceClick{v} + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardAddFirstResourceLaterClick", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3416,16 +7478,15 @@ func (m *UIDiscoverStartedEvent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Metadata == nil { - m.Metadata = &DiscoverMetadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &UIOnboardAddFirstResourceLaterClickEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Event = &UsageEventOneOf_UiOnboardAddFirstResourceLaterClick{v} iNdEx = postIndex - case 2: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardSetCredentialSubmit", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3452,67 +7513,50 @@ func (m *UIDiscoverStartedEvent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Status == nil { - m.Status = &DiscoverStepStatus{} - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &UIOnboardSetCredentialSubmitEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Event = &UsageEventOneOf_UiOnboardSetCredentialSubmit{v} iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipUsageevents(dAtA[iNdEx:]) - if err != nil { - return err + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardRegisterChallengeSubmit", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthUsageevents + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if msglen < 0 { + return ErrInvalidLengthUsageevents } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UIDiscoverResourceSelectionEvent) 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 ErrIntOverflowUsageevents + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + v := &UIOnboardRegisterChallengeSubmitEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UIDiscoverResourceSelectionEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UIDiscoverResourceSelectionEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Event = &UsageEventOneOf_UiOnboardRegisterChallengeSubmit{v} + iNdEx = postIndex + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiRecoveryCodesContinueClick", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3539,16 +7583,15 @@ func (m *UIDiscoverResourceSelectionEvent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Metadata == nil { - m.Metadata = &DiscoverMetadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &UIRecoveryCodesContinueClickEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Event = &UsageEventOneOf_UiRecoveryCodesContinueClick{v} iNdEx = postIndex - case 2: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiRecoveryCodesCopyClick", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3575,16 +7618,15 @@ func (m *UIDiscoverResourceSelectionEvent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Resource == nil { - m.Resource = &DiscoverResourceMetadata{} - } - if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &UIRecoveryCodesCopyClickEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Event = &UsageEventOneOf_UiRecoveryCodesCopyClick{v} iNdEx = postIndex - case 3: + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiRecoveryCodesPrintClick", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3611,67 +7653,50 @@ func (m *UIDiscoverResourceSelectionEvent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Status == nil { - m.Status = &DiscoverStepStatus{} - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &UIRecoveryCodesPrintClickEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Event = &UsageEventOneOf_UiRecoveryCodesPrintClick{v} iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipUsageevents(dAtA[iNdEx:]) - if err != nil { - return err + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverStartedEvent", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthUsageevents + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUsageevents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if msglen < 0 { + return ErrInvalidLengthUsageevents } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UsageEventOneOf) 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 ErrIntOverflowUsageevents + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUsageevents } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + v := &UIDiscoverStartedEvent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UsageEventOneOf: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UsageEventOneOf: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Event = &UsageEventOneOf_UiDiscoverStartedEvent{v} + iNdEx = postIndex + case 12: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiBannerClick", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverResourceSelectionEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3698,15 +7723,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIBannerClickEvent{} + v := &UIDiscoverResourceSelectionEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiBannerClick{v} + m.Event = &UsageEventOneOf_UiDiscoverResourceSelectionEvent{v} iNdEx = postIndex - case 3: + case 13: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardCompleteGoToDashboardClick", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverDeployServiceEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3733,15 +7758,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIOnboardCompleteGoToDashboardClickEvent{} + v := &UIDiscoverDeployServiceEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiOnboardCompleteGoToDashboardClick{v} + m.Event = &UsageEventOneOf_UiDiscoverDeployServiceEvent{v} iNdEx = postIndex - case 4: + case 14: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardAddFirstResourceClick", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverDatabaseRegisterEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3768,15 +7793,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIOnboardAddFirstResourceClickEvent{} + v := &UIDiscoverDatabaseRegisterEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiOnboardAddFirstResourceClick{v} + m.Event = &UsageEventOneOf_UiDiscoverDatabaseRegisterEvent{v} iNdEx = postIndex - case 5: + case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardAddFirstResourceLaterClick", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverDatabaseConfigureMtlsEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3803,15 +7828,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIOnboardAddFirstResourceLaterClickEvent{} + v := &UIDiscoverDatabaseConfigureMTLSEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiOnboardAddFirstResourceLaterClick{v} + m.Event = &UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent{v} iNdEx = postIndex - case 6: + case 16: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardSetCredentialSubmit", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverDesktopActiveDirectoryToolsInstallEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3838,15 +7863,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIOnboardSetCredentialSubmitEvent{} + v := &UIDiscoverDesktopActiveDirectoryToolsInstallEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiOnboardSetCredentialSubmit{v} + m.Event = &UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent{v} iNdEx = postIndex - case 7: + case 17: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiOnboardRegisterChallengeSubmit", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverDesktopActiveDirectoryConfigureEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3873,15 +7898,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIOnboardRegisterChallengeSubmitEvent{} + v := &UIDiscoverDesktopActiveDirectoryConfigureEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiOnboardRegisterChallengeSubmit{v} + m.Event = &UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent{v} iNdEx = postIndex - case 8: + case 18: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiRecoveryCodesContinueClick", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverAutoDiscoveredResourcesEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3908,15 +7933,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIRecoveryCodesContinueClickEvent{} + v := &UIDiscoverAutoDiscoveredResourcesEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiRecoveryCodesContinueClick{v} + m.Event = &UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent{v} iNdEx = postIndex - case 9: + case 19: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiRecoveryCodesCopyClick", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverDatabaseConfigureIamPolicyEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3943,15 +7968,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIRecoveryCodesCopyClickEvent{} + v := &UIDiscoverDatabaseConfigureIAMPolicyEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiRecoveryCodesCopyClick{v} + m.Event = &UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent{v} iNdEx = postIndex - case 10: + case 20: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiRecoveryCodesPrintClick", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverPrincipalsConfigureEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3978,15 +8003,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIRecoveryCodesPrintClickEvent{} + v := &UIDiscoverPrincipalsConfigureEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiRecoveryCodesPrintClick{v} + m.Event = &UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent{v} iNdEx = postIndex - case 11: + case 21: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverStartedEvent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverTestConnectionEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4013,15 +8038,15 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIDiscoverStartedEvent{} + v := &UIDiscoverTestConnectionEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiDiscoverStartedEvent{v} + m.Event = &UsageEventOneOf_UiDiscoverTestConnectionEvent{v} iNdEx = postIndex - case 12: + case 22: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverResourceSelectionEvent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UiDiscoverCompletedEvent", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4048,11 +8073,11 @@ func (m *UsageEventOneOf) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &UIDiscoverResourceSelectionEvent{} + v := &UIDiscoverCompletedEvent{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Event = &UsageEventOneOf_UiDiscoverResourceSelectionEvent{v} + m.Event = &UsageEventOneOf_UiDiscoverCompletedEvent{v} iNdEx = postIndex default: iNdEx = preIndex diff --git a/api/proto/teleport/usageevents/v1/usageevents.proto b/api/proto/teleport/usageevents/v1/usageevents.proto index fac7b73742c94..c4e46d913b7a8 100644 --- a/api/proto/teleport/usageevents/v1/usageevents.proto +++ b/api/proto/teleport/usageevents/v1/usageevents.proto @@ -147,6 +147,85 @@ message UIDiscoverResourceSelectionEvent { DiscoverStepStatus status = 3; } +// UIDiscoverDeployServiceEvent is emitted after the user installs a Teleport Agent. +// For SSH this is the Teleport 'install-node' script. +// +// For Kubernetes this is the teleport-agent helm chart installation. +// +// For Database Access this step is the installation of the teleport 'install-db' script. +// It can be skipped if the cluster already has a Database Service capable of proxying the database. +message UIDiscoverDeployServiceEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverDatabaseRegisterEvent is emitted when a user is finished with the step that registers a database resource. +message UIDiscoverDatabaseRegisterEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverDatabaseConfigureMTLSEvent is emitted when a user is finished with the step that configures mutual TLS for a self-hosted database. +message UIDiscoverDatabaseConfigureMTLSEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverDesktopActiveDirectoryToolsInstallEvent is emitted when the user is finished with the step that asks user to run the install Active Directory tools script for the Desktop flow. +message UIDiscoverDesktopActiveDirectoryToolsInstallEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverDesktopActiveDirectoryConfigureEvent is emitted when the user is finished with the step that asks user to run the Configure Active Directory script for the Desktop flow. +message UIDiscoverDesktopActiveDirectoryConfigureEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverAutoDiscoveredResourcesEvent is emitted when the user is finished with the step that auto discovers resources (waiting until resources show up). +// resources_count field must reflect the latest amount of discovered resources (get the number after user is finished with this step). +message UIDiscoverAutoDiscoveredResourcesEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; + int64 resources_count = 4; +} + +// UIDiscoverDatabaseConfigureIAMPolicyEvent is emitted when a user is finished with the step that configures IAM policy for an RDS database. +message UIDiscoverDatabaseConfigureIAMPolicyEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverPrincipalsConfigureEvent is emitted when a user is finished with the step that allows user to update their principals (setting up access). +message UIDiscoverPrincipalsConfigureEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverTestConnectionEvent emitted on the "Test Connection" screen +// when the user clicked tested connection to their resource. +message UIDiscoverTestConnectionEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverCompletedEvent is emitted when user completes the Discover wizard. +message UIDiscoverCompletedEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + // UsageEventOneOf is a message that can accept a oneof of any supported // external usage event. message UsageEventOneOf { @@ -162,6 +241,16 @@ message UsageEventOneOf { UIRecoveryCodesPrintClickEvent ui_recovery_codes_print_click = 10; UIDiscoverStartedEvent ui_discover_started_event = 11; UIDiscoverResourceSelectionEvent ui_discover_resource_selection_event = 12; + UIDiscoverDeployServiceEvent ui_discover_deploy_service_event = 13; + UIDiscoverDatabaseRegisterEvent ui_discover_database_register_event = 14; + UIDiscoverDatabaseConfigureMTLSEvent ui_discover_database_configure_mtls_event = 15; + UIDiscoverDesktopActiveDirectoryToolsInstallEvent ui_discover_desktop_active_directory_tools_install_event = 16; + UIDiscoverDesktopActiveDirectoryConfigureEvent ui_discover_desktop_active_directory_configure_event = 17; + UIDiscoverAutoDiscoveredResourcesEvent ui_discover_auto_discovered_resources_event = 18; + UIDiscoverDatabaseConfigureIAMPolicyEvent ui_discover_database_configure_iam_policy_event = 19; + UIDiscoverPrincipalsConfigureEvent ui_discover_principals_configure_event = 20; + UIDiscoverTestConnectionEvent ui_discover_test_connection_event = 21; + UIDiscoverCompletedEvent ui_discover_completed_event = 22; } reserved 2; //UIOnboardGetStartedClickEvent reserved "ui_onboard_get_started_click"; diff --git a/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.d.ts b/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.d.ts index 612400000063b..32bdc4c1ecf68 100644 --- a/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.d.ts +++ b/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.d.ts @@ -489,6 +489,390 @@ export namespace UIDiscoverResourceSelectionEvent { } } +export class UIDiscoverDeployServiceEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverDeployServiceEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverDeployServiceEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverDeployServiceEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverDeployServiceEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverDeployServiceEvent): UIDiscoverDeployServiceEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverDeployServiceEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverDeployServiceEvent; + static deserializeBinaryFromReader(message: UIDiscoverDeployServiceEvent, reader: jspb.BinaryReader): UIDiscoverDeployServiceEvent; +} + +export namespace UIDiscoverDeployServiceEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + } +} + +export class UIDiscoverDatabaseRegisterEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverDatabaseRegisterEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverDatabaseRegisterEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverDatabaseRegisterEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverDatabaseRegisterEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverDatabaseRegisterEvent): UIDiscoverDatabaseRegisterEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverDatabaseRegisterEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverDatabaseRegisterEvent; + static deserializeBinaryFromReader(message: UIDiscoverDatabaseRegisterEvent, reader: jspb.BinaryReader): UIDiscoverDatabaseRegisterEvent; +} + +export namespace UIDiscoverDatabaseRegisterEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + } +} + +export class UIDiscoverDatabaseConfigureMTLSEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverDatabaseConfigureMTLSEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverDatabaseConfigureMTLSEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverDatabaseConfigureMTLSEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverDatabaseConfigureMTLSEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverDatabaseConfigureMTLSEvent): UIDiscoverDatabaseConfigureMTLSEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverDatabaseConfigureMTLSEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverDatabaseConfigureMTLSEvent; + static deserializeBinaryFromReader(message: UIDiscoverDatabaseConfigureMTLSEvent, reader: jspb.BinaryReader): UIDiscoverDatabaseConfigureMTLSEvent; +} + +export namespace UIDiscoverDatabaseConfigureMTLSEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + } +} + +export class UIDiscoverDesktopActiveDirectoryToolsInstallEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverDesktopActiveDirectoryToolsInstallEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverDesktopActiveDirectoryToolsInstallEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverDesktopActiveDirectoryToolsInstallEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverDesktopActiveDirectoryToolsInstallEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverDesktopActiveDirectoryToolsInstallEvent): UIDiscoverDesktopActiveDirectoryToolsInstallEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverDesktopActiveDirectoryToolsInstallEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverDesktopActiveDirectoryToolsInstallEvent; + static deserializeBinaryFromReader(message: UIDiscoverDesktopActiveDirectoryToolsInstallEvent, reader: jspb.BinaryReader): UIDiscoverDesktopActiveDirectoryToolsInstallEvent; +} + +export namespace UIDiscoverDesktopActiveDirectoryToolsInstallEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + } +} + +export class UIDiscoverDesktopActiveDirectoryConfigureEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverDesktopActiveDirectoryConfigureEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverDesktopActiveDirectoryConfigureEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverDesktopActiveDirectoryConfigureEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverDesktopActiveDirectoryConfigureEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverDesktopActiveDirectoryConfigureEvent): UIDiscoverDesktopActiveDirectoryConfigureEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverDesktopActiveDirectoryConfigureEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverDesktopActiveDirectoryConfigureEvent; + static deserializeBinaryFromReader(message: UIDiscoverDesktopActiveDirectoryConfigureEvent, reader: jspb.BinaryReader): UIDiscoverDesktopActiveDirectoryConfigureEvent; +} + +export namespace UIDiscoverDesktopActiveDirectoryConfigureEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + } +} + +export class UIDiscoverAutoDiscoveredResourcesEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverAutoDiscoveredResourcesEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverAutoDiscoveredResourcesEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverAutoDiscoveredResourcesEvent; + + getResourcesCount(): number; + setResourcesCount(value: number): UIDiscoverAutoDiscoveredResourcesEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverAutoDiscoveredResourcesEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverAutoDiscoveredResourcesEvent): UIDiscoverAutoDiscoveredResourcesEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverAutoDiscoveredResourcesEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverAutoDiscoveredResourcesEvent; + static deserializeBinaryFromReader(message: UIDiscoverAutoDiscoveredResourcesEvent, reader: jspb.BinaryReader): UIDiscoverAutoDiscoveredResourcesEvent; +} + +export namespace UIDiscoverAutoDiscoveredResourcesEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + resourcesCount: number, + } +} + +export class UIDiscoverDatabaseConfigureIAMPolicyEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverDatabaseConfigureIAMPolicyEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverDatabaseConfigureIAMPolicyEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverDatabaseConfigureIAMPolicyEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverDatabaseConfigureIAMPolicyEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverDatabaseConfigureIAMPolicyEvent): UIDiscoverDatabaseConfigureIAMPolicyEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverDatabaseConfigureIAMPolicyEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverDatabaseConfigureIAMPolicyEvent; + static deserializeBinaryFromReader(message: UIDiscoverDatabaseConfigureIAMPolicyEvent, reader: jspb.BinaryReader): UIDiscoverDatabaseConfigureIAMPolicyEvent; +} + +export namespace UIDiscoverDatabaseConfigureIAMPolicyEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + } +} + +export class UIDiscoverPrincipalsConfigureEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverPrincipalsConfigureEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverPrincipalsConfigureEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverPrincipalsConfigureEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverPrincipalsConfigureEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverPrincipalsConfigureEvent): UIDiscoverPrincipalsConfigureEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverPrincipalsConfigureEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverPrincipalsConfigureEvent; + static deserializeBinaryFromReader(message: UIDiscoverPrincipalsConfigureEvent, reader: jspb.BinaryReader): UIDiscoverPrincipalsConfigureEvent; +} + +export namespace UIDiscoverPrincipalsConfigureEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + } +} + +export class UIDiscoverTestConnectionEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverTestConnectionEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverTestConnectionEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverTestConnectionEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverTestConnectionEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverTestConnectionEvent): UIDiscoverTestConnectionEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverTestConnectionEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverTestConnectionEvent; + static deserializeBinaryFromReader(message: UIDiscoverTestConnectionEvent, reader: jspb.BinaryReader): UIDiscoverTestConnectionEvent; +} + +export namespace UIDiscoverTestConnectionEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + } +} + +export class UIDiscoverCompletedEvent extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): DiscoverMetadata | undefined; + setMetadata(value?: DiscoverMetadata): UIDiscoverCompletedEvent; + + + hasResource(): boolean; + clearResource(): void; + getResource(): DiscoverResourceMetadata | undefined; + setResource(value?: DiscoverResourceMetadata): UIDiscoverCompletedEvent; + + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): DiscoverStepStatus | undefined; + setStatus(value?: DiscoverStepStatus): UIDiscoverCompletedEvent; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UIDiscoverCompletedEvent.AsObject; + static toObject(includeInstance: boolean, msg: UIDiscoverCompletedEvent): UIDiscoverCompletedEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UIDiscoverCompletedEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UIDiscoverCompletedEvent; + static deserializeBinaryFromReader(message: UIDiscoverCompletedEvent, reader: jspb.BinaryReader): UIDiscoverCompletedEvent; +} + +export namespace UIDiscoverCompletedEvent { + export type AsObject = { + metadata?: DiscoverMetadata.AsObject, + resource?: DiscoverResourceMetadata.AsObject, + status?: DiscoverStepStatus.AsObject, + } +} + export class SubmitEventRequest extends jspb.Message { getClusterName(): string; setClusterName(value: string): SubmitEventRequest; @@ -602,6 +986,66 @@ export class SubmitEventRequest extends jspb.Message { setSessionStartV2(value?: SessionStartEvent): SubmitEventRequest; + hasUiDiscoverDeployServiceEvent(): boolean; + clearUiDiscoverDeployServiceEvent(): void; + getUiDiscoverDeployServiceEvent(): UIDiscoverDeployServiceEvent | undefined; + setUiDiscoverDeployServiceEvent(value?: UIDiscoverDeployServiceEvent): SubmitEventRequest; + + + hasUiDiscoverDatabaseRegisterEvent(): boolean; + clearUiDiscoverDatabaseRegisterEvent(): void; + getUiDiscoverDatabaseRegisterEvent(): UIDiscoverDatabaseRegisterEvent | undefined; + setUiDiscoverDatabaseRegisterEvent(value?: UIDiscoverDatabaseRegisterEvent): SubmitEventRequest; + + + hasUiDiscoverDatabaseConfigureMtlsEvent(): boolean; + clearUiDiscoverDatabaseConfigureMtlsEvent(): void; + getUiDiscoverDatabaseConfigureMtlsEvent(): UIDiscoverDatabaseConfigureMTLSEvent | undefined; + setUiDiscoverDatabaseConfigureMtlsEvent(value?: UIDiscoverDatabaseConfigureMTLSEvent): SubmitEventRequest; + + + hasUiDiscoverDesktopActiveDirectoryToolsInstallEvent(): boolean; + clearUiDiscoverDesktopActiveDirectoryToolsInstallEvent(): void; + getUiDiscoverDesktopActiveDirectoryToolsInstallEvent(): UIDiscoverDesktopActiveDirectoryToolsInstallEvent | undefined; + setUiDiscoverDesktopActiveDirectoryToolsInstallEvent(value?: UIDiscoverDesktopActiveDirectoryToolsInstallEvent): SubmitEventRequest; + + + hasUiDiscoverDesktopActiveDirectoryConfigureEvent(): boolean; + clearUiDiscoverDesktopActiveDirectoryConfigureEvent(): void; + getUiDiscoverDesktopActiveDirectoryConfigureEvent(): UIDiscoverDesktopActiveDirectoryConfigureEvent | undefined; + setUiDiscoverDesktopActiveDirectoryConfigureEvent(value?: UIDiscoverDesktopActiveDirectoryConfigureEvent): SubmitEventRequest; + + + hasUiDiscoverAutoDiscoveredResourcesEvent(): boolean; + clearUiDiscoverAutoDiscoveredResourcesEvent(): void; + getUiDiscoverAutoDiscoveredResourcesEvent(): UIDiscoverAutoDiscoveredResourcesEvent | undefined; + setUiDiscoverAutoDiscoveredResourcesEvent(value?: UIDiscoverAutoDiscoveredResourcesEvent): SubmitEventRequest; + + + hasUiDiscoverDatabaseConfigureIamPolicyEvent(): boolean; + clearUiDiscoverDatabaseConfigureIamPolicyEvent(): void; + getUiDiscoverDatabaseConfigureIamPolicyEvent(): UIDiscoverDatabaseConfigureIAMPolicyEvent | undefined; + setUiDiscoverDatabaseConfigureIamPolicyEvent(value?: UIDiscoverDatabaseConfigureIAMPolicyEvent): SubmitEventRequest; + + + hasUiDiscoverPrincipalsConfigureEvent(): boolean; + clearUiDiscoverPrincipalsConfigureEvent(): void; + getUiDiscoverPrincipalsConfigureEvent(): UIDiscoverPrincipalsConfigureEvent | undefined; + setUiDiscoverPrincipalsConfigureEvent(value?: UIDiscoverPrincipalsConfigureEvent): SubmitEventRequest; + + + hasUiDiscoverTestConnectionEvent(): boolean; + clearUiDiscoverTestConnectionEvent(): void; + getUiDiscoverTestConnectionEvent(): UIDiscoverTestConnectionEvent | undefined; + setUiDiscoverTestConnectionEvent(value?: UIDiscoverTestConnectionEvent): SubmitEventRequest; + + + hasUiDiscoverCompletedEvent(): boolean; + clearUiDiscoverCompletedEvent(): void; + getUiDiscoverCompletedEvent(): UIDiscoverCompletedEvent | undefined; + setUiDiscoverCompletedEvent(value?: UIDiscoverCompletedEvent): SubmitEventRequest; + + getEventCase(): SubmitEventRequest.EventCase; serializeBinary(): Uint8Array; @@ -635,6 +1079,16 @@ export namespace SubmitEventRequest { uiDiscoverResourceSelectionEvent?: UIDiscoverResourceSelectionEvent.AsObject, userCertificateIssuedEvent?: UserCertificateIssuedEvent.AsObject, sessionStartV2?: SessionStartEvent.AsObject, + uiDiscoverDeployServiceEvent?: UIDiscoverDeployServiceEvent.AsObject, + uiDiscoverDatabaseRegisterEvent?: UIDiscoverDatabaseRegisterEvent.AsObject, + uiDiscoverDatabaseConfigureMtlsEvent?: UIDiscoverDatabaseConfigureMTLSEvent.AsObject, + uiDiscoverDesktopActiveDirectoryToolsInstallEvent?: UIDiscoverDesktopActiveDirectoryToolsInstallEvent.AsObject, + uiDiscoverDesktopActiveDirectoryConfigureEvent?: UIDiscoverDesktopActiveDirectoryConfigureEvent.AsObject, + uiDiscoverAutoDiscoveredResourcesEvent?: UIDiscoverAutoDiscoveredResourcesEvent.AsObject, + uiDiscoverDatabaseConfigureIamPolicyEvent?: UIDiscoverDatabaseConfigureIAMPolicyEvent.AsObject, + uiDiscoverPrincipalsConfigureEvent?: UIDiscoverPrincipalsConfigureEvent.AsObject, + uiDiscoverTestConnectionEvent?: UIDiscoverTestConnectionEvent.AsObject, + uiDiscoverCompletedEvent?: UIDiscoverCompletedEvent.AsObject, } export enum EventCase { @@ -674,6 +1128,26 @@ export namespace SubmitEventRequest { SESSION_START_V2 = 20, + UI_DISCOVER_DEPLOY_SERVICE_EVENT = 21, + + UI_DISCOVER_DATABASE_REGISTER_EVENT = 22, + + UI_DISCOVER_DATABASE_CONFIGURE_MTLS_EVENT = 23, + + UI_DISCOVER_DESKTOP_ACTIVE_DIRECTORY_TOOLS_INSTALL_EVENT = 24, + + UI_DISCOVER_DESKTOP_ACTIVE_DIRECTORY_CONFIGURE_EVENT = 25, + + UI_DISCOVER_AUTO_DISCOVERED_RESOURCES_EVENT = 26, + + UI_DISCOVER_DATABASE_CONFIGURE_IAM_POLICY_EVENT = 27, + + UI_DISCOVER_PRINCIPALS_CONFIGURE_EVENT = 28, + + UI_DISCOVER_TEST_CONNECTION_EVENT = 29, + + UI_DISCOVER_COMPLETED_EVENT = 30, + } } diff --git a/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.js b/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.js index e4d4c5a5c9b8b..ad5cd7a6eb9e7 100644 --- a/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.js +++ b/lib/prehog/gen-js/prehog/v1alpha/teleport_pb.js @@ -33,8 +33,18 @@ goog.exportSymbol('proto.prehog.v1alpha.SubmitEventRequest', null, global); goog.exportSymbol('proto.prehog.v1alpha.SubmitEventRequest.EventCase', null, global); goog.exportSymbol('proto.prehog.v1alpha.SubmitEventResponse', null, global); goog.exportSymbol('proto.prehog.v1alpha.UIBannerClickEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverCompletedEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverDeployServiceEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent', null, global); goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverResourceSelectionEvent', null, global); goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverStartedEvent', null, global); +goog.exportSymbol('proto.prehog.v1alpha.UIDiscoverTestConnectionEvent', null, global); goog.exportSymbol('proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent', null, global); goog.exportSymbol('proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent', null, global); goog.exportSymbol('proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent', null, global); @@ -444,6 +454,216 @@ if (goog.DEBUG && !COMPILED) { */ proto.prehog.v1alpha.UIDiscoverResourceSelectionEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverResourceSelectionEvent'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverDeployServiceEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverDeployServiceEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverTestConnectionEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverTestConnectionEvent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.prehog.v1alpha.UIDiscoverCompletedEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.prehog.v1alpha.UIDiscoverCompletedEvent.displayName = 'proto.prehog.v1alpha.UIDiscoverCompletedEvent'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -3605,47 +3825,6 @@ proto.prehog.v1alpha.UIDiscoverResourceSelectionEvent.prototype.hasStatus = func -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_ = [[3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20]]; - -/** - * @enum {number} - */ -proto.prehog.v1alpha.SubmitEventRequest.EventCase = { - EVENT_NOT_SET: 0, - USER_LOGIN: 3, - SSO_CREATE: 4, - RESOURCE_CREATE: 5, - SESSION_START: 6, - UI_BANNER_CLICK: 7, - UI_ONBOARD_COMPLETE_GO_TO_DASHBOARD_CLICK: 9, - UI_ONBOARD_ADD_FIRST_RESOURCE_CLICK: 10, - UI_ONBOARD_ADD_FIRST_RESOURCE_LATER_CLICK: 11, - UI_ONBOARD_SET_CREDENTIAL_SUBMIT: 12, - UI_ONBOARD_REGISTER_CHALLENGE_SUBMIT: 13, - UI_RECOVERY_CODES_CONTINUE_CLICK: 14, - UI_RECOVERY_CODES_COPY_CLICK: 15, - UI_RECOVERY_CODES_PRINT_CLICK: 16, - UI_DISCOVER_STARTED_EVENT: 17, - UI_DISCOVER_RESOURCE_SELECTION_EVENT: 18, - USER_CERTIFICATE_ISSUED_EVENT: 19, - SESSION_START_V2: 20 -}; - -/** - * @return {proto.prehog.v1alpha.SubmitEventRequest.EventCase} - */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.getEventCase = function() { - return /** @type {proto.prehog.v1alpha.SubmitEventRequest.EventCase} */(jspb.Message.computeOneofCase(this, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0])); -}; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -3661,8 +3840,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.prehog.v1alpha.SubmitEventRequest.prototype.toObject = function(opt_includeInstance) { - return proto.prehog.v1alpha.SubmitEventRequest.toObject(opt_includeInstance, this); +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.toObject(opt_includeInstance, this); }; @@ -3671,31 +3850,15 @@ proto.prehog.v1alpha.SubmitEventRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.prehog.v1alpha.SubmitEventRequest} msg The msg instance to transform. + * @param {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.prehog.v1alpha.SubmitEventRequest.toObject = function(includeInstance, msg) { +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.toObject = function(includeInstance, msg) { var f, obj = { - clusterName: jspb.Message.getFieldWithDefault(msg, 1, ""), - timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - userLogin: (f = msg.getUserLogin()) && proto.prehog.v1alpha.UserLoginEvent.toObject(includeInstance, f), - ssoCreate: (f = msg.getSsoCreate()) && proto.prehog.v1alpha.SSOCreateEvent.toObject(includeInstance, f), - resourceCreate: (f = msg.getResourceCreate()) && proto.prehog.v1alpha.ResourceCreateEvent.toObject(includeInstance, f), - sessionStart: (f = msg.getSessionStart()) && proto.prehog.v1alpha.SessionStartEvent.toObject(includeInstance, f), - uiBannerClick: (f = msg.getUiBannerClick()) && proto.prehog.v1alpha.UIBannerClickEvent.toObject(includeInstance, f), - uiOnboardCompleteGoToDashboardClick: (f = msg.getUiOnboardCompleteGoToDashboardClick()) && proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.toObject(includeInstance, f), - uiOnboardAddFirstResourceClick: (f = msg.getUiOnboardAddFirstResourceClick()) && proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.toObject(includeInstance, f), - uiOnboardAddFirstResourceLaterClick: (f = msg.getUiOnboardAddFirstResourceLaterClick()) && proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.toObject(includeInstance, f), - uiOnboardSetCredentialSubmit: (f = msg.getUiOnboardSetCredentialSubmit()) && proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.toObject(includeInstance, f), - uiOnboardRegisterChallengeSubmit: (f = msg.getUiOnboardRegisterChallengeSubmit()) && proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.toObject(includeInstance, f), - uiRecoveryCodesContinueClick: (f = msg.getUiRecoveryCodesContinueClick()) && proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.toObject(includeInstance, f), - uiRecoveryCodesCopyClick: (f = msg.getUiRecoveryCodesCopyClick()) && proto.prehog.v1alpha.UIRecoveryCodesCopyClickEvent.toObject(includeInstance, f), - uiRecoveryCodesPrintClick: (f = msg.getUiRecoveryCodesPrintClick()) && proto.prehog.v1alpha.UIRecoveryCodesPrintClickEvent.toObject(includeInstance, f), - uiDiscoverStartedEvent: (f = msg.getUiDiscoverStartedEvent()) && proto.prehog.v1alpha.UIDiscoverStartedEvent.toObject(includeInstance, f), - uiDiscoverResourceSelectionEvent: (f = msg.getUiDiscoverResourceSelectionEvent()) && proto.prehog.v1alpha.UIDiscoverResourceSelectionEvent.toObject(includeInstance, f), - userCertificateIssuedEvent: (f = msg.getUserCertificateIssuedEvent()) && proto.prehog.v1alpha.UserCertificateIssuedEvent.toObject(includeInstance, f), - sessionStartV2: (f = msg.getSessionStartV2()) && proto.prehog.v1alpha.SessionStartEvent.toObject(includeInstance, f) + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f) }; if (includeInstance) { @@ -3709,23 +3872,23 @@ proto.prehog.v1alpha.SubmitEventRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} + * @return {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} */ -proto.prehog.v1alpha.SubmitEventRequest.deserializeBinary = function(bytes) { +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.prehog.v1alpha.SubmitEventRequest; - return proto.prehog.v1alpha.SubmitEventRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.prehog.v1alpha.UIDiscoverDeployServiceEvent; + return proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.prehog.v1alpha.SubmitEventRequest} msg The message object to deserialize into. + * @param {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.prehog.v1alpha.SubmitEventRequest} + * @return {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} */ -proto.prehog.v1alpha.SubmitEventRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3733,8 +3896,2645 @@ proto.prehog.v1alpha.SubmitEventRequest.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setClusterName(value); + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent; + return proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent; + return proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent; + return proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent; + return proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f), + resourcesCount: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent; + return proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setResourcesCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } + f = message.getResourcesCount(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional int64 resources_count = 4; + * @return {number} + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.getResourcesCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.prototype.setResourcesCount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent; + return proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent; + return proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.UIDiscoverTestConnectionEvent; + return proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.UIDiscoverCompletedEvent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && proto.prehog.v1alpha.DiscoverMetadata.toObject(includeInstance, f), + resource: (f = msg.getResource()) && proto.prehog.v1alpha.DiscoverResourceMetadata.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.prehog.v1alpha.DiscoverStepStatus.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.UIDiscoverCompletedEvent; + return proto.prehog.v1alpha.UIDiscoverCompletedEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.prehog.v1alpha.DiscoverMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 2: + var value = new proto.prehog.v1alpha.DiscoverResourceMetadata; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverResourceMetadata.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = new proto.prehog.v1alpha.DiscoverStepStatus; + reader.readMessage(value,proto.prehog.v1alpha.DiscoverStepStatus.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.prehog.v1alpha.UIDiscoverCompletedEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.prehog.v1alpha.DiscoverMetadata.serializeBinaryToWriter + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.prehog.v1alpha.DiscoverResourceMetadata.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.prehog.v1alpha.DiscoverStepStatus.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DiscoverMetadata metadata = 1; + * @return {?proto.prehog.v1alpha.DiscoverMetadata} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.getMetadata = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverMetadata, 1)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DiscoverResourceMetadata resource = 2; + * @return {?proto.prehog.v1alpha.DiscoverResourceMetadata} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.getResource = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverResourceMetadata} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverResourceMetadata, 2)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverResourceMetadata|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DiscoverStepStatus status = 3; + * @return {?proto.prehog.v1alpha.DiscoverStepStatus} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.getStatus = function() { + return /** @type{?proto.prehog.v1alpha.DiscoverStepStatus} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.DiscoverStepStatus, 3)); +}; + + +/** + * @param {?proto.prehog.v1alpha.DiscoverStepStatus|undefined} value + * @return {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} returns this +*/ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.UIDiscoverCompletedEvent} returns this + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.UIDiscoverCompletedEvent.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_ = [[3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]]; + +/** + * @enum {number} + */ +proto.prehog.v1alpha.SubmitEventRequest.EventCase = { + EVENT_NOT_SET: 0, + USER_LOGIN: 3, + SSO_CREATE: 4, + RESOURCE_CREATE: 5, + SESSION_START: 6, + UI_BANNER_CLICK: 7, + UI_ONBOARD_COMPLETE_GO_TO_DASHBOARD_CLICK: 9, + UI_ONBOARD_ADD_FIRST_RESOURCE_CLICK: 10, + UI_ONBOARD_ADD_FIRST_RESOURCE_LATER_CLICK: 11, + UI_ONBOARD_SET_CREDENTIAL_SUBMIT: 12, + UI_ONBOARD_REGISTER_CHALLENGE_SUBMIT: 13, + UI_RECOVERY_CODES_CONTINUE_CLICK: 14, + UI_RECOVERY_CODES_COPY_CLICK: 15, + UI_RECOVERY_CODES_PRINT_CLICK: 16, + UI_DISCOVER_STARTED_EVENT: 17, + UI_DISCOVER_RESOURCE_SELECTION_EVENT: 18, + USER_CERTIFICATE_ISSUED_EVENT: 19, + SESSION_START_V2: 20, + UI_DISCOVER_DEPLOY_SERVICE_EVENT: 21, + UI_DISCOVER_DATABASE_REGISTER_EVENT: 22, + UI_DISCOVER_DATABASE_CONFIGURE_MTLS_EVENT: 23, + UI_DISCOVER_DESKTOP_ACTIVE_DIRECTORY_TOOLS_INSTALL_EVENT: 24, + UI_DISCOVER_DESKTOP_ACTIVE_DIRECTORY_CONFIGURE_EVENT: 25, + UI_DISCOVER_AUTO_DISCOVERED_RESOURCES_EVENT: 26, + UI_DISCOVER_DATABASE_CONFIGURE_IAM_POLICY_EVENT: 27, + UI_DISCOVER_PRINCIPALS_CONFIGURE_EVENT: 28, + UI_DISCOVER_TEST_CONNECTION_EVENT: 29, + UI_DISCOVER_COMPLETED_EVENT: 30 +}; + +/** + * @return {proto.prehog.v1alpha.SubmitEventRequest.EventCase} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getEventCase = function() { + return /** @type {proto.prehog.v1alpha.SubmitEventRequest.EventCase} */(jspb.Message.computeOneofCase(this, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.toObject = function(opt_includeInstance) { + return proto.prehog.v1alpha.SubmitEventRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.prehog.v1alpha.SubmitEventRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.prehog.v1alpha.SubmitEventRequest.toObject = function(includeInstance, msg) { + var f, obj = { + clusterName: jspb.Message.getFieldWithDefault(msg, 1, ""), + timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + userLogin: (f = msg.getUserLogin()) && proto.prehog.v1alpha.UserLoginEvent.toObject(includeInstance, f), + ssoCreate: (f = msg.getSsoCreate()) && proto.prehog.v1alpha.SSOCreateEvent.toObject(includeInstance, f), + resourceCreate: (f = msg.getResourceCreate()) && proto.prehog.v1alpha.ResourceCreateEvent.toObject(includeInstance, f), + sessionStart: (f = msg.getSessionStart()) && proto.prehog.v1alpha.SessionStartEvent.toObject(includeInstance, f), + uiBannerClick: (f = msg.getUiBannerClick()) && proto.prehog.v1alpha.UIBannerClickEvent.toObject(includeInstance, f), + uiOnboardCompleteGoToDashboardClick: (f = msg.getUiOnboardCompleteGoToDashboardClick()) && proto.prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent.toObject(includeInstance, f), + uiOnboardAddFirstResourceClick: (f = msg.getUiOnboardAddFirstResourceClick()) && proto.prehog.v1alpha.UIOnboardAddFirstResourceClickEvent.toObject(includeInstance, f), + uiOnboardAddFirstResourceLaterClick: (f = msg.getUiOnboardAddFirstResourceLaterClick()) && proto.prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent.toObject(includeInstance, f), + uiOnboardSetCredentialSubmit: (f = msg.getUiOnboardSetCredentialSubmit()) && proto.prehog.v1alpha.UIOnboardSetCredentialSubmitEvent.toObject(includeInstance, f), + uiOnboardRegisterChallengeSubmit: (f = msg.getUiOnboardRegisterChallengeSubmit()) && proto.prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent.toObject(includeInstance, f), + uiRecoveryCodesContinueClick: (f = msg.getUiRecoveryCodesContinueClick()) && proto.prehog.v1alpha.UIRecoveryCodesContinueClickEvent.toObject(includeInstance, f), + uiRecoveryCodesCopyClick: (f = msg.getUiRecoveryCodesCopyClick()) && proto.prehog.v1alpha.UIRecoveryCodesCopyClickEvent.toObject(includeInstance, f), + uiRecoveryCodesPrintClick: (f = msg.getUiRecoveryCodesPrintClick()) && proto.prehog.v1alpha.UIRecoveryCodesPrintClickEvent.toObject(includeInstance, f), + uiDiscoverStartedEvent: (f = msg.getUiDiscoverStartedEvent()) && proto.prehog.v1alpha.UIDiscoverStartedEvent.toObject(includeInstance, f), + uiDiscoverResourceSelectionEvent: (f = msg.getUiDiscoverResourceSelectionEvent()) && proto.prehog.v1alpha.UIDiscoverResourceSelectionEvent.toObject(includeInstance, f), + userCertificateIssuedEvent: (f = msg.getUserCertificateIssuedEvent()) && proto.prehog.v1alpha.UserCertificateIssuedEvent.toObject(includeInstance, f), + sessionStartV2: (f = msg.getSessionStartV2()) && proto.prehog.v1alpha.SessionStartEvent.toObject(includeInstance, f), + uiDiscoverDeployServiceEvent: (f = msg.getUiDiscoverDeployServiceEvent()) && proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.toObject(includeInstance, f), + uiDiscoverDatabaseRegisterEvent: (f = msg.getUiDiscoverDatabaseRegisterEvent()) && proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.toObject(includeInstance, f), + uiDiscoverDatabaseConfigureMtlsEvent: (f = msg.getUiDiscoverDatabaseConfigureMtlsEvent()) && proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.toObject(includeInstance, f), + uiDiscoverDesktopActiveDirectoryToolsInstallEvent: (f = msg.getUiDiscoverDesktopActiveDirectoryToolsInstallEvent()) && proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.toObject(includeInstance, f), + uiDiscoverDesktopActiveDirectoryConfigureEvent: (f = msg.getUiDiscoverDesktopActiveDirectoryConfigureEvent()) && proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.toObject(includeInstance, f), + uiDiscoverAutoDiscoveredResourcesEvent: (f = msg.getUiDiscoverAutoDiscoveredResourcesEvent()) && proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.toObject(includeInstance, f), + uiDiscoverDatabaseConfigureIamPolicyEvent: (f = msg.getUiDiscoverDatabaseConfigureIamPolicyEvent()) && proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.toObject(includeInstance, f), + uiDiscoverPrincipalsConfigureEvent: (f = msg.getUiDiscoverPrincipalsConfigureEvent()) && proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.toObject(includeInstance, f), + uiDiscoverTestConnectionEvent: (f = msg.getUiDiscoverTestConnectionEvent()) && proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.toObject(includeInstance, f), + uiDiscoverCompletedEvent: (f = msg.getUiDiscoverCompletedEvent()) && proto.prehog.v1alpha.UIDiscoverCompletedEvent.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} + */ +proto.prehog.v1alpha.SubmitEventRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.prehog.v1alpha.SubmitEventRequest; + return proto.prehog.v1alpha.SubmitEventRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.prehog.v1alpha.SubmitEventRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} + */ +proto.prehog.v1alpha.SubmitEventRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setClusterName(value); break; case 2: var value = new google_protobuf_timestamp_pb.Timestamp; @@ -3826,6 +6626,56 @@ proto.prehog.v1alpha.SubmitEventRequest.deserializeBinaryFromReader = function(m reader.readMessage(value,proto.prehog.v1alpha.SessionStartEvent.deserializeBinaryFromReader); msg.setSessionStartV2(value); break; + case 21: + var value = new proto.prehog.v1alpha.UIDiscoverDeployServiceEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.deserializeBinaryFromReader); + msg.setUiDiscoverDeployServiceEvent(value); + break; + case 22: + var value = new proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.deserializeBinaryFromReader); + msg.setUiDiscoverDatabaseRegisterEvent(value); + break; + case 23: + var value = new proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.deserializeBinaryFromReader); + msg.setUiDiscoverDatabaseConfigureMtlsEvent(value); + break; + case 24: + var value = new proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.deserializeBinaryFromReader); + msg.setUiDiscoverDesktopActiveDirectoryToolsInstallEvent(value); + break; + case 25: + var value = new proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.deserializeBinaryFromReader); + msg.setUiDiscoverDesktopActiveDirectoryConfigureEvent(value); + break; + case 26: + var value = new proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.deserializeBinaryFromReader); + msg.setUiDiscoverAutoDiscoveredResourcesEvent(value); + break; + case 27: + var value = new proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.deserializeBinaryFromReader); + msg.setUiDiscoverDatabaseConfigureIamPolicyEvent(value); + break; + case 28: + var value = new proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.deserializeBinaryFromReader); + msg.setUiDiscoverPrincipalsConfigureEvent(value); + break; + case 29: + var value = new proto.prehog.v1alpha.UIDiscoverTestConnectionEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.deserializeBinaryFromReader); + msg.setUiDiscoverTestConnectionEvent(value); + break; + case 30: + var value = new proto.prehog.v1alpha.UIDiscoverCompletedEvent; + reader.readMessage(value,proto.prehog.v1alpha.UIDiscoverCompletedEvent.deserializeBinaryFromReader); + msg.setUiDiscoverCompletedEvent(value); + break; default: reader.skipField(); break; @@ -3990,20 +6840,100 @@ proto.prehog.v1alpha.SubmitEventRequest.serializeBinaryToWriter = function(messa proto.prehog.v1alpha.UIDiscoverResourceSelectionEvent.serializeBinaryToWriter ); } - f = message.getUserCertificateIssuedEvent(); + f = message.getUserCertificateIssuedEvent(); + if (f != null) { + writer.writeMessage( + 19, + f, + proto.prehog.v1alpha.UserCertificateIssuedEvent.serializeBinaryToWriter + ); + } + f = message.getSessionStartV2(); + if (f != null) { + writer.writeMessage( + 20, + f, + proto.prehog.v1alpha.SessionStartEvent.serializeBinaryToWriter + ); + } + f = message.getUiDiscoverDeployServiceEvent(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.prehog.v1alpha.UIDiscoverDeployServiceEvent.serializeBinaryToWriter + ); + } + f = message.getUiDiscoverDatabaseRegisterEvent(); + if (f != null) { + writer.writeMessage( + 22, + f, + proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.serializeBinaryToWriter + ); + } + f = message.getUiDiscoverDatabaseConfigureMtlsEvent(); + if (f != null) { + writer.writeMessage( + 23, + f, + proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.serializeBinaryToWriter + ); + } + f = message.getUiDiscoverDesktopActiveDirectoryToolsInstallEvent(); + if (f != null) { + writer.writeMessage( + 24, + f, + proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.serializeBinaryToWriter + ); + } + f = message.getUiDiscoverDesktopActiveDirectoryConfigureEvent(); + if (f != null) { + writer.writeMessage( + 25, + f, + proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.serializeBinaryToWriter + ); + } + f = message.getUiDiscoverAutoDiscoveredResourcesEvent(); + if (f != null) { + writer.writeMessage( + 26, + f, + proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.serializeBinaryToWriter + ); + } + f = message.getUiDiscoverDatabaseConfigureIamPolicyEvent(); + if (f != null) { + writer.writeMessage( + 27, + f, + proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.serializeBinaryToWriter + ); + } + f = message.getUiDiscoverPrincipalsConfigureEvent(); + if (f != null) { + writer.writeMessage( + 28, + f, + proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.serializeBinaryToWriter + ); + } + f = message.getUiDiscoverTestConnectionEvent(); if (f != null) { writer.writeMessage( - 19, + 29, f, - proto.prehog.v1alpha.UserCertificateIssuedEvent.serializeBinaryToWriter + proto.prehog.v1alpha.UIDiscoverTestConnectionEvent.serializeBinaryToWriter ); } - f = message.getSessionStartV2(); + f = message.getUiDiscoverCompletedEvent(); if (f != null) { writer.writeMessage( - 20, + 30, f, - proto.prehog.v1alpha.SessionStartEvent.serializeBinaryToWriter + proto.prehog.v1alpha.UIDiscoverCompletedEvent.serializeBinaryToWriter ); } }; @@ -4693,6 +7623,376 @@ proto.prehog.v1alpha.SubmitEventRequest.prototype.hasSessionStartV2 = function() }; +/** + * optional UIDiscoverDeployServiceEvent ui_discover_deploy_service_event = 21; + * @return {?proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverDeployServiceEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverDeployServiceEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverDeployServiceEvent, 21)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverDeployServiceEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverDeployServiceEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 21, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverDeployServiceEvent = function() { + return this.setUiDiscoverDeployServiceEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverDeployServiceEvent = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * optional UIDiscoverDatabaseRegisterEvent ui_discover_database_register_event = 22; + * @return {?proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverDatabaseRegisterEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent, 22)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverDatabaseRegisterEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverDatabaseRegisterEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 22, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverDatabaseRegisterEvent = function() { + return this.setUiDiscoverDatabaseRegisterEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverDatabaseRegisterEvent = function() { + return jspb.Message.getField(this, 22) != null; +}; + + +/** + * optional UIDiscoverDatabaseConfigureMTLSEvent ui_discover_database_configure_mtls_event = 23; + * @return {?proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverDatabaseConfigureMtlsEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent, 23)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverDatabaseConfigureMtlsEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 23, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverDatabaseConfigureMtlsEvent = function() { + return this.setUiDiscoverDatabaseConfigureMtlsEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverDatabaseConfigureMtlsEvent = function() { + return jspb.Message.getField(this, 23) != null; +}; + + +/** + * optional UIDiscoverDesktopActiveDirectoryToolsInstallEvent ui_discover_desktop_active_directory_tools_install_event = 24; + * @return {?proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverDesktopActiveDirectoryToolsInstallEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent, 24)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverDesktopActiveDirectoryToolsInstallEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 24, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverDesktopActiveDirectoryToolsInstallEvent = function() { + return this.setUiDiscoverDesktopActiveDirectoryToolsInstallEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverDesktopActiveDirectoryToolsInstallEvent = function() { + return jspb.Message.getField(this, 24) != null; +}; + + +/** + * optional UIDiscoverDesktopActiveDirectoryConfigureEvent ui_discover_desktop_active_directory_configure_event = 25; + * @return {?proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverDesktopActiveDirectoryConfigureEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent, 25)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverDesktopActiveDirectoryConfigureEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 25, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverDesktopActiveDirectoryConfigureEvent = function() { + return this.setUiDiscoverDesktopActiveDirectoryConfigureEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverDesktopActiveDirectoryConfigureEvent = function() { + return jspb.Message.getField(this, 25) != null; +}; + + +/** + * optional UIDiscoverAutoDiscoveredResourcesEvent ui_discover_auto_discovered_resources_event = 26; + * @return {?proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverAutoDiscoveredResourcesEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent, 26)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverAutoDiscoveredResourcesEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 26, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverAutoDiscoveredResourcesEvent = function() { + return this.setUiDiscoverAutoDiscoveredResourcesEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverAutoDiscoveredResourcesEvent = function() { + return jspb.Message.getField(this, 26) != null; +}; + + +/** + * optional UIDiscoverDatabaseConfigureIAMPolicyEvent ui_discover_database_configure_iam_policy_event = 27; + * @return {?proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverDatabaseConfigureIamPolicyEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent, 27)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverDatabaseConfigureIamPolicyEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 27, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverDatabaseConfigureIamPolicyEvent = function() { + return this.setUiDiscoverDatabaseConfigureIamPolicyEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverDatabaseConfigureIamPolicyEvent = function() { + return jspb.Message.getField(this, 27) != null; +}; + + +/** + * optional UIDiscoverPrincipalsConfigureEvent ui_discover_principals_configure_event = 28; + * @return {?proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverPrincipalsConfigureEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent, 28)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverPrincipalsConfigureEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 28, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverPrincipalsConfigureEvent = function() { + return this.setUiDiscoverPrincipalsConfigureEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverPrincipalsConfigureEvent = function() { + return jspb.Message.getField(this, 28) != null; +}; + + +/** + * optional UIDiscoverTestConnectionEvent ui_discover_test_connection_event = 29; + * @return {?proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverTestConnectionEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverTestConnectionEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverTestConnectionEvent, 29)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverTestConnectionEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverTestConnectionEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 29, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverTestConnectionEvent = function() { + return this.setUiDiscoverTestConnectionEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverTestConnectionEvent = function() { + return jspb.Message.getField(this, 29) != null; +}; + + +/** + * optional UIDiscoverCompletedEvent ui_discover_completed_event = 30; + * @return {?proto.prehog.v1alpha.UIDiscoverCompletedEvent} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.getUiDiscoverCompletedEvent = function() { + return /** @type{?proto.prehog.v1alpha.UIDiscoverCompletedEvent} */ ( + jspb.Message.getWrapperField(this, proto.prehog.v1alpha.UIDiscoverCompletedEvent, 30)); +}; + + +/** + * @param {?proto.prehog.v1alpha.UIDiscoverCompletedEvent|undefined} value + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this +*/ +proto.prehog.v1alpha.SubmitEventRequest.prototype.setUiDiscoverCompletedEvent = function(value) { + return jspb.Message.setOneofWrapperField(this, 30, proto.prehog.v1alpha.SubmitEventRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.prehog.v1alpha.SubmitEventRequest} returns this + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.clearUiDiscoverCompletedEvent = function() { + return this.setUiDiscoverCompletedEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.prehog.v1alpha.SubmitEventRequest.prototype.hasUiDiscoverCompletedEvent = function() { + return jspb.Message.getField(this, 30) != null; +}; + + diff --git a/lib/prehog/gen/prehog/v1alpha/teleport.pb.go b/lib/prehog/gen/prehog/v1alpha/teleport.pb.go index f046b7f403bf2..b6e11d701ea80 100644 --- a/lib/prehog/gen/prehog/v1alpha/teleport.pb.go +++ b/lib/prehog/gen/prehog/v1alpha/teleport.pb.go @@ -1233,6 +1233,662 @@ func (x *UIDiscoverResourceSelectionEvent) GetStatus() *DiscoverStepStatus { return nil } +// UIDiscoverDeployServiceEvent is emitted after the user installs a Teleport Agent. +// For SSH this is the Teleport 'install-node' script. +// +// For Kubernetes this is the teleport-agent helm chart installation. +// +// For Database Access this step is the installation of the teleport 'install-db' script. +// It can be skipped if the cluster already has a Database Service capable of proxying the database. +type UIDiscoverDeployServiceEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UIDiscoverDeployServiceEvent) Reset() { + *x = UIDiscoverDeployServiceEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverDeployServiceEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverDeployServiceEvent) ProtoMessage() {} + +func (x *UIDiscoverDeployServiceEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverDeployServiceEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverDeployServiceEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{19} +} + +func (x *UIDiscoverDeployServiceEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverDeployServiceEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverDeployServiceEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + +// UIDiscoverDatabaseRegisterEvent is emitted when a user is finished with the step that registers a database resource. +type UIDiscoverDatabaseRegisterEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UIDiscoverDatabaseRegisterEvent) Reset() { + *x = UIDiscoverDatabaseRegisterEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverDatabaseRegisterEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverDatabaseRegisterEvent) ProtoMessage() {} + +func (x *UIDiscoverDatabaseRegisterEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverDatabaseRegisterEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverDatabaseRegisterEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{20} +} + +func (x *UIDiscoverDatabaseRegisterEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverDatabaseRegisterEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverDatabaseRegisterEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + +// UIDiscoverDatabaseConfigureMTLSEvent is emitted when a user is finished with the step that configures mutual TLS for a self-hosted database. +type UIDiscoverDatabaseConfigureMTLSEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UIDiscoverDatabaseConfigureMTLSEvent) Reset() { + *x = UIDiscoverDatabaseConfigureMTLSEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverDatabaseConfigureMTLSEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverDatabaseConfigureMTLSEvent) ProtoMessage() {} + +func (x *UIDiscoverDatabaseConfigureMTLSEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverDatabaseConfigureMTLSEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverDatabaseConfigureMTLSEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{21} +} + +func (x *UIDiscoverDatabaseConfigureMTLSEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverDatabaseConfigureMTLSEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverDatabaseConfigureMTLSEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + +// UIDiscoverDesktopActiveDirectoryToolsInstallEvent is emitted when the user is finished with the step that asks user to run the install Active Directory tools script for the Desktop flow. +type UIDiscoverDesktopActiveDirectoryToolsInstallEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Reset() { + *x = UIDiscoverDesktopActiveDirectoryToolsInstallEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverDesktopActiveDirectoryToolsInstallEvent) ProtoMessage() {} + +func (x *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverDesktopActiveDirectoryToolsInstallEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{22} +} + +func (x *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + +// UIDiscoverDesktopActiveDirectoryConfigureEvent is emitted when the user is finished with the step that asks user to run the Configure Active Directory script for the Desktop flow. +type UIDiscoverDesktopActiveDirectoryConfigureEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UIDiscoverDesktopActiveDirectoryConfigureEvent) Reset() { + *x = UIDiscoverDesktopActiveDirectoryConfigureEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverDesktopActiveDirectoryConfigureEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverDesktopActiveDirectoryConfigureEvent) ProtoMessage() {} + +func (x *UIDiscoverDesktopActiveDirectoryConfigureEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverDesktopActiveDirectoryConfigureEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverDesktopActiveDirectoryConfigureEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{23} +} + +func (x *UIDiscoverDesktopActiveDirectoryConfigureEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverDesktopActiveDirectoryConfigureEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverDesktopActiveDirectoryConfigureEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + +// UIDiscoverAutoDiscoveredResourcesEvent is emitted when the user is finished with the step that auto discovers resources (waiting until resources show up). +// resources_count field must reflect the latest amount of discovered resources (get the number after user is finished with this step). +type UIDiscoverAutoDiscoveredResourcesEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + ResourcesCount int64 `protobuf:"varint,4,opt,name=resources_count,json=resourcesCount,proto3" json:"resources_count,omitempty"` +} + +func (x *UIDiscoverAutoDiscoveredResourcesEvent) Reset() { + *x = UIDiscoverAutoDiscoveredResourcesEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverAutoDiscoveredResourcesEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverAutoDiscoveredResourcesEvent) ProtoMessage() {} + +func (x *UIDiscoverAutoDiscoveredResourcesEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverAutoDiscoveredResourcesEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverAutoDiscoveredResourcesEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{24} +} + +func (x *UIDiscoverAutoDiscoveredResourcesEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverAutoDiscoveredResourcesEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverAutoDiscoveredResourcesEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + +func (x *UIDiscoverAutoDiscoveredResourcesEvent) GetResourcesCount() int64 { + if x != nil { + return x.ResourcesCount + } + return 0 +} + +// UIDiscoverDatabaseConfigureIAMPolicyEvent is emitted when a user is finished with the step that configures IAM policy for an RDS database. +type UIDiscoverDatabaseConfigureIAMPolicyEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UIDiscoverDatabaseConfigureIAMPolicyEvent) Reset() { + *x = UIDiscoverDatabaseConfigureIAMPolicyEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverDatabaseConfigureIAMPolicyEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverDatabaseConfigureIAMPolicyEvent) ProtoMessage() {} + +func (x *UIDiscoverDatabaseConfigureIAMPolicyEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverDatabaseConfigureIAMPolicyEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverDatabaseConfigureIAMPolicyEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{25} +} + +func (x *UIDiscoverDatabaseConfigureIAMPolicyEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverDatabaseConfigureIAMPolicyEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverDatabaseConfigureIAMPolicyEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + +// UIDiscoverPrincipalsConfigureEvent is emitted when a user is finished with the step that allows user to update their principals (setting up access). +type UIDiscoverPrincipalsConfigureEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UIDiscoverPrincipalsConfigureEvent) Reset() { + *x = UIDiscoverPrincipalsConfigureEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverPrincipalsConfigureEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverPrincipalsConfigureEvent) ProtoMessage() {} + +func (x *UIDiscoverPrincipalsConfigureEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverPrincipalsConfigureEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverPrincipalsConfigureEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{26} +} + +func (x *UIDiscoverPrincipalsConfigureEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverPrincipalsConfigureEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverPrincipalsConfigureEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + +// UIDiscoverTestConnectionEvent emitted on the "Test Connection" screen +// when the user clicked tested connection to their resource. +type UIDiscoverTestConnectionEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UIDiscoverTestConnectionEvent) Reset() { + *x = UIDiscoverTestConnectionEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverTestConnectionEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverTestConnectionEvent) ProtoMessage() {} + +func (x *UIDiscoverTestConnectionEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverTestConnectionEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverTestConnectionEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{27} +} + +func (x *UIDiscoverTestConnectionEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverTestConnectionEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverTestConnectionEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + +// UIDiscoverCompletedEvent is emitted when user completes the Discover wizard. +type UIDiscoverCompletedEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *DiscoverMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Resource *DiscoverResourceMetadata `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` + Status *DiscoverStepStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UIDiscoverCompletedEvent) Reset() { + *x = UIDiscoverCompletedEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UIDiscoverCompletedEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UIDiscoverCompletedEvent) ProtoMessage() {} + +func (x *UIDiscoverCompletedEvent) ProtoReflect() protoreflect.Message { + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UIDiscoverCompletedEvent.ProtoReflect.Descriptor instead. +func (*UIDiscoverCompletedEvent) Descriptor() ([]byte, []int) { + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{28} +} + +func (x *UIDiscoverCompletedEvent) GetMetadata() *DiscoverMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UIDiscoverCompletedEvent) GetResource() *DiscoverResourceMetadata { + if x != nil { + return x.Resource + } + return nil +} + +func (x *UIDiscoverCompletedEvent) GetStatus() *DiscoverStepStatus { + if x != nil { + return x.Status + } + return nil +} + type SubmitEventRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1261,13 +1917,23 @@ type SubmitEventRequest struct { // *SubmitEventRequest_UiDiscoverResourceSelectionEvent // *SubmitEventRequest_UserCertificateIssuedEvent // *SubmitEventRequest_SessionStartV2 + // *SubmitEventRequest_UiDiscoverDeployServiceEvent + // *SubmitEventRequest_UiDiscoverDatabaseRegisterEvent + // *SubmitEventRequest_UiDiscoverDatabaseConfigureMtlsEvent + // *SubmitEventRequest_UiDiscoverDesktopActiveDirectoryToolsInstallEvent + // *SubmitEventRequest_UiDiscoverDesktopActiveDirectoryConfigureEvent + // *SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent + // *SubmitEventRequest_UiDiscoverDatabaseConfigureIamPolicyEvent + // *SubmitEventRequest_UiDiscoverPrincipalsConfigureEvent + // *SubmitEventRequest_UiDiscoverTestConnectionEvent + // *SubmitEventRequest_UiDiscoverCompletedEvent Event isSubmitEventRequest_Event `protobuf_oneof:"event"` } func (x *SubmitEventRequest) Reset() { *x = SubmitEventRequest{} if protoimpl.UnsafeEnabled { - mi := &file_prehog_v1alpha_teleport_proto_msgTypes[19] + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1280,7 +1946,7 @@ func (x *SubmitEventRequest) String() string { func (*SubmitEventRequest) ProtoMessage() {} func (x *SubmitEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_prehog_v1alpha_teleport_proto_msgTypes[19] + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1293,7 +1959,7 @@ func (x *SubmitEventRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitEventRequest.ProtoReflect.Descriptor instead. func (*SubmitEventRequest) Descriptor() ([]byte, []int) { - return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{19} + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{29} } func (x *SubmitEventRequest) GetClusterName() string { @@ -1436,6 +2102,76 @@ func (x *SubmitEventRequest) GetSessionStartV2() *SessionStartEvent { return nil } +func (x *SubmitEventRequest) GetUiDiscoverDeployServiceEvent() *UIDiscoverDeployServiceEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverDeployServiceEvent); ok { + return x.UiDiscoverDeployServiceEvent + } + return nil +} + +func (x *SubmitEventRequest) GetUiDiscoverDatabaseRegisterEvent() *UIDiscoverDatabaseRegisterEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverDatabaseRegisterEvent); ok { + return x.UiDiscoverDatabaseRegisterEvent + } + return nil +} + +func (x *SubmitEventRequest) GetUiDiscoverDatabaseConfigureMtlsEvent() *UIDiscoverDatabaseConfigureMTLSEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverDatabaseConfigureMtlsEvent); ok { + return x.UiDiscoverDatabaseConfigureMtlsEvent + } + return nil +} + +func (x *SubmitEventRequest) GetUiDiscoverDesktopActiveDirectoryToolsInstallEvent() *UIDiscoverDesktopActiveDirectoryToolsInstallEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverDesktopActiveDirectoryToolsInstallEvent); ok { + return x.UiDiscoverDesktopActiveDirectoryToolsInstallEvent + } + return nil +} + +func (x *SubmitEventRequest) GetUiDiscoverDesktopActiveDirectoryConfigureEvent() *UIDiscoverDesktopActiveDirectoryConfigureEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverDesktopActiveDirectoryConfigureEvent); ok { + return x.UiDiscoverDesktopActiveDirectoryConfigureEvent + } + return nil +} + +func (x *SubmitEventRequest) GetUiDiscoverAutoDiscoveredResourcesEvent() *UIDiscoverAutoDiscoveredResourcesEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent); ok { + return x.UiDiscoverAutoDiscoveredResourcesEvent + } + return nil +} + +func (x *SubmitEventRequest) GetUiDiscoverDatabaseConfigureIamPolicyEvent() *UIDiscoverDatabaseConfigureIAMPolicyEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverDatabaseConfigureIamPolicyEvent); ok { + return x.UiDiscoverDatabaseConfigureIamPolicyEvent + } + return nil +} + +func (x *SubmitEventRequest) GetUiDiscoverPrincipalsConfigureEvent() *UIDiscoverPrincipalsConfigureEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverPrincipalsConfigureEvent); ok { + return x.UiDiscoverPrincipalsConfigureEvent + } + return nil +} + +func (x *SubmitEventRequest) GetUiDiscoverTestConnectionEvent() *UIDiscoverTestConnectionEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverTestConnectionEvent); ok { + return x.UiDiscoverTestConnectionEvent + } + return nil +} + +func (x *SubmitEventRequest) GetUiDiscoverCompletedEvent() *UIDiscoverCompletedEvent { + if x, ok := x.GetEvent().(*SubmitEventRequest_UiDiscoverCompletedEvent); ok { + return x.UiDiscoverCompletedEvent + } + return nil +} + type isSubmitEventRequest_Event interface { isSubmitEventRequest_Event() } @@ -1513,6 +2249,46 @@ type SubmitEventRequest_SessionStartV2 struct { SessionStartV2 *SessionStartEvent `protobuf:"bytes,20,opt,name=session_start_v2,json=sessionStartV2,proto3,oneof"` } +type SubmitEventRequest_UiDiscoverDeployServiceEvent struct { + UiDiscoverDeployServiceEvent *UIDiscoverDeployServiceEvent `protobuf:"bytes,21,opt,name=ui_discover_deploy_service_event,json=uiDiscoverDeployServiceEvent,proto3,oneof"` +} + +type SubmitEventRequest_UiDiscoverDatabaseRegisterEvent struct { + UiDiscoverDatabaseRegisterEvent *UIDiscoverDatabaseRegisterEvent `protobuf:"bytes,22,opt,name=ui_discover_database_register_event,json=uiDiscoverDatabaseRegisterEvent,proto3,oneof"` +} + +type SubmitEventRequest_UiDiscoverDatabaseConfigureMtlsEvent struct { + UiDiscoverDatabaseConfigureMtlsEvent *UIDiscoverDatabaseConfigureMTLSEvent `protobuf:"bytes,23,opt,name=ui_discover_database_configure_mtls_event,json=uiDiscoverDatabaseConfigureMtlsEvent,proto3,oneof"` +} + +type SubmitEventRequest_UiDiscoverDesktopActiveDirectoryToolsInstallEvent struct { + UiDiscoverDesktopActiveDirectoryToolsInstallEvent *UIDiscoverDesktopActiveDirectoryToolsInstallEvent `protobuf:"bytes,24,opt,name=ui_discover_desktop_active_directory_tools_install_event,json=uiDiscoverDesktopActiveDirectoryToolsInstallEvent,proto3,oneof"` +} + +type SubmitEventRequest_UiDiscoverDesktopActiveDirectoryConfigureEvent struct { + UiDiscoverDesktopActiveDirectoryConfigureEvent *UIDiscoverDesktopActiveDirectoryConfigureEvent `protobuf:"bytes,25,opt,name=ui_discover_desktop_active_directory_configure_event,json=uiDiscoverDesktopActiveDirectoryConfigureEvent,proto3,oneof"` +} + +type SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent struct { + UiDiscoverAutoDiscoveredResourcesEvent *UIDiscoverAutoDiscoveredResourcesEvent `protobuf:"bytes,26,opt,name=ui_discover_auto_discovered_resources_event,json=uiDiscoverAutoDiscoveredResourcesEvent,proto3,oneof"` +} + +type SubmitEventRequest_UiDiscoverDatabaseConfigureIamPolicyEvent struct { + UiDiscoverDatabaseConfigureIamPolicyEvent *UIDiscoverDatabaseConfigureIAMPolicyEvent `protobuf:"bytes,27,opt,name=ui_discover_database_configure_iam_policy_event,json=uiDiscoverDatabaseConfigureIamPolicyEvent,proto3,oneof"` +} + +type SubmitEventRequest_UiDiscoverPrincipalsConfigureEvent struct { + UiDiscoverPrincipalsConfigureEvent *UIDiscoverPrincipalsConfigureEvent `protobuf:"bytes,28,opt,name=ui_discover_principals_configure_event,json=uiDiscoverPrincipalsConfigureEvent,proto3,oneof"` +} + +type SubmitEventRequest_UiDiscoverTestConnectionEvent struct { + UiDiscoverTestConnectionEvent *UIDiscoverTestConnectionEvent `protobuf:"bytes,29,opt,name=ui_discover_test_connection_event,json=uiDiscoverTestConnectionEvent,proto3,oneof"` +} + +type SubmitEventRequest_UiDiscoverCompletedEvent struct { + UiDiscoverCompletedEvent *UIDiscoverCompletedEvent `protobuf:"bytes,30,opt,name=ui_discover_completed_event,json=uiDiscoverCompletedEvent,proto3,oneof"` +} + func (*SubmitEventRequest_UserLogin) isSubmitEventRequest_Event() {} func (*SubmitEventRequest_SsoCreate) isSubmitEventRequest_Event() {} @@ -1547,6 +2323,28 @@ func (*SubmitEventRequest_UserCertificateIssuedEvent) isSubmitEventRequest_Event func (*SubmitEventRequest_SessionStartV2) isSubmitEventRequest_Event() {} +func (*SubmitEventRequest_UiDiscoverDeployServiceEvent) isSubmitEventRequest_Event() {} + +func (*SubmitEventRequest_UiDiscoverDatabaseRegisterEvent) isSubmitEventRequest_Event() {} + +func (*SubmitEventRequest_UiDiscoverDatabaseConfigureMtlsEvent) isSubmitEventRequest_Event() {} + +func (*SubmitEventRequest_UiDiscoverDesktopActiveDirectoryToolsInstallEvent) isSubmitEventRequest_Event() { +} + +func (*SubmitEventRequest_UiDiscoverDesktopActiveDirectoryConfigureEvent) isSubmitEventRequest_Event() { +} + +func (*SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent) isSubmitEventRequest_Event() {} + +func (*SubmitEventRequest_UiDiscoverDatabaseConfigureIamPolicyEvent) isSubmitEventRequest_Event() {} + +func (*SubmitEventRequest_UiDiscoverPrincipalsConfigureEvent) isSubmitEventRequest_Event() {} + +func (*SubmitEventRequest_UiDiscoverTestConnectionEvent) isSubmitEventRequest_Event() {} + +func (*SubmitEventRequest_UiDiscoverCompletedEvent) isSubmitEventRequest_Event() {} + type SubmitEventResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1556,7 +2354,7 @@ type SubmitEventResponse struct { func (x *SubmitEventResponse) Reset() { *x = SubmitEventResponse{} if protoimpl.UnsafeEnabled { - mi := &file_prehog_v1alpha_teleport_proto_msgTypes[20] + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1569,7 +2367,7 @@ func (x *SubmitEventResponse) String() string { func (*SubmitEventResponse) ProtoMessage() {} func (x *SubmitEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_prehog_v1alpha_teleport_proto_msgTypes[20] + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1582,7 +2380,7 @@ func (x *SubmitEventResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitEventResponse.ProtoReflect.Descriptor instead. func (*SubmitEventResponse) Descriptor() ([]byte, []int) { - return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{20} + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{30} } type HelloTeleportRequest struct { @@ -1594,7 +2392,7 @@ type HelloTeleportRequest struct { func (x *HelloTeleportRequest) Reset() { *x = HelloTeleportRequest{} if protoimpl.UnsafeEnabled { - mi := &file_prehog_v1alpha_teleport_proto_msgTypes[21] + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1607,7 +2405,7 @@ func (x *HelloTeleportRequest) String() string { func (*HelloTeleportRequest) ProtoMessage() {} func (x *HelloTeleportRequest) ProtoReflect() protoreflect.Message { - mi := &file_prehog_v1alpha_teleport_proto_msgTypes[21] + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1620,7 +2418,7 @@ func (x *HelloTeleportRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloTeleportRequest.ProtoReflect.Descriptor instead. func (*HelloTeleportRequest) Descriptor() ([]byte, []int) { - return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{21} + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{31} } type HelloTeleportResponse struct { @@ -1632,7 +2430,7 @@ type HelloTeleportResponse struct { func (x *HelloTeleportResponse) Reset() { *x = HelloTeleportResponse{} if protoimpl.UnsafeEnabled { - mi := &file_prehog_v1alpha_teleport_proto_msgTypes[22] + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1645,7 +2443,7 @@ func (x *HelloTeleportResponse) String() string { func (*HelloTeleportResponse) ProtoMessage() {} func (x *HelloTeleportResponse) ProtoReflect() protoreflect.Message { - mi := &file_prehog_v1alpha_teleport_proto_msgTypes[22] + mi := &file_prehog_v1alpha_teleport_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1658,7 +2456,7 @@ func (x *HelloTeleportResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloTeleportResponse.ProtoReflect.Descriptor instead. func (*HelloTeleportResponse) Descriptor() ([]byte, []int) { - return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{22} + return file_prehog_v1alpha_teleport_proto_rawDescGZIP(), []int{32} } var File_prehog_v1alpha_teleport_proto protoreflect.FileDescriptor @@ -1787,204 +2585,442 @@ var file_prehog_v1alpha_teleport_proto_rawDesc = []byte{ 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, 0x70, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xca, 0x0f, - 0x0a, 0x12, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x3f, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, - 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x0a, 0x73, 0x73, 0x6f, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x53, 0x4f, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x73, 0x73, 0x6f, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x12, 0x4e, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, - 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x65, - 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, - 0x0c, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x4c, 0x0a, - 0x0f, 0x75, 0x69, 0x5f, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x72, - 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x75, 0x69, - 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, 0x92, 0x01, 0x0a, 0x29, - 0x75, 0x69, 0x5f, 0x6f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x74, 0x65, 0x5f, 0x67, 0x6f, 0x5f, 0x74, 0x6f, 0x5f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x38, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2e, 0x55, 0x49, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x74, 0x65, 0x47, 0x6f, 0x54, 0x6f, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x43, - 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x23, 0x75, 0x69, 0x4f, - 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x6f, - 0x54, 0x6f, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x43, 0x6c, 0x69, 0x63, 0x6b, - 0x12, 0x82, 0x01, 0x0a, 0x23, 0x75, 0x69, 0x5f, 0x6f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, - 0x61, 0x64, 0x64, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xde, 0x01, + 0x0a, 0x1c, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, + 0x6f, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3c, + 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x08, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, + 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, 0x70, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xe1, + 0x01, 0x0a, 0x1f, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x44, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x53, 0x74, 0x65, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x22, 0xe6, 0x01, 0x0a, 0x24, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x65, 0x4d, 0x54, 0x4c, 0x53, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x0a, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x08, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x72, + 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, + 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, + 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, 0x70, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xf3, 0x01, 0x0a, 0x31, + 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, + 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, + 0x54, 0x6f, 0x6f, 0x6c, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x12, 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x44, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, + 0x74, 0x65, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x22, 0xf0, 0x01, 0x0a, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x44, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, + 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x53, 0x74, 0x65, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x22, 0x91, 0x02, 0x0a, 0x26, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, + 0x76, 0x65, 0x72, 0x41, 0x75, 0x74, 0x6f, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, + 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, + 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, + 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, + 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xeb, 0x01, 0x0a, 0x29, 0x55, 0x49, 0x44, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49, 0x41, 0x4d, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, + 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, + 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, + 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xe4, 0x01, 0x0a, 0x22, 0x55, 0x49, 0x44, 0x69, 0x73, + 0x63, 0x6f, 0x76, 0x65, 0x72, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x08, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, + 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, 0x70, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xdf, 0x01, + 0x0a, 0x1d, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, + 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, + 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, + 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, + 0xda, 0x01, 0x0a, 0x18, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, - 0x55, 0x49, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x46, 0x69, 0x72, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1e, 0x75, 0x69, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x41, 0x64, 0x64, 0x46, 0x69, 0x72, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, 0x92, 0x01, 0x0a, 0x29, 0x75, 0x69, 0x5f, 0x6f, 0x6e, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6c, - 0x69, 0x63, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x70, 0x72, 0x65, 0x68, - 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x4f, 0x6e, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x46, 0x69, 0x72, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x23, 0x75, 0x69, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x41, 0x64, 0x64, 0x46, 0x69, 0x72, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4c, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, 0x7b, 0x0a, 0x20, 0x75, 0x69, - 0x5f, 0x6f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x63, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, - 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1c, 0x75, 0x69, 0x4f, 0x6e, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x12, 0x87, 0x01, 0x0a, 0x24, 0x75, 0x69, 0x5f, 0x6f, - 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, - 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, - 0x67, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, - 0x20, 0x75, 0x69, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, - 0x74, 0x12, 0x7b, 0x0a, 0x20, 0x75, 0x69, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, - 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x5f, - 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x70, 0x72, - 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x52, - 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, - 0x69, 0x6e, 0x75, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, - 0x52, 0x1c, 0x75, 0x69, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, - 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, 0x6f, - 0x0a, 0x1c, 0x75, 0x69, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, - 0x64, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x18, 0x0f, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, - 0x43, 0x6f, 0x64, 0x65, 0x73, 0x43, 0x6f, 0x70, 0x79, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x18, 0x75, 0x69, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, - 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x43, 0x6f, 0x70, 0x79, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, - 0x72, 0x0a, 0x1d, 0x75, 0x69, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x63, - 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, - 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, - 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x50, 0x72, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x69, 0x63, - 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x19, 0x75, 0x69, 0x52, 0x65, 0x63, 0x6f, - 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x50, 0x72, 0x69, 0x6e, 0x74, 0x43, 0x6c, - 0x69, 0x63, 0x6b, 0x12, 0x63, 0x0a, 0x19, 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, - 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, + 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x08, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, + 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x69, + 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, 0x70, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xec, 0x1a, 0x0a, + 0x12, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x12, 0x3f, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, + 0x6e, 0x12, 0x3f, 0x0a, 0x0a, 0x73, 0x73, 0x6f, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x53, 0x4f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x73, 0x73, 0x6f, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x12, 0x4e, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, + 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x65, 0x68, + 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, + 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x4c, 0x0a, 0x0f, + 0x75, 0x69, 0x5f, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x43, + 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x75, 0x69, 0x42, + 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, 0x92, 0x01, 0x0a, 0x29, 0x75, + 0x69, 0x5f, 0x6f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x5f, 0x67, 0x6f, 0x5f, 0x74, 0x6f, 0x5f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, + 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x55, 0x49, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x47, 0x6f, 0x54, 0x6f, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x43, 0x6c, + 0x69, 0x63, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x23, 0x75, 0x69, 0x4f, 0x6e, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x6f, 0x54, + 0x6f, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, + 0x82, 0x01, 0x0a, 0x23, 0x75, 0x69, 0x5f, 0x6f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x61, + 0x64, 0x64, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, + 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, + 0x49, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x46, 0x69, 0x72, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1e, 0x75, 0x69, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x41, + 0x64, 0x64, 0x46, 0x69, 0x72, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, + 0x6c, 0x69, 0x63, 0x6b, 0x12, 0x92, 0x01, 0x0a, 0x29, 0x75, 0x69, 0x5f, 0x6f, 0x6e, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x69, + 0x63, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, + 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x4f, 0x6e, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x46, 0x69, 0x72, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x23, 0x75, 0x69, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x41, + 0x64, 0x64, 0x46, 0x69, 0x72, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, + 0x61, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, 0x7b, 0x0a, 0x20, 0x75, 0x69, 0x5f, + 0x6f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, + 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x6d, 0x69, + 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1c, 0x75, 0x69, 0x4f, 0x6e, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x53, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x12, 0x87, 0x01, 0x0a, 0x24, 0x75, 0x69, 0x5f, 0x6f, 0x6e, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x63, + 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, + 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x20, + 0x75, 0x69, 0x4f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x12, 0x7b, 0x0a, 0x20, 0x75, 0x69, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, + 0x63, 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x5f, 0x63, + 0x6c, 0x69, 0x63, 0x6b, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x70, 0x72, 0x65, + 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x52, 0x65, + 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x69, + 0x6e, 0x75, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, + 0x1c, 0x75, 0x69, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, + 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, 0x6f, 0x0a, + 0x1c, 0x75, 0x69, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, + 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, + 0x6f, 0x64, 0x65, 0x73, 0x43, 0x6f, 0x70, 0x79, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x18, 0x75, 0x69, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, + 0x43, 0x6f, 0x64, 0x65, 0x73, 0x43, 0x6f, 0x70, 0x79, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x12, 0x72, + 0x0a, 0x1d, 0x75, 0x69, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, + 0x64, 0x65, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x50, 0x72, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x69, 0x63, 0x6b, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x19, 0x75, 0x69, 0x52, 0x65, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x50, 0x72, 0x69, 0x6e, 0x74, 0x43, 0x6c, 0x69, + 0x63, 0x6b, 0x12, 0x63, 0x0a, 0x19, 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, + 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, + 0x16, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x82, 0x01, 0x0a, 0x24, 0x75, 0x69, 0x5f, 0x64, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, - 0x52, 0x16, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x82, 0x01, 0x0a, 0x24, 0x75, 0x69, 0x5f, - 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, - 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x20, 0x75, 0x69, 0x44, - 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x6f, 0x0a, - 0x1d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x13, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x48, 0x00, 0x52, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4d, - 0x0a, 0x10, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, - 0x76, 0x32, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, - 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x73, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x56, 0x32, 0x42, 0x07, 0x0a, - 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x52, 0x1c, 0x75, 0x69, - 0x5f, 0x6f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x75, - 0x62, 0x6d, 0x69, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x16, 0x0a, 0x14, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x17, 0x0a, 0x15, 0x48, 0x65, 0x6c, - 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2a, 0xdd, 0x03, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x44, 0x49, 0x53, 0x43, 0x4f, - 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x49, - 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, - 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x49, 0x53, 0x43, - 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x4b, 0x55, - 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53, 0x10, 0x02, 0x12, 0x33, 0x0a, 0x2f, 0x44, 0x49, - 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, - 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x47, 0x52, 0x45, - 0x53, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, - 0x30, 0x0a, 0x2c, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, - 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x59, - 0x53, 0x51, 0x4c, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x45, 0x44, 0x10, - 0x04, 0x12, 0x32, 0x0a, 0x2e, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, - 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, - 0x4d, 0x4f, 0x4e, 0x47, 0x4f, 0x44, 0x42, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x48, 0x4f, 0x53, - 0x54, 0x45, 0x44, 0x10, 0x05, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, - 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, - 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x47, 0x52, 0x45, 0x53, 0x5f, 0x52, 0x44, 0x53, - 0x10, 0x06, 0x12, 0x28, 0x0a, 0x24, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x20, 0x75, 0x69, 0x44, 0x69, + 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x6f, 0x0a, 0x1d, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x13, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, + 0x00, 0x52, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4d, 0x0a, + 0x10, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x76, + 0x32, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x56, 0x32, 0x12, 0x76, 0x0a, 0x20, + 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, + 0x6f, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1c, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x12, 0x7f, 0x0a, 0x23, 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, + 0x76, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2f, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1f, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x8f, 0x01, 0x0a, 0x29, 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, + 0x63, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x5f, 0x6d, 0x74, 0x6c, 0x73, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x70, 0x72, 0x65, 0x68, + 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, + 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x4d, 0x54, 0x4c, 0x53, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, + 0x00, 0x52, 0x24, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x4d, 0x74, + 0x6c, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0xb8, 0x01, 0x0a, 0x38, 0x75, 0x69, 0x5f, 0x64, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x5f, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x70, 0x72, 0x65, + 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, + 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x6f, 0x6f, 0x6c, + 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, + 0x31, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x65, 0x73, 0x6b, 0x74, + 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x79, 0x54, 0x6f, 0x6f, 0x6c, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0xae, 0x01, 0x0a, 0x34, 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x5f, 0x64, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x19, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3e, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x65, 0x73, + 0x6b, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x48, 0x00, 0x52, 0x2e, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, + 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x69, 0x72, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x95, 0x01, 0x0a, 0x2b, 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, + 0x76, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x70, 0x72, 0x65, 0x68, + 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, + 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x75, 0x74, 0x6f, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x48, 0x00, 0x52, 0x26, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, + 0x75, 0x74, 0x6f, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x9f, 0x01, 0x0a, 0x2f, + 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x5f, 0x69, + 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, + 0x1b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x65, 0x49, 0x41, 0x4d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x48, 0x00, 0x52, 0x29, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x61, + 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49, + 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x88, 0x01, + 0x0a, 0x26, 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x72, + 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, + 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, + 0x70, 0x61, 0x6c, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x22, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x79, 0x0a, 0x21, 0x75, 0x69, 0x5f, 0x64, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x1d, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x54, + 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1d, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x69, 0x0a, 0x1b, 0x75, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, + 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x49, 0x44, 0x69, 0x73, 0x63, + 0x6f, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x18, 0x75, 0x69, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x07, + 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x52, 0x1c, 0x75, + 0x69, 0x5f, 0x6f, 0x6e, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x22, 0x15, 0x0a, 0x13, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x17, 0x0a, 0x15, 0x48, 0x65, + 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2a, 0xdd, 0x03, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x44, 0x49, 0x53, 0x43, + 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x44, + 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, + 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x49, 0x53, + 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x4b, + 0x55, 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53, 0x10, 0x02, 0x12, 0x33, 0x0a, 0x2f, 0x44, + 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, + 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x47, 0x52, + 0x45, 0x53, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x45, 0x44, 0x10, 0x03, + 0x12, 0x30, 0x0a, 0x2c, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, + 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, + 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x45, 0x44, + 0x10, 0x04, 0x12, 0x32, 0x0a, 0x2e, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, - 0x5f, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x44, 0x53, 0x10, 0x07, 0x12, 0x26, 0x0a, 0x22, + 0x5f, 0x4d, 0x4f, 0x4e, 0x47, 0x4f, 0x44, 0x42, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x48, 0x4f, + 0x53, 0x54, 0x45, 0x44, 0x10, 0x05, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, + 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, + 0x42, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x47, 0x52, 0x45, 0x53, 0x5f, 0x52, 0x44, + 0x53, 0x10, 0x06, 0x12, 0x28, 0x0a, 0x24, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, + 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, + 0x45, 0x5f, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x52, 0x44, 0x53, 0x10, 0x07, 0x12, 0x26, 0x0a, + 0x22, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, + 0x43, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, + 0x54, 0x54, 0x50, 0x10, 0x08, 0x12, 0x25, 0x0a, 0x21, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, + 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x4c, 0x49, + 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x43, 0x50, 0x10, 0x09, 0x12, 0x25, 0x0a, 0x21, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, - 0x45, 0x5f, 0x41, 0x50, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x54, - 0x54, 0x50, 0x10, 0x08, 0x12, 0x25, 0x0a, 0x21, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, - 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x4c, 0x49, 0x43, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x43, 0x50, 0x10, 0x09, 0x12, 0x25, 0x0a, 0x21, 0x44, - 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, - 0x5f, 0x57, 0x49, 0x4e, 0x44, 0x4f, 0x57, 0x53, 0x5f, 0x44, 0x45, 0x53, 0x4b, 0x54, 0x4f, 0x50, - 0x10, 0x0a, 0x2a, 0xa3, 0x01, 0x0a, 0x0e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, - 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, - 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, - 0x53, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, 0x02, - 0x12, 0x19, 0x0a, 0x15, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x44, - 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, - 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x04, 0x32, 0xd4, 0x01, 0x0a, 0x18, 0x54, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, - 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x5e, 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x12, 0x24, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, - 0xcb, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0d, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x70, - 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02, 0x0e, 0x50, - 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, 0x0e, - 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xe2, 0x02, - 0x1a, 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x50, 0x72, - 0x65, 0x68, 0x6f, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x45, 0x5f, 0x57, 0x49, 0x4e, 0x44, 0x4f, 0x57, 0x53, 0x5f, 0x44, 0x45, 0x53, 0x4b, 0x54, 0x4f, + 0x50, 0x10, 0x0a, 0x2a, 0xa3, 0x01, 0x0a, 0x0e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, + 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x49, 0x53, 0x43, 0x4f, + 0x56, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, + 0x53, 0x53, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, + 0x02, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, + 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x04, 0x32, 0xd4, 0x01, 0x0a, 0x18, 0x54, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x72, 0x65, 0x68, + 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, + 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x5e, 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x42, 0xcb, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0d, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, + 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x65, 0x68, 0x6f, + 0x67, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02, 0x0e, + 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, + 0x0e, 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xe2, + 0x02, 0x1a, 0x50, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x50, + 0x72, 0x65, 0x68, 0x6f, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2000,38 +3036,48 @@ func file_prehog_v1alpha_teleport_proto_rawDescGZIP() []byte { } var file_prehog_v1alpha_teleport_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_prehog_v1alpha_teleport_proto_msgTypes = make([]protoimpl.MessageInfo, 23) +var file_prehog_v1alpha_teleport_proto_msgTypes = make([]protoimpl.MessageInfo, 33) var file_prehog_v1alpha_teleport_proto_goTypes = []interface{}{ - (DiscoverResource)(0), // 0: prehog.v1alpha.DiscoverResource - (DiscoverStatus)(0), // 1: prehog.v1alpha.DiscoverStatus - (*UserLoginEvent)(nil), // 2: prehog.v1alpha.UserLoginEvent - (*SSOCreateEvent)(nil), // 3: prehog.v1alpha.SSOCreateEvent - (*ResourceCreateEvent)(nil), // 4: prehog.v1alpha.ResourceCreateEvent - (*SessionStartEvent)(nil), // 5: prehog.v1alpha.SessionStartEvent - (*UserCertificateIssuedEvent)(nil), // 6: prehog.v1alpha.UserCertificateIssuedEvent - (*UIBannerClickEvent)(nil), // 7: prehog.v1alpha.UIBannerClickEvent - (*UIOnboardCompleteGoToDashboardClickEvent)(nil), // 8: prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent - (*UIOnboardAddFirstResourceClickEvent)(nil), // 9: prehog.v1alpha.UIOnboardAddFirstResourceClickEvent - (*UIOnboardAddFirstResourceLaterClickEvent)(nil), // 10: prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent - (*UIOnboardSetCredentialSubmitEvent)(nil), // 11: prehog.v1alpha.UIOnboardSetCredentialSubmitEvent - (*UIOnboardRegisterChallengeSubmitEvent)(nil), // 12: prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent - (*UIRecoveryCodesContinueClickEvent)(nil), // 13: prehog.v1alpha.UIRecoveryCodesContinueClickEvent - (*UIRecoveryCodesCopyClickEvent)(nil), // 14: prehog.v1alpha.UIRecoveryCodesCopyClickEvent - (*UIRecoveryCodesPrintClickEvent)(nil), // 15: prehog.v1alpha.UIRecoveryCodesPrintClickEvent - (*DiscoverMetadata)(nil), // 16: prehog.v1alpha.DiscoverMetadata - (*DiscoverResourceMetadata)(nil), // 17: prehog.v1alpha.DiscoverResourceMetadata - (*DiscoverStepStatus)(nil), // 18: prehog.v1alpha.DiscoverStepStatus - (*UIDiscoverStartedEvent)(nil), // 19: prehog.v1alpha.UIDiscoverStartedEvent - (*UIDiscoverResourceSelectionEvent)(nil), // 20: prehog.v1alpha.UIDiscoverResourceSelectionEvent - (*SubmitEventRequest)(nil), // 21: prehog.v1alpha.SubmitEventRequest - (*SubmitEventResponse)(nil), // 22: prehog.v1alpha.SubmitEventResponse - (*HelloTeleportRequest)(nil), // 23: prehog.v1alpha.HelloTeleportRequest - (*HelloTeleportResponse)(nil), // 24: prehog.v1alpha.HelloTeleportResponse - (*durationpb.Duration)(nil), // 25: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (DiscoverResource)(0), // 0: prehog.v1alpha.DiscoverResource + (DiscoverStatus)(0), // 1: prehog.v1alpha.DiscoverStatus + (*UserLoginEvent)(nil), // 2: prehog.v1alpha.UserLoginEvent + (*SSOCreateEvent)(nil), // 3: prehog.v1alpha.SSOCreateEvent + (*ResourceCreateEvent)(nil), // 4: prehog.v1alpha.ResourceCreateEvent + (*SessionStartEvent)(nil), // 5: prehog.v1alpha.SessionStartEvent + (*UserCertificateIssuedEvent)(nil), // 6: prehog.v1alpha.UserCertificateIssuedEvent + (*UIBannerClickEvent)(nil), // 7: prehog.v1alpha.UIBannerClickEvent + (*UIOnboardCompleteGoToDashboardClickEvent)(nil), // 8: prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent + (*UIOnboardAddFirstResourceClickEvent)(nil), // 9: prehog.v1alpha.UIOnboardAddFirstResourceClickEvent + (*UIOnboardAddFirstResourceLaterClickEvent)(nil), // 10: prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent + (*UIOnboardSetCredentialSubmitEvent)(nil), // 11: prehog.v1alpha.UIOnboardSetCredentialSubmitEvent + (*UIOnboardRegisterChallengeSubmitEvent)(nil), // 12: prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent + (*UIRecoveryCodesContinueClickEvent)(nil), // 13: prehog.v1alpha.UIRecoveryCodesContinueClickEvent + (*UIRecoveryCodesCopyClickEvent)(nil), // 14: prehog.v1alpha.UIRecoveryCodesCopyClickEvent + (*UIRecoveryCodesPrintClickEvent)(nil), // 15: prehog.v1alpha.UIRecoveryCodesPrintClickEvent + (*DiscoverMetadata)(nil), // 16: prehog.v1alpha.DiscoverMetadata + (*DiscoverResourceMetadata)(nil), // 17: prehog.v1alpha.DiscoverResourceMetadata + (*DiscoverStepStatus)(nil), // 18: prehog.v1alpha.DiscoverStepStatus + (*UIDiscoverStartedEvent)(nil), // 19: prehog.v1alpha.UIDiscoverStartedEvent + (*UIDiscoverResourceSelectionEvent)(nil), // 20: prehog.v1alpha.UIDiscoverResourceSelectionEvent + (*UIDiscoverDeployServiceEvent)(nil), // 21: prehog.v1alpha.UIDiscoverDeployServiceEvent + (*UIDiscoverDatabaseRegisterEvent)(nil), // 22: prehog.v1alpha.UIDiscoverDatabaseRegisterEvent + (*UIDiscoverDatabaseConfigureMTLSEvent)(nil), // 23: prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent + (*UIDiscoverDesktopActiveDirectoryToolsInstallEvent)(nil), // 24: prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent + (*UIDiscoverDesktopActiveDirectoryConfigureEvent)(nil), // 25: prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent + (*UIDiscoverAutoDiscoveredResourcesEvent)(nil), // 26: prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent + (*UIDiscoverDatabaseConfigureIAMPolicyEvent)(nil), // 27: prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent + (*UIDiscoverPrincipalsConfigureEvent)(nil), // 28: prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent + (*UIDiscoverTestConnectionEvent)(nil), // 29: prehog.v1alpha.UIDiscoverTestConnectionEvent + (*UIDiscoverCompletedEvent)(nil), // 30: prehog.v1alpha.UIDiscoverCompletedEvent + (*SubmitEventRequest)(nil), // 31: prehog.v1alpha.SubmitEventRequest + (*SubmitEventResponse)(nil), // 32: prehog.v1alpha.SubmitEventResponse + (*HelloTeleportRequest)(nil), // 33: prehog.v1alpha.HelloTeleportRequest + (*HelloTeleportResponse)(nil), // 34: prehog.v1alpha.HelloTeleportResponse + (*durationpb.Duration)(nil), // 35: google.protobuf.Duration + (*timestamppb.Timestamp)(nil), // 36: google.protobuf.Timestamp } var file_prehog_v1alpha_teleport_proto_depIdxs = []int32{ - 25, // 0: prehog.v1alpha.UserCertificateIssuedEvent.ttl:type_name -> google.protobuf.Duration + 35, // 0: prehog.v1alpha.UserCertificateIssuedEvent.ttl:type_name -> google.protobuf.Duration 0, // 1: prehog.v1alpha.DiscoverResourceMetadata.resource:type_name -> prehog.v1alpha.DiscoverResource 1, // 2: prehog.v1alpha.DiscoverStepStatus.status:type_name -> prehog.v1alpha.DiscoverStatus 16, // 3: prehog.v1alpha.UIDiscoverStartedEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata @@ -2039,33 +3085,73 @@ var file_prehog_v1alpha_teleport_proto_depIdxs = []int32{ 16, // 5: prehog.v1alpha.UIDiscoverResourceSelectionEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata 17, // 6: prehog.v1alpha.UIDiscoverResourceSelectionEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata 18, // 7: prehog.v1alpha.UIDiscoverResourceSelectionEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus - 26, // 8: prehog.v1alpha.SubmitEventRequest.timestamp:type_name -> google.protobuf.Timestamp - 2, // 9: prehog.v1alpha.SubmitEventRequest.user_login:type_name -> prehog.v1alpha.UserLoginEvent - 3, // 10: prehog.v1alpha.SubmitEventRequest.sso_create:type_name -> prehog.v1alpha.SSOCreateEvent - 4, // 11: prehog.v1alpha.SubmitEventRequest.resource_create:type_name -> prehog.v1alpha.ResourceCreateEvent - 5, // 12: prehog.v1alpha.SubmitEventRequest.session_start:type_name -> prehog.v1alpha.SessionStartEvent - 7, // 13: prehog.v1alpha.SubmitEventRequest.ui_banner_click:type_name -> prehog.v1alpha.UIBannerClickEvent - 8, // 14: prehog.v1alpha.SubmitEventRequest.ui_onboard_complete_go_to_dashboard_click:type_name -> prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent - 9, // 15: prehog.v1alpha.SubmitEventRequest.ui_onboard_add_first_resource_click:type_name -> prehog.v1alpha.UIOnboardAddFirstResourceClickEvent - 10, // 16: prehog.v1alpha.SubmitEventRequest.ui_onboard_add_first_resource_later_click:type_name -> prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent - 11, // 17: prehog.v1alpha.SubmitEventRequest.ui_onboard_set_credential_submit:type_name -> prehog.v1alpha.UIOnboardSetCredentialSubmitEvent - 12, // 18: prehog.v1alpha.SubmitEventRequest.ui_onboard_register_challenge_submit:type_name -> prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent - 13, // 19: prehog.v1alpha.SubmitEventRequest.ui_recovery_codes_continue_click:type_name -> prehog.v1alpha.UIRecoveryCodesContinueClickEvent - 14, // 20: prehog.v1alpha.SubmitEventRequest.ui_recovery_codes_copy_click:type_name -> prehog.v1alpha.UIRecoveryCodesCopyClickEvent - 15, // 21: prehog.v1alpha.SubmitEventRequest.ui_recovery_codes_print_click:type_name -> prehog.v1alpha.UIRecoveryCodesPrintClickEvent - 19, // 22: prehog.v1alpha.SubmitEventRequest.ui_discover_started_event:type_name -> prehog.v1alpha.UIDiscoverStartedEvent - 20, // 23: prehog.v1alpha.SubmitEventRequest.ui_discover_resource_selection_event:type_name -> prehog.v1alpha.UIDiscoverResourceSelectionEvent - 6, // 24: prehog.v1alpha.SubmitEventRequest.user_certificate_issued_event:type_name -> prehog.v1alpha.UserCertificateIssuedEvent - 5, // 25: prehog.v1alpha.SubmitEventRequest.session_start_v2:type_name -> prehog.v1alpha.SessionStartEvent - 21, // 26: prehog.v1alpha.TeleportReportingService.SubmitEvent:input_type -> prehog.v1alpha.SubmitEventRequest - 23, // 27: prehog.v1alpha.TeleportReportingService.HelloTeleport:input_type -> prehog.v1alpha.HelloTeleportRequest - 22, // 28: prehog.v1alpha.TeleportReportingService.SubmitEvent:output_type -> prehog.v1alpha.SubmitEventResponse - 24, // 29: prehog.v1alpha.TeleportReportingService.HelloTeleport:output_type -> prehog.v1alpha.HelloTeleportResponse - 28, // [28:30] is the sub-list for method output_type - 26, // [26:28] is the sub-list for method input_type - 26, // [26:26] is the sub-list for extension type_name - 26, // [26:26] is the sub-list for extension extendee - 0, // [0:26] is the sub-list for field type_name + 16, // 8: prehog.v1alpha.UIDiscoverDeployServiceEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 9: prehog.v1alpha.UIDiscoverDeployServiceEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 10: prehog.v1alpha.UIDiscoverDeployServiceEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 16, // 11: prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 12: prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 13: prehog.v1alpha.UIDiscoverDatabaseRegisterEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 16, // 14: prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 15: prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 16: prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 16, // 17: prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 18: prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 19: prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 16, // 20: prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 21: prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 22: prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 16, // 23: prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 24: prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 25: prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 16, // 26: prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 27: prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 28: prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 16, // 29: prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 30: prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 31: prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 16, // 32: prehog.v1alpha.UIDiscoverTestConnectionEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 33: prehog.v1alpha.UIDiscoverTestConnectionEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 34: prehog.v1alpha.UIDiscoverTestConnectionEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 16, // 35: prehog.v1alpha.UIDiscoverCompletedEvent.metadata:type_name -> prehog.v1alpha.DiscoverMetadata + 17, // 36: prehog.v1alpha.UIDiscoverCompletedEvent.resource:type_name -> prehog.v1alpha.DiscoverResourceMetadata + 18, // 37: prehog.v1alpha.UIDiscoverCompletedEvent.status:type_name -> prehog.v1alpha.DiscoverStepStatus + 36, // 38: prehog.v1alpha.SubmitEventRequest.timestamp:type_name -> google.protobuf.Timestamp + 2, // 39: prehog.v1alpha.SubmitEventRequest.user_login:type_name -> prehog.v1alpha.UserLoginEvent + 3, // 40: prehog.v1alpha.SubmitEventRequest.sso_create:type_name -> prehog.v1alpha.SSOCreateEvent + 4, // 41: prehog.v1alpha.SubmitEventRequest.resource_create:type_name -> prehog.v1alpha.ResourceCreateEvent + 5, // 42: prehog.v1alpha.SubmitEventRequest.session_start:type_name -> prehog.v1alpha.SessionStartEvent + 7, // 43: prehog.v1alpha.SubmitEventRequest.ui_banner_click:type_name -> prehog.v1alpha.UIBannerClickEvent + 8, // 44: prehog.v1alpha.SubmitEventRequest.ui_onboard_complete_go_to_dashboard_click:type_name -> prehog.v1alpha.UIOnboardCompleteGoToDashboardClickEvent + 9, // 45: prehog.v1alpha.SubmitEventRequest.ui_onboard_add_first_resource_click:type_name -> prehog.v1alpha.UIOnboardAddFirstResourceClickEvent + 10, // 46: prehog.v1alpha.SubmitEventRequest.ui_onboard_add_first_resource_later_click:type_name -> prehog.v1alpha.UIOnboardAddFirstResourceLaterClickEvent + 11, // 47: prehog.v1alpha.SubmitEventRequest.ui_onboard_set_credential_submit:type_name -> prehog.v1alpha.UIOnboardSetCredentialSubmitEvent + 12, // 48: prehog.v1alpha.SubmitEventRequest.ui_onboard_register_challenge_submit:type_name -> prehog.v1alpha.UIOnboardRegisterChallengeSubmitEvent + 13, // 49: prehog.v1alpha.SubmitEventRequest.ui_recovery_codes_continue_click:type_name -> prehog.v1alpha.UIRecoveryCodesContinueClickEvent + 14, // 50: prehog.v1alpha.SubmitEventRequest.ui_recovery_codes_copy_click:type_name -> prehog.v1alpha.UIRecoveryCodesCopyClickEvent + 15, // 51: prehog.v1alpha.SubmitEventRequest.ui_recovery_codes_print_click:type_name -> prehog.v1alpha.UIRecoveryCodesPrintClickEvent + 19, // 52: prehog.v1alpha.SubmitEventRequest.ui_discover_started_event:type_name -> prehog.v1alpha.UIDiscoverStartedEvent + 20, // 53: prehog.v1alpha.SubmitEventRequest.ui_discover_resource_selection_event:type_name -> prehog.v1alpha.UIDiscoverResourceSelectionEvent + 6, // 54: prehog.v1alpha.SubmitEventRequest.user_certificate_issued_event:type_name -> prehog.v1alpha.UserCertificateIssuedEvent + 5, // 55: prehog.v1alpha.SubmitEventRequest.session_start_v2:type_name -> prehog.v1alpha.SessionStartEvent + 21, // 56: prehog.v1alpha.SubmitEventRequest.ui_discover_deploy_service_event:type_name -> prehog.v1alpha.UIDiscoverDeployServiceEvent + 22, // 57: prehog.v1alpha.SubmitEventRequest.ui_discover_database_register_event:type_name -> prehog.v1alpha.UIDiscoverDatabaseRegisterEvent + 23, // 58: prehog.v1alpha.SubmitEventRequest.ui_discover_database_configure_mtls_event:type_name -> prehog.v1alpha.UIDiscoverDatabaseConfigureMTLSEvent + 24, // 59: prehog.v1alpha.SubmitEventRequest.ui_discover_desktop_active_directory_tools_install_event:type_name -> prehog.v1alpha.UIDiscoverDesktopActiveDirectoryToolsInstallEvent + 25, // 60: prehog.v1alpha.SubmitEventRequest.ui_discover_desktop_active_directory_configure_event:type_name -> prehog.v1alpha.UIDiscoverDesktopActiveDirectoryConfigureEvent + 26, // 61: prehog.v1alpha.SubmitEventRequest.ui_discover_auto_discovered_resources_event:type_name -> prehog.v1alpha.UIDiscoverAutoDiscoveredResourcesEvent + 27, // 62: prehog.v1alpha.SubmitEventRequest.ui_discover_database_configure_iam_policy_event:type_name -> prehog.v1alpha.UIDiscoverDatabaseConfigureIAMPolicyEvent + 28, // 63: prehog.v1alpha.SubmitEventRequest.ui_discover_principals_configure_event:type_name -> prehog.v1alpha.UIDiscoverPrincipalsConfigureEvent + 29, // 64: prehog.v1alpha.SubmitEventRequest.ui_discover_test_connection_event:type_name -> prehog.v1alpha.UIDiscoverTestConnectionEvent + 30, // 65: prehog.v1alpha.SubmitEventRequest.ui_discover_completed_event:type_name -> prehog.v1alpha.UIDiscoverCompletedEvent + 31, // 66: prehog.v1alpha.TeleportReportingService.SubmitEvent:input_type -> prehog.v1alpha.SubmitEventRequest + 33, // 67: prehog.v1alpha.TeleportReportingService.HelloTeleport:input_type -> prehog.v1alpha.HelloTeleportRequest + 32, // 68: prehog.v1alpha.TeleportReportingService.SubmitEvent:output_type -> prehog.v1alpha.SubmitEventResponse + 34, // 69: prehog.v1alpha.TeleportReportingService.HelloTeleport:output_type -> prehog.v1alpha.HelloTeleportResponse + 68, // [68:70] is the sub-list for method output_type + 66, // [66:68] is the sub-list for method input_type + 66, // [66:66] is the sub-list for extension type_name + 66, // [66:66] is the sub-list for extension extendee + 0, // [0:66] is the sub-list for field type_name } func init() { file_prehog_v1alpha_teleport_proto_init() } @@ -2303,7 +3389,7 @@ func file_prehog_v1alpha_teleport_proto_init() { } } file_prehog_v1alpha_teleport_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitEventRequest); i { + switch v := v.(*UIDiscoverDeployServiceEvent); i { case 0: return &v.state case 1: @@ -2315,7 +3401,7 @@ func file_prehog_v1alpha_teleport_proto_init() { } } file_prehog_v1alpha_teleport_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitEventResponse); i { + switch v := v.(*UIDiscoverDatabaseRegisterEvent); i { case 0: return &v.state case 1: @@ -2327,7 +3413,7 @@ func file_prehog_v1alpha_teleport_proto_init() { } } file_prehog_v1alpha_teleport_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HelloTeleportRequest); i { + switch v := v.(*UIDiscoverDatabaseConfigureMTLSEvent); i { case 0: return &v.state case 1: @@ -2339,6 +3425,126 @@ func file_prehog_v1alpha_teleport_proto_init() { } } file_prehog_v1alpha_teleport_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UIDiscoverDesktopActiveDirectoryToolsInstallEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UIDiscoverDesktopActiveDirectoryConfigureEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UIDiscoverAutoDiscoveredResourcesEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UIDiscoverDatabaseConfigureIAMPolicyEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UIDiscoverPrincipalsConfigureEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UIDiscoverTestConnectionEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UIDiscoverCompletedEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitEventRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitEventResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HelloTeleportRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_prehog_v1alpha_teleport_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HelloTeleportResponse); i { case 0: return &v.state @@ -2351,7 +3557,7 @@ func file_prehog_v1alpha_teleport_proto_init() { } } } - file_prehog_v1alpha_teleport_proto_msgTypes[19].OneofWrappers = []interface{}{ + file_prehog_v1alpha_teleport_proto_msgTypes[29].OneofWrappers = []interface{}{ (*SubmitEventRequest_UserLogin)(nil), (*SubmitEventRequest_SsoCreate)(nil), (*SubmitEventRequest_ResourceCreate)(nil), @@ -2369,6 +3575,16 @@ func file_prehog_v1alpha_teleport_proto_init() { (*SubmitEventRequest_UiDiscoverResourceSelectionEvent)(nil), (*SubmitEventRequest_UserCertificateIssuedEvent)(nil), (*SubmitEventRequest_SessionStartV2)(nil), + (*SubmitEventRequest_UiDiscoverDeployServiceEvent)(nil), + (*SubmitEventRequest_UiDiscoverDatabaseRegisterEvent)(nil), + (*SubmitEventRequest_UiDiscoverDatabaseConfigureMtlsEvent)(nil), + (*SubmitEventRequest_UiDiscoverDesktopActiveDirectoryToolsInstallEvent)(nil), + (*SubmitEventRequest_UiDiscoverDesktopActiveDirectoryConfigureEvent)(nil), + (*SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent)(nil), + (*SubmitEventRequest_UiDiscoverDatabaseConfigureIamPolicyEvent)(nil), + (*SubmitEventRequest_UiDiscoverPrincipalsConfigureEvent)(nil), + (*SubmitEventRequest_UiDiscoverTestConnectionEvent)(nil), + (*SubmitEventRequest_UiDiscoverCompletedEvent)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -2376,7 +3592,7 @@ func file_prehog_v1alpha_teleport_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_prehog_v1alpha_teleport_proto_rawDesc, NumEnums: 2, - NumMessages: 23, + NumMessages: 33, NumExtensions: 0, NumServices: 1, }, diff --git a/lib/prehog/proto/prehog/v1alpha/teleport.proto b/lib/prehog/proto/prehog/v1alpha/teleport.proto index 35ff8f229b597..0d658b0da1892 100644 --- a/lib/prehog/proto/prehog/v1alpha/teleport.proto +++ b/lib/prehog/proto/prehog/v1alpha/teleport.proto @@ -186,6 +186,85 @@ message UIDiscoverResourceSelectionEvent { DiscoverStepStatus status = 3; } +// UIDiscoverDeployServiceEvent is emitted after the user installs a Teleport Agent. +// For SSH this is the Teleport 'install-node' script. +// +// For Kubernetes this is the teleport-agent helm chart installation. +// +// For Database Access this step is the installation of the teleport 'install-db' script. +// It can be skipped if the cluster already has a Database Service capable of proxying the database. +message UIDiscoverDeployServiceEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverDatabaseRegisterEvent is emitted when a user is finished with the step that registers a database resource. +message UIDiscoverDatabaseRegisterEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverDatabaseConfigureMTLSEvent is emitted when a user is finished with the step that configures mutual TLS for a self-hosted database. +message UIDiscoverDatabaseConfigureMTLSEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverDesktopActiveDirectoryToolsInstallEvent is emitted when the user is finished with the step that asks user to run the install Active Directory tools script for the Desktop flow. +message UIDiscoverDesktopActiveDirectoryToolsInstallEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverDesktopActiveDirectoryConfigureEvent is emitted when the user is finished with the step that asks user to run the Configure Active Directory script for the Desktop flow. +message UIDiscoverDesktopActiveDirectoryConfigureEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverAutoDiscoveredResourcesEvent is emitted when the user is finished with the step that auto discovers resources (waiting until resources show up). +// resources_count field must reflect the latest amount of discovered resources (get the number after user is finished with this step). +message UIDiscoverAutoDiscoveredResourcesEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; + int64 resources_count = 4; +} + +// UIDiscoverDatabaseConfigureIAMPolicyEvent is emitted when a user is finished with the step that configures IAM policy for an RDS database. +message UIDiscoverDatabaseConfigureIAMPolicyEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverPrincipalsConfigureEvent is emitted when a user is finished with the step that allows user to update their principals (setting up access). +message UIDiscoverPrincipalsConfigureEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverTestConnectionEvent emitted on the "Test Connection" screen +// when the user clicked tested connection to their resource. +message UIDiscoverTestConnectionEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + +// UIDiscoverCompletedEvent is emitted when user completes the Discover wizard. +message UIDiscoverCompletedEvent { + DiscoverMetadata metadata = 1; + DiscoverResourceMetadata resource = 2; + DiscoverStepStatus status = 3; +} + message SubmitEventRequest { // anonymized string cluster_name = 1; @@ -221,6 +300,17 @@ message SubmitEventRequest { // db/app/desktop events). The structures are the same, however, so we don't // need a new message type. SessionStartEvent session_start_v2 = 20; + + UIDiscoverDeployServiceEvent ui_discover_deploy_service_event = 21; + UIDiscoverDatabaseRegisterEvent ui_discover_database_register_event = 22; + UIDiscoverDatabaseConfigureMTLSEvent ui_discover_database_configure_mtls_event = 23; + UIDiscoverDesktopActiveDirectoryToolsInstallEvent ui_discover_desktop_active_directory_tools_install_event = 24; + UIDiscoverDesktopActiveDirectoryConfigureEvent ui_discover_desktop_active_directory_configure_event = 25; + UIDiscoverAutoDiscoveredResourcesEvent ui_discover_auto_discovered_resources_event = 26; + UIDiscoverDatabaseConfigureIAMPolicyEvent ui_discover_database_configure_iam_policy_event = 27; + UIDiscoverPrincipalsConfigureEvent ui_discover_principals_configure_event = 28; + UIDiscoverTestConnectionEvent ui_discover_test_connection_event = 29; + UIDiscoverCompletedEvent ui_discover_completed_event = 30; } reserved 8; // UIOnboardGetStartedClickEvent reserved "ui_onboard_get_started_click"; diff --git a/lib/services/usagereporter.go b/lib/services/usagereporter.go index c8dfbf7aa640c..dfd577129bc9a 100644 --- a/lib/services/usagereporter.go +++ b/lib/services/usagereporter.go @@ -33,7 +33,6 @@ import ( "github.com/gravitational/teleport/api/types" "github.com/gravitational/teleport/lib/defaults" "github.com/gravitational/teleport/lib/observability/metrics" - prehogapi "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" prehogv1 "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" prehogclient "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha/prehogv1alphaconnect" "github.com/gravitational/teleport/lib/usagereporter" @@ -263,125 +262,6 @@ func (u *UsageUIRecoveryCodesPrintClick) Anonymize(a utils.Anonymizer) prehogv1. } } -func discoverMetadataToPrehog(u *usageevents.DiscoverMetadata, identityUsername string) *prehogv1.DiscoverMetadata { - return &prehogv1.DiscoverMetadata{ - Id: u.Id, - UserName: identityUsername, - } -} - -func validateDiscoverMetadata(u *prehogv1.DiscoverMetadata) error { - if u == nil { - return trace.BadParameter("metadata is required") - } - - if len(u.Id) == 0 { - return trace.BadParameter("metadata.id is required") - } - - return nil -} - -func discoverResourceToPrehog(u *usageevents.DiscoverResourceMetadata) *prehogv1.DiscoverResourceMetadata { - return &prehogv1.DiscoverResourceMetadata{ - Resource: prehogv1.DiscoverResource(u.Resource), - } -} - -func validateDiscoverResourceMetadata(u *prehogv1.DiscoverResourceMetadata) error { - if u == nil { - return trace.BadParameter("resource is required") - } - - if u.Resource == prehogapi.DiscoverResource_DISCOVER_RESOURCE_UNSPECIFIED { - return trace.BadParameter("invalid resource") - } - - return nil -} - -func discoverStatusToPrehog(u *usageevents.DiscoverStepStatus) *prehogv1.DiscoverStepStatus { - return &prehogv1.DiscoverStepStatus{ - Status: prehogv1.DiscoverStatus(u.Status), - Error: u.Error, - } -} - -func validateDiscoverStatus(u *prehogv1.DiscoverStepStatus) error { - if u == nil { - return trace.BadParameter("status is required") - } - - if u.Status == prehogapi.DiscoverStatus_DISCOVER_STATUS_UNSPECIFIED { - return trace.BadParameter("invalid status.status") - } - - if u.Status == prehogv1.DiscoverStatus_DISCOVER_STATUS_ERROR && len(u.Error) == 0 { - return trace.BadParameter("status.error is required when status.status is ERROR") - } - - return nil -} - -// UsageUIDiscoverStartedEvent is a UI event sent when a user starts the Discover Wizard. -type UsageUIDiscoverStartedEvent prehogv1.UIDiscoverStartedEvent - -func (u *UsageUIDiscoverStartedEvent) CheckAndSetDefaults() error { - if err := validateDiscoverMetadata(u.Metadata); err != nil { - return trace.Wrap(err) - } - if err := validateDiscoverStatus(u.Status); err != nil { - return trace.Wrap(err) - } - - return nil -} - -func (u *UsageUIDiscoverStartedEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverStartedEvent{ - UiDiscoverStartedEvent: &prehogv1.UIDiscoverStartedEvent{ - Metadata: &prehogv1.DiscoverMetadata{ - Id: u.Metadata.Id, - UserName: a.AnonymizeString(u.Metadata.UserName), - }, - Status: u.Status, - }, - }, - } -} - -// UsageUIDiscoverResourceSelectionEvent is a UI event sent when a user starts the Discover Wizard. -type UsageUIDiscoverResourceSelectionEvent prehogv1.UIDiscoverResourceSelectionEvent - -func (u *UsageUIDiscoverResourceSelectionEvent) CheckAndSetDefaults() error { - if err := validateDiscoverMetadata(u.Metadata); err != nil { - return trace.Wrap(err) - } - if err := validateDiscoverResourceMetadata(u.Resource); err != nil { - return trace.Wrap(err) - } - if err := validateDiscoverStatus(u.Status); err != nil { - return trace.Wrap(err) - } - - return nil -} -func (u *UsageUIDiscoverResourceSelectionEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverResourceSelectionEvent{ - UiDiscoverResourceSelectionEvent: &prehogv1.UIDiscoverResourceSelectionEvent{ - Metadata: &prehogv1.DiscoverMetadata{ - Id: u.Metadata.Id, - UserName: a.AnonymizeString(u.Metadata.UserName), - }, - Resource: u.Resource, - Status: u.Status, - }, - }, - } -} - // UsageCertificateIssued is an event emitted when a certificate has been // issued, used to track the duration and restriction. type UsageCertificateIssued prehogv1.UserCertificateIssuedEvent @@ -471,6 +351,117 @@ func ConvertUsageEvent(event *usageevents.UsageEventOneOf, identityUsername stri return nil, trace.Wrap(err) } + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverDeployServiceEvent: + ret := &UsageUIDiscoverDeployServiceEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverDeployServiceEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverDeployServiceEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverDeployServiceEvent.Status), + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverDatabaseRegisterEvent: + ret := &UsageUIDiscoverDatabaseRegisterEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverDatabaseRegisterEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverDatabaseRegisterEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverDatabaseRegisterEvent.Status), + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent: + ret := &UsageUIDiscoverDatabaseConfigureMTLSEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverDatabaseConfigureMtlsEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverDatabaseConfigureMtlsEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverDatabaseConfigureMtlsEvent.Status), + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent: + ret := &UsageUIDiscoverDesktopActiveDirectoryToolsInstallEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverDesktopActiveDirectoryToolsInstallEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverDesktopActiveDirectoryToolsInstallEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverDesktopActiveDirectoryToolsInstallEvent.Status), + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent: + ret := &UsageUIDiscoverDesktopActiveDirectoryConfigureEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverDesktopActiveDirectoryConfigureEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverDesktopActiveDirectoryConfigureEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverDesktopActiveDirectoryConfigureEvent.Status), + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent: + ret := &UsageUIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverAutoDiscoveredResourcesEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverAutoDiscoveredResourcesEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverAutoDiscoveredResourcesEvent.Status), + ResourcesCount: e.UiDiscoverAutoDiscoveredResourcesEvent.ResourcesCount, + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent: + ret := &UsageUIDiscoverDatabaseConfigureIAMPolicyEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverDatabaseConfigureIamPolicyEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverDatabaseConfigureIamPolicyEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverDatabaseConfigureIamPolicyEvent.Status), + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent: + ret := &UsageUIDiscoverPrincipalsConfigureEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverPrincipalsConfigureEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverPrincipalsConfigureEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverPrincipalsConfigureEvent.Status), + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverTestConnectionEvent: + ret := &UsageUIDiscoverTestConnectionEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverTestConnectionEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverTestConnectionEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverTestConnectionEvent.Status), + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + + return ret, nil + case *usageevents.UsageEventOneOf_UiDiscoverCompletedEvent: + ret := &UsageUIDiscoverCompletedEvent{ + Metadata: discoverMetadataToPrehog(e.UiDiscoverCompletedEvent.Metadata, identityUsername), + Resource: discoverResourceToPrehog(e.UiDiscoverCompletedEvent.Resource), + Status: discoverStatusToPrehog(e.UiDiscoverCompletedEvent.Status), + } + if err := ret.CheckAndSetDefaults(); err != nil { + return nil, trace.Wrap(err) + } + return ret, nil default: return nil, trace.BadParameter("invalid usage event type %T", event.GetEvent()) @@ -481,7 +472,7 @@ func ConvertUsageEvent(event *usageevents.UsageEventOneOf, identityUsername stri // anonymized with the cluster name. type TeleportUsageReporter struct { // usageReporter is an actual reporter that batches and sends events - usageReporter *usagereporter.UsageReporter[prehogapi.SubmitEventRequest] + usageReporter *usagereporter.UsageReporter[prehogv1.SubmitEventRequest] // anonymizer is the anonymizer used for filtered audit events. anonymizer utils.Anonymizer // clusterName is the cluster's name, used for anonymization and as an event @@ -504,7 +495,7 @@ func (t *TeleportUsageReporter) Run(ctx context.Context) { t.usageReporter.Run(ctx) } -func NewTeleportUsageReporter(log logrus.FieldLogger, clusterName types.ClusterName, submitter usagereporter.SubmitFunc[prehogapi.SubmitEventRequest]) (*TeleportUsageReporter, error) { +func NewTeleportUsageReporter(log logrus.FieldLogger, clusterName types.ClusterName, submitter usagereporter.SubmitFunc[prehogv1.SubmitEventRequest]) (*TeleportUsageReporter, error) { if log == nil { log = logrus.StandardLogger() } @@ -521,7 +512,7 @@ func NewTeleportUsageReporter(log logrus.FieldLogger, clusterName types.ClusterN clock := clockwork.NewRealClock() - reporter := usagereporter.NewUsageReporter[prehogapi.SubmitEventRequest](&usagereporter.Options[prehogapi.SubmitEventRequest]{ + reporter := usagereporter.NewUsageReporter(&usagereporter.Options[prehogv1.SubmitEventRequest]{ Log: log, Submit: submitter, MinBatchSize: usageReporterMinBatchSize, @@ -541,7 +532,7 @@ func NewTeleportUsageReporter(log logrus.FieldLogger, clusterName types.ClusterN }, nil } -func NewPrehogSubmitter(ctx context.Context, prehogEndpoint string, clientCert *tls.Certificate, caCertPEM []byte) (usagereporter.SubmitFunc[prehogapi.SubmitEventRequest], error) { +func NewPrehogSubmitter(ctx context.Context, prehogEndpoint string, clientCert *tls.Certificate, caCertPEM []byte) (usagereporter.SubmitFunc[prehogv1.SubmitEventRequest], error) { tlsConfig := &tls.Config{ // Self-signed test licenses may not have a proper issuer and won't be // used if just passed in via Certificates, so we'll use this to @@ -579,8 +570,8 @@ func NewPrehogSubmitter(ctx context.Context, prehogEndpoint string, clientCert * client := prehogclient.NewTeleportReportingServiceClient(httpClient, prehogEndpoint) - return func(reporter *usagereporter.UsageReporter[prehogapi.SubmitEventRequest], events []*usagereporter.SubmittedEvent[prehogapi.SubmitEventRequest]) ([]*usagereporter.SubmittedEvent[prehogapi.SubmitEventRequest], error) { - var failed []*usagereporter.SubmittedEvent[prehogapi.SubmitEventRequest] + return func(reporter *usagereporter.UsageReporter[prehogv1.SubmitEventRequest], events []*usagereporter.SubmittedEvent[prehogv1.SubmitEventRequest]) ([]*usagereporter.SubmittedEvent[prehogv1.SubmitEventRequest], error) { + var failed []*usagereporter.SubmittedEvent[prehogv1.SubmitEventRequest] var errors []error // Note: the backend doesn't support batching at the moment. diff --git a/lib/services/usagereporter_discover.go b/lib/services/usagereporter_discover.go new file mode 100644 index 0000000000000..d835bf47803e2 --- /dev/null +++ b/lib/services/usagereporter_discover.go @@ -0,0 +1,389 @@ +/* +Copyright 2023 Gravitational, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package services + +import ( + "github.com/gravitational/trace" + + usageevents "github.com/gravitational/teleport/api/gen/proto/go/usageevents/v1" + prehogv1 "github.com/gravitational/teleport/lib/prehog/gen/prehog/v1alpha" + "github.com/gravitational/teleport/lib/utils" +) + +func discoverMetadataToPrehog(u *usageevents.DiscoverMetadata, identityUsername string) *prehogv1.DiscoverMetadata { + return &prehogv1.DiscoverMetadata{ + Id: u.Id, + UserName: identityUsername, + } +} + +func validateDiscoverMetadata(u *prehogv1.DiscoverMetadata) error { + if u == nil { + return trace.BadParameter("metadata is required") + } + + if len(u.Id) == 0 { + return trace.BadParameter("metadata.id is required") + } + + return nil +} + +func discoverResourceToPrehog(u *usageevents.DiscoverResourceMetadata) *prehogv1.DiscoverResourceMetadata { + return &prehogv1.DiscoverResourceMetadata{ + Resource: prehogv1.DiscoverResource(u.Resource), + } +} + +func validateDiscoverResourceMetadata(u *prehogv1.DiscoverResourceMetadata) error { + if u == nil { + return trace.BadParameter("resource is required") + } + + if u.Resource == prehogv1.DiscoverResource_DISCOVER_RESOURCE_UNSPECIFIED { + return trace.BadParameter("invalid resource") + } + + return nil +} + +func discoverStatusToPrehog(u *usageevents.DiscoverStepStatus) *prehogv1.DiscoverStepStatus { + return &prehogv1.DiscoverStepStatus{ + Status: prehogv1.DiscoverStatus(u.Status), + Error: u.Error, + } +} + +func validateDiscoverStatus(u *prehogv1.DiscoverStepStatus) error { + if u == nil { + return trace.BadParameter("status is required") + } + + if u.Status == prehogv1.DiscoverStatus_DISCOVER_STATUS_UNSPECIFIED { + return trace.BadParameter("invalid status.status") + } + + if u.Status == prehogv1.DiscoverStatus_DISCOVER_STATUS_ERROR && len(u.Error) == 0 { + return trace.BadParameter("status.error is required when status.status is ERROR") + } + + return nil +} + +func validateDiscoverBaseEventFields(md *prehogv1.DiscoverMetadata, res *prehogv1.DiscoverResourceMetadata, st *prehogv1.DiscoverStepStatus) error { + if err := validateDiscoverMetadata(md); err != nil { + return trace.Wrap(err) + } + + if err := validateDiscoverResourceMetadata(res); err != nil { + return trace.Wrap(err) + } + + if err := validateDiscoverStatus(st); err != nil { + return trace.Wrap(err) + } + + return nil +} + +// UsageUIDiscoverStartedEvent is a UI event sent when a user starts the Discover Wizard. +type UsageUIDiscoverStartedEvent prehogv1.UIDiscoverStartedEvent + +func (u *UsageUIDiscoverStartedEvent) CheckAndSetDefaults() error { + if err := validateDiscoverMetadata(u.Metadata); err != nil { + return trace.Wrap(err) + } + if err := validateDiscoverStatus(u.Status); err != nil { + return trace.Wrap(err) + } + + return nil +} + +func (u *UsageUIDiscoverStartedEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverStartedEvent{ + UiDiscoverStartedEvent: &prehogv1.UIDiscoverStartedEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverResourceSelectionEvent is a UI event sent when a user starts the Discover Wizard. +type UsageUIDiscoverResourceSelectionEvent prehogv1.UIDiscoverResourceSelectionEvent + +func (u *UsageUIDiscoverResourceSelectionEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverResourceSelectionEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverResourceSelectionEvent{ + UiDiscoverResourceSelectionEvent: &prehogv1.UIDiscoverResourceSelectionEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverDeployServiceEvent is emitted after the user installs a Teleport Agent. +// For SSH this is the Teleport 'install-node' script. +// +// For Kubernetes this is the teleport-agent helm chart installation. +// +// For Database Access this step is the installation of the teleport 'install-db' script. +// It can be skipped if the cluster already has a Database Service capable of proxying the database. +type UsageUIDiscoverDeployServiceEvent prehogv1.UIDiscoverDeployServiceEvent + +func (u *UsageUIDiscoverDeployServiceEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverDeployServiceEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverDeployServiceEvent{ + UiDiscoverDeployServiceEvent: &prehogv1.UIDiscoverDeployServiceEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverDatabaseRegisterEvent is emitted when a user registers a database resource +// and goes to the next step. +type UsageUIDiscoverDatabaseRegisterEvent prehogv1.UIDiscoverDatabaseRegisterEvent + +func (u *UsageUIDiscoverDatabaseRegisterEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverDatabaseRegisterEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverDatabaseRegisterEvent{ + UiDiscoverDatabaseRegisterEvent: &prehogv1.UIDiscoverDatabaseRegisterEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverDatabaseConfigureMTLSEvent is emitted when a user configures mutual TLS for self-hosted database +// and goes to the next step. +type UsageUIDiscoverDatabaseConfigureMTLSEvent prehogv1.UIDiscoverDatabaseConfigureMTLSEvent + +func (u *UsageUIDiscoverDatabaseConfigureMTLSEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverDatabaseConfigureMTLSEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverDatabaseConfigureMtlsEvent{ + UiDiscoverDatabaseConfigureMtlsEvent: &prehogv1.UIDiscoverDatabaseConfigureMTLSEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverDesktopActiveDirectoryToolsInstallEvent is emitted when the user is asked to run the install Active Directory tools script. +// This happens on the Desktop flow. +type UsageUIDiscoverDesktopActiveDirectoryToolsInstallEvent prehogv1.UIDiscoverDesktopActiveDirectoryToolsInstallEvent + +func (u *UsageUIDiscoverDesktopActiveDirectoryToolsInstallEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverDesktopActiveDirectoryToolsInstallEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverDesktopActiveDirectoryToolsInstallEvent{ + UiDiscoverDesktopActiveDirectoryToolsInstallEvent: &prehogv1.UIDiscoverDesktopActiveDirectoryToolsInstallEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverDesktopActiveDirectoryConfigureEvent is emitted when the user is asked to run the Configure Active Directory script. +// This happens on the Desktop flow. +type UsageUIDiscoverDesktopActiveDirectoryConfigureEvent prehogv1.UIDiscoverDesktopActiveDirectoryConfigureEvent + +func (u *UsageUIDiscoverDesktopActiveDirectoryConfigureEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverDesktopActiveDirectoryConfigureEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverDesktopActiveDirectoryConfigureEvent{ + UiDiscoverDesktopActiveDirectoryConfigureEvent: &prehogv1.UIDiscoverDesktopActiveDirectoryConfigureEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverAutoDiscoveredResourcesEvent is emitted when the user is presented with the list of auto discovered resources. +// resources_count field must contain the number of discovered resources when the user leaves the screen. +type UsageUIDiscoverAutoDiscoveredResourcesEvent prehogv1.UIDiscoverAutoDiscoveredResourcesEvent + +func (u *UsageUIDiscoverAutoDiscoveredResourcesEvent) CheckAndSetDefaults() error { + if u.ResourcesCount < 0 { + return trace.BadParameter("resources count must be 0 or more") + } + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverAutoDiscoveredResourcesEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &prehogv1.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + ResourcesCount: u.ResourcesCount, + }, + }, + } +} + +// UsageUIDiscoverDatabaseConfigureIAMPolicyEvent is emitted when a user configured IAM for RDS database +// and proceeded to the next step. +type UsageUIDiscoverDatabaseConfigureIAMPolicyEvent prehogv1.UIDiscoverDatabaseConfigureIAMPolicyEvent + +func (u *UsageUIDiscoverDatabaseConfigureIAMPolicyEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverDatabaseConfigureIAMPolicyEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverDatabaseConfigureIamPolicyEvent{ + UiDiscoverDatabaseConfigureIamPolicyEvent: &prehogv1.UIDiscoverDatabaseConfigureIAMPolicyEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverPrincipalsConfigureEvent emitted on "Setup Access" screen when user has updated their principals +// and proceeded to the next step. +type UsageUIDiscoverPrincipalsConfigureEvent prehogv1.UIDiscoverPrincipalsConfigureEvent + +func (u *UsageUIDiscoverPrincipalsConfigureEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverPrincipalsConfigureEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverPrincipalsConfigureEvent{ + UiDiscoverPrincipalsConfigureEvent: &prehogv1.UIDiscoverPrincipalsConfigureEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverTestConnectionEvent emitted on the "Test Connection" screen +// when the user clicked tested connection to their resource. +type UsageUIDiscoverTestConnectionEvent prehogv1.UIDiscoverTestConnectionEvent + +func (u *UsageUIDiscoverTestConnectionEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverTestConnectionEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverTestConnectionEvent{ + UiDiscoverTestConnectionEvent: &prehogv1.UIDiscoverTestConnectionEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} + +// UsageUIDiscoverCompletedEvent is emitted when user completes the Discover wizard. +type UsageUIDiscoverCompletedEvent prehogv1.UIDiscoverCompletedEvent + +func (u *UsageUIDiscoverCompletedEvent) CheckAndSetDefaults() error { + return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) +} + +func (u *UsageUIDiscoverCompletedEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { + return prehogv1.SubmitEventRequest{ + Event: &prehogv1.SubmitEventRequest_UiDiscoverCompletedEvent{ + UiDiscoverCompletedEvent: &prehogv1.UIDiscoverCompletedEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: u.Metadata.Id, + UserName: a.AnonymizeString(u.Metadata.UserName), + }, + Resource: u.Resource, + Status: u.Status, + }, + }, + } +} diff --git a/lib/services/usagereporter_test.go b/lib/services/usagereporter_test.go index 8ccd1b9d818b8..226faa489fa74 100644 --- a/lib/services/usagereporter_test.go +++ b/lib/services/usagereporter_test.go @@ -122,6 +122,69 @@ func TestConvertUsageEvent(t *testing.T) { require.True(tt, trace.IsBadParameter(err), "exepcted trace.IsBadParameter error, got: %v", err) }, }, + { + name: "when discover has resources count and its values is zero: no error", + event: &usageevents.UsageEventOneOf{Event: &usageevents.UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &usageevents.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &usageevents.DiscoverMetadata{Id: "someid"}, + Resource: &usageevents.DiscoverResourceMetadata{Resource: usageevents.DiscoverResource_DISCOVER_RESOURCE_SERVER}, + Status: &usageevents.DiscoverStepStatus{Status: usageevents.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, + ResourcesCount: 0, + }, + }}, + identityUsername: "myuser", + errCheck: require.NoError, + expected: &prehogv1.SubmitEventRequest{Event: &prehogv1.SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &prehogv1.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: "someid", + UserName: expectedAnonymizedUserString, + }, + Resource: &prehogv1.DiscoverResourceMetadata{Resource: prehogv1.DiscoverResource_DISCOVER_RESOURCE_SERVER}, + Status: &prehogv1.DiscoverStepStatus{Status: prehogv1.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, + ResourcesCount: 0, + }, + }}, + }, + { + name: "when discover has resources count and its values is positive: no error", + event: &usageevents.UsageEventOneOf{Event: &usageevents.UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &usageevents.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &usageevents.DiscoverMetadata{Id: "someid"}, + Resource: &usageevents.DiscoverResourceMetadata{Resource: usageevents.DiscoverResource_DISCOVER_RESOURCE_SERVER}, + Status: &usageevents.DiscoverStepStatus{Status: usageevents.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, + ResourcesCount: 2, + }, + }}, + identityUsername: "myuser", + errCheck: require.NoError, + expected: &prehogv1.SubmitEventRequest{Event: &prehogv1.SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &prehogv1.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &prehogv1.DiscoverMetadata{ + Id: "someid", + UserName: expectedAnonymizedUserString, + }, + Resource: &prehogv1.DiscoverResourceMetadata{Resource: prehogv1.DiscoverResource_DISCOVER_RESOURCE_SERVER}, + Status: &prehogv1.DiscoverStepStatus{Status: prehogv1.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, + ResourcesCount: 2, + }, + }}, + }, + { + name: "when discover has resources count and its values is negative: bad parameter error", + event: &usageevents.UsageEventOneOf{Event: &usageevents.UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &usageevents.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &usageevents.DiscoverMetadata{Id: "someid"}, + Resource: &usageevents.DiscoverResourceMetadata{Resource: usageevents.DiscoverResource_DISCOVER_RESOURCE_SERVER}, + Status: &usageevents.DiscoverStepStatus{Status: usageevents.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, + ResourcesCount: -2, + }, + }}, + identityUsername: "myuser", + errCheck: func(tt require.TestingT, err error, i ...interface{}) { + require.True(tt, trace.IsBadParameter(err), "exepcted trace.IsBadParameter error, got: %v", err) + }, + }, } { t.Run(tt.name, func(t *testing.T) { tt := tt diff --git a/lib/web/userevent.go b/lib/web/userevent.go index c3dcdc57bc47f..b5fddff8ed258 100644 --- a/lib/web/userevent.go +++ b/lib/web/userevent.go @@ -42,14 +42,34 @@ const ( recoveryCodesPrintClickEvent = "tp.ui.recoveryCodesPrint.click" completeGoToDashboardClickEvent = "tp.ui.onboard.completeGoToDashboard.click" - uiDiscoverStartedEvent = "tp.ui.discover.started.click" - uiDiscoverResourceSelectionEvent = "tp.ui.discover.resourceSelection.click" + uiDiscoverStartedEvent = "tp.ui.discover.started" + uiDiscoverResourceSelectionEvent = "tp.ui.discover.resourceSelection" + uiDiscoverDeployServiceEvent = "tp.ui.discover.deployService" + uiDiscoverDatabaseRegisterEvent = "tp.ui.discover.database.register" + uiDiscoverDatabaseConfigureMTLSEvent = "tp.ui.discover.database.configure.mtls" + uiDiscoverDatabaseConfigureIAMPolicyEvent = "tp.ui.discover.database.configure.iampolicy" + uiDiscoverDesktopActiveDirectoryToolsInstallEvent = "tp.ui.discover.desktop.activeDirectory.tools.install" + uiDiscoverDesktopActiveDirectoryConfigureEvent = "tp.ui.discover.desktop.activeDirectory.configure" + uiDiscoverAutoDiscoveredResourcesEvent = "tp.ui.discover.autoDiscoveredResources" + uiDiscoverPrincipalsConfigureEvent = "tp.ui.discover.principals.configure" + uiDiscoverTestConnectionEvent = "tp.ui.discover.testConnection" + uiDiscoverCompletedEvent = "tp.ui.discover.completed" ) // Events that require extra metadata. var eventsWithDataRequired = []string{ uiDiscoverStartedEvent, uiDiscoverResourceSelectionEvent, + uiDiscoverDeployServiceEvent, + uiDiscoverDatabaseRegisterEvent, + uiDiscoverDatabaseConfigureMTLSEvent, + uiDiscoverDatabaseConfigureIAMPolicyEvent, + uiDiscoverDesktopActiveDirectoryToolsInstallEvent, + uiDiscoverDesktopActiveDirectoryConfigureEvent, + uiDiscoverAutoDiscoveredResourcesEvent, + uiDiscoverPrincipalsConfigureEvent, + uiDiscoverTestConnectionEvent, + uiDiscoverCompletedEvent, } // createPreUserEventRequest contains the event and properties associated with a user event diff --git a/lib/web/userevent_discover.go b/lib/web/userevent_discover.go index ad16148aff378..d667682a7a54e 100644 --- a/lib/web/userevent_discover.go +++ b/lib/web/userevent_discover.go @@ -30,6 +30,10 @@ type DiscoverEventData struct { // Example: "DISCOVER_RESOURCE_SERVER" Resource string `json:"resource,omitempty"` + // AutoDiscoverResourcesCount is the number of auto-discovered resources in the Auto Discovering resources screen. + // This value is only considered for the 'tp.ui.discover.autoDiscoveredResources'. + AutoDiscoverResourcesCount int `json:"autoDiscoverResourcesCount,omitempty"` + // StepStatus is the Wizard step status result. // Its possible values are the usageevents.DiscoverStepStatus proto enum values. // Example: "DISCOVER_STATUS_SUCCESS" @@ -86,6 +90,98 @@ func (d *DiscoverEventData) ToUsageEvent(eventName string) (*v1.UsageEventOneOf, Status: status, }, }}, nil + + case uiDiscoverDeployServiceEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverDeployServiceEvent{ + UiDiscoverDeployServiceEvent: &v1.UIDiscoverDeployServiceEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + }, + }}, nil + + case uiDiscoverDatabaseRegisterEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverDatabaseRegisterEvent{ + UiDiscoverDatabaseRegisterEvent: &v1.UIDiscoverDatabaseRegisterEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + }, + }}, nil + + case uiDiscoverDatabaseConfigureMTLSEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverDatabaseConfigureMtlsEvent{ + UiDiscoverDatabaseConfigureMtlsEvent: &v1.UIDiscoverDatabaseConfigureMTLSEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + }, + }}, nil + + case uiDiscoverDesktopActiveDirectoryToolsInstallEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverDesktopActiveDirectoryToolsInstallEvent{ + UiDiscoverDesktopActiveDirectoryToolsInstallEvent: &v1.UIDiscoverDesktopActiveDirectoryToolsInstallEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + }, + }}, nil + + case uiDiscoverDesktopActiveDirectoryConfigureEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverDesktopActiveDirectoryConfigureEvent{ + UiDiscoverDesktopActiveDirectoryConfigureEvent: &v1.UIDiscoverDesktopActiveDirectoryConfigureEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + }, + }}, nil + + case uiDiscoverAutoDiscoveredResourcesEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &v1.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + ResourcesCount: int64(d.AutoDiscoverResourcesCount), + }, + }}, nil + + case uiDiscoverDatabaseConfigureIAMPolicyEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverDatabaseConfigureIamPolicyEvent{ + UiDiscoverDatabaseConfigureIamPolicyEvent: &v1.UIDiscoverDatabaseConfigureIAMPolicyEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + }, + }}, nil + + case uiDiscoverPrincipalsConfigureEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverPrincipalsConfigureEvent{ + UiDiscoverPrincipalsConfigureEvent: &v1.UIDiscoverPrincipalsConfigureEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + }, + }}, nil + + case uiDiscoverTestConnectionEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverTestConnectionEvent{ + UiDiscoverTestConnectionEvent: &v1.UIDiscoverTestConnectionEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + }, + }}, nil + + case uiDiscoverCompletedEvent: + return &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverCompletedEvent{ + UiDiscoverCompletedEvent: &v1.UIDiscoverCompletedEvent{ + Metadata: metadata, + Resource: resource, + Status: status, + }, + }}, nil + } return nil, trace.BadParameter("invalid event name %q", eventName) diff --git a/lib/web/usageevent_discover_test.go b/lib/web/userevent_discover_test.go similarity index 80% rename from lib/web/usageevent_discover_test.go rename to lib/web/userevent_discover_test.go index 2e9dc885cbcd2..5c9b0090bb887 100644 --- a/lib/web/usageevent_discover_test.go +++ b/lib/web/userevent_discover_test.go @@ -93,6 +93,27 @@ func TestDiscoverEventDataToUsageEvent(t *testing.T) { StepStatusError: "Failed to fetch available resources", }, }, + { + name: uiDiscoverAutoDiscoveredResourcesEvent + "/success", + event: uiDiscoverAutoDiscoveredResourcesEvent, + errCheck: require.NoError, + req: DiscoverEventData{ + ID: "someid", + Resource: "DISCOVER_RESOURCE_SERVER", + StepStatus: "DISCOVER_STATUS_SUCCESS", + AutoDiscoverResourcesCount: 3, + }, + expected: &v1.UsageEventOneOf{Event: &v1.UsageEventOneOf_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &v1.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &v1.DiscoverMetadata{Id: "someid"}, + Resource: &v1.DiscoverResourceMetadata{Resource: v1.DiscoverResource_DISCOVER_RESOURCE_SERVER}, + Status: &v1.DiscoverStepStatus{ + Status: v1.DiscoverStatus_DISCOVER_STATUS_SUCCESS, + }, + ResourcesCount: 3, + }, + }}, + }, } { t.Run(tt.name, func(t *testing.T) { tt := tt