api

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: ISC Imports: 34 Imported by: 14

Documentation

Overview

Package api is a generated Protocol Buffers and gRPC package.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	DataPointService_PublishDataPoints_FullMethodName = "/thingspect.api.DataPointService/PublishDataPoints"
	DataPointService_ListDataPoints_FullMethodName    = "/thingspect.api.DataPointService/ListDataPoints"
	DataPointService_LatestDataPoints_FullMethodName  = "/thingspect.api.DataPointService/LatestDataPoints"
)
View Source
const (
	DeviceService_CreateDevice_FullMethodName        = "/thingspect.api.DeviceService/CreateDevice"
	DeviceService_CreateDeviceLoRaWAN_FullMethodName = "/thingspect.api.DeviceService/CreateDeviceLoRaWAN"
	DeviceService_GetDevice_FullMethodName           = "/thingspect.api.DeviceService/GetDevice"
	DeviceService_UpdateDevice_FullMethodName        = "/thingspect.api.DeviceService/UpdateDevice"
	DeviceService_DeleteDeviceLoRaWAN_FullMethodName = "/thingspect.api.DeviceService/DeleteDeviceLoRaWAN"
	DeviceService_DeleteDevice_FullMethodName        = "/thingspect.api.DeviceService/DeleteDevice"
	DeviceService_ListDevices_FullMethodName         = "/thingspect.api.DeviceService/ListDevices"
)
View Source
const (
	EventService_ListEvents_FullMethodName   = "/thingspect.api.EventService/ListEvents"
	EventService_LatestEvents_FullMethodName = "/thingspect.api.EventService/LatestEvents"
)
View Source
const (
	OrgService_CreateOrg_FullMethodName = "/thingspect.api.OrgService/CreateOrg"
	OrgService_GetOrg_FullMethodName    = "/thingspect.api.OrgService/GetOrg"
	OrgService_UpdateOrg_FullMethodName = "/thingspect.api.OrgService/UpdateOrg"
	OrgService_DeleteOrg_FullMethodName = "/thingspect.api.OrgService/DeleteOrg"
	OrgService_ListOrgs_FullMethodName  = "/thingspect.api.OrgService/ListOrgs"
)
View Source
const (
	RuleAlarmService_CreateRule_FullMethodName  = "/thingspect.api.RuleAlarmService/CreateRule"
	RuleAlarmService_CreateAlarm_FullMethodName = "/thingspect.api.RuleAlarmService/CreateAlarm"
	RuleAlarmService_GetRule_FullMethodName     = "/thingspect.api.RuleAlarmService/GetRule"
	RuleAlarmService_GetAlarm_FullMethodName    = "/thingspect.api.RuleAlarmService/GetAlarm"
	RuleAlarmService_UpdateRule_FullMethodName  = "/thingspect.api.RuleAlarmService/UpdateRule"
	RuleAlarmService_UpdateAlarm_FullMethodName = "/thingspect.api.RuleAlarmService/UpdateAlarm"
	RuleAlarmService_DeleteRule_FullMethodName  = "/thingspect.api.RuleAlarmService/DeleteRule"
	RuleAlarmService_DeleteAlarm_FullMethodName = "/thingspect.api.RuleAlarmService/DeleteAlarm"
	RuleAlarmService_ListRules_FullMethodName   = "/thingspect.api.RuleAlarmService/ListRules"
	RuleAlarmService_ListAlarms_FullMethodName  = "/thingspect.api.RuleAlarmService/ListAlarms"
	RuleAlarmService_TestRule_FullMethodName    = "/thingspect.api.RuleAlarmService/TestRule"
	RuleAlarmService_TestAlarm_FullMethodName   = "/thingspect.api.RuleAlarmService/TestAlarm"
)
View Source
const (
	SessionService_Login_FullMethodName     = "/thingspect.api.SessionService/Login"
	SessionService_CreateKey_FullMethodName = "/thingspect.api.SessionService/CreateKey"
	SessionService_DeleteKey_FullMethodName = "/thingspect.api.SessionService/DeleteKey"
	SessionService_ListKeys_FullMethodName  = "/thingspect.api.SessionService/ListKeys"
)
View Source
const (
	UserService_CreateUser_FullMethodName         = "/thingspect.api.UserService/CreateUser"
	UserService_GetUser_FullMethodName            = "/thingspect.api.UserService/GetUser"
	UserService_UpdateUser_FullMethodName         = "/thingspect.api.UserService/UpdateUser"
	UserService_UpdateUserPassword_FullMethodName = "/thingspect.api.UserService/UpdateUserPassword"
	UserService_DeleteUser_FullMethodName         = "/thingspect.api.UserService/DeleteUser"
	UserService_ListUsers_FullMethodName          = "/thingspect.api.UserService/ListUsers"
)
View Source
const (
	AlertService_ListAlerts_FullMethodName = "/thingspect.api.AlertService/ListAlerts"
)
View Source
const (
	TagService_ListTags_FullMethodName = "/thingspect.api.TagService/ListTags"
)

Variables

View Source
var (
	AlertStatus_name = map[int32]string{
		0: "ALERT_STATUS_UNSPECIFIED",
		1: "SENT",
		2: "ERROR",
	}
	AlertStatus_value = map[string]int32{
		"ALERT_STATUS_UNSPECIFIED": 0,
		"SENT":                     1,
		"ERROR":                    2,
	}
)

Enum value maps for AlertStatus.

View Source
var (
	Decoder_name = map[int32]string{
		0: "RAW",
		1: "GATEWAY",
		2: "RADIO_BRIDGE_DOOR_V1",
		3: "RADIO_BRIDGE_DOOR_V2",
		4: "GLOBALSAT_CO2",
		5: "GLOBALSAT_CO",
		6: "GLOBALSAT_PM25",
		7: "TEKTELIC_HOME",
	}
	Decoder_value = map[string]int32{
		"RAW":                  0,
		"GATEWAY":              1,
		"RADIO_BRIDGE_DOOR_V1": 2,
		"RADIO_BRIDGE_DOOR_V2": 3,
		"GLOBALSAT_CO2":        4,
		"GLOBALSAT_CO":         5,
		"GLOBALSAT_PM25":       6,
		"TEKTELIC_HOME":        7,
	}
)

Enum value maps for Decoder.

View Source
var (
	Role_name = map[int32]string{
		0:  "ROLE_UNSPECIFIED",
		3:  "CONTACT",
		6:  "VIEWER",
		7:  "PUBLISHER",
		9:  "BUILDER",
		12: "ADMIN",
		15: "SYS_ADMIN",
	}
	Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"CONTACT":          3,
		"VIEWER":           6,
		"PUBLISHER":        7,
		"BUILDER":          9,
		"ADMIN":            12,
		"SYS_ADMIN":        15,
	}
)

Enum value maps for Role.

View Source
var (
	AlarmType_name = map[int32]string{
		0: "ALARM_TYPE_UNSPECIFIED",
		1: "APP",
		2: "SMS",
		3: "EMAIL",
	}
	AlarmType_value = map[string]int32{
		"ALARM_TYPE_UNSPECIFIED": 0,
		"APP":                    1,
		"SMS":                    2,
		"EMAIL":                  3,
	}
)

Enum value maps for AlarmType.

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		3: "ACTIVE",
		6: "DISABLED",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"ACTIVE":             3,
		"DISABLED":           6,
	}
)

Enum value maps for Status.

View Source
var AlertService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thingspect.api.AlertService",
	HandlerType: (*AlertServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAlerts",
			Handler:    _AlertService_ListAlerts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/thingspect_alert.proto",
}

AlertService_ServiceDesc is the grpc.ServiceDesc for AlertService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var DataPointService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thingspect.api.DataPointService",
	HandlerType: (*DataPointServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PublishDataPoints",
			Handler:    _DataPointService_PublishDataPoints_Handler,
		},
		{
			MethodName: "ListDataPoints",
			Handler:    _DataPointService_ListDataPoints_Handler,
		},
		{
			MethodName: "LatestDataPoints",
			Handler:    _DataPointService_LatestDataPoints_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/thingspect_datapoint.proto",
}

DataPointService_ServiceDesc is the grpc.ServiceDesc for DataPointService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var DeviceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thingspect.api.DeviceService",
	HandlerType: (*DeviceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateDevice",
			Handler:    _DeviceService_CreateDevice_Handler,
		},
		{
			MethodName: "CreateDeviceLoRaWAN",
			Handler:    _DeviceService_CreateDeviceLoRaWAN_Handler,
		},
		{
			MethodName: "GetDevice",
			Handler:    _DeviceService_GetDevice_Handler,
		},
		{
			MethodName: "UpdateDevice",
			Handler:    _DeviceService_UpdateDevice_Handler,
		},
		{
			MethodName: "DeleteDeviceLoRaWAN",
			Handler:    _DeviceService_DeleteDeviceLoRaWAN_Handler,
		},
		{
			MethodName: "DeleteDevice",
			Handler:    _DeviceService_DeleteDevice_Handler,
		},
		{
			MethodName: "ListDevices",
			Handler:    _DeviceService_ListDevices_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/thingspect_device.proto",
}

DeviceService_ServiceDesc is the grpc.ServiceDesc for DeviceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thingspect.api.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListEvents",
			Handler:    _EventService_ListEvents_Handler,
		},
		{
			MethodName: "LatestEvents",
			Handler:    _EventService_LatestEvents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/thingspect_event.proto",
}

EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_thingspect_alert_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_datapoint_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_device_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_event_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_org_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_role_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_rule_alarm_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_session_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_status_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_tag_proto protoreflect.FileDescriptor
View Source
var File_api_thingspect_user_proto protoreflect.FileDescriptor
View Source
var OrgService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thingspect.api.OrgService",
	HandlerType: (*OrgServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrg",
			Handler:    _OrgService_CreateOrg_Handler,
		},
		{
			MethodName: "GetOrg",
			Handler:    _OrgService_GetOrg_Handler,
		},
		{
			MethodName: "UpdateOrg",
			Handler:    _OrgService_UpdateOrg_Handler,
		},
		{
			MethodName: "DeleteOrg",
			Handler:    _OrgService_DeleteOrg_Handler,
		},
		{
			MethodName: "ListOrgs",
			Handler:    _OrgService_ListOrgs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/thingspect_org.proto",
}

OrgService_ServiceDesc is the grpc.ServiceDesc for OrgService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var RuleAlarmService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thingspect.api.RuleAlarmService",
	HandlerType: (*RuleAlarmServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRule",
			Handler:    _RuleAlarmService_CreateRule_Handler,
		},
		{
			MethodName: "CreateAlarm",
			Handler:    _RuleAlarmService_CreateAlarm_Handler,
		},
		{
			MethodName: "GetRule",
			Handler:    _RuleAlarmService_GetRule_Handler,
		},
		{
			MethodName: "GetAlarm",
			Handler:    _RuleAlarmService_GetAlarm_Handler,
		},
		{
			MethodName: "UpdateRule",
			Handler:    _RuleAlarmService_UpdateRule_Handler,
		},
		{
			MethodName: "UpdateAlarm",
			Handler:    _RuleAlarmService_UpdateAlarm_Handler,
		},
		{
			MethodName: "DeleteRule",
			Handler:    _RuleAlarmService_DeleteRule_Handler,
		},
		{
			MethodName: "DeleteAlarm",
			Handler:    _RuleAlarmService_DeleteAlarm_Handler,
		},
		{
			MethodName: "ListRules",
			Handler:    _RuleAlarmService_ListRules_Handler,
		},
		{
			MethodName: "ListAlarms",
			Handler:    _RuleAlarmService_ListAlarms_Handler,
		},
		{
			MethodName: "TestRule",
			Handler:    _RuleAlarmService_TestRule_Handler,
		},
		{
			MethodName: "TestAlarm",
			Handler:    _RuleAlarmService_TestAlarm_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/thingspect_rule_alarm.proto",
}

RuleAlarmService_ServiceDesc is the grpc.ServiceDesc for RuleAlarmService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var SessionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thingspect.api.SessionService",
	HandlerType: (*SessionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _SessionService_Login_Handler,
		},
		{
			MethodName: "CreateKey",
			Handler:    _SessionService_CreateKey_Handler,
		},
		{
			MethodName: "DeleteKey",
			Handler:    _SessionService_DeleteKey_Handler,
		},
		{
			MethodName: "ListKeys",
			Handler:    _SessionService_ListKeys_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/thingspect_session.proto",
}

SessionService_ServiceDesc is the grpc.ServiceDesc for SessionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var TagService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thingspect.api.TagService",
	HandlerType: (*TagServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListTags",
			Handler:    _TagService_ListTags_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/thingspect_tag.proto",
}

TagService_ServiceDesc is the grpc.ServiceDesc for TagService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thingspect.api.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "UpdateUserPassword",
			Handler:    _UserService_UpdateUserPassword_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/thingspect_user.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAlertServiceHandler

func RegisterAlertServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAlertServiceHandler registers the http handlers for service AlertService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAlertServiceHandlerClient

func RegisterAlertServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertServiceClient) error

RegisterAlertServiceHandlerClient registers the http handlers for service AlertService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AlertServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AlertServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AlertServiceClient" to call the correct interceptors.

func RegisterAlertServiceHandlerFromEndpoint

func RegisterAlertServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAlertServiceHandlerFromEndpoint is same as RegisterAlertServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAlertServiceHandlerServer

func RegisterAlertServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AlertServiceServer) error

RegisterAlertServiceHandlerServer registers the http handlers for service AlertService to "mux". UnaryRPC :call AlertServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAlertServiceHandlerFromEndpoint instead.

func RegisterAlertServiceServer

func RegisterAlertServiceServer(s grpc.ServiceRegistrar, srv AlertServiceServer)

func RegisterDataPointServiceHandler

func RegisterDataPointServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDataPointServiceHandler registers the http handlers for service DataPointService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDataPointServiceHandlerClient

func RegisterDataPointServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DataPointServiceClient) error

RegisterDataPointServiceHandlerClient registers the http handlers for service DataPointService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DataPointServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DataPointServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DataPointServiceClient" to call the correct interceptors.

func RegisterDataPointServiceHandlerFromEndpoint

func RegisterDataPointServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterDataPointServiceHandlerFromEndpoint is same as RegisterDataPointServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterDataPointServiceHandlerServer

func RegisterDataPointServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DataPointServiceServer) error

RegisterDataPointServiceHandlerServer registers the http handlers for service DataPointService to "mux". UnaryRPC :call DataPointServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDataPointServiceHandlerFromEndpoint instead.

func RegisterDataPointServiceServer

func RegisterDataPointServiceServer(s grpc.ServiceRegistrar, srv DataPointServiceServer)

func RegisterDeviceServiceHandler

func RegisterDeviceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDeviceServiceHandler registers the http handlers for service DeviceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDeviceServiceHandlerClient

func RegisterDeviceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DeviceServiceClient) error

RegisterDeviceServiceHandlerClient registers the http handlers for service DeviceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DeviceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DeviceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DeviceServiceClient" to call the correct interceptors.

func RegisterDeviceServiceHandlerFromEndpoint

func RegisterDeviceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterDeviceServiceHandlerFromEndpoint is same as RegisterDeviceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterDeviceServiceHandlerServer

func RegisterDeviceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DeviceServiceServer) error

RegisterDeviceServiceHandlerServer registers the http handlers for service DeviceService to "mux". UnaryRPC :call DeviceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDeviceServiceHandlerFromEndpoint instead.

func RegisterDeviceServiceServer

func RegisterDeviceServiceServer(s grpc.ServiceRegistrar, srv DeviceServiceServer)

func RegisterEventServiceHandler

func RegisterEventServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEventServiceHandler registers the http handlers for service EventService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEventServiceHandlerClient

func RegisterEventServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventServiceClient) error

RegisterEventServiceHandlerClient registers the http handlers for service EventService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EventServiceClient" to call the correct interceptors.

func RegisterEventServiceHandlerFromEndpoint

func RegisterEventServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEventServiceHandlerFromEndpoint is same as RegisterEventServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEventServiceHandlerServer

func RegisterEventServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventServiceServer) error

RegisterEventServiceHandlerServer registers the http handlers for service EventService to "mux". UnaryRPC :call EventServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventServiceHandlerFromEndpoint instead.

func RegisterEventServiceServer

func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)

func RegisterOrgServiceHandler

func RegisterOrgServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterOrgServiceHandler registers the http handlers for service OrgService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterOrgServiceHandlerClient

func RegisterOrgServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrgServiceClient) error

RegisterOrgServiceHandlerClient registers the http handlers for service OrgService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OrgServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OrgServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OrgServiceClient" to call the correct interceptors.

func RegisterOrgServiceHandlerFromEndpoint

func RegisterOrgServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterOrgServiceHandlerFromEndpoint is same as RegisterOrgServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterOrgServiceHandlerServer

func RegisterOrgServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OrgServiceServer) error

RegisterOrgServiceHandlerServer registers the http handlers for service OrgService to "mux". UnaryRPC :call OrgServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOrgServiceHandlerFromEndpoint instead.

func RegisterOrgServiceServer

func RegisterOrgServiceServer(s grpc.ServiceRegistrar, srv OrgServiceServer)

func RegisterRuleAlarmServiceHandler

func RegisterRuleAlarmServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterRuleAlarmServiceHandler registers the http handlers for service RuleAlarmService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterRuleAlarmServiceHandlerClient

func RegisterRuleAlarmServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RuleAlarmServiceClient) error

RegisterRuleAlarmServiceHandlerClient registers the http handlers for service RuleAlarmService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RuleAlarmServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RuleAlarmServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RuleAlarmServiceClient" to call the correct interceptors.

func RegisterRuleAlarmServiceHandlerFromEndpoint

func RegisterRuleAlarmServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterRuleAlarmServiceHandlerFromEndpoint is same as RegisterRuleAlarmServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterRuleAlarmServiceHandlerServer

func RegisterRuleAlarmServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RuleAlarmServiceServer) error

RegisterRuleAlarmServiceHandlerServer registers the http handlers for service RuleAlarmService to "mux". UnaryRPC :call RuleAlarmServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRuleAlarmServiceHandlerFromEndpoint instead.

func RegisterRuleAlarmServiceServer

func RegisterRuleAlarmServiceServer(s grpc.ServiceRegistrar, srv RuleAlarmServiceServer)

func RegisterSessionServiceHandler

func RegisterSessionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSessionServiceHandler registers the http handlers for service SessionService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSessionServiceHandlerClient

func RegisterSessionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SessionServiceClient) error

RegisterSessionServiceHandlerClient registers the http handlers for service SessionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SessionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SessionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SessionServiceClient" to call the correct interceptors.

func RegisterSessionServiceHandlerFromEndpoint

func RegisterSessionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSessionServiceHandlerFromEndpoint is same as RegisterSessionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSessionServiceHandlerServer

func RegisterSessionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SessionServiceServer) error

RegisterSessionServiceHandlerServer registers the http handlers for service SessionService to "mux". UnaryRPC :call SessionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSessionServiceHandlerFromEndpoint instead.

func RegisterSessionServiceServer

func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)

func RegisterTagServiceHandler

func RegisterTagServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTagServiceHandler registers the http handlers for service TagService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTagServiceHandlerClient

func RegisterTagServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TagServiceClient) error

RegisterTagServiceHandlerClient registers the http handlers for service TagService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TagServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TagServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TagServiceClient" to call the correct interceptors.

func RegisterTagServiceHandlerFromEndpoint

func RegisterTagServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTagServiceHandlerFromEndpoint is same as RegisterTagServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTagServiceHandlerServer

func RegisterTagServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TagServiceServer) error

RegisterTagServiceHandlerServer registers the http handlers for service TagService to "mux". UnaryRPC :call TagServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTagServiceHandlerFromEndpoint instead.

func RegisterTagServiceServer

func RegisterTagServiceServer(s grpc.ServiceRegistrar, srv TagServiceServer)

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type Alarm

type Alarm struct {

	// Alarm ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Rule ID (UUID).
	RuleId string `protobuf:"bytes,3,opt,name=rule_id,json=ruleID,proto3" json:"rule_id,omitempty"`
	// Alarm name.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Alarm status.
	Status Status `protobuf:"varint,5,opt,name=status,proto3,enum=thingspect.api.Status" json:"status,omitempty"`
	// Alarm type.
	Type AlarmType `protobuf:"varint,6,opt,name=type,proto3,enum=thingspect.api.AlarmType" json:"type,omitempty"`
	// User tags to whom alerts are sent.
	UserTags []string `protobuf:"bytes,7,rep,name=user_tags,json=userTags,proto3" json:"user_tags,omitempty"`
	// Alarm subject template. Templates generate HTML-safe output using the [Go template engine](https://golang.org/pkg/html/template/).
	SubjectTemplate string `protobuf:"bytes,8,opt,name=subject_template,json=subjectTemplate,proto3" json:"subject_template,omitempty"`
	// Alarm body template. Templates generate HTML-safe output using the [Go template engine](https://golang.org/pkg/html/template/).
	BodyTemplate string `protobuf:"bytes,9,opt,name=body_template,json=bodyTemplate,proto3" json:"body_template,omitempty"`
	// Alarm repeat interval, in minutes, per device. Duration after which a duplicate event will cause an alert to be sent. Minimum is 1 minute, maximum is 14 days.
	RepeatInterval int32 `protobuf:"varint,10,opt,name=repeat_interval,json=repeatInterval,proto3" json:"repeat_interval,omitempty"`
	// Alarm creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Alarm modification timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Alarm represents an alarm as stored in the database.

func (*Alarm) Descriptor deprecated

func (*Alarm) Descriptor() ([]byte, []int)

Deprecated: Use Alarm.ProtoReflect.Descriptor instead.

func (*Alarm) GetBodyTemplate

func (x *Alarm) GetBodyTemplate() string

func (*Alarm) GetCreatedAt

func (x *Alarm) GetCreatedAt() *timestamppb.Timestamp

func (*Alarm) GetId

func (x *Alarm) GetId() string

func (*Alarm) GetName

func (x *Alarm) GetName() string

func (*Alarm) GetOrgId

func (x *Alarm) GetOrgId() string

func (*Alarm) GetRepeatInterval

func (x *Alarm) GetRepeatInterval() int32

func (*Alarm) GetRuleId

func (x *Alarm) GetRuleId() string

func (*Alarm) GetStatus

func (x *Alarm) GetStatus() Status

func (*Alarm) GetSubjectTemplate

func (x *Alarm) GetSubjectTemplate() string

func (*Alarm) GetType

func (x *Alarm) GetType() AlarmType

func (*Alarm) GetUpdatedAt

func (x *Alarm) GetUpdatedAt() *timestamppb.Timestamp

func (*Alarm) GetUserTags

func (x *Alarm) GetUserTags() []string

func (*Alarm) ProtoMessage

func (*Alarm) ProtoMessage()

func (*Alarm) ProtoReflect

func (x *Alarm) ProtoReflect() protoreflect.Message

func (*Alarm) Reset

func (x *Alarm) Reset()

func (*Alarm) String

func (x *Alarm) String() string

func (*Alarm) Validate

func (m *Alarm) Validate() error

Validate checks the field values on Alarm with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Alarm) ValidateAll

func (m *Alarm) ValidateAll() error

ValidateAll checks the field values on Alarm with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlarmMultiError, or nil if none found.

type AlarmMultiError

type AlarmMultiError []error

AlarmMultiError is an error wrapping multiple validation errors returned by Alarm.ValidateAll() if the designated constraints aren't met.

func (AlarmMultiError) AllErrors

func (m AlarmMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AlarmMultiError) Error

func (m AlarmMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AlarmType

type AlarmType int32

AlarmType represents the type of an alarm.

const (
	// Alarm type is not specified.
	AlarmType_ALARM_TYPE_UNSPECIFIED AlarmType = 0
	// Push notification via mobile application.
	AlarmType_APP AlarmType = 1
	// SMS notification.
	AlarmType_SMS AlarmType = 2
	// Email notification.
	AlarmType_EMAIL AlarmType = 3
)

func (AlarmType) Descriptor

func (AlarmType) Descriptor() protoreflect.EnumDescriptor

func (AlarmType) Enum

func (x AlarmType) Enum() *AlarmType

func (AlarmType) EnumDescriptor deprecated

func (AlarmType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AlarmType.Descriptor instead.

func (AlarmType) Number

func (x AlarmType) Number() protoreflect.EnumNumber

func (AlarmType) String

func (x AlarmType) String() string

func (AlarmType) Type

type AlarmValidationError

type AlarmValidationError struct {
	// contains filtered or unexported fields
}

AlarmValidationError is the validation error returned by Alarm.Validate if the designated constraints aren't met.

func (AlarmValidationError) Cause

func (e AlarmValidationError) Cause() error

Cause function returns cause value.

func (AlarmValidationError) Error

func (e AlarmValidationError) Error() string

Error satisfies the builtin error interface

func (AlarmValidationError) ErrorName

func (e AlarmValidationError) ErrorName() string

ErrorName returns error name.

func (AlarmValidationError) Field

func (e AlarmValidationError) Field() string

Field function returns field value.

func (AlarmValidationError) Key

func (e AlarmValidationError) Key() bool

Key function returns key value.

func (AlarmValidationError) Reason

func (e AlarmValidationError) Reason() string

Reason function returns reason value.

type Alert

type Alert struct {

	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Device unique ID.
	UniqId string `protobuf:"bytes,2,opt,name=uniq_id,json=uniqID,proto3" json:"uniq_id,omitempty"`
	// Alarm ID (UUID).
	AlarmId string `protobuf:"bytes,3,opt,name=alarm_id,json=alarmID,proto3" json:"alarm_id,omitempty"`
	// User ID (UUID).
	UserId string `protobuf:"bytes,4,opt,name=user_id,json=userID,proto3" json:"user_id,omitempty"`
	// Alert status.
	Status AlertStatus `protobuf:"varint,5,opt,name=status,proto3,enum=thingspect.api.AlertStatus" json:"status,omitempty"`
	// Error message. This field will be empty if no error was encountered.
	Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
	// Alert creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Trace ID (UUID).
	TraceId string `protobuf:"bytes,8,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// contains filtered or unexported fields
}

Alert represents an alert as stored in the database.

func (*Alert) Descriptor deprecated

func (*Alert) Descriptor() ([]byte, []int)

Deprecated: Use Alert.ProtoReflect.Descriptor instead.

func (*Alert) GetAlarmId

func (x *Alert) GetAlarmId() string

func (*Alert) GetCreatedAt

func (x *Alert) GetCreatedAt() *timestamppb.Timestamp

func (*Alert) GetError

func (x *Alert) GetError() string

func (*Alert) GetOrgId

func (x *Alert) GetOrgId() string

func (*Alert) GetStatus

func (x *Alert) GetStatus() AlertStatus

func (*Alert) GetTraceId

func (x *Alert) GetTraceId() string

func (*Alert) GetUniqId

func (x *Alert) GetUniqId() string

func (*Alert) GetUserId

func (x *Alert) GetUserId() string

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) ProtoReflect

func (x *Alert) ProtoReflect() protoreflect.Message

func (*Alert) Reset

func (x *Alert) Reset()

func (*Alert) String

func (x *Alert) String() string

func (*Alert) Validate

func (m *Alert) Validate() error

Validate checks the field values on Alert with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Alert) ValidateAll

func (m *Alert) ValidateAll() error

ValidateAll checks the field values on Alert with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlertMultiError, or nil if none found.

type AlertMultiError

type AlertMultiError []error

AlertMultiError is an error wrapping multiple validation errors returned by Alert.ValidateAll() if the designated constraints aren't met.

func (AlertMultiError) AllErrors

func (m AlertMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AlertMultiError) Error

func (m AlertMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AlertServiceClient

type AlertServiceClient interface {
	// List all alerts for a device, alarm, and/or user in an [end, start) time range, in descending timestamp order. Alerts are generated by alarms via parent rules.
	ListAlerts(ctx context.Context, in *ListAlertsRequest, opts ...grpc.CallOption) (*ListAlertsResponse, error)
}

AlertServiceClient is the client API for AlertService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AlertServiceServer

type AlertServiceServer interface {
	// List all alerts for a device, alarm, and/or user in an [end, start) time range, in descending timestamp order. Alerts are generated by alarms via parent rules.
	ListAlerts(context.Context, *ListAlertsRequest) (*ListAlertsResponse, error)
	// contains filtered or unexported methods
}

AlertServiceServer is the server API for AlertService service. All implementations must embed UnimplementedAlertServiceServer for forward compatibility

type AlertStatus

type AlertStatus int32

AlertStatus represents the status of an alert.

const (
	// Alert status is not specified.
	AlertStatus_ALERT_STATUS_UNSPECIFIED AlertStatus = 0
	// Alert was successfully sent.
	AlertStatus_SENT AlertStatus = 1
	// Alert encountered an error.
	AlertStatus_ERROR AlertStatus = 2
)

func (AlertStatus) Descriptor

func (AlertStatus) Enum

func (x AlertStatus) Enum() *AlertStatus

func (AlertStatus) EnumDescriptor deprecated

func (AlertStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use AlertStatus.Descriptor instead.

func (AlertStatus) Number

func (x AlertStatus) Number() protoreflect.EnumNumber

func (AlertStatus) String

func (x AlertStatus) String() string

func (AlertStatus) Type

type AlertValidationError

type AlertValidationError struct {
	// contains filtered or unexported fields
}

AlertValidationError is the validation error returned by Alert.Validate if the designated constraints aren't met.

func (AlertValidationError) Cause

func (e AlertValidationError) Cause() error

Cause function returns cause value.

func (AlertValidationError) Error

func (e AlertValidationError) Error() string

Error satisfies the builtin error interface

func (AlertValidationError) ErrorName

func (e AlertValidationError) ErrorName() string

ErrorName returns error name.

func (AlertValidationError) Field

func (e AlertValidationError) Field() string

Field function returns field value.

func (AlertValidationError) Key

func (e AlertValidationError) Key() bool

Key function returns key value.

func (AlertValidationError) Reason

func (e AlertValidationError) Reason() string

Reason function returns reason value.

type CreateAlarmRequest

type CreateAlarmRequest struct {

	// Alarm message to create.
	Alarm *Alarm `protobuf:"bytes,1,opt,name=alarm,proto3" json:"alarm,omitempty"`
	// contains filtered or unexported fields
}

CreateAlarmRequest is sent to create an alarm.

func (*CreateAlarmRequest) Descriptor deprecated

func (*CreateAlarmRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAlarmRequest.ProtoReflect.Descriptor instead.

func (*CreateAlarmRequest) GetAlarm

func (x *CreateAlarmRequest) GetAlarm() *Alarm

func (*CreateAlarmRequest) ProtoMessage

func (*CreateAlarmRequest) ProtoMessage()

func (*CreateAlarmRequest) ProtoReflect

func (x *CreateAlarmRequest) ProtoReflect() protoreflect.Message

func (*CreateAlarmRequest) Reset

func (x *CreateAlarmRequest) Reset()

func (*CreateAlarmRequest) String

func (x *CreateAlarmRequest) String() string

func (*CreateAlarmRequest) Validate

func (m *CreateAlarmRequest) Validate() error

Validate checks the field values on CreateAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateAlarmRequest) ValidateAll

func (m *CreateAlarmRequest) ValidateAll() error

ValidateAll checks the field values on CreateAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAlarmRequestMultiError, or nil if none found.

type CreateAlarmRequestMultiError

type CreateAlarmRequestMultiError []error

CreateAlarmRequestMultiError is an error wrapping multiple validation errors returned by CreateAlarmRequest.ValidateAll() if the designated constraints aren't met.

func (CreateAlarmRequestMultiError) AllErrors

func (m CreateAlarmRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAlarmRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateAlarmRequestValidationError

type CreateAlarmRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateAlarmRequestValidationError is the validation error returned by CreateAlarmRequest.Validate if the designated constraints aren't met.

func (CreateAlarmRequestValidationError) Cause

Cause function returns cause value.

func (CreateAlarmRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAlarmRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAlarmRequestValidationError) Field

Field function returns field value.

func (CreateAlarmRequestValidationError) Key

Key function returns key value.

func (CreateAlarmRequestValidationError) Reason

Reason function returns reason value.

type CreateDeviceLoRaWANRequest

type CreateDeviceLoRaWANRequest struct {

	// Device ID (UUID) to add LoRaWAN configuration.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// LoRaWAN configuration type.
	//
	// Types that are assignable to TypeOneof:
	//
	//	*CreateDeviceLoRaWANRequest_GatewayLorawanType
	//	*CreateDeviceLoRaWANRequest_DeviceLorawanType
	TypeOneof isCreateDeviceLoRaWANRequest_TypeOneof `protobuf_oneof:"type_oneof"`
	// contains filtered or unexported fields
}

CreateDeviceLoRaWANRequest is sent to add LoRaWAN configuration to a device.

func (*CreateDeviceLoRaWANRequest) Descriptor deprecated

func (*CreateDeviceLoRaWANRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateDeviceLoRaWANRequest.ProtoReflect.Descriptor instead.

func (*CreateDeviceLoRaWANRequest) GetDeviceLorawanType

func (*CreateDeviceLoRaWANRequest) GetGatewayLorawanType

func (*CreateDeviceLoRaWANRequest) GetId

func (*CreateDeviceLoRaWANRequest) GetTypeOneof

func (m *CreateDeviceLoRaWANRequest) GetTypeOneof() isCreateDeviceLoRaWANRequest_TypeOneof

func (*CreateDeviceLoRaWANRequest) ProtoMessage

func (*CreateDeviceLoRaWANRequest) ProtoMessage()

func (*CreateDeviceLoRaWANRequest) ProtoReflect

func (*CreateDeviceLoRaWANRequest) Reset

func (x *CreateDeviceLoRaWANRequest) Reset()

func (*CreateDeviceLoRaWANRequest) String

func (x *CreateDeviceLoRaWANRequest) String() string

func (*CreateDeviceLoRaWANRequest) Validate

func (m *CreateDeviceLoRaWANRequest) Validate() error

Validate checks the field values on CreateDeviceLoRaWANRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateDeviceLoRaWANRequest) ValidateAll

func (m *CreateDeviceLoRaWANRequest) ValidateAll() error

ValidateAll checks the field values on CreateDeviceLoRaWANRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateDeviceLoRaWANRequestMultiError, or nil if none found.

type CreateDeviceLoRaWANRequestMultiError

type CreateDeviceLoRaWANRequestMultiError []error

CreateDeviceLoRaWANRequestMultiError is an error wrapping multiple validation errors returned by CreateDeviceLoRaWANRequest.ValidateAll() if the designated constraints aren't met.

func (CreateDeviceLoRaWANRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateDeviceLoRaWANRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateDeviceLoRaWANRequestValidationError

type CreateDeviceLoRaWANRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateDeviceLoRaWANRequestValidationError is the validation error returned by CreateDeviceLoRaWANRequest.Validate if the designated constraints aren't met.

func (CreateDeviceLoRaWANRequestValidationError) Cause

Cause function returns cause value.

func (CreateDeviceLoRaWANRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDeviceLoRaWANRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDeviceLoRaWANRequestValidationError) Field

Field function returns field value.

func (CreateDeviceLoRaWANRequestValidationError) Key

Key function returns key value.

func (CreateDeviceLoRaWANRequestValidationError) Reason

Reason function returns reason value.

type CreateDeviceLoRaWANRequest_DeviceLoRaWANType

type CreateDeviceLoRaWANRequest_DeviceLoRaWANType struct {

	// Device LoRaWAN 1.0.x application key.
	AppKey string `protobuf:"bytes,1,opt,name=app_key,json=appKey,proto3" json:"app_key,omitempty"`
	// contains filtered or unexported fields
}

DeviceLoRaWANType is sent to add LoRaWAN device configuration.

func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Descriptor deprecated

Deprecated: Use CreateDeviceLoRaWANRequest_DeviceLoRaWANType.ProtoReflect.Descriptor instead.

func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) GetAppKey

func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ProtoMessage

func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ProtoReflect

func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Reset

func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) String

func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Validate

Validate checks the field values on CreateDeviceLoRaWANRequest_DeviceLoRaWANType with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ValidateAll

ValidateAll checks the field values on CreateDeviceLoRaWANRequest_DeviceLoRaWANType with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError, or nil if none found.

type CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError

type CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError []error

CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError is an error wrapping multiple validation errors returned by CreateDeviceLoRaWANRequest_DeviceLoRaWANType.ValidateAll() if the designated constraints aren't met.

func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError

type CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError struct {
	// contains filtered or unexported fields
}

CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError is the validation error returned by CreateDeviceLoRaWANRequest_DeviceLoRaWANType.Validate if the designated constraints aren't met.

func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Cause

Cause function returns cause value.

func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Error

Error satisfies the builtin error interface

func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) ErrorName

ErrorName returns error name.

func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Field

Field function returns field value.

func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Key

Key function returns key value.

func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Reason

Reason function returns reason value.

type CreateDeviceLoRaWANRequest_DeviceLorawanType

type CreateDeviceLoRaWANRequest_DeviceLorawanType struct {
	// Device LoRaWAN configuration type.
	DeviceLorawanType *CreateDeviceLoRaWANRequest_DeviceLoRaWANType `protobuf:"bytes,3,opt,name=device_lorawan_type,json=deviceLoRaWANType,proto3,oneof"`
}

type CreateDeviceLoRaWANRequest_GatewayLoRaWANType

type CreateDeviceLoRaWANRequest_GatewayLoRaWANType struct {
	// contains filtered or unexported fields
}

GatewayLoRaWANType is sent to add LoRaWAN gateway configuration.

func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Descriptor deprecated

Deprecated: Use CreateDeviceLoRaWANRequest_GatewayLoRaWANType.ProtoReflect.Descriptor instead.

func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ProtoMessage

func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ProtoReflect

func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Reset

func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) String

func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Validate

Validate checks the field values on CreateDeviceLoRaWANRequest_GatewayLoRaWANType with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ValidateAll

ValidateAll checks the field values on CreateDeviceLoRaWANRequest_GatewayLoRaWANType with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError, or nil if none found.

type CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError

type CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError []error

CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError is an error wrapping multiple validation errors returned by CreateDeviceLoRaWANRequest_GatewayLoRaWANType.ValidateAll() if the designated constraints aren't met.

func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError

type CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError struct {
	// contains filtered or unexported fields
}

CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError is the validation error returned by CreateDeviceLoRaWANRequest_GatewayLoRaWANType.Validate if the designated constraints aren't met.

func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Cause

Cause function returns cause value.

func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Error

Error satisfies the builtin error interface

func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) ErrorName

ErrorName returns error name.

func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Field

Field function returns field value.

func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Key

Key function returns key value.

func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Reason

Reason function returns reason value.

type CreateDeviceLoRaWANRequest_GatewayLorawanType

type CreateDeviceLoRaWANRequest_GatewayLorawanType struct {
	// Gateway LoRaWAN configuration type.
	GatewayLorawanType *CreateDeviceLoRaWANRequest_GatewayLoRaWANType `protobuf:"bytes,2,opt,name=gateway_lorawan_type,json=gatewayLoRaWANType,proto3,oneof"`
}

type CreateDeviceRequest

type CreateDeviceRequest struct {

	// Device message to create.
	Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

CreateDeviceRequest is sent to create a device.

func (*CreateDeviceRequest) Descriptor deprecated

func (*CreateDeviceRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateDeviceRequest.ProtoReflect.Descriptor instead.

func (*CreateDeviceRequest) GetDevice

func (x *CreateDeviceRequest) GetDevice() *Device

func (*CreateDeviceRequest) ProtoMessage

func (*CreateDeviceRequest) ProtoMessage()

func (*CreateDeviceRequest) ProtoReflect

func (x *CreateDeviceRequest) ProtoReflect() protoreflect.Message

func (*CreateDeviceRequest) Reset

func (x *CreateDeviceRequest) Reset()

func (*CreateDeviceRequest) String

func (x *CreateDeviceRequest) String() string

func (*CreateDeviceRequest) Validate

func (m *CreateDeviceRequest) Validate() error

Validate checks the field values on CreateDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateDeviceRequest) ValidateAll

func (m *CreateDeviceRequest) ValidateAll() error

ValidateAll checks the field values on CreateDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateDeviceRequestMultiError, or nil if none found.

type CreateDeviceRequestMultiError

type CreateDeviceRequestMultiError []error

CreateDeviceRequestMultiError is an error wrapping multiple validation errors returned by CreateDeviceRequest.ValidateAll() if the designated constraints aren't met.

func (CreateDeviceRequestMultiError) AllErrors

func (m CreateDeviceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDeviceRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateDeviceRequestValidationError

type CreateDeviceRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateDeviceRequestValidationError is the validation error returned by CreateDeviceRequest.Validate if the designated constraints aren't met.

func (CreateDeviceRequestValidationError) Cause

Cause function returns cause value.

func (CreateDeviceRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDeviceRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDeviceRequestValidationError) Field

Field function returns field value.

func (CreateDeviceRequestValidationError) Key

Key function returns key value.

func (CreateDeviceRequestValidationError) Reason

Reason function returns reason value.

type CreateKeyRequest

type CreateKeyRequest struct {

	// Key message to create.
	Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

CreateKeyRequest is sent to create an API key.

func (*CreateKeyRequest) Descriptor deprecated

func (*CreateKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateKeyRequest.ProtoReflect.Descriptor instead.

func (*CreateKeyRequest) GetKey

func (x *CreateKeyRequest) GetKey() *Key

func (*CreateKeyRequest) ProtoMessage

func (*CreateKeyRequest) ProtoMessage()

func (*CreateKeyRequest) ProtoReflect

func (x *CreateKeyRequest) ProtoReflect() protoreflect.Message

func (*CreateKeyRequest) Reset

func (x *CreateKeyRequest) Reset()

func (*CreateKeyRequest) String

func (x *CreateKeyRequest) String() string

func (*CreateKeyRequest) Validate

func (m *CreateKeyRequest) Validate() error

Validate checks the field values on CreateKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateKeyRequest) ValidateAll

func (m *CreateKeyRequest) ValidateAll() error

ValidateAll checks the field values on CreateKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateKeyRequestMultiError, or nil if none found.

type CreateKeyRequestMultiError

type CreateKeyRequestMultiError []error

CreateKeyRequestMultiError is an error wrapping multiple validation errors returned by CreateKeyRequest.ValidateAll() if the designated constraints aren't met.

func (CreateKeyRequestMultiError) AllErrors

func (m CreateKeyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateKeyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateKeyRequestValidationError

type CreateKeyRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateKeyRequestValidationError is the validation error returned by CreateKeyRequest.Validate if the designated constraints aren't met.

func (CreateKeyRequestValidationError) Cause

Cause function returns cause value.

func (CreateKeyRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateKeyRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateKeyRequestValidationError) Field

Field function returns field value.

func (CreateKeyRequestValidationError) Key

Key function returns key value.

func (CreateKeyRequestValidationError) Reason

Reason function returns reason value.

type CreateKeyResponse

type CreateKeyResponse struct {

	// Key message created.
	Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Token to be used for subsequent calls. Only returned once, upon key creation.
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

CreateKeyResponse is sent in response to an API key creation.

func (*CreateKeyResponse) Descriptor deprecated

func (*CreateKeyResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateKeyResponse.ProtoReflect.Descriptor instead.

func (*CreateKeyResponse) GetKey

func (x *CreateKeyResponse) GetKey() *Key

func (*CreateKeyResponse) GetToken

func (x *CreateKeyResponse) GetToken() string

func (*CreateKeyResponse) ProtoMessage

func (*CreateKeyResponse) ProtoMessage()

func (*CreateKeyResponse) ProtoReflect

func (x *CreateKeyResponse) ProtoReflect() protoreflect.Message

func (*CreateKeyResponse) Reset

func (x *CreateKeyResponse) Reset()

func (*CreateKeyResponse) String

func (x *CreateKeyResponse) String() string

func (*CreateKeyResponse) Validate

func (m *CreateKeyResponse) Validate() error

Validate checks the field values on CreateKeyResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateKeyResponse) ValidateAll

func (m *CreateKeyResponse) ValidateAll() error

ValidateAll checks the field values on CreateKeyResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateKeyResponseMultiError, or nil if none found.

type CreateKeyResponseMultiError

type CreateKeyResponseMultiError []error

CreateKeyResponseMultiError is an error wrapping multiple validation errors returned by CreateKeyResponse.ValidateAll() if the designated constraints aren't met.

func (CreateKeyResponseMultiError) AllErrors

func (m CreateKeyResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateKeyResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateKeyResponseValidationError

type CreateKeyResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateKeyResponseValidationError is the validation error returned by CreateKeyResponse.Validate if the designated constraints aren't met.

func (CreateKeyResponseValidationError) Cause

Cause function returns cause value.

func (CreateKeyResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateKeyResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateKeyResponseValidationError) Field

Field function returns field value.

func (CreateKeyResponseValidationError) Key

Key function returns key value.

func (CreateKeyResponseValidationError) Reason

Reason function returns reason value.

type CreateOrgRequest

type CreateOrgRequest struct {

	// Org message to create.
	Org *Org `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
	// contains filtered or unexported fields
}

CreateOrgRequest is sent to create an organization.

func (*CreateOrgRequest) Descriptor deprecated

func (*CreateOrgRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrgRequest.ProtoReflect.Descriptor instead.

func (*CreateOrgRequest) GetOrg

func (x *CreateOrgRequest) GetOrg() *Org

func (*CreateOrgRequest) ProtoMessage

func (*CreateOrgRequest) ProtoMessage()

func (*CreateOrgRequest) ProtoReflect

func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message

func (*CreateOrgRequest) Reset

func (x *CreateOrgRequest) Reset()

func (*CreateOrgRequest) String

func (x *CreateOrgRequest) String() string

func (*CreateOrgRequest) Validate

func (m *CreateOrgRequest) Validate() error

Validate checks the field values on CreateOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateOrgRequest) ValidateAll

func (m *CreateOrgRequest) ValidateAll() error

ValidateAll checks the field values on CreateOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrgRequestMultiError, or nil if none found.

type CreateOrgRequestMultiError

type CreateOrgRequestMultiError []error

CreateOrgRequestMultiError is an error wrapping multiple validation errors returned by CreateOrgRequest.ValidateAll() if the designated constraints aren't met.

func (CreateOrgRequestMultiError) AllErrors

func (m CreateOrgRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateOrgRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrgRequestValidationError

type CreateOrgRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateOrgRequestValidationError is the validation error returned by CreateOrgRequest.Validate if the designated constraints aren't met.

func (CreateOrgRequestValidationError) Cause

Cause function returns cause value.

func (CreateOrgRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateOrgRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateOrgRequestValidationError) Field

Field function returns field value.

func (CreateOrgRequestValidationError) Key

Key function returns key value.

func (CreateOrgRequestValidationError) Reason

Reason function returns reason value.

type CreateRuleRequest

type CreateRuleRequest struct {

	// Rule message to create.
	Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	// contains filtered or unexported fields
}

CreateRuleRequest is sent to create a rule.

func (*CreateRuleRequest) Descriptor deprecated

func (*CreateRuleRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRuleRequest.ProtoReflect.Descriptor instead.

func (*CreateRuleRequest) GetRule

func (x *CreateRuleRequest) GetRule() *Rule

func (*CreateRuleRequest) ProtoMessage

func (*CreateRuleRequest) ProtoMessage()

func (*CreateRuleRequest) ProtoReflect

func (x *CreateRuleRequest) ProtoReflect() protoreflect.Message

func (*CreateRuleRequest) Reset

func (x *CreateRuleRequest) Reset()

func (*CreateRuleRequest) String

func (x *CreateRuleRequest) String() string

func (*CreateRuleRequest) Validate

func (m *CreateRuleRequest) Validate() error

Validate checks the field values on CreateRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateRuleRequest) ValidateAll

func (m *CreateRuleRequest) ValidateAll() error

ValidateAll checks the field values on CreateRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateRuleRequestMultiError, or nil if none found.

type CreateRuleRequestMultiError

type CreateRuleRequestMultiError []error

CreateRuleRequestMultiError is an error wrapping multiple validation errors returned by CreateRuleRequest.ValidateAll() if the designated constraints aren't met.

func (CreateRuleRequestMultiError) AllErrors

func (m CreateRuleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRuleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateRuleRequestValidationError

type CreateRuleRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateRuleRequestValidationError is the validation error returned by CreateRuleRequest.Validate if the designated constraints aren't met.

func (CreateRuleRequestValidationError) Cause

Cause function returns cause value.

func (CreateRuleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRuleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRuleRequestValidationError) Field

Field function returns field value.

func (CreateRuleRequestValidationError) Key

Key function returns key value.

func (CreateRuleRequestValidationError) Reason

Reason function returns reason value.

type CreateUserRequest

type CreateUserRequest struct {

	// User message to create.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

CreateUserRequest is sent to create a user.

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetUser

func (x *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserRequest) ValidateAll

func (m *CreateUserRequest) ValidateAll() error

ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserRequestValidationError

type CreateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type DataPointServiceClient

type DataPointServiceClient interface {
	// Publish data points via the API. Data points are generated by devices.
	PublishDataPoints(ctx context.Context, in *PublishDataPointsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List all data points for a device in an [end, start) time range, in descending timestamp order. Data points are generated by devices.
	ListDataPoints(ctx context.Context, in *ListDataPointsRequest, opts ...grpc.CallOption) (*ListDataPointsResponse, error)
	// List the latest data point for each of a device's attributes in a [now, start) time range. Data points are generated by devices.
	LatestDataPoints(ctx context.Context, in *LatestDataPointsRequest, opts ...grpc.CallOption) (*LatestDataPointsResponse, error)
}

DataPointServiceClient is the client API for DataPointService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DataPointServiceServer

type DataPointServiceServer interface {
	// Publish data points via the API. Data points are generated by devices.
	PublishDataPoints(context.Context, *PublishDataPointsRequest) (*emptypb.Empty, error)
	// List all data points for a device in an [end, start) time range, in descending timestamp order. Data points are generated by devices.
	ListDataPoints(context.Context, *ListDataPointsRequest) (*ListDataPointsResponse, error)
	// List the latest data point for each of a device's attributes in a [now, start) time range. Data points are generated by devices.
	LatestDataPoints(context.Context, *LatestDataPointsRequest) (*LatestDataPointsResponse, error)
	// contains filtered or unexported methods
}

DataPointServiceServer is the server API for DataPointService service. All implementations must embed UnimplementedDataPointServiceServer for forward compatibility

type Decoder

type Decoder int32

Decoder represents the data payload decoder for a device.

const (
	// Payloads will be passed through without decoding. Appropriate for devices that do not use decoders (MQTT, API, etc.).
	Decoder_RAW Decoder = 0
	// LoRaWAN gateway. Acts as a pass-through in the absence of device data payloads.
	Decoder_GATEWAY Decoder = 1
	// Radio Bridge Door/Window sensor with V1 firmware.
	Decoder_RADIO_BRIDGE_DOOR_V1 Decoder = 2
	// Radio Bridge Door/Window sensor with V2 firmware.
	Decoder_RADIO_BRIDGE_DOOR_V2 Decoder = 3
	// GlobalSat LS-111P CO2 sensor.
	Decoder_GLOBALSAT_CO2 Decoder = 4
	// GlobalSat LS-112P CO sensor.
	Decoder_GLOBALSAT_CO Decoder = 5
	// GlobalSat LS-113P PM2.5 sensor.
	Decoder_GLOBALSAT_PM25 Decoder = 6
	// TEKTELIC Kona All-in-One Home Sensor.
	Decoder_TEKTELIC_HOME Decoder = 7
)

func (Decoder) Descriptor

func (Decoder) Descriptor() protoreflect.EnumDescriptor

func (Decoder) Enum

func (x Decoder) Enum() *Decoder

func (Decoder) EnumDescriptor deprecated

func (Decoder) EnumDescriptor() ([]byte, []int)

Deprecated: Use Decoder.Descriptor instead.

func (Decoder) Number

func (x Decoder) Number() protoreflect.EnumNumber

func (Decoder) String

func (x Decoder) String() string

func (Decoder) Type

func (Decoder) Type() protoreflect.EnumType

type DeleteAlarmRequest

type DeleteAlarmRequest struct {

	// Alarm ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Rule ID (UUID).
	RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleID,proto3" json:"rule_id,omitempty"`
	// contains filtered or unexported fields
}

DeleteAlarmRequest is sent to delete an alarm.

func (*DeleteAlarmRequest) Descriptor deprecated

func (*DeleteAlarmRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAlarmRequest.ProtoReflect.Descriptor instead.

func (*DeleteAlarmRequest) GetId

func (x *DeleteAlarmRequest) GetId() string

func (*DeleteAlarmRequest) GetRuleId

func (x *DeleteAlarmRequest) GetRuleId() string

func (*DeleteAlarmRequest) ProtoMessage

func (*DeleteAlarmRequest) ProtoMessage()

func (*DeleteAlarmRequest) ProtoReflect

func (x *DeleteAlarmRequest) ProtoReflect() protoreflect.Message

func (*DeleteAlarmRequest) Reset

func (x *DeleteAlarmRequest) Reset()

func (*DeleteAlarmRequest) String

func (x *DeleteAlarmRequest) String() string

func (*DeleteAlarmRequest) Validate

func (m *DeleteAlarmRequest) Validate() error

Validate checks the field values on DeleteAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteAlarmRequest) ValidateAll

func (m *DeleteAlarmRequest) ValidateAll() error

ValidateAll checks the field values on DeleteAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteAlarmRequestMultiError, or nil if none found.

type DeleteAlarmRequestMultiError

type DeleteAlarmRequestMultiError []error

DeleteAlarmRequestMultiError is an error wrapping multiple validation errors returned by DeleteAlarmRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteAlarmRequestMultiError) AllErrors

func (m DeleteAlarmRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteAlarmRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteAlarmRequestValidationError

type DeleteAlarmRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteAlarmRequestValidationError is the validation error returned by DeleteAlarmRequest.Validate if the designated constraints aren't met.

func (DeleteAlarmRequestValidationError) Cause

Cause function returns cause value.

func (DeleteAlarmRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteAlarmRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteAlarmRequestValidationError) Field

Field function returns field value.

func (DeleteAlarmRequestValidationError) Key

Key function returns key value.

func (DeleteAlarmRequestValidationError) Reason

Reason function returns reason value.

type DeleteDeviceLoRaWANRequest

type DeleteDeviceLoRaWANRequest struct {

	// Device ID (UUID) to remove LoRaWAN configuration.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteDeviceLoRaWANRequest is sent to remove LoRaWAN configuration from a device.

func (*DeleteDeviceLoRaWANRequest) Descriptor deprecated

func (*DeleteDeviceLoRaWANRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDeviceLoRaWANRequest.ProtoReflect.Descriptor instead.

func (*DeleteDeviceLoRaWANRequest) GetId

func (*DeleteDeviceLoRaWANRequest) ProtoMessage

func (*DeleteDeviceLoRaWANRequest) ProtoMessage()

func (*DeleteDeviceLoRaWANRequest) ProtoReflect

func (*DeleteDeviceLoRaWANRequest) Reset

func (x *DeleteDeviceLoRaWANRequest) Reset()

func (*DeleteDeviceLoRaWANRequest) String

func (x *DeleteDeviceLoRaWANRequest) String() string

func (*DeleteDeviceLoRaWANRequest) Validate

func (m *DeleteDeviceLoRaWANRequest) Validate() error

Validate checks the field values on DeleteDeviceLoRaWANRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteDeviceLoRaWANRequest) ValidateAll

func (m *DeleteDeviceLoRaWANRequest) ValidateAll() error

ValidateAll checks the field values on DeleteDeviceLoRaWANRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteDeviceLoRaWANRequestMultiError, or nil if none found.

type DeleteDeviceLoRaWANRequestMultiError

type DeleteDeviceLoRaWANRequestMultiError []error

DeleteDeviceLoRaWANRequestMultiError is an error wrapping multiple validation errors returned by DeleteDeviceLoRaWANRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteDeviceLoRaWANRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteDeviceLoRaWANRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteDeviceLoRaWANRequestValidationError

type DeleteDeviceLoRaWANRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteDeviceLoRaWANRequestValidationError is the validation error returned by DeleteDeviceLoRaWANRequest.Validate if the designated constraints aren't met.

func (DeleteDeviceLoRaWANRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDeviceLoRaWANRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDeviceLoRaWANRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDeviceLoRaWANRequestValidationError) Field

Field function returns field value.

func (DeleteDeviceLoRaWANRequestValidationError) Key

Key function returns key value.

func (DeleteDeviceLoRaWANRequestValidationError) Reason

Reason function returns reason value.

type DeleteDeviceRequest

type DeleteDeviceRequest struct {

	// Device ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteDeviceRequest is sent to delete a device.

func (*DeleteDeviceRequest) Descriptor deprecated

func (*DeleteDeviceRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDeviceRequest.ProtoReflect.Descriptor instead.

func (*DeleteDeviceRequest) GetId

func (x *DeleteDeviceRequest) GetId() string

func (*DeleteDeviceRequest) ProtoMessage

func (*DeleteDeviceRequest) ProtoMessage()

func (*DeleteDeviceRequest) ProtoReflect

func (x *DeleteDeviceRequest) ProtoReflect() protoreflect.Message

func (*DeleteDeviceRequest) Reset

func (x *DeleteDeviceRequest) Reset()

func (*DeleteDeviceRequest) String

func (x *DeleteDeviceRequest) String() string

func (*DeleteDeviceRequest) Validate

func (m *DeleteDeviceRequest) Validate() error

Validate checks the field values on DeleteDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteDeviceRequest) ValidateAll

func (m *DeleteDeviceRequest) ValidateAll() error

ValidateAll checks the field values on DeleteDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteDeviceRequestMultiError, or nil if none found.

type DeleteDeviceRequestMultiError

type DeleteDeviceRequestMultiError []error

DeleteDeviceRequestMultiError is an error wrapping multiple validation errors returned by DeleteDeviceRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteDeviceRequestMultiError) AllErrors

func (m DeleteDeviceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDeviceRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteDeviceRequestValidationError

type DeleteDeviceRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteDeviceRequestValidationError is the validation error returned by DeleteDeviceRequest.Validate if the designated constraints aren't met.

func (DeleteDeviceRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDeviceRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDeviceRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDeviceRequestValidationError) Field

Field function returns field value.

func (DeleteDeviceRequestValidationError) Key

Key function returns key value.

func (DeleteDeviceRequestValidationError) Reason

Reason function returns reason value.

type DeleteKeyRequest

type DeleteKeyRequest struct {

	// Key ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteKeyRequest is sent to delete an API key.

func (*DeleteKeyRequest) Descriptor deprecated

func (*DeleteKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteKeyRequest.ProtoReflect.Descriptor instead.

func (*DeleteKeyRequest) GetId

func (x *DeleteKeyRequest) GetId() string

func (*DeleteKeyRequest) ProtoMessage

func (*DeleteKeyRequest) ProtoMessage()

func (*DeleteKeyRequest) ProtoReflect

func (x *DeleteKeyRequest) ProtoReflect() protoreflect.Message

func (*DeleteKeyRequest) Reset

func (x *DeleteKeyRequest) Reset()

func (*DeleteKeyRequest) String

func (x *DeleteKeyRequest) String() string

func (*DeleteKeyRequest) Validate

func (m *DeleteKeyRequest) Validate() error

Validate checks the field values on DeleteKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteKeyRequest) ValidateAll

func (m *DeleteKeyRequest) ValidateAll() error

ValidateAll checks the field values on DeleteKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteKeyRequestMultiError, or nil if none found.

type DeleteKeyRequestMultiError

type DeleteKeyRequestMultiError []error

DeleteKeyRequestMultiError is an error wrapping multiple validation errors returned by DeleteKeyRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteKeyRequestMultiError) AllErrors

func (m DeleteKeyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteKeyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteKeyRequestValidationError

type DeleteKeyRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteKeyRequestValidationError is the validation error returned by DeleteKeyRequest.Validate if the designated constraints aren't met.

func (DeleteKeyRequestValidationError) Cause

Cause function returns cause value.

func (DeleteKeyRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteKeyRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteKeyRequestValidationError) Field

Field function returns field value.

func (DeleteKeyRequestValidationError) Key

Key function returns key value.

func (DeleteKeyRequestValidationError) Reason

Reason function returns reason value.

type DeleteOrgRequest

type DeleteOrgRequest struct {

	// Organization ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteOrgRequest is sent to delete an organization.

func (*DeleteOrgRequest) Descriptor deprecated

func (*DeleteOrgRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteOrgRequest.ProtoReflect.Descriptor instead.

func (*DeleteOrgRequest) GetId

func (x *DeleteOrgRequest) GetId() string

func (*DeleteOrgRequest) ProtoMessage

func (*DeleteOrgRequest) ProtoMessage()

func (*DeleteOrgRequest) ProtoReflect

func (x *DeleteOrgRequest) ProtoReflect() protoreflect.Message

func (*DeleteOrgRequest) Reset

func (x *DeleteOrgRequest) Reset()

func (*DeleteOrgRequest) String

func (x *DeleteOrgRequest) String() string

func (*DeleteOrgRequest) Validate

func (m *DeleteOrgRequest) Validate() error

Validate checks the field values on DeleteOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteOrgRequest) ValidateAll

func (m *DeleteOrgRequest) ValidateAll() error

ValidateAll checks the field values on DeleteOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteOrgRequestMultiError, or nil if none found.

type DeleteOrgRequestMultiError

type DeleteOrgRequestMultiError []error

DeleteOrgRequestMultiError is an error wrapping multiple validation errors returned by DeleteOrgRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteOrgRequestMultiError) AllErrors

func (m DeleteOrgRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteOrgRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteOrgRequestValidationError

type DeleteOrgRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteOrgRequestValidationError is the validation error returned by DeleteOrgRequest.Validate if the designated constraints aren't met.

func (DeleteOrgRequestValidationError) Cause

Cause function returns cause value.

func (DeleteOrgRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteOrgRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteOrgRequestValidationError) Field

Field function returns field value.

func (DeleteOrgRequestValidationError) Key

Key function returns key value.

func (DeleteOrgRequestValidationError) Reason

Reason function returns reason value.

type DeleteRuleRequest

type DeleteRuleRequest struct {

	// Rule ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteRuleRequest is sent to delete a rule.

func (*DeleteRuleRequest) Descriptor deprecated

func (*DeleteRuleRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRuleRequest.ProtoReflect.Descriptor instead.

func (*DeleteRuleRequest) GetId

func (x *DeleteRuleRequest) GetId() string

func (*DeleteRuleRequest) ProtoMessage

func (*DeleteRuleRequest) ProtoMessage()

func (*DeleteRuleRequest) ProtoReflect

func (x *DeleteRuleRequest) ProtoReflect() protoreflect.Message

func (*DeleteRuleRequest) Reset

func (x *DeleteRuleRequest) Reset()

func (*DeleteRuleRequest) String

func (x *DeleteRuleRequest) String() string

func (*DeleteRuleRequest) Validate

func (m *DeleteRuleRequest) Validate() error

Validate checks the field values on DeleteRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteRuleRequest) ValidateAll

func (m *DeleteRuleRequest) ValidateAll() error

ValidateAll checks the field values on DeleteRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRuleRequestMultiError, or nil if none found.

type DeleteRuleRequestMultiError

type DeleteRuleRequestMultiError []error

DeleteRuleRequestMultiError is an error wrapping multiple validation errors returned by DeleteRuleRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteRuleRequestMultiError) AllErrors

func (m DeleteRuleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRuleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteRuleRequestValidationError

type DeleteRuleRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteRuleRequestValidationError is the validation error returned by DeleteRuleRequest.Validate if the designated constraints aren't met.

func (DeleteRuleRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRuleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRuleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRuleRequestValidationError) Field

Field function returns field value.

func (DeleteRuleRequestValidationError) Key

Key function returns key value.

func (DeleteRuleRequestValidationError) Reason

Reason function returns reason value.

type DeleteUserRequest

type DeleteUserRequest struct {

	// User ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserRequest is sent to delete a user.

func (*DeleteUserRequest) Descriptor deprecated

func (*DeleteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

func (*DeleteUserRequest) Validate

func (m *DeleteUserRequest) Validate() error

Validate checks the field values on DeleteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteUserRequest) ValidateAll

func (m *DeleteUserRequest) ValidateAll() error

ValidateAll checks the field values on DeleteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteUserRequestMultiError, or nil if none found.

type DeleteUserRequestMultiError

type DeleteUserRequestMultiError []error

DeleteUserRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteUserRequestMultiError) AllErrors

func (m DeleteUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteUserRequestValidationError

type DeleteUserRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.

func (DeleteUserRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRequestValidationError) Field

Field function returns field value.

func (DeleteUserRequestValidationError) Key

Key function returns key value.

func (DeleteUserRequestValidationError) Reason

Reason function returns reason value.

type Device

type Device struct {

	// Device ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Device unique ID.
	UniqId string `protobuf:"bytes,3,opt,name=uniq_id,json=uniqID,proto3" json:"uniq_id,omitempty"`
	// Device name.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Device status.
	Status Status `protobuf:"varint,5,opt,name=status,proto3,enum=thingspect.api.Status" json:"status,omitempty"`
	// Authentication token (UUID). Will be generated at creation time, but can be updated afterward.
	Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
	// Device data payload decoder.
	Decoder Decoder `protobuf:"varint,7,opt,name=decoder,proto3,enum=thingspect.api.Decoder" json:"decoder,omitempty"`
	// Device tags. Nested tags should be delimited by '/'.
	Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"`
	// Device creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Device modification timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Device represents a device as stored in the database.

func (*Device) Descriptor deprecated

func (*Device) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetCreatedAt

func (x *Device) GetCreatedAt() *timestamppb.Timestamp

func (*Device) GetDecoder

func (x *Device) GetDecoder() Decoder

func (*Device) GetId

func (x *Device) GetId() string

func (*Device) GetName

func (x *Device) GetName() string

func (*Device) GetOrgId

func (x *Device) GetOrgId() string

func (*Device) GetStatus

func (x *Device) GetStatus() Status

func (*Device) GetTags

func (x *Device) GetTags() []string

func (*Device) GetToken

func (x *Device) GetToken() string

func (*Device) GetUniqId

func (x *Device) GetUniqId() string

func (*Device) GetUpdatedAt

func (x *Device) GetUpdatedAt() *timestamppb.Timestamp

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

func (*Device) Validate

func (m *Device) Validate() error

Validate checks the field values on Device with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Device) ValidateAll

func (m *Device) ValidateAll() error

ValidateAll checks the field values on Device with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeviceMultiError, or nil if none found.

type DeviceMultiError

type DeviceMultiError []error

DeviceMultiError is an error wrapping multiple validation errors returned by Device.ValidateAll() if the designated constraints aren't met.

func (DeviceMultiError) AllErrors

func (m DeviceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeviceMultiError) Error

func (m DeviceMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeviceServiceClient

type DeviceServiceClient interface {
	// Create a device. Devices generate data points.
	CreateDevice(ctx context.Context, in *CreateDeviceRequest, opts ...grpc.CallOption) (*Device, error)
	// Add LoRaWAN configuration to a device.
	CreateDeviceLoRaWAN(ctx context.Context, in *CreateDeviceLoRaWANRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Get a device by ID. Devices generate data points.
	GetDevice(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*Device, error)
	// Update a device. Devices generate data points.
	UpdateDevice(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*Device, error)
	// Remove LoRaWAN configuration from a device.
	DeleteDeviceLoRaWAN(ctx context.Context, in *DeleteDeviceLoRaWANRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete a device by ID. Devices generate data points.
	DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List all devices. Devices generate data points.
	ListDevices(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error)
}

DeviceServiceClient is the client API for DeviceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DeviceServiceServer

type DeviceServiceServer interface {
	// Create a device. Devices generate data points.
	CreateDevice(context.Context, *CreateDeviceRequest) (*Device, error)
	// Add LoRaWAN configuration to a device.
	CreateDeviceLoRaWAN(context.Context, *CreateDeviceLoRaWANRequest) (*emptypb.Empty, error)
	// Get a device by ID. Devices generate data points.
	GetDevice(context.Context, *GetDeviceRequest) (*Device, error)
	// Update a device. Devices generate data points.
	UpdateDevice(context.Context, *UpdateDeviceRequest) (*Device, error)
	// Remove LoRaWAN configuration from a device.
	DeleteDeviceLoRaWAN(context.Context, *DeleteDeviceLoRaWANRequest) (*emptypb.Empty, error)
	// Delete a device by ID. Devices generate data points.
	DeleteDevice(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error)
	// List all devices. Devices generate data points.
	ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error)
	// contains filtered or unexported methods
}

DeviceServiceServer is the server API for DeviceService service. All implementations must embed UnimplementedDeviceServiceServer for forward compatibility

type DeviceValidationError

type DeviceValidationError struct {
	// contains filtered or unexported fields
}

DeviceValidationError is the validation error returned by Device.Validate if the designated constraints aren't met.

func (DeviceValidationError) Cause

func (e DeviceValidationError) Cause() error

Cause function returns cause value.

func (DeviceValidationError) Error

func (e DeviceValidationError) Error() string

Error satisfies the builtin error interface

func (DeviceValidationError) ErrorName

func (e DeviceValidationError) ErrorName() string

ErrorName returns error name.

func (DeviceValidationError) Field

func (e DeviceValidationError) Field() string

Field function returns field value.

func (DeviceValidationError) Key

func (e DeviceValidationError) Key() bool

Key function returns key value.

func (DeviceValidationError) Reason

func (e DeviceValidationError) Reason() string

Reason function returns reason value.

type Event

type Event struct {

	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Device unique ID.
	UniqId string `protobuf:"bytes,2,opt,name=uniq_id,json=uniqID,proto3" json:"uniq_id,omitempty"`
	// Rule ID (UUID).
	RuleId string `protobuf:"bytes,3,opt,name=rule_id,json=ruleID,proto3" json:"rule_id,omitempty"`
	// Event creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Trace ID (UUID).
	TraceId string `protobuf:"bytes,5,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// contains filtered or unexported fields
}

Event represents an event as stored in the database.

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetCreatedAt

func (x *Event) GetCreatedAt() *timestamppb.Timestamp

func (*Event) GetOrgId

func (x *Event) GetOrgId() string

func (*Event) GetRuleId

func (x *Event) GetRuleId() string

func (*Event) GetTraceId

func (x *Event) GetTraceId() string

func (*Event) GetUniqId

func (x *Event) GetUniqId() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

func (*Event) Validate

func (m *Event) Validate() error

Validate checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Event) ValidateAll

func (m *Event) ValidateAll() error

ValidateAll checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventMultiError, or nil if none found.

type EventMultiError

type EventMultiError []error

EventMultiError is an error wrapping multiple validation errors returned by Event.ValidateAll() if the designated constraints aren't met.

func (EventMultiError) AllErrors

func (m EventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventMultiError) Error

func (m EventMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EventServiceClient

type EventServiceClient interface {
	// List all events for a device in an [end, start) time range, in descending timestamp order. Events are generated by rules when conditions are met.
	ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error)
	// List the latest event for each of an organization's devices. Events are generated by rules when conditions are met.
	LatestEvents(ctx context.Context, in *LatestEventsRequest, opts ...grpc.CallOption) (*LatestEventsResponse, error)
}

EventServiceClient is the client API for EventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EventServiceServer

type EventServiceServer interface {
	// List all events for a device in an [end, start) time range, in descending timestamp order. Events are generated by rules when conditions are met.
	ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
	// List the latest event for each of an organization's devices. Events are generated by rules when conditions are met.
	LatestEvents(context.Context, *LatestEventsRequest) (*LatestEventsResponse, error)
	// contains filtered or unexported methods
}

EventServiceServer is the server API for EventService service. All implementations must embed UnimplementedEventServiceServer for forward compatibility

type EventValidationError

type EventValidationError struct {
	// contains filtered or unexported fields
}

EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.

func (EventValidationError) Cause

func (e EventValidationError) Cause() error

Cause function returns cause value.

func (EventValidationError) Error

func (e EventValidationError) Error() string

Error satisfies the builtin error interface

func (EventValidationError) ErrorName

func (e EventValidationError) ErrorName() string

ErrorName returns error name.

func (EventValidationError) Field

func (e EventValidationError) Field() string

Field function returns field value.

func (EventValidationError) Key

func (e EventValidationError) Key() bool

Key function returns key value.

func (EventValidationError) Reason

func (e EventValidationError) Reason() string

Reason function returns reason value.

type GetAlarmRequest

type GetAlarmRequest struct {

	// Alarm ID (UUID) to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Rule ID (UUID).
	RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleID,proto3" json:"rule_id,omitempty"`
	// contains filtered or unexported fields
}

GetAlarmRequest is sent to get an alarm.

func (*GetAlarmRequest) Descriptor deprecated

func (*GetAlarmRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAlarmRequest.ProtoReflect.Descriptor instead.

func (*GetAlarmRequest) GetId

func (x *GetAlarmRequest) GetId() string

func (*GetAlarmRequest) GetRuleId

func (x *GetAlarmRequest) GetRuleId() string

func (*GetAlarmRequest) ProtoMessage

func (*GetAlarmRequest) ProtoMessage()

func (*GetAlarmRequest) ProtoReflect

func (x *GetAlarmRequest) ProtoReflect() protoreflect.Message

func (*GetAlarmRequest) Reset

func (x *GetAlarmRequest) Reset()

func (*GetAlarmRequest) String

func (x *GetAlarmRequest) String() string

func (*GetAlarmRequest) Validate

func (m *GetAlarmRequest) Validate() error

Validate checks the field values on GetAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetAlarmRequest) ValidateAll

func (m *GetAlarmRequest) ValidateAll() error

ValidateAll checks the field values on GetAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAlarmRequestMultiError, or nil if none found.

type GetAlarmRequestMultiError

type GetAlarmRequestMultiError []error

GetAlarmRequestMultiError is an error wrapping multiple validation errors returned by GetAlarmRequest.ValidateAll() if the designated constraints aren't met.

func (GetAlarmRequestMultiError) AllErrors

func (m GetAlarmRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAlarmRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAlarmRequestValidationError

type GetAlarmRequestValidationError struct {
	// contains filtered or unexported fields
}

GetAlarmRequestValidationError is the validation error returned by GetAlarmRequest.Validate if the designated constraints aren't met.

func (GetAlarmRequestValidationError) Cause

Cause function returns cause value.

func (GetAlarmRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAlarmRequestValidationError) ErrorName

func (e GetAlarmRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetAlarmRequestValidationError) Field

Field function returns field value.

func (GetAlarmRequestValidationError) Key

Key function returns key value.

func (GetAlarmRequestValidationError) Reason

Reason function returns reason value.

type GetDeviceRequest

type GetDeviceRequest struct {

	// Device ID (UUID) to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetDeviceRequest is sent to get a device.

func (*GetDeviceRequest) Descriptor deprecated

func (*GetDeviceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDeviceRequest.ProtoReflect.Descriptor instead.

func (*GetDeviceRequest) GetId

func (x *GetDeviceRequest) GetId() string

func (*GetDeviceRequest) ProtoMessage

func (*GetDeviceRequest) ProtoMessage()

func (*GetDeviceRequest) ProtoReflect

func (x *GetDeviceRequest) ProtoReflect() protoreflect.Message

func (*GetDeviceRequest) Reset

func (x *GetDeviceRequest) Reset()

func (*GetDeviceRequest) String

func (x *GetDeviceRequest) String() string

func (*GetDeviceRequest) Validate

func (m *GetDeviceRequest) Validate() error

Validate checks the field values on GetDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetDeviceRequest) ValidateAll

func (m *GetDeviceRequest) ValidateAll() error

ValidateAll checks the field values on GetDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetDeviceRequestMultiError, or nil if none found.

type GetDeviceRequestMultiError

type GetDeviceRequestMultiError []error

GetDeviceRequestMultiError is an error wrapping multiple validation errors returned by GetDeviceRequest.ValidateAll() if the designated constraints aren't met.

func (GetDeviceRequestMultiError) AllErrors

func (m GetDeviceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDeviceRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetDeviceRequestValidationError

type GetDeviceRequestValidationError struct {
	// contains filtered or unexported fields
}

GetDeviceRequestValidationError is the validation error returned by GetDeviceRequest.Validate if the designated constraints aren't met.

func (GetDeviceRequestValidationError) Cause

Cause function returns cause value.

func (GetDeviceRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDeviceRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDeviceRequestValidationError) Field

Field function returns field value.

func (GetDeviceRequestValidationError) Key

Key function returns key value.

func (GetDeviceRequestValidationError) Reason

Reason function returns reason value.

type GetOrgRequest

type GetOrgRequest struct {

	// Organization ID (UUID) to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetOrgRequest is sent to get an organization.

func (*GetOrgRequest) Descriptor deprecated

func (*GetOrgRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetOrgRequest.ProtoReflect.Descriptor instead.

func (*GetOrgRequest) GetId

func (x *GetOrgRequest) GetId() string

func (*GetOrgRequest) ProtoMessage

func (*GetOrgRequest) ProtoMessage()

func (*GetOrgRequest) ProtoReflect

func (x *GetOrgRequest) ProtoReflect() protoreflect.Message

func (*GetOrgRequest) Reset

func (x *GetOrgRequest) Reset()

func (*GetOrgRequest) String

func (x *GetOrgRequest) String() string

func (*GetOrgRequest) Validate

func (m *GetOrgRequest) Validate() error

Validate checks the field values on GetOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetOrgRequest) ValidateAll

func (m *GetOrgRequest) ValidateAll() error

ValidateAll checks the field values on GetOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetOrgRequestMultiError, or nil if none found.

type GetOrgRequestMultiError

type GetOrgRequestMultiError []error

GetOrgRequestMultiError is an error wrapping multiple validation errors returned by GetOrgRequest.ValidateAll() if the designated constraints aren't met.

func (GetOrgRequestMultiError) AllErrors

func (m GetOrgRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetOrgRequestMultiError) Error

func (m GetOrgRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetOrgRequestValidationError

type GetOrgRequestValidationError struct {
	// contains filtered or unexported fields
}

GetOrgRequestValidationError is the validation error returned by GetOrgRequest.Validate if the designated constraints aren't met.

func (GetOrgRequestValidationError) Cause

Cause function returns cause value.

func (GetOrgRequestValidationError) Error

Error satisfies the builtin error interface

func (GetOrgRequestValidationError) ErrorName

func (e GetOrgRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetOrgRequestValidationError) Field

Field function returns field value.

func (GetOrgRequestValidationError) Key

Key function returns key value.

func (GetOrgRequestValidationError) Reason

Reason function returns reason value.

type GetRuleRequest

type GetRuleRequest struct {

	// Rule ID (UUID) to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetRuleRequest is sent to get a rule.

func (*GetRuleRequest) Descriptor deprecated

func (*GetRuleRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRuleRequest.ProtoReflect.Descriptor instead.

func (*GetRuleRequest) GetId

func (x *GetRuleRequest) GetId() string

func (*GetRuleRequest) ProtoMessage

func (*GetRuleRequest) ProtoMessage()

func (*GetRuleRequest) ProtoReflect

func (x *GetRuleRequest) ProtoReflect() protoreflect.Message

func (*GetRuleRequest) Reset

func (x *GetRuleRequest) Reset()

func (*GetRuleRequest) String

func (x *GetRuleRequest) String() string

func (*GetRuleRequest) Validate

func (m *GetRuleRequest) Validate() error

Validate checks the field values on GetRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetRuleRequest) ValidateAll

func (m *GetRuleRequest) ValidateAll() error

ValidateAll checks the field values on GetRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRuleRequestMultiError, or nil if none found.

type GetRuleRequestMultiError

type GetRuleRequestMultiError []error

GetRuleRequestMultiError is an error wrapping multiple validation errors returned by GetRuleRequest.ValidateAll() if the designated constraints aren't met.

func (GetRuleRequestMultiError) AllErrors

func (m GetRuleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRuleRequestMultiError) Error

func (m GetRuleRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetRuleRequestValidationError

type GetRuleRequestValidationError struct {
	// contains filtered or unexported fields
}

GetRuleRequestValidationError is the validation error returned by GetRuleRequest.Validate if the designated constraints aren't met.

func (GetRuleRequestValidationError) Cause

Cause function returns cause value.

func (GetRuleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRuleRequestValidationError) ErrorName

func (e GetRuleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRuleRequestValidationError) Field

Field function returns field value.

func (GetRuleRequestValidationError) Key

Key function returns key value.

func (GetRuleRequestValidationError) Reason

Reason function returns reason value.

type GetUserRequest

type GetUserRequest struct {

	// User ID (UUID) to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetUserRequest is sent to get a user.

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserRequestMultiError, or nil if none found.

type GetUserRequestMultiError

type GetUserRequestMultiError []error

GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserRequestValidationError

type GetUserRequestValidationError struct {
	// contains filtered or unexported fields
}

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type Key

type Key struct {

	// Key ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Key name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Key role.
	Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=thingspect.api.Role" json:"role,omitempty"`
	// Key creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Key represents an API key as stored in the database. API keys are not tied to a specific user.

func (*Key) Descriptor deprecated

func (*Key) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetCreatedAt

func (x *Key) GetCreatedAt() *timestamppb.Timestamp

func (*Key) GetId

func (x *Key) GetId() string

func (*Key) GetName

func (x *Key) GetName() string

func (*Key) GetOrgId

func (x *Key) GetOrgId() string

func (*Key) GetRole

func (x *Key) GetRole() Role

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

func (x *Key) ProtoReflect() protoreflect.Message

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

func (*Key) Validate

func (m *Key) Validate() error

Validate checks the field values on Key with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Key) ValidateAll

func (m *Key) ValidateAll() error

ValidateAll checks the field values on Key with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in KeyMultiError, or nil if none found.

type KeyMultiError

type KeyMultiError []error

KeyMultiError is an error wrapping multiple validation errors returned by Key.ValidateAll() if the designated constraints aren't met.

func (KeyMultiError) AllErrors

func (m KeyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (KeyMultiError) Error

func (m KeyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type KeyValidationError

type KeyValidationError struct {
	// contains filtered or unexported fields
}

KeyValidationError is the validation error returned by Key.Validate if the designated constraints aren't met.

func (KeyValidationError) Cause

func (e KeyValidationError) Cause() error

Cause function returns cause value.

func (KeyValidationError) Error

func (e KeyValidationError) Error() string

Error satisfies the builtin error interface

func (KeyValidationError) ErrorName

func (e KeyValidationError) ErrorName() string

ErrorName returns error name.

func (KeyValidationError) Field

func (e KeyValidationError) Field() string

Field function returns field value.

func (KeyValidationError) Key

func (e KeyValidationError) Key() bool

Key function returns key value.

func (KeyValidationError) Reason

func (e KeyValidationError) Reason() string

Reason function returns reason value.

type LatestDataPointsRequest

type LatestDataPointsRequest struct {

	// Device identifier.
	//
	// Types that are assignable to IdOneof:
	//
	//	*LatestDataPointsRequest_UniqId
	//	*LatestDataPointsRequest_DeviceId
	IdOneof isLatestDataPointsRequest_IdOneof `protobuf_oneof:"id_oneof"`
	// Data points range start time. Defaults to now - 30 days if not specified. Maximum supported time range is 90 days.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// contains filtered or unexported fields
}

LatestDataPointsRequest is sent to list latest device data points in a [now, start) time range.

func (*LatestDataPointsRequest) Descriptor deprecated

func (*LatestDataPointsRequest) Descriptor() ([]byte, []int)

Deprecated: Use LatestDataPointsRequest.ProtoReflect.Descriptor instead.

func (*LatestDataPointsRequest) GetDeviceId

func (x *LatestDataPointsRequest) GetDeviceId() string

func (*LatestDataPointsRequest) GetIdOneof

func (m *LatestDataPointsRequest) GetIdOneof() isLatestDataPointsRequest_IdOneof

func (*LatestDataPointsRequest) GetStartTime

func (x *LatestDataPointsRequest) GetStartTime() *timestamppb.Timestamp

func (*LatestDataPointsRequest) GetUniqId

func (x *LatestDataPointsRequest) GetUniqId() string

func (*LatestDataPointsRequest) ProtoMessage

func (*LatestDataPointsRequest) ProtoMessage()

func (*LatestDataPointsRequest) ProtoReflect

func (x *LatestDataPointsRequest) ProtoReflect() protoreflect.Message

func (*LatestDataPointsRequest) Reset

func (x *LatestDataPointsRequest) Reset()

func (*LatestDataPointsRequest) String

func (x *LatestDataPointsRequest) String() string

func (*LatestDataPointsRequest) Validate

func (m *LatestDataPointsRequest) Validate() error

Validate checks the field values on LatestDataPointsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LatestDataPointsRequest) ValidateAll

func (m *LatestDataPointsRequest) ValidateAll() error

ValidateAll checks the field values on LatestDataPointsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LatestDataPointsRequestMultiError, or nil if none found.

type LatestDataPointsRequestMultiError

type LatestDataPointsRequestMultiError []error

LatestDataPointsRequestMultiError is an error wrapping multiple validation errors returned by LatestDataPointsRequest.ValidateAll() if the designated constraints aren't met.

func (LatestDataPointsRequestMultiError) AllErrors

func (m LatestDataPointsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LatestDataPointsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LatestDataPointsRequestValidationError

type LatestDataPointsRequestValidationError struct {
	// contains filtered or unexported fields
}

LatestDataPointsRequestValidationError is the validation error returned by LatestDataPointsRequest.Validate if the designated constraints aren't met.

func (LatestDataPointsRequestValidationError) Cause

Cause function returns cause value.

func (LatestDataPointsRequestValidationError) Error

Error satisfies the builtin error interface

func (LatestDataPointsRequestValidationError) ErrorName

ErrorName returns error name.

func (LatestDataPointsRequestValidationError) Field

Field function returns field value.

func (LatestDataPointsRequestValidationError) Key

Key function returns key value.

func (LatestDataPointsRequestValidationError) Reason

Reason function returns reason value.

type LatestDataPointsRequest_DeviceId

type LatestDataPointsRequest_DeviceId struct {
	// Device ID (UUID). Either unique ID or device ID must be provided.
	DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceID,proto3,oneof"`
}

type LatestDataPointsRequest_UniqId

type LatestDataPointsRequest_UniqId struct {
	// Device unique ID. Either unique ID or device ID must be provided.
	UniqId string `protobuf:"bytes,1,opt,name=uniq_id,json=uniqID,proto3,oneof"`
}

type LatestDataPointsResponse

type LatestDataPointsResponse struct {

	// Data point array, ordered by ascending attribute name.
	Points []*common.DataPoint `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"`
	// contains filtered or unexported fields
}

LatestDataPointsResponse is sent in response to a device latest list.

func (*LatestDataPointsResponse) Descriptor deprecated

func (*LatestDataPointsResponse) Descriptor() ([]byte, []int)

Deprecated: Use LatestDataPointsResponse.ProtoReflect.Descriptor instead.

func (*LatestDataPointsResponse) GetPoints

func (x *LatestDataPointsResponse) GetPoints() []*common.DataPoint

func (*LatestDataPointsResponse) ProtoMessage

func (*LatestDataPointsResponse) ProtoMessage()

func (*LatestDataPointsResponse) ProtoReflect

func (x *LatestDataPointsResponse) ProtoReflect() protoreflect.Message

func (*LatestDataPointsResponse) Reset

func (x *LatestDataPointsResponse) Reset()

func (*LatestDataPointsResponse) String

func (x *LatestDataPointsResponse) String() string

func (*LatestDataPointsResponse) Validate

func (m *LatestDataPointsResponse) Validate() error

Validate checks the field values on LatestDataPointsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LatestDataPointsResponse) ValidateAll

func (m *LatestDataPointsResponse) ValidateAll() error

ValidateAll checks the field values on LatestDataPointsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LatestDataPointsResponseMultiError, or nil if none found.

type LatestDataPointsResponseMultiError

type LatestDataPointsResponseMultiError []error

LatestDataPointsResponseMultiError is an error wrapping multiple validation errors returned by LatestDataPointsResponse.ValidateAll() if the designated constraints aren't met.

func (LatestDataPointsResponseMultiError) AllErrors

func (m LatestDataPointsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LatestDataPointsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LatestDataPointsResponseValidationError

type LatestDataPointsResponseValidationError struct {
	// contains filtered or unexported fields
}

LatestDataPointsResponseValidationError is the validation error returned by LatestDataPointsResponse.Validate if the designated constraints aren't met.

func (LatestDataPointsResponseValidationError) Cause

Cause function returns cause value.

func (LatestDataPointsResponseValidationError) Error

Error satisfies the builtin error interface

func (LatestDataPointsResponseValidationError) ErrorName

ErrorName returns error name.

func (LatestDataPointsResponseValidationError) Field

Field function returns field value.

func (LatestDataPointsResponseValidationError) Key

Key function returns key value.

func (LatestDataPointsResponseValidationError) Reason

Reason function returns reason value.

type LatestEventsRequest

type LatestEventsRequest struct {

	// Rule ID (UUID). If not specified, all rules are included.
	RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleID,proto3" json:"rule_id,omitempty"`
	// contains filtered or unexported fields
}

LatestEventsRequest is sent to list latest organization events.

func (*LatestEventsRequest) Descriptor deprecated

func (*LatestEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use LatestEventsRequest.ProtoReflect.Descriptor instead.

func (*LatestEventsRequest) GetRuleId

func (x *LatestEventsRequest) GetRuleId() string

func (*LatestEventsRequest) ProtoMessage

func (*LatestEventsRequest) ProtoMessage()

func (*LatestEventsRequest) ProtoReflect

func (x *LatestEventsRequest) ProtoReflect() protoreflect.Message

func (*LatestEventsRequest) Reset

func (x *LatestEventsRequest) Reset()

func (*LatestEventsRequest) String

func (x *LatestEventsRequest) String() string

func (*LatestEventsRequest) Validate

func (m *LatestEventsRequest) Validate() error

Validate checks the field values on LatestEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LatestEventsRequest) ValidateAll

func (m *LatestEventsRequest) ValidateAll() error

ValidateAll checks the field values on LatestEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LatestEventsRequestMultiError, or nil if none found.

type LatestEventsRequestMultiError

type LatestEventsRequestMultiError []error

LatestEventsRequestMultiError is an error wrapping multiple validation errors returned by LatestEventsRequest.ValidateAll() if the designated constraints aren't met.

func (LatestEventsRequestMultiError) AllErrors

func (m LatestEventsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LatestEventsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LatestEventsRequestValidationError

type LatestEventsRequestValidationError struct {
	// contains filtered or unexported fields
}

LatestEventsRequestValidationError is the validation error returned by LatestEventsRequest.Validate if the designated constraints aren't met.

func (LatestEventsRequestValidationError) Cause

Cause function returns cause value.

func (LatestEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (LatestEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (LatestEventsRequestValidationError) Field

Field function returns field value.

func (LatestEventsRequestValidationError) Key

Key function returns key value.

func (LatestEventsRequestValidationError) Reason

Reason function returns reason value.

type LatestEventsResponse

type LatestEventsResponse struct {

	// Event array, ordered by descending created_at timestamp.
	Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

LatestEventsResponse is sent in response to an organization latest list.

func (*LatestEventsResponse) Descriptor deprecated

func (*LatestEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use LatestEventsResponse.ProtoReflect.Descriptor instead.

func (*LatestEventsResponse) GetEvents

func (x *LatestEventsResponse) GetEvents() []*Event

func (*LatestEventsResponse) ProtoMessage

func (*LatestEventsResponse) ProtoMessage()

func (*LatestEventsResponse) ProtoReflect

func (x *LatestEventsResponse) ProtoReflect() protoreflect.Message

func (*LatestEventsResponse) Reset

func (x *LatestEventsResponse) Reset()

func (*LatestEventsResponse) String

func (x *LatestEventsResponse) String() string

func (*LatestEventsResponse) Validate

func (m *LatestEventsResponse) Validate() error

Validate checks the field values on LatestEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LatestEventsResponse) ValidateAll

func (m *LatestEventsResponse) ValidateAll() error

ValidateAll checks the field values on LatestEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LatestEventsResponseMultiError, or nil if none found.

type LatestEventsResponseMultiError

type LatestEventsResponseMultiError []error

LatestEventsResponseMultiError is an error wrapping multiple validation errors returned by LatestEventsResponse.ValidateAll() if the designated constraints aren't met.

func (LatestEventsResponseMultiError) AllErrors

func (m LatestEventsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LatestEventsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LatestEventsResponseValidationError

type LatestEventsResponseValidationError struct {
	// contains filtered or unexported fields
}

LatestEventsResponseValidationError is the validation error returned by LatestEventsResponse.Validate if the designated constraints aren't met.

func (LatestEventsResponseValidationError) Cause

Cause function returns cause value.

func (LatestEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (LatestEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (LatestEventsResponseValidationError) Field

Field function returns field value.

func (LatestEventsResponseValidationError) Key

Key function returns key value.

func (LatestEventsResponseValidationError) Reason

Reason function returns reason value.

type ListAlarmsRequest

type ListAlarmsRequest struct {

	// Number of alarms to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Rule ID (UUID). If not specified, all rules are included.
	RuleId string `protobuf:"bytes,3,opt,name=rule_id,json=ruleID,proto3" json:"rule_id,omitempty"`
	// contains filtered or unexported fields
}

ListAlarmsRequest is sent to list alarms.

func (*ListAlarmsRequest) Descriptor deprecated

func (*ListAlarmsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAlarmsRequest.ProtoReflect.Descriptor instead.

func (*ListAlarmsRequest) GetPageSize

func (x *ListAlarmsRequest) GetPageSize() int32

func (*ListAlarmsRequest) GetPageToken

func (x *ListAlarmsRequest) GetPageToken() string

func (*ListAlarmsRequest) GetRuleId

func (x *ListAlarmsRequest) GetRuleId() string

func (*ListAlarmsRequest) ProtoMessage

func (*ListAlarmsRequest) ProtoMessage()

func (*ListAlarmsRequest) ProtoReflect

func (x *ListAlarmsRequest) ProtoReflect() protoreflect.Message

func (*ListAlarmsRequest) Reset

func (x *ListAlarmsRequest) Reset()

func (*ListAlarmsRequest) String

func (x *ListAlarmsRequest) String() string

func (*ListAlarmsRequest) Validate

func (m *ListAlarmsRequest) Validate() error

Validate checks the field values on ListAlarmsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListAlarmsRequest) ValidateAll

func (m *ListAlarmsRequest) ValidateAll() error

ValidateAll checks the field values on ListAlarmsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAlarmsRequestMultiError, or nil if none found.

type ListAlarmsRequestMultiError

type ListAlarmsRequestMultiError []error

ListAlarmsRequestMultiError is an error wrapping multiple validation errors returned by ListAlarmsRequest.ValidateAll() if the designated constraints aren't met.

func (ListAlarmsRequestMultiError) AllErrors

func (m ListAlarmsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAlarmsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAlarmsRequestValidationError

type ListAlarmsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListAlarmsRequestValidationError is the validation error returned by ListAlarmsRequest.Validate if the designated constraints aren't met.

func (ListAlarmsRequestValidationError) Cause

Cause function returns cause value.

func (ListAlarmsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListAlarmsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListAlarmsRequestValidationError) Field

Field function returns field value.

func (ListAlarmsRequestValidationError) Key

Key function returns key value.

func (ListAlarmsRequestValidationError) Reason

Reason function returns reason value.

type ListAlarmsResponse

type ListAlarmsResponse struct {

	// Alarm array, ordered by ascending created_at timestamp.
	Alarms []*Alarm `protobuf:"bytes,1,rep,name=alarms,proto3" json:"alarms,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of alarms available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListAlarmsResponse is sent in response to an alarm list.

func (*ListAlarmsResponse) Descriptor deprecated

func (*ListAlarmsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAlarmsResponse.ProtoReflect.Descriptor instead.

func (*ListAlarmsResponse) GetAlarms

func (x *ListAlarmsResponse) GetAlarms() []*Alarm

func (*ListAlarmsResponse) GetNextPageToken

func (x *ListAlarmsResponse) GetNextPageToken() string

func (*ListAlarmsResponse) GetTotalSize

func (x *ListAlarmsResponse) GetTotalSize() int32

func (*ListAlarmsResponse) ProtoMessage

func (*ListAlarmsResponse) ProtoMessage()

func (*ListAlarmsResponse) ProtoReflect

func (x *ListAlarmsResponse) ProtoReflect() protoreflect.Message

func (*ListAlarmsResponse) Reset

func (x *ListAlarmsResponse) Reset()

func (*ListAlarmsResponse) String

func (x *ListAlarmsResponse) String() string

func (*ListAlarmsResponse) Validate

func (m *ListAlarmsResponse) Validate() error

Validate checks the field values on ListAlarmsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListAlarmsResponse) ValidateAll

func (m *ListAlarmsResponse) ValidateAll() error

ValidateAll checks the field values on ListAlarmsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAlarmsResponseMultiError, or nil if none found.

type ListAlarmsResponseMultiError

type ListAlarmsResponseMultiError []error

ListAlarmsResponseMultiError is an error wrapping multiple validation errors returned by ListAlarmsResponse.ValidateAll() if the designated constraints aren't met.

func (ListAlarmsResponseMultiError) AllErrors

func (m ListAlarmsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAlarmsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAlarmsResponseValidationError

type ListAlarmsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListAlarmsResponseValidationError is the validation error returned by ListAlarmsResponse.Validate if the designated constraints aren't met.

func (ListAlarmsResponseValidationError) Cause

Cause function returns cause value.

func (ListAlarmsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListAlarmsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListAlarmsResponseValidationError) Field

Field function returns field value.

func (ListAlarmsResponseValidationError) Key

Key function returns key value.

func (ListAlarmsResponseValidationError) Reason

Reason function returns reason value.

type ListAlertsRequest

type ListAlertsRequest struct {

	// Device identifier.
	//
	// Types that are assignable to IdOneof:
	//
	//	*ListAlertsRequest_UniqId
	//	*ListAlertsRequest_DeviceId
	IdOneof isListAlertsRequest_IdOneof `protobuf_oneof:"id_oneof"`
	// Alarm ID (UUID). If not specified, all alarms are included.
	AlarmId string `protobuf:"bytes,3,opt,name=alarm_id,json=alarmID,proto3" json:"alarm_id,omitempty"`
	// User ID (UUID). If not specified, all users are included.
	UserId string `protobuf:"bytes,4,opt,name=user_id,json=userID,proto3" json:"user_id,omitempty"`
	// Alerts range end time. Defaults to current time if not specified. Maximum supported time range is 90 days.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Alerts range start time. Defaults to end_time - 24 hours if not specified or after end_time. Maximum supported time range is 90 days.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// contains filtered or unexported fields
}

ListAlertsRequest is sent to list device, alarm, and/or user alerts in an [end, start) time range, in descending timestamp order.

func (*ListAlertsRequest) Descriptor deprecated

func (*ListAlertsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAlertsRequest.ProtoReflect.Descriptor instead.

func (*ListAlertsRequest) GetAlarmId

func (x *ListAlertsRequest) GetAlarmId() string

func (*ListAlertsRequest) GetDeviceId

func (x *ListAlertsRequest) GetDeviceId() string

func (*ListAlertsRequest) GetEndTime

func (x *ListAlertsRequest) GetEndTime() *timestamppb.Timestamp

func (*ListAlertsRequest) GetIdOneof

func (m *ListAlertsRequest) GetIdOneof() isListAlertsRequest_IdOneof

func (*ListAlertsRequest) GetStartTime

func (x *ListAlertsRequest) GetStartTime() *timestamppb.Timestamp

func (*ListAlertsRequest) GetUniqId

func (x *ListAlertsRequest) GetUniqId() string

func (*ListAlertsRequest) GetUserId

func (x *ListAlertsRequest) GetUserId() string

func (*ListAlertsRequest) ProtoMessage

func (*ListAlertsRequest) ProtoMessage()

func (*ListAlertsRequest) ProtoReflect

func (x *ListAlertsRequest) ProtoReflect() protoreflect.Message

func (*ListAlertsRequest) Reset

func (x *ListAlertsRequest) Reset()

func (*ListAlertsRequest) String

func (x *ListAlertsRequest) String() string

func (*ListAlertsRequest) Validate

func (m *ListAlertsRequest) Validate() error

Validate checks the field values on ListAlertsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListAlertsRequest) ValidateAll

func (m *ListAlertsRequest) ValidateAll() error

ValidateAll checks the field values on ListAlertsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAlertsRequestMultiError, or nil if none found.

type ListAlertsRequestMultiError

type ListAlertsRequestMultiError []error

ListAlertsRequestMultiError is an error wrapping multiple validation errors returned by ListAlertsRequest.ValidateAll() if the designated constraints aren't met.

func (ListAlertsRequestMultiError) AllErrors

func (m ListAlertsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAlertsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAlertsRequestValidationError

type ListAlertsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListAlertsRequestValidationError is the validation error returned by ListAlertsRequest.Validate if the designated constraints aren't met.

func (ListAlertsRequestValidationError) Cause

Cause function returns cause value.

func (ListAlertsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListAlertsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListAlertsRequestValidationError) Field

Field function returns field value.

func (ListAlertsRequestValidationError) Key

Key function returns key value.

func (ListAlertsRequestValidationError) Reason

Reason function returns reason value.

type ListAlertsRequest_DeviceId

type ListAlertsRequest_DeviceId struct {
	// Device ID (UUID). If neither unique ID nor device ID are specified, all devices are included.
	DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceID,proto3,oneof"`
}

type ListAlertsRequest_UniqId

type ListAlertsRequest_UniqId struct {
	// Device unique ID. If neither unique ID nor device ID are specified, all devices are included.
	UniqId string `protobuf:"bytes,1,opt,name=uniq_id,json=uniqID,proto3,oneof"`
}

type ListAlertsResponse

type ListAlertsResponse struct {

	// Alert array, ordered by descending created_at timestamp.
	Alerts []*Alert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"`
	// contains filtered or unexported fields
}

ListAlertsResponse is sent in response to a device alerts list.

func (*ListAlertsResponse) Descriptor deprecated

func (*ListAlertsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAlertsResponse.ProtoReflect.Descriptor instead.

func (*ListAlertsResponse) GetAlerts

func (x *ListAlertsResponse) GetAlerts() []*Alert

func (*ListAlertsResponse) ProtoMessage

func (*ListAlertsResponse) ProtoMessage()

func (*ListAlertsResponse) ProtoReflect

func (x *ListAlertsResponse) ProtoReflect() protoreflect.Message

func (*ListAlertsResponse) Reset

func (x *ListAlertsResponse) Reset()

func (*ListAlertsResponse) String

func (x *ListAlertsResponse) String() string

func (*ListAlertsResponse) Validate

func (m *ListAlertsResponse) Validate() error

Validate checks the field values on ListAlertsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListAlertsResponse) ValidateAll

func (m *ListAlertsResponse) ValidateAll() error

ValidateAll checks the field values on ListAlertsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAlertsResponseMultiError, or nil if none found.

type ListAlertsResponseMultiError

type ListAlertsResponseMultiError []error

ListAlertsResponseMultiError is an error wrapping multiple validation errors returned by ListAlertsResponse.ValidateAll() if the designated constraints aren't met.

func (ListAlertsResponseMultiError) AllErrors

func (m ListAlertsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAlertsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAlertsResponseValidationError

type ListAlertsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListAlertsResponseValidationError is the validation error returned by ListAlertsResponse.Validate if the designated constraints aren't met.

func (ListAlertsResponseValidationError) Cause

Cause function returns cause value.

func (ListAlertsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListAlertsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListAlertsResponseValidationError) Field

Field function returns field value.

func (ListAlertsResponseValidationError) Key

Key function returns key value.

func (ListAlertsResponseValidationError) Reason

Reason function returns reason value.

type ListDataPointsRequest

type ListDataPointsRequest struct {

	// Device identifier.
	//
	// Types that are assignable to IdOneof:
	//
	//	*ListDataPointsRequest_UniqId
	//	*ListDataPointsRequest_DeviceId
	IdOneof isListDataPointsRequest_IdOneof `protobuf_oneof:"id_oneof"`
	// Device attribute. If not specified, all attributes are included.
	Attr string `protobuf:"bytes,3,opt,name=attr,proto3" json:"attr,omitempty"`
	// Data points range end time. Defaults to current time if not specified. Maximum supported time range is 90 days.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Data points range start time. Defaults to end_time - 24 hours if not specified or after end_time. Maximum supported time range is 90 days.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// contains filtered or unexported fields
}

ListDataPointsRequest is sent to list device data points in an [end, start) time range, in descending timestamp order.

func (*ListDataPointsRequest) Descriptor deprecated

func (*ListDataPointsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDataPointsRequest.ProtoReflect.Descriptor instead.

func (*ListDataPointsRequest) GetAttr

func (x *ListDataPointsRequest) GetAttr() string

func (*ListDataPointsRequest) GetDeviceId

func (x *ListDataPointsRequest) GetDeviceId() string

func (*ListDataPointsRequest) GetEndTime

func (x *ListDataPointsRequest) GetEndTime() *timestamppb.Timestamp

func (*ListDataPointsRequest) GetIdOneof

func (m *ListDataPointsRequest) GetIdOneof() isListDataPointsRequest_IdOneof

func (*ListDataPointsRequest) GetStartTime

func (x *ListDataPointsRequest) GetStartTime() *timestamppb.Timestamp

func (*ListDataPointsRequest) GetUniqId

func (x *ListDataPointsRequest) GetUniqId() string

func (*ListDataPointsRequest) ProtoMessage

func (*ListDataPointsRequest) ProtoMessage()

func (*ListDataPointsRequest) ProtoReflect

func (x *ListDataPointsRequest) ProtoReflect() protoreflect.Message

func (*ListDataPointsRequest) Reset

func (x *ListDataPointsRequest) Reset()

func (*ListDataPointsRequest) String

func (x *ListDataPointsRequest) String() string

func (*ListDataPointsRequest) Validate

func (m *ListDataPointsRequest) Validate() error

Validate checks the field values on ListDataPointsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListDataPointsRequest) ValidateAll

func (m *ListDataPointsRequest) ValidateAll() error

ValidateAll checks the field values on ListDataPointsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListDataPointsRequestMultiError, or nil if none found.

type ListDataPointsRequestMultiError

type ListDataPointsRequestMultiError []error

ListDataPointsRequestMultiError is an error wrapping multiple validation errors returned by ListDataPointsRequest.ValidateAll() if the designated constraints aren't met.

func (ListDataPointsRequestMultiError) AllErrors

func (m ListDataPointsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDataPointsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListDataPointsRequestValidationError

type ListDataPointsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListDataPointsRequestValidationError is the validation error returned by ListDataPointsRequest.Validate if the designated constraints aren't met.

func (ListDataPointsRequestValidationError) Cause

Cause function returns cause value.

func (ListDataPointsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListDataPointsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListDataPointsRequestValidationError) Field

Field function returns field value.

func (ListDataPointsRequestValidationError) Key

Key function returns key value.

func (ListDataPointsRequestValidationError) Reason

Reason function returns reason value.

type ListDataPointsRequest_DeviceId

type ListDataPointsRequest_DeviceId struct {
	// Device ID (UUID). Either unique ID or device ID must be provided.
	DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceID,proto3,oneof"`
}

type ListDataPointsRequest_UniqId

type ListDataPointsRequest_UniqId struct {
	// Device unique ID. Either unique ID or device ID must be provided.
	UniqId string `protobuf:"bytes,1,opt,name=uniq_id,json=uniqID,proto3,oneof"`
}

type ListDataPointsResponse

type ListDataPointsResponse struct {

	// Data point array, ordered by descending created_at timestamp.
	Points []*common.DataPoint `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"`
	// contains filtered or unexported fields
}

ListDataPointsResponse is sent in response to a device data points list.

func (*ListDataPointsResponse) Descriptor deprecated

func (*ListDataPointsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDataPointsResponse.ProtoReflect.Descriptor instead.

func (*ListDataPointsResponse) GetPoints

func (x *ListDataPointsResponse) GetPoints() []*common.DataPoint

func (*ListDataPointsResponse) ProtoMessage

func (*ListDataPointsResponse) ProtoMessage()

func (*ListDataPointsResponse) ProtoReflect

func (x *ListDataPointsResponse) ProtoReflect() protoreflect.Message

func (*ListDataPointsResponse) Reset

func (x *ListDataPointsResponse) Reset()

func (*ListDataPointsResponse) String

func (x *ListDataPointsResponse) String() string

func (*ListDataPointsResponse) Validate

func (m *ListDataPointsResponse) Validate() error

Validate checks the field values on ListDataPointsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListDataPointsResponse) ValidateAll

func (m *ListDataPointsResponse) ValidateAll() error

ValidateAll checks the field values on ListDataPointsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListDataPointsResponseMultiError, or nil if none found.

type ListDataPointsResponseMultiError

type ListDataPointsResponseMultiError []error

ListDataPointsResponseMultiError is an error wrapping multiple validation errors returned by ListDataPointsResponse.ValidateAll() if the designated constraints aren't met.

func (ListDataPointsResponseMultiError) AllErrors

func (m ListDataPointsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDataPointsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListDataPointsResponseValidationError

type ListDataPointsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListDataPointsResponseValidationError is the validation error returned by ListDataPointsResponse.Validate if the designated constraints aren't met.

func (ListDataPointsResponseValidationError) Cause

Cause function returns cause value.

func (ListDataPointsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListDataPointsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListDataPointsResponseValidationError) Field

Field function returns field value.

func (ListDataPointsResponseValidationError) Key

Key function returns key value.

func (ListDataPointsResponseValidationError) Reason

Reason function returns reason value.

type ListDevicesRequest

type ListDevicesRequest struct {

	// Number of devices to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Device tag. If not specified, all tags are included.
	Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

ListDevicesRequest is sent to list devices.

func (*ListDevicesRequest) Descriptor deprecated

func (*ListDevicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDevicesRequest.ProtoReflect.Descriptor instead.

func (*ListDevicesRequest) GetPageSize

func (x *ListDevicesRequest) GetPageSize() int32

func (*ListDevicesRequest) GetPageToken

func (x *ListDevicesRequest) GetPageToken() string

func (*ListDevicesRequest) GetTag

func (x *ListDevicesRequest) GetTag() string

func (*ListDevicesRequest) ProtoMessage

func (*ListDevicesRequest) ProtoMessage()

func (*ListDevicesRequest) ProtoReflect

func (x *ListDevicesRequest) ProtoReflect() protoreflect.Message

func (*ListDevicesRequest) Reset

func (x *ListDevicesRequest) Reset()

func (*ListDevicesRequest) String

func (x *ListDevicesRequest) String() string

func (*ListDevicesRequest) Validate

func (m *ListDevicesRequest) Validate() error

Validate checks the field values on ListDevicesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListDevicesRequest) ValidateAll

func (m *ListDevicesRequest) ValidateAll() error

ValidateAll checks the field values on ListDevicesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListDevicesRequestMultiError, or nil if none found.

type ListDevicesRequestMultiError

type ListDevicesRequestMultiError []error

ListDevicesRequestMultiError is an error wrapping multiple validation errors returned by ListDevicesRequest.ValidateAll() if the designated constraints aren't met.

func (ListDevicesRequestMultiError) AllErrors

func (m ListDevicesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDevicesRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListDevicesRequestValidationError

type ListDevicesRequestValidationError struct {
	// contains filtered or unexported fields
}

ListDevicesRequestValidationError is the validation error returned by ListDevicesRequest.Validate if the designated constraints aren't met.

func (ListDevicesRequestValidationError) Cause

Cause function returns cause value.

func (ListDevicesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListDevicesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListDevicesRequestValidationError) Field

Field function returns field value.

func (ListDevicesRequestValidationError) Key

Key function returns key value.

func (ListDevicesRequestValidationError) Reason

Reason function returns reason value.

type ListDevicesResponse

type ListDevicesResponse struct {

	// Device array, ordered by ascending created_at timestamp.
	Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of devices available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListDevicesResponse is sent in response to a device list.

func (*ListDevicesResponse) Descriptor deprecated

func (*ListDevicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDevicesResponse.ProtoReflect.Descriptor instead.

func (*ListDevicesResponse) GetDevices

func (x *ListDevicesResponse) GetDevices() []*Device

func (*ListDevicesResponse) GetNextPageToken

func (x *ListDevicesResponse) GetNextPageToken() string

func (*ListDevicesResponse) GetTotalSize

func (x *ListDevicesResponse) GetTotalSize() int32

func (*ListDevicesResponse) ProtoMessage

func (*ListDevicesResponse) ProtoMessage()

func (*ListDevicesResponse) ProtoReflect

func (x *ListDevicesResponse) ProtoReflect() protoreflect.Message

func (*ListDevicesResponse) Reset

func (x *ListDevicesResponse) Reset()

func (*ListDevicesResponse) String

func (x *ListDevicesResponse) String() string

func (*ListDevicesResponse) Validate

func (m *ListDevicesResponse) Validate() error

Validate checks the field values on ListDevicesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListDevicesResponse) ValidateAll

func (m *ListDevicesResponse) ValidateAll() error

ValidateAll checks the field values on ListDevicesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListDevicesResponseMultiError, or nil if none found.

type ListDevicesResponseMultiError

type ListDevicesResponseMultiError []error

ListDevicesResponseMultiError is an error wrapping multiple validation errors returned by ListDevicesResponse.ValidateAll() if the designated constraints aren't met.

func (ListDevicesResponseMultiError) AllErrors

func (m ListDevicesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDevicesResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListDevicesResponseValidationError

type ListDevicesResponseValidationError struct {
	// contains filtered or unexported fields
}

ListDevicesResponseValidationError is the validation error returned by ListDevicesResponse.Validate if the designated constraints aren't met.

func (ListDevicesResponseValidationError) Cause

Cause function returns cause value.

func (ListDevicesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListDevicesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListDevicesResponseValidationError) Field

Field function returns field value.

func (ListDevicesResponseValidationError) Key

Key function returns key value.

func (ListDevicesResponseValidationError) Reason

Reason function returns reason value.

type ListEventsRequest

type ListEventsRequest struct {

	// Device identifier.
	//
	// Types that are assignable to IdOneof:
	//
	//	*ListEventsRequest_UniqId
	//	*ListEventsRequest_DeviceId
	IdOneof isListEventsRequest_IdOneof `protobuf_oneof:"id_oneof"`
	// Rule ID (UUID). If not specified, all rules are included.
	RuleId string `protobuf:"bytes,3,opt,name=rule_id,json=ruleID,proto3" json:"rule_id,omitempty"`
	// Events range end time. Defaults to current time if not specified. Maximum supported time range is 90 days.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Events range start time. Defaults to end_time - 24 hours if not specified or after end_time. Maximum supported time range is 90 days.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// contains filtered or unexported fields
}

ListEventsRequest is sent to list device events in an [end, start) time range, in descending timestamp order.

func (*ListEventsRequest) Descriptor deprecated

func (*ListEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead.

func (*ListEventsRequest) GetDeviceId

func (x *ListEventsRequest) GetDeviceId() string

func (*ListEventsRequest) GetEndTime

func (x *ListEventsRequest) GetEndTime() *timestamppb.Timestamp

func (*ListEventsRequest) GetIdOneof

func (m *ListEventsRequest) GetIdOneof() isListEventsRequest_IdOneof

func (*ListEventsRequest) GetRuleId

func (x *ListEventsRequest) GetRuleId() string

func (*ListEventsRequest) GetStartTime

func (x *ListEventsRequest) GetStartTime() *timestamppb.Timestamp

func (*ListEventsRequest) GetUniqId

func (x *ListEventsRequest) GetUniqId() string

func (*ListEventsRequest) ProtoMessage

func (*ListEventsRequest) ProtoMessage()

func (*ListEventsRequest) ProtoReflect

func (x *ListEventsRequest) ProtoReflect() protoreflect.Message

func (*ListEventsRequest) Reset

func (x *ListEventsRequest) Reset()

func (*ListEventsRequest) String

func (x *ListEventsRequest) String() string

func (*ListEventsRequest) Validate

func (m *ListEventsRequest) Validate() error

Validate checks the field values on ListEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListEventsRequest) ValidateAll

func (m *ListEventsRequest) ValidateAll() error

ValidateAll checks the field values on ListEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListEventsRequestMultiError, or nil if none found.

type ListEventsRequestMultiError

type ListEventsRequestMultiError []error

ListEventsRequestMultiError is an error wrapping multiple validation errors returned by ListEventsRequest.ValidateAll() if the designated constraints aren't met.

func (ListEventsRequestMultiError) AllErrors

func (m ListEventsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEventsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListEventsRequestValidationError

type ListEventsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListEventsRequestValidationError is the validation error returned by ListEventsRequest.Validate if the designated constraints aren't met.

func (ListEventsRequestValidationError) Cause

Cause function returns cause value.

func (ListEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListEventsRequestValidationError) Field

Field function returns field value.

func (ListEventsRequestValidationError) Key

Key function returns key value.

func (ListEventsRequestValidationError) Reason

Reason function returns reason value.

type ListEventsRequest_DeviceId

type ListEventsRequest_DeviceId struct {
	// Device ID (UUID). Either unique ID or device ID must be provided.
	DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceID,proto3,oneof"`
}

type ListEventsRequest_UniqId

type ListEventsRequest_UniqId struct {
	// Device unique ID. Either unique ID or device ID must be provided.
	UniqId string `protobuf:"bytes,1,opt,name=uniq_id,json=uniqID,proto3,oneof"`
}

type ListEventsResponse

type ListEventsResponse struct {

	// Event array, ordered by descending created_at timestamp.
	Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

ListEventsResponse is sent in response to a device events list.

func (*ListEventsResponse) Descriptor deprecated

func (*ListEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead.

func (*ListEventsResponse) GetEvents

func (x *ListEventsResponse) GetEvents() []*Event

func (*ListEventsResponse) ProtoMessage

func (*ListEventsResponse) ProtoMessage()

func (*ListEventsResponse) ProtoReflect

func (x *ListEventsResponse) ProtoReflect() protoreflect.Message

func (*ListEventsResponse) Reset

func (x *ListEventsResponse) Reset()

func (*ListEventsResponse) String

func (x *ListEventsResponse) String() string

func (*ListEventsResponse) Validate

func (m *ListEventsResponse) Validate() error

Validate checks the field values on ListEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListEventsResponse) ValidateAll

func (m *ListEventsResponse) ValidateAll() error

ValidateAll checks the field values on ListEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListEventsResponseMultiError, or nil if none found.

type ListEventsResponseMultiError

type ListEventsResponseMultiError []error

ListEventsResponseMultiError is an error wrapping multiple validation errors returned by ListEventsResponse.ValidateAll() if the designated constraints aren't met.

func (ListEventsResponseMultiError) AllErrors

func (m ListEventsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEventsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListEventsResponseValidationError

type ListEventsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListEventsResponseValidationError is the validation error returned by ListEventsResponse.Validate if the designated constraints aren't met.

func (ListEventsResponseValidationError) Cause

Cause function returns cause value.

func (ListEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListEventsResponseValidationError) Field

Field function returns field value.

func (ListEventsResponseValidationError) Key

Key function returns key value.

func (ListEventsResponseValidationError) Reason

Reason function returns reason value.

type ListKeysRequest

type ListKeysRequest struct {

	// Number of API keys to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListKeysRequest is sent to list API keys.

func (*ListKeysRequest) Descriptor deprecated

func (*ListKeysRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListKeysRequest.ProtoReflect.Descriptor instead.

func (*ListKeysRequest) GetPageSize

func (x *ListKeysRequest) GetPageSize() int32

func (*ListKeysRequest) GetPageToken

func (x *ListKeysRequest) GetPageToken() string

func (*ListKeysRequest) ProtoMessage

func (*ListKeysRequest) ProtoMessage()

func (*ListKeysRequest) ProtoReflect

func (x *ListKeysRequest) ProtoReflect() protoreflect.Message

func (*ListKeysRequest) Reset

func (x *ListKeysRequest) Reset()

func (*ListKeysRequest) String

func (x *ListKeysRequest) String() string

func (*ListKeysRequest) Validate

func (m *ListKeysRequest) Validate() error

Validate checks the field values on ListKeysRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListKeysRequest) ValidateAll

func (m *ListKeysRequest) ValidateAll() error

ValidateAll checks the field values on ListKeysRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListKeysRequestMultiError, or nil if none found.

type ListKeysRequestMultiError

type ListKeysRequestMultiError []error

ListKeysRequestMultiError is an error wrapping multiple validation errors returned by ListKeysRequest.ValidateAll() if the designated constraints aren't met.

func (ListKeysRequestMultiError) AllErrors

func (m ListKeysRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListKeysRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListKeysRequestValidationError

type ListKeysRequestValidationError struct {
	// contains filtered or unexported fields
}

ListKeysRequestValidationError is the validation error returned by ListKeysRequest.Validate if the designated constraints aren't met.

func (ListKeysRequestValidationError) Cause

Cause function returns cause value.

func (ListKeysRequestValidationError) Error

Error satisfies the builtin error interface

func (ListKeysRequestValidationError) ErrorName

func (e ListKeysRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListKeysRequestValidationError) Field

Field function returns field value.

func (ListKeysRequestValidationError) Key

Key function returns key value.

func (ListKeysRequestValidationError) Reason

Reason function returns reason value.

type ListKeysResponse

type ListKeysResponse struct {

	// Key array, ordered by ascending created_at timestamp.
	Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of API keys available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListKeysResponse is sent in response to an API key list.

func (*ListKeysResponse) Descriptor deprecated

func (*ListKeysResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListKeysResponse.ProtoReflect.Descriptor instead.

func (*ListKeysResponse) GetKeys

func (x *ListKeysResponse) GetKeys() []*Key

func (*ListKeysResponse) GetNextPageToken

func (x *ListKeysResponse) GetNextPageToken() string

func (*ListKeysResponse) GetTotalSize

func (x *ListKeysResponse) GetTotalSize() int32

func (*ListKeysResponse) ProtoMessage

func (*ListKeysResponse) ProtoMessage()

func (*ListKeysResponse) ProtoReflect

func (x *ListKeysResponse) ProtoReflect() protoreflect.Message

func (*ListKeysResponse) Reset

func (x *ListKeysResponse) Reset()

func (*ListKeysResponse) String

func (x *ListKeysResponse) String() string

func (*ListKeysResponse) Validate

func (m *ListKeysResponse) Validate() error

Validate checks the field values on ListKeysResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListKeysResponse) ValidateAll

func (m *ListKeysResponse) ValidateAll() error

ValidateAll checks the field values on ListKeysResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListKeysResponseMultiError, or nil if none found.

type ListKeysResponseMultiError

type ListKeysResponseMultiError []error

ListKeysResponseMultiError is an error wrapping multiple validation errors returned by ListKeysResponse.ValidateAll() if the designated constraints aren't met.

func (ListKeysResponseMultiError) AllErrors

func (m ListKeysResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListKeysResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListKeysResponseValidationError

type ListKeysResponseValidationError struct {
	// contains filtered or unexported fields
}

ListKeysResponseValidationError is the validation error returned by ListKeysResponse.Validate if the designated constraints aren't met.

func (ListKeysResponseValidationError) Cause

Cause function returns cause value.

func (ListKeysResponseValidationError) Error

Error satisfies the builtin error interface

func (ListKeysResponseValidationError) ErrorName

ErrorName returns error name.

func (ListKeysResponseValidationError) Field

Field function returns field value.

func (ListKeysResponseValidationError) Key

Key function returns key value.

func (ListKeysResponseValidationError) Reason

Reason function returns reason value.

type ListOrgsRequest

type ListOrgsRequest struct {

	// Number of organizations to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListOrgsRequest is sent to list organizations.

func (*ListOrgsRequest) Descriptor deprecated

func (*ListOrgsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListOrgsRequest.ProtoReflect.Descriptor instead.

func (*ListOrgsRequest) GetPageSize

func (x *ListOrgsRequest) GetPageSize() int32

func (*ListOrgsRequest) GetPageToken

func (x *ListOrgsRequest) GetPageToken() string

func (*ListOrgsRequest) ProtoMessage

func (*ListOrgsRequest) ProtoMessage()

func (*ListOrgsRequest) ProtoReflect

func (x *ListOrgsRequest) ProtoReflect() protoreflect.Message

func (*ListOrgsRequest) Reset

func (x *ListOrgsRequest) Reset()

func (*ListOrgsRequest) String

func (x *ListOrgsRequest) String() string

func (*ListOrgsRequest) Validate

func (m *ListOrgsRequest) Validate() error

Validate checks the field values on ListOrgsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListOrgsRequest) ValidateAll

func (m *ListOrgsRequest) ValidateAll() error

ValidateAll checks the field values on ListOrgsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListOrgsRequestMultiError, or nil if none found.

type ListOrgsRequestMultiError

type ListOrgsRequestMultiError []error

ListOrgsRequestMultiError is an error wrapping multiple validation errors returned by ListOrgsRequest.ValidateAll() if the designated constraints aren't met.

func (ListOrgsRequestMultiError) AllErrors

func (m ListOrgsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListOrgsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListOrgsRequestValidationError

type ListOrgsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListOrgsRequestValidationError is the validation error returned by ListOrgsRequest.Validate if the designated constraints aren't met.

func (ListOrgsRequestValidationError) Cause

Cause function returns cause value.

func (ListOrgsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListOrgsRequestValidationError) ErrorName

func (e ListOrgsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListOrgsRequestValidationError) Field

Field function returns field value.

func (ListOrgsRequestValidationError) Key

Key function returns key value.

func (ListOrgsRequestValidationError) Reason

Reason function returns reason value.

type ListOrgsResponse

type ListOrgsResponse struct {

	// Org array, ordered by ascending created_at timestamp.
	Orgs []*Org `protobuf:"bytes,1,rep,name=orgs,proto3" json:"orgs,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of organizations available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListOrgsResponse is sent in response to an organization list.

func (*ListOrgsResponse) Descriptor deprecated

func (*ListOrgsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListOrgsResponse.ProtoReflect.Descriptor instead.

func (*ListOrgsResponse) GetNextPageToken

func (x *ListOrgsResponse) GetNextPageToken() string

func (*ListOrgsResponse) GetOrgs

func (x *ListOrgsResponse) GetOrgs() []*Org

func (*ListOrgsResponse) GetTotalSize

func (x *ListOrgsResponse) GetTotalSize() int32

func (*ListOrgsResponse) ProtoMessage

func (*ListOrgsResponse) ProtoMessage()

func (*ListOrgsResponse) ProtoReflect

func (x *ListOrgsResponse) ProtoReflect() protoreflect.Message

func (*ListOrgsResponse) Reset

func (x *ListOrgsResponse) Reset()

func (*ListOrgsResponse) String

func (x *ListOrgsResponse) String() string

func (*ListOrgsResponse) Validate

func (m *ListOrgsResponse) Validate() error

Validate checks the field values on ListOrgsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListOrgsResponse) ValidateAll

func (m *ListOrgsResponse) ValidateAll() error

ValidateAll checks the field values on ListOrgsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListOrgsResponseMultiError, or nil if none found.

type ListOrgsResponseMultiError

type ListOrgsResponseMultiError []error

ListOrgsResponseMultiError is an error wrapping multiple validation errors returned by ListOrgsResponse.ValidateAll() if the designated constraints aren't met.

func (ListOrgsResponseMultiError) AllErrors

func (m ListOrgsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListOrgsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListOrgsResponseValidationError

type ListOrgsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListOrgsResponseValidationError is the validation error returned by ListOrgsResponse.Validate if the designated constraints aren't met.

func (ListOrgsResponseValidationError) Cause

Cause function returns cause value.

func (ListOrgsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListOrgsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListOrgsResponseValidationError) Field

Field function returns field value.

func (ListOrgsResponseValidationError) Key

Key function returns key value.

func (ListOrgsResponseValidationError) Reason

Reason function returns reason value.

type ListRulesRequest

type ListRulesRequest struct {

	// Number of rules to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListRulesRequest is sent to list rules.

func (*ListRulesRequest) Descriptor deprecated

func (*ListRulesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRulesRequest.ProtoReflect.Descriptor instead.

func (*ListRulesRequest) GetPageSize

func (x *ListRulesRequest) GetPageSize() int32

func (*ListRulesRequest) GetPageToken

func (x *ListRulesRequest) GetPageToken() string

func (*ListRulesRequest) ProtoMessage

func (*ListRulesRequest) ProtoMessage()

func (*ListRulesRequest) ProtoReflect

func (x *ListRulesRequest) ProtoReflect() protoreflect.Message

func (*ListRulesRequest) Reset

func (x *ListRulesRequest) Reset()

func (*ListRulesRequest) String

func (x *ListRulesRequest) String() string

func (*ListRulesRequest) Validate

func (m *ListRulesRequest) Validate() error

Validate checks the field values on ListRulesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListRulesRequest) ValidateAll

func (m *ListRulesRequest) ValidateAll() error

ValidateAll checks the field values on ListRulesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRulesRequestMultiError, or nil if none found.

type ListRulesRequestMultiError

type ListRulesRequestMultiError []error

ListRulesRequestMultiError is an error wrapping multiple validation errors returned by ListRulesRequest.ValidateAll() if the designated constraints aren't met.

func (ListRulesRequestMultiError) AllErrors

func (m ListRulesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRulesRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListRulesRequestValidationError

type ListRulesRequestValidationError struct {
	// contains filtered or unexported fields
}

ListRulesRequestValidationError is the validation error returned by ListRulesRequest.Validate if the designated constraints aren't met.

func (ListRulesRequestValidationError) Cause

Cause function returns cause value.

func (ListRulesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRulesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListRulesRequestValidationError) Field

Field function returns field value.

func (ListRulesRequestValidationError) Key

Key function returns key value.

func (ListRulesRequestValidationError) Reason

Reason function returns reason value.

type ListRulesResponse

type ListRulesResponse struct {

	// Rule array, ordered by ascending created_at timestamp.
	Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of rules available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListRulesResponse is sent in response to a rule list.

func (*ListRulesResponse) Descriptor deprecated

func (*ListRulesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListRulesResponse.ProtoReflect.Descriptor instead.

func (*ListRulesResponse) GetNextPageToken

func (x *ListRulesResponse) GetNextPageToken() string

func (*ListRulesResponse) GetRules

func (x *ListRulesResponse) GetRules() []*Rule

func (*ListRulesResponse) GetTotalSize

func (x *ListRulesResponse) GetTotalSize() int32

func (*ListRulesResponse) ProtoMessage

func (*ListRulesResponse) ProtoMessage()

func (*ListRulesResponse) ProtoReflect

func (x *ListRulesResponse) ProtoReflect() protoreflect.Message

func (*ListRulesResponse) Reset

func (x *ListRulesResponse) Reset()

func (*ListRulesResponse) String

func (x *ListRulesResponse) String() string

func (*ListRulesResponse) Validate

func (m *ListRulesResponse) Validate() error

Validate checks the field values on ListRulesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListRulesResponse) ValidateAll

func (m *ListRulesResponse) ValidateAll() error

ValidateAll checks the field values on ListRulesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRulesResponseMultiError, or nil if none found.

type ListRulesResponseMultiError

type ListRulesResponseMultiError []error

ListRulesResponseMultiError is an error wrapping multiple validation errors returned by ListRulesResponse.ValidateAll() if the designated constraints aren't met.

func (ListRulesResponseMultiError) AllErrors

func (m ListRulesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRulesResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListRulesResponseValidationError

type ListRulesResponseValidationError struct {
	// contains filtered or unexported fields
}

ListRulesResponseValidationError is the validation error returned by ListRulesResponse.Validate if the designated constraints aren't met.

func (ListRulesResponseValidationError) Cause

Cause function returns cause value.

func (ListRulesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListRulesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListRulesResponseValidationError) Field

Field function returns field value.

func (ListRulesResponseValidationError) Key

Key function returns key value.

func (ListRulesResponseValidationError) Reason

Reason function returns reason value.

type ListTagsRequest

type ListTagsRequest struct {
	// contains filtered or unexported fields
}

ListTagsRequest is sent to list tags.

func (*ListTagsRequest) Descriptor deprecated

func (*ListTagsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTagsRequest.ProtoReflect.Descriptor instead.

func (*ListTagsRequest) ProtoMessage

func (*ListTagsRequest) ProtoMessage()

func (*ListTagsRequest) ProtoReflect

func (x *ListTagsRequest) ProtoReflect() protoreflect.Message

func (*ListTagsRequest) Reset

func (x *ListTagsRequest) Reset()

func (*ListTagsRequest) String

func (x *ListTagsRequest) String() string

func (*ListTagsRequest) Validate

func (m *ListTagsRequest) Validate() error

Validate checks the field values on ListTagsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListTagsRequest) ValidateAll

func (m *ListTagsRequest) ValidateAll() error

ValidateAll checks the field values on ListTagsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListTagsRequestMultiError, or nil if none found.

type ListTagsRequestMultiError

type ListTagsRequestMultiError []error

ListTagsRequestMultiError is an error wrapping multiple validation errors returned by ListTagsRequest.ValidateAll() if the designated constraints aren't met.

func (ListTagsRequestMultiError) AllErrors

func (m ListTagsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTagsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListTagsRequestValidationError

type ListTagsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListTagsRequestValidationError is the validation error returned by ListTagsRequest.Validate if the designated constraints aren't met.

func (ListTagsRequestValidationError) Cause

Cause function returns cause value.

func (ListTagsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTagsRequestValidationError) ErrorName

func (e ListTagsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListTagsRequestValidationError) Field

Field function returns field value.

func (ListTagsRequestValidationError) Key

Key function returns key value.

func (ListTagsRequestValidationError) Reason

Reason function returns reason value.

type ListTagsResponse

type ListTagsResponse struct {

	// Tag array, ordered by ascending name.
	Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

ListTagsResponse is sent in response to a tag list.

func (*ListTagsResponse) Descriptor deprecated

func (*ListTagsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTagsResponse.ProtoReflect.Descriptor instead.

func (*ListTagsResponse) GetTags

func (x *ListTagsResponse) GetTags() []string

func (*ListTagsResponse) ProtoMessage

func (*ListTagsResponse) ProtoMessage()

func (*ListTagsResponse) ProtoReflect

func (x *ListTagsResponse) ProtoReflect() protoreflect.Message

func (*ListTagsResponse) Reset

func (x *ListTagsResponse) Reset()

func (*ListTagsResponse) String

func (x *ListTagsResponse) String() string

func (*ListTagsResponse) Validate

func (m *ListTagsResponse) Validate() error

Validate checks the field values on ListTagsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListTagsResponse) ValidateAll

func (m *ListTagsResponse) ValidateAll() error

ValidateAll checks the field values on ListTagsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListTagsResponseMultiError, or nil if none found.

type ListTagsResponseMultiError

type ListTagsResponseMultiError []error

ListTagsResponseMultiError is an error wrapping multiple validation errors returned by ListTagsResponse.ValidateAll() if the designated constraints aren't met.

func (ListTagsResponseMultiError) AllErrors

func (m ListTagsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTagsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListTagsResponseValidationError

type ListTagsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListTagsResponseValidationError is the validation error returned by ListTagsResponse.Validate if the designated constraints aren't met.

func (ListTagsResponseValidationError) Cause

Cause function returns cause value.

func (ListTagsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListTagsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListTagsResponseValidationError) Field

Field function returns field value.

func (ListTagsResponseValidationError) Key

Key function returns key value.

func (ListTagsResponseValidationError) Reason

Reason function returns reason value.

type ListUsersRequest

type ListUsersRequest struct {

	// Number of users to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// User tag. If not specified, all tags are included.
	Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

ListUsersRequest is sent to list users.

func (*ListUsersRequest) Descriptor deprecated

func (*ListUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetPageSize

func (x *ListUsersRequest) GetPageSize() int32

func (*ListUsersRequest) GetPageToken

func (x *ListUsersRequest) GetPageToken() string

func (*ListUsersRequest) GetTag

func (x *ListUsersRequest) GetTag() string

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

func (x *ListUsersRequest) ProtoReflect() protoreflect.Message

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

func (*ListUsersRequest) Validate

func (m *ListUsersRequest) Validate() error

Validate checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUsersRequest) ValidateAll

func (m *ListUsersRequest) ValidateAll() error

ValidateAll checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUsersRequestMultiError, or nil if none found.

type ListUsersRequestMultiError

type ListUsersRequestMultiError []error

ListUsersRequestMultiError is an error wrapping multiple validation errors returned by ListUsersRequest.ValidateAll() if the designated constraints aren't met.

func (ListUsersRequestMultiError) AllErrors

func (m ListUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUsersRequestValidationError

type ListUsersRequestValidationError struct {
	// contains filtered or unexported fields
}

ListUsersRequestValidationError is the validation error returned by ListUsersRequest.Validate if the designated constraints aren't met.

func (ListUsersRequestValidationError) Cause

Cause function returns cause value.

func (ListUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUsersRequestValidationError) Field

Field function returns field value.

func (ListUsersRequestValidationError) Key

Key function returns key value.

func (ListUsersRequestValidationError) Reason

Reason function returns reason value.

type ListUsersResponse

type ListUsersResponse struct {

	// User array, ordered by ascending created_at timestamp. The completeness of the array will depend on whether the request was made by an admin user, non-admin user, or API key.
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of users available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListUsersResponse is sent in response to a user list.

func (*ListUsersResponse) Descriptor deprecated

func (*ListUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetNextPageToken

func (x *ListUsersResponse) GetNextPageToken() string

func (*ListUsersResponse) GetTotalSize

func (x *ListUsersResponse) GetTotalSize() int32

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

func (x *ListUsersResponse) ProtoReflect() protoreflect.Message

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

func (*ListUsersResponse) Validate

func (m *ListUsersResponse) Validate() error

Validate checks the field values on ListUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUsersResponse) ValidateAll

func (m *ListUsersResponse) ValidateAll() error

ValidateAll checks the field values on ListUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUsersResponseMultiError, or nil if none found.

type ListUsersResponseMultiError

type ListUsersResponseMultiError []error

ListUsersResponseMultiError is an error wrapping multiple validation errors returned by ListUsersResponse.ValidateAll() if the designated constraints aren't met.

func (ListUsersResponseMultiError) AllErrors

func (m ListUsersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUsersResponseValidationError

type ListUsersResponseValidationError struct {
	// contains filtered or unexported fields
}

ListUsersResponseValidationError is the validation error returned by ListUsersResponse.Validate if the designated constraints aren't met.

func (ListUsersResponseValidationError) Cause

Cause function returns cause value.

func (ListUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUsersResponseValidationError) Field

Field function returns field value.

func (ListUsersResponseValidationError) Key

Key function returns key value.

func (ListUsersResponseValidationError) Reason

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {

	// Email of the user to log in.
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// Organization name of the user to log in.
	OrgName string `protobuf:"bytes,2,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"`
	// Password of the user to log in.
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

LoginRequest is sent to log in a user.

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetOrgName

func (x *LoginRequest) GetOrgName() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

type LoginRequestValidationError struct {
	// contains filtered or unexported fields
}

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {

	// Token to be used for subsequent non-login calls.
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// Token expiration timestamp.
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

LoginResponse is sent in response to a user login.

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetExpiresAt

func (x *LoginResponse) GetExpiresAt() *timestamppb.Timestamp

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.

type LoginResponseMultiError

type LoginResponseMultiError []error

LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginResponseValidationError

type LoginResponseValidationError struct {
	// contains filtered or unexported fields
}

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type Org

type Org struct {

	// Organization ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Organization display name. Used anywhere the organization is shown to a user, including web sites and alert sender fields.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Organization email. Used as the 'From' address in email alerts.
	Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// Organization creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Organization modification timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Org represents an organization as stored in the database.

func (*Org) Descriptor deprecated

func (*Org) Descriptor() ([]byte, []int)

Deprecated: Use Org.ProtoReflect.Descriptor instead.

func (*Org) GetCreatedAt

func (x *Org) GetCreatedAt() *timestamppb.Timestamp

func (*Org) GetDisplayName

func (x *Org) GetDisplayName() string

func (*Org) GetEmail

func (x *Org) GetEmail() string

func (*Org) GetId

func (x *Org) GetId() string

func (*Org) GetName

func (x *Org) GetName() string

func (*Org) GetUpdatedAt

func (x *Org) GetUpdatedAt() *timestamppb.Timestamp

func (*Org) ProtoMessage

func (*Org) ProtoMessage()

func (*Org) ProtoReflect

func (x *Org) ProtoReflect() protoreflect.Message

func (*Org) Reset

func (x *Org) Reset()

func (*Org) String

func (x *Org) String() string

func (*Org) Validate

func (m *Org) Validate() error

Validate checks the field values on Org with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Org) ValidateAll

func (m *Org) ValidateAll() error

ValidateAll checks the field values on Org with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrgMultiError, or nil if none found.

type OrgMultiError

type OrgMultiError []error

OrgMultiError is an error wrapping multiple validation errors returned by Org.ValidateAll() if the designated constraints aren't met.

func (OrgMultiError) AllErrors

func (m OrgMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OrgMultiError) Error

func (m OrgMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OrgServiceClient

type OrgServiceClient interface {
	// Create an organization. An organization is the top level resource and contains users, devices, rules, and derived resources.
	CreateOrg(ctx context.Context, in *CreateOrgRequest, opts ...grpc.CallOption) (*Org, error)
	// Get an organization by ID. An organization is the top level resource and contains users, devices, rules, and derived resources.
	GetOrg(ctx context.Context, in *GetOrgRequest, opts ...grpc.CallOption) (*Org, error)
	// Update an organization. An organization is the top level resource and contains users, devices, rules, and derived resources.
	UpdateOrg(ctx context.Context, in *UpdateOrgRequest, opts ...grpc.CallOption) (*Org, error)
	// Delete an organization by ID. An organization is the top level resource and contains users, devices, rules, and derived resources.
	DeleteOrg(ctx context.Context, in *DeleteOrgRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List all organizations. An organization is the top level resource and contains users, devices, rules, and derived resources.
	ListOrgs(ctx context.Context, in *ListOrgsRequest, opts ...grpc.CallOption) (*ListOrgsResponse, error)
}

OrgServiceClient is the client API for OrgService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewOrgServiceClient

func NewOrgServiceClient(cc grpc.ClientConnInterface) OrgServiceClient

type OrgServiceServer

type OrgServiceServer interface {
	// Create an organization. An organization is the top level resource and contains users, devices, rules, and derived resources.
	CreateOrg(context.Context, *CreateOrgRequest) (*Org, error)
	// Get an organization by ID. An organization is the top level resource and contains users, devices, rules, and derived resources.
	GetOrg(context.Context, *GetOrgRequest) (*Org, error)
	// Update an organization. An organization is the top level resource and contains users, devices, rules, and derived resources.
	UpdateOrg(context.Context, *UpdateOrgRequest) (*Org, error)
	// Delete an organization by ID. An organization is the top level resource and contains users, devices, rules, and derived resources.
	DeleteOrg(context.Context, *DeleteOrgRequest) (*emptypb.Empty, error)
	// List all organizations. An organization is the top level resource and contains users, devices, rules, and derived resources.
	ListOrgs(context.Context, *ListOrgsRequest) (*ListOrgsResponse, error)
	// contains filtered or unexported methods
}

OrgServiceServer is the server API for OrgService service. All implementations must embed UnimplementedOrgServiceServer for forward compatibility

type OrgValidationError

type OrgValidationError struct {
	// contains filtered or unexported fields
}

OrgValidationError is the validation error returned by Org.Validate if the designated constraints aren't met.

func (OrgValidationError) Cause

func (e OrgValidationError) Cause() error

Cause function returns cause value.

func (OrgValidationError) Error

func (e OrgValidationError) Error() string

Error satisfies the builtin error interface

func (OrgValidationError) ErrorName

func (e OrgValidationError) ErrorName() string

ErrorName returns error name.

func (OrgValidationError) Field

func (e OrgValidationError) Field() string

Field function returns field value.

func (OrgValidationError) Key

func (e OrgValidationError) Key() bool

Key function returns key value.

func (OrgValidationError) Reason

func (e OrgValidationError) Reason() string

Reason function returns reason value.

type PublishDataPointsRequest

type PublishDataPointsRequest struct {

	// Data point array to publish.
	Points []*common.DataPoint `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"`
	// contains filtered or unexported fields
}

PublishDataPointsRequest is sent to publish data points. The publisher role is recommended for programmatic use of this endpoint.

func (*PublishDataPointsRequest) Descriptor deprecated

func (*PublishDataPointsRequest) Descriptor() ([]byte, []int)

Deprecated: Use PublishDataPointsRequest.ProtoReflect.Descriptor instead.

func (*PublishDataPointsRequest) GetPoints

func (x *PublishDataPointsRequest) GetPoints() []*common.DataPoint

func (*PublishDataPointsRequest) ProtoMessage

func (*PublishDataPointsRequest) ProtoMessage()

func (*PublishDataPointsRequest) ProtoReflect

func (x *PublishDataPointsRequest) ProtoReflect() protoreflect.Message

func (*PublishDataPointsRequest) Reset

func (x *PublishDataPointsRequest) Reset()

func (*PublishDataPointsRequest) String

func (x *PublishDataPointsRequest) String() string

func (*PublishDataPointsRequest) Validate

func (m *PublishDataPointsRequest) Validate() error

Validate checks the field values on PublishDataPointsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PublishDataPointsRequest) ValidateAll

func (m *PublishDataPointsRequest) ValidateAll() error

ValidateAll checks the field values on PublishDataPointsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PublishDataPointsRequestMultiError, or nil if none found.

type PublishDataPointsRequestMultiError

type PublishDataPointsRequestMultiError []error

PublishDataPointsRequestMultiError is an error wrapping multiple validation errors returned by PublishDataPointsRequest.ValidateAll() if the designated constraints aren't met.

func (PublishDataPointsRequestMultiError) AllErrors

func (m PublishDataPointsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PublishDataPointsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PublishDataPointsRequestValidationError

type PublishDataPointsRequestValidationError struct {
	// contains filtered or unexported fields
}

PublishDataPointsRequestValidationError is the validation error returned by PublishDataPointsRequest.Validate if the designated constraints aren't met.

func (PublishDataPointsRequestValidationError) Cause

Cause function returns cause value.

func (PublishDataPointsRequestValidationError) Error

Error satisfies the builtin error interface

func (PublishDataPointsRequestValidationError) ErrorName

ErrorName returns error name.

func (PublishDataPointsRequestValidationError) Field

Field function returns field value.

func (PublishDataPointsRequestValidationError) Key

Key function returns key value.

func (PublishDataPointsRequestValidationError) Reason

Reason function returns reason value.

type Role

type Role int32

Role represents the role of a user.

const (
	// Role is not specified.
	Role_ROLE_UNSPECIFIED Role = 0
	// Contacts are not allowed to log in to the system, but can receive and respond to alerts from their organization.
	Role_CONTACT Role = 3
	// Viewers can only read resources in their organization, but can update their own user.
	Role_VIEWER Role = 6
	// Publishers can publish data points, but otherwise can only read resources in their organization.
	Role_PUBLISHER Role = 7
	// Builders can read and modify resources in their organization, but can only update their own user.
	Role_BUILDER Role = 9
	// Admins can read and modify anything in their organization, including creating users of an equal or lesser role.
	Role_ADMIN Role = 12
	// System admins can create organizations and modify anything in their organization.
	Role_SYS_ADMIN Role = 15
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

func (Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

type Rule

type Rule struct {

	// Rule ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Rule name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Rule status.
	Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=thingspect.api.Status" json:"status,omitempty"`
	// Device tag to which the rule applies.
	DeviceTag string `protobuf:"bytes,5,opt,name=device_tag,json=deviceTag,proto3" json:"device_tag,omitempty"`
	// Data point attribute to which the rule applies.
	Attr string `protobuf:"bytes,6,opt,name=attr,proto3" json:"attr,omitempty"`
	// Rule expression. The rules engine evaluates a boolean expression using the [Expr language](https://expr-lang.org/).
	Expr string `protobuf:"bytes,7,opt,name=expr,proto3" json:"expr,omitempty"`
	// Rule creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Rule modification timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Rule represents a rule as stored in the database.

func (*Rule) Descriptor deprecated

func (*Rule) Descriptor() ([]byte, []int)

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetAttr

func (x *Rule) GetAttr() string

func (*Rule) GetCreatedAt

func (x *Rule) GetCreatedAt() *timestamppb.Timestamp

func (*Rule) GetDeviceTag

func (x *Rule) GetDeviceTag() string

func (*Rule) GetExpr

func (x *Rule) GetExpr() string

func (*Rule) GetId

func (x *Rule) GetId() string

func (*Rule) GetName

func (x *Rule) GetName() string

func (*Rule) GetOrgId

func (x *Rule) GetOrgId() string

func (*Rule) GetStatus

func (x *Rule) GetStatus() Status

func (*Rule) GetUpdatedAt

func (x *Rule) GetUpdatedAt() *timestamppb.Timestamp

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

func (x *Rule) ProtoReflect() protoreflect.Message

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

func (*Rule) Validate

func (m *Rule) Validate() error

Validate checks the field values on Rule with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Rule) ValidateAll

func (m *Rule) ValidateAll() error

ValidateAll checks the field values on Rule with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RuleMultiError, or nil if none found.

type RuleAlarmServiceClient

type RuleAlarmServiceClient interface {
	// Create a rule. Rules generate events when conditions are met.
	CreateRule(ctx context.Context, in *CreateRuleRequest, opts ...grpc.CallOption) (*Rule, error)
	// Create an alarm. Alarms generate alerts via parent rules.
	CreateAlarm(ctx context.Context, in *CreateAlarmRequest, opts ...grpc.CallOption) (*Alarm, error)
	// Get a rule by ID. Rules generate events when conditions are met.
	GetRule(ctx context.Context, in *GetRuleRequest, opts ...grpc.CallOption) (*Rule, error)
	// Get an alarm by ID. Alarms generate alerts via parent rules.
	GetAlarm(ctx context.Context, in *GetAlarmRequest, opts ...grpc.CallOption) (*Alarm, error)
	// Update a rule. Rules generate events when conditions are met.
	UpdateRule(ctx context.Context, in *UpdateRuleRequest, opts ...grpc.CallOption) (*Rule, error)
	// Update an alarm. Alarms generate alerts via parent rules.
	UpdateAlarm(ctx context.Context, in *UpdateAlarmRequest, opts ...grpc.CallOption) (*Alarm, error)
	// Delete a rule by ID. Rules generate events when conditions are met.
	DeleteRule(ctx context.Context, in *DeleteRuleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete an alarm by ID. Alarms generate alerts via parent rules.
	DeleteAlarm(ctx context.Context, in *DeleteAlarmRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List all rules. Rules generate events when conditions are met.
	ListRules(ctx context.Context, in *ListRulesRequest, opts ...grpc.CallOption) (*ListRulesResponse, error)
	// List alarms. Alarms generate alerts via parent rules.
	ListAlarms(ctx context.Context, in *ListAlarmsRequest, opts ...grpc.CallOption) (*ListAlarmsResponse, error)
	// Test a rule. Rules generate events when conditions are met.
	TestRule(ctx context.Context, in *TestRuleRequest, opts ...grpc.CallOption) (*TestRuleResponse, error)
	// Test an alarm. Alarms generate alerts via parent rules.
	TestAlarm(ctx context.Context, in *TestAlarmRequest, opts ...grpc.CallOption) (*TestAlarmResponse, error)
}

RuleAlarmServiceClient is the client API for RuleAlarmService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type RuleAlarmServiceServer

type RuleAlarmServiceServer interface {
	// Create a rule. Rules generate events when conditions are met.
	CreateRule(context.Context, *CreateRuleRequest) (*Rule, error)
	// Create an alarm. Alarms generate alerts via parent rules.
	CreateAlarm(context.Context, *CreateAlarmRequest) (*Alarm, error)
	// Get a rule by ID. Rules generate events when conditions are met.
	GetRule(context.Context, *GetRuleRequest) (*Rule, error)
	// Get an alarm by ID. Alarms generate alerts via parent rules.
	GetAlarm(context.Context, *GetAlarmRequest) (*Alarm, error)
	// Update a rule. Rules generate events when conditions are met.
	UpdateRule(context.Context, *UpdateRuleRequest) (*Rule, error)
	// Update an alarm. Alarms generate alerts via parent rules.
	UpdateAlarm(context.Context, *UpdateAlarmRequest) (*Alarm, error)
	// Delete a rule by ID. Rules generate events when conditions are met.
	DeleteRule(context.Context, *DeleteRuleRequest) (*emptypb.Empty, error)
	// Delete an alarm by ID. Alarms generate alerts via parent rules.
	DeleteAlarm(context.Context, *DeleteAlarmRequest) (*emptypb.Empty, error)
	// List all rules. Rules generate events when conditions are met.
	ListRules(context.Context, *ListRulesRequest) (*ListRulesResponse, error)
	// List alarms. Alarms generate alerts via parent rules.
	ListAlarms(context.Context, *ListAlarmsRequest) (*ListAlarmsResponse, error)
	// Test a rule. Rules generate events when conditions are met.
	TestRule(context.Context, *TestRuleRequest) (*TestRuleResponse, error)
	// Test an alarm. Alarms generate alerts via parent rules.
	TestAlarm(context.Context, *TestAlarmRequest) (*TestAlarmResponse, error)
	// contains filtered or unexported methods
}

RuleAlarmServiceServer is the server API for RuleAlarmService service. All implementations must embed UnimplementedRuleAlarmServiceServer for forward compatibility

type RuleMultiError

type RuleMultiError []error

RuleMultiError is an error wrapping multiple validation errors returned by Rule.ValidateAll() if the designated constraints aren't met.

func (RuleMultiError) AllErrors

func (m RuleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RuleMultiError) Error

func (m RuleMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RuleValidationError

type RuleValidationError struct {
	// contains filtered or unexported fields
}

RuleValidationError is the validation error returned by Rule.Validate if the designated constraints aren't met.

func (RuleValidationError) Cause

func (e RuleValidationError) Cause() error

Cause function returns cause value.

func (RuleValidationError) Error

func (e RuleValidationError) Error() string

Error satisfies the builtin error interface

func (RuleValidationError) ErrorName

func (e RuleValidationError) ErrorName() string

ErrorName returns error name.

func (RuleValidationError) Field

func (e RuleValidationError) Field() string

Field function returns field value.

func (RuleValidationError) Key

func (e RuleValidationError) Key() bool

Key function returns key value.

func (RuleValidationError) Reason

func (e RuleValidationError) Reason() string

Reason function returns reason value.

type SessionServiceClient

type SessionServiceClient interface {
	// Log in a user. Login tokens are time-limited and accompanied by an expiration.
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	// Create an API key. API keys are persistent and do not expire until revoked.
	CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*CreateKeyResponse, error)
	// Delete an API key by ID. API keys are persistent and do not expire until revoked.
	DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List all API keys. API keys are persistent and do not expire until revoked.
	ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error)
}

SessionServiceClient is the client API for SessionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SessionServiceServer

type SessionServiceServer interface {
	// Log in a user. Login tokens are time-limited and accompanied by an expiration.
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// Create an API key. API keys are persistent and do not expire until revoked.
	CreateKey(context.Context, *CreateKeyRequest) (*CreateKeyResponse, error)
	// Delete an API key by ID. API keys are persistent and do not expire until revoked.
	DeleteKey(context.Context, *DeleteKeyRequest) (*emptypb.Empty, error)
	// List all API keys. API keys are persistent and do not expire until revoked.
	ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error)
	// contains filtered or unexported methods
}

SessionServiceServer is the server API for SessionService service. All implementations must embed UnimplementedSessionServiceServer for forward compatibility

type Status

type Status int32

Status represents the status of a message.

const (
	// Status is not specified.
	Status_STATUS_UNSPECIFIED Status = 0
	// Message subject is active.
	Status_ACTIVE Status = 3
	// Message subject is disabled.
	Status_DISABLED Status = 6
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type TagServiceClient

type TagServiceClient interface {
	// List all tags. Tags are applied to devices and users.
	ListTags(ctx context.Context, in *ListTagsRequest, opts ...grpc.CallOption) (*ListTagsResponse, error)
}

TagServiceClient is the client API for TagService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTagServiceClient

func NewTagServiceClient(cc grpc.ClientConnInterface) TagServiceClient

type TagServiceServer

type TagServiceServer interface {
	// List all tags. Tags are applied to devices and users.
	ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error)
	// contains filtered or unexported methods
}

TagServiceServer is the server API for TagService service. All implementations must embed UnimplementedTagServiceServer for forward compatibility

type TestAlarmRequest

type TestAlarmRequest struct {

	// Data point to test against an alarm.
	Point *common.DataPoint `protobuf:"bytes,1,opt,name=point,proto3" json:"point,omitempty"`
	// Rule to test against an alarm.
	Rule *Rule `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"`
	// Device to test against an alarm.
	Device *Device `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"`
	// Alarm message to test.
	Alarm *Alarm `protobuf:"bytes,4,opt,name=alarm,proto3" json:"alarm,omitempty"`
	// contains filtered or unexported fields
}

TestAlarmRequest is sent to test an alarm.

func (*TestAlarmRequest) Descriptor deprecated

func (*TestAlarmRequest) Descriptor() ([]byte, []int)

Deprecated: Use TestAlarmRequest.ProtoReflect.Descriptor instead.

func (*TestAlarmRequest) GetAlarm

func (x *TestAlarmRequest) GetAlarm() *Alarm

func (*TestAlarmRequest) GetDevice

func (x *TestAlarmRequest) GetDevice() *Device

func (*TestAlarmRequest) GetPoint

func (x *TestAlarmRequest) GetPoint() *common.DataPoint

func (*TestAlarmRequest) GetRule

func (x *TestAlarmRequest) GetRule() *Rule

func (*TestAlarmRequest) ProtoMessage

func (*TestAlarmRequest) ProtoMessage()

func (*TestAlarmRequest) ProtoReflect

func (x *TestAlarmRequest) ProtoReflect() protoreflect.Message

func (*TestAlarmRequest) Reset

func (x *TestAlarmRequest) Reset()

func (*TestAlarmRequest) String

func (x *TestAlarmRequest) String() string

func (*TestAlarmRequest) Validate

func (m *TestAlarmRequest) Validate() error

Validate checks the field values on TestAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TestAlarmRequest) ValidateAll

func (m *TestAlarmRequest) ValidateAll() error

ValidateAll checks the field values on TestAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestAlarmRequestMultiError, or nil if none found.

type TestAlarmRequestMultiError

type TestAlarmRequestMultiError []error

TestAlarmRequestMultiError is an error wrapping multiple validation errors returned by TestAlarmRequest.ValidateAll() if the designated constraints aren't met.

func (TestAlarmRequestMultiError) AllErrors

func (m TestAlarmRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TestAlarmRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TestAlarmRequestValidationError

type TestAlarmRequestValidationError struct {
	// contains filtered or unexported fields
}

TestAlarmRequestValidationError is the validation error returned by TestAlarmRequest.Validate if the designated constraints aren't met.

func (TestAlarmRequestValidationError) Cause

Cause function returns cause value.

func (TestAlarmRequestValidationError) Error

Error satisfies the builtin error interface

func (TestAlarmRequestValidationError) ErrorName

ErrorName returns error name.

func (TestAlarmRequestValidationError) Field

Field function returns field value.

func (TestAlarmRequestValidationError) Key

Key function returns key value.

func (TestAlarmRequestValidationError) Reason

Reason function returns reason value.

type TestAlarmResponse

type TestAlarmResponse struct {

	// Result of the alarm generation. Subjects and bodies will be concatenated with ' - '.
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

TestAlarmResponse is sent in response to an alarm test.

func (*TestAlarmResponse) Descriptor deprecated

func (*TestAlarmResponse) Descriptor() ([]byte, []int)

Deprecated: Use TestAlarmResponse.ProtoReflect.Descriptor instead.

func (*TestAlarmResponse) GetResult

func (x *TestAlarmResponse) GetResult() string

func (*TestAlarmResponse) ProtoMessage

func (*TestAlarmResponse) ProtoMessage()

func (*TestAlarmResponse) ProtoReflect

func (x *TestAlarmResponse) ProtoReflect() protoreflect.Message

func (*TestAlarmResponse) Reset

func (x *TestAlarmResponse) Reset()

func (*TestAlarmResponse) String

func (x *TestAlarmResponse) String() string

func (*TestAlarmResponse) Validate

func (m *TestAlarmResponse) Validate() error

Validate checks the field values on TestAlarmResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TestAlarmResponse) ValidateAll

func (m *TestAlarmResponse) ValidateAll() error

ValidateAll checks the field values on TestAlarmResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestAlarmResponseMultiError, or nil if none found.

type TestAlarmResponseMultiError

type TestAlarmResponseMultiError []error

TestAlarmResponseMultiError is an error wrapping multiple validation errors returned by TestAlarmResponse.ValidateAll() if the designated constraints aren't met.

func (TestAlarmResponseMultiError) AllErrors

func (m TestAlarmResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TestAlarmResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TestAlarmResponseValidationError

type TestAlarmResponseValidationError struct {
	// contains filtered or unexported fields
}

TestAlarmResponseValidationError is the validation error returned by TestAlarmResponse.Validate if the designated constraints aren't met.

func (TestAlarmResponseValidationError) Cause

Cause function returns cause value.

func (TestAlarmResponseValidationError) Error

Error satisfies the builtin error interface

func (TestAlarmResponseValidationError) ErrorName

ErrorName returns error name.

func (TestAlarmResponseValidationError) Field

Field function returns field value.

func (TestAlarmResponseValidationError) Key

Key function returns key value.

func (TestAlarmResponseValidationError) Reason

Reason function returns reason value.

type TestRuleRequest

type TestRuleRequest struct {

	// Data point to test against a rule.
	Point *common.DataPoint `protobuf:"bytes,1,opt,name=point,proto3" json:"point,omitempty"`
	// Rule message to test.
	Rule *Rule `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"`
	// contains filtered or unexported fields
}

TestRuleRequest is sent to test a rule.

func (*TestRuleRequest) Descriptor deprecated

func (*TestRuleRequest) Descriptor() ([]byte, []int)

Deprecated: Use TestRuleRequest.ProtoReflect.Descriptor instead.

func (*TestRuleRequest) GetPoint

func (x *TestRuleRequest) GetPoint() *common.DataPoint

func (*TestRuleRequest) GetRule

func (x *TestRuleRequest) GetRule() *Rule

func (*TestRuleRequest) ProtoMessage

func (*TestRuleRequest) ProtoMessage()

func (*TestRuleRequest) ProtoReflect

func (x *TestRuleRequest) ProtoReflect() protoreflect.Message

func (*TestRuleRequest) Reset

func (x *TestRuleRequest) Reset()

func (*TestRuleRequest) String

func (x *TestRuleRequest) String() string

func (*TestRuleRequest) Validate

func (m *TestRuleRequest) Validate() error

Validate checks the field values on TestRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TestRuleRequest) ValidateAll

func (m *TestRuleRequest) ValidateAll() error

ValidateAll checks the field values on TestRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestRuleRequestMultiError, or nil if none found.

type TestRuleRequestMultiError

type TestRuleRequestMultiError []error

TestRuleRequestMultiError is an error wrapping multiple validation errors returned by TestRuleRequest.ValidateAll() if the designated constraints aren't met.

func (TestRuleRequestMultiError) AllErrors

func (m TestRuleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TestRuleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TestRuleRequestValidationError

type TestRuleRequestValidationError struct {
	// contains filtered or unexported fields
}

TestRuleRequestValidationError is the validation error returned by TestRuleRequest.Validate if the designated constraints aren't met.

func (TestRuleRequestValidationError) Cause

Cause function returns cause value.

func (TestRuleRequestValidationError) Error

Error satisfies the builtin error interface

func (TestRuleRequestValidationError) ErrorName

func (e TestRuleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (TestRuleRequestValidationError) Field

Field function returns field value.

func (TestRuleRequestValidationError) Key

Key function returns key value.

func (TestRuleRequestValidationError) Reason

Reason function returns reason value.

type TestRuleResponse

type TestRuleResponse struct {

	// Result of the rule evaluation.
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

TestRuleResponse is sent in response to a rule test.

func (*TestRuleResponse) Descriptor deprecated

func (*TestRuleResponse) Descriptor() ([]byte, []int)

Deprecated: Use TestRuleResponse.ProtoReflect.Descriptor instead.

func (*TestRuleResponse) GetResult

func (x *TestRuleResponse) GetResult() bool

func (*TestRuleResponse) ProtoMessage

func (*TestRuleResponse) ProtoMessage()

func (*TestRuleResponse) ProtoReflect

func (x *TestRuleResponse) ProtoReflect() protoreflect.Message

func (*TestRuleResponse) Reset

func (x *TestRuleResponse) Reset()

func (*TestRuleResponse) String

func (x *TestRuleResponse) String() string

func (*TestRuleResponse) Validate

func (m *TestRuleResponse) Validate() error

Validate checks the field values on TestRuleResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TestRuleResponse) ValidateAll

func (m *TestRuleResponse) ValidateAll() error

ValidateAll checks the field values on TestRuleResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestRuleResponseMultiError, or nil if none found.

type TestRuleResponseMultiError

type TestRuleResponseMultiError []error

TestRuleResponseMultiError is an error wrapping multiple validation errors returned by TestRuleResponse.ValidateAll() if the designated constraints aren't met.

func (TestRuleResponseMultiError) AllErrors

func (m TestRuleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TestRuleResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TestRuleResponseValidationError

type TestRuleResponseValidationError struct {
	// contains filtered or unexported fields
}

TestRuleResponseValidationError is the validation error returned by TestRuleResponse.Validate if the designated constraints aren't met.

func (TestRuleResponseValidationError) Cause

Cause function returns cause value.

func (TestRuleResponseValidationError) Error

Error satisfies the builtin error interface

func (TestRuleResponseValidationError) ErrorName

ErrorName returns error name.

func (TestRuleResponseValidationError) Field

Field function returns field value.

func (TestRuleResponseValidationError) Key

Key function returns key value.

func (TestRuleResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedAlertServiceServer

type UnimplementedAlertServiceServer struct {
}

UnimplementedAlertServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAlertServiceServer) ListAlerts

type UnimplementedDataPointServiceServer

type UnimplementedDataPointServiceServer struct {
}

UnimplementedDataPointServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDataPointServiceServer) LatestDataPoints

func (UnimplementedDataPointServiceServer) ListDataPoints

func (UnimplementedDataPointServiceServer) PublishDataPoints

type UnimplementedDeviceServiceServer

type UnimplementedDeviceServiceServer struct {
}

UnimplementedDeviceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDeviceServiceServer) CreateDevice

func (UnimplementedDeviceServiceServer) CreateDeviceLoRaWAN

func (UnimplementedDeviceServiceServer) DeleteDevice

func (UnimplementedDeviceServiceServer) DeleteDeviceLoRaWAN

func (UnimplementedDeviceServiceServer) GetDevice

func (UnimplementedDeviceServiceServer) ListDevices

func (UnimplementedDeviceServiceServer) UpdateDevice

type UnimplementedEventServiceServer

type UnimplementedEventServiceServer struct {
}

UnimplementedEventServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEventServiceServer) LatestEvents

func (UnimplementedEventServiceServer) ListEvents

type UnimplementedOrgServiceServer

type UnimplementedOrgServiceServer struct {
}

UnimplementedOrgServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrgServiceServer) CreateOrg

func (UnimplementedOrgServiceServer) DeleteOrg

func (UnimplementedOrgServiceServer) GetOrg

func (UnimplementedOrgServiceServer) ListOrgs

func (UnimplementedOrgServiceServer) UpdateOrg

type UnimplementedRuleAlarmServiceServer

type UnimplementedRuleAlarmServiceServer struct {
}

UnimplementedRuleAlarmServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRuleAlarmServiceServer) CreateAlarm

func (UnimplementedRuleAlarmServiceServer) CreateRule

func (UnimplementedRuleAlarmServiceServer) DeleteAlarm

func (UnimplementedRuleAlarmServiceServer) DeleteRule

func (UnimplementedRuleAlarmServiceServer) GetAlarm

func (UnimplementedRuleAlarmServiceServer) GetRule

func (UnimplementedRuleAlarmServiceServer) ListAlarms

func (UnimplementedRuleAlarmServiceServer) ListRules

func (UnimplementedRuleAlarmServiceServer) TestAlarm

func (UnimplementedRuleAlarmServiceServer) TestRule

func (UnimplementedRuleAlarmServiceServer) UpdateAlarm

func (UnimplementedRuleAlarmServiceServer) UpdateRule

type UnimplementedSessionServiceServer

type UnimplementedSessionServiceServer struct {
}

UnimplementedSessionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSessionServiceServer) CreateKey

func (UnimplementedSessionServiceServer) DeleteKey

func (UnimplementedSessionServiceServer) ListKeys

func (UnimplementedSessionServiceServer) Login

type UnimplementedTagServiceServer

type UnimplementedTagServiceServer struct {
}

UnimplementedTagServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTagServiceServer) ListTags

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUsers

func (UnimplementedUserServiceServer) UpdateUser

func (UnimplementedUserServiceServer) UpdateUserPassword

type UnsafeAlertServiceServer

type UnsafeAlertServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAlertServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AlertServiceServer will result in compilation errors.

type UnsafeDataPointServiceServer

type UnsafeDataPointServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDataPointServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataPointServiceServer will result in compilation errors.

type UnsafeDeviceServiceServer

type UnsafeDeviceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDeviceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeviceServiceServer will result in compilation errors.

type UnsafeEventServiceServer

type UnsafeEventServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.

type UnsafeOrgServiceServer

type UnsafeOrgServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeOrgServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrgServiceServer will result in compilation errors.

type UnsafeRuleAlarmServiceServer

type UnsafeRuleAlarmServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRuleAlarmServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuleAlarmServiceServer will result in compilation errors.

type UnsafeSessionServiceServer

type UnsafeSessionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSessionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SessionServiceServer will result in compilation errors.

type UnsafeTagServiceServer

type UnsafeTagServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTagServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagServiceServer will result in compilation errors.

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UpdateAlarmRequest

type UpdateAlarmRequest struct {

	// Alarm message to update.
	Alarm *Alarm `protobuf:"bytes,1,opt,name=alarm,proto3" json:"alarm,omitempty"`
	// Fields to update. Automatically populated by a PATCH request. If not present, a full resource update is performed.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateAlarmRequest is sent to update an alarm.

func (*UpdateAlarmRequest) Descriptor deprecated

func (*UpdateAlarmRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAlarmRequest.ProtoReflect.Descriptor instead.

func (*UpdateAlarmRequest) GetAlarm

func (x *UpdateAlarmRequest) GetAlarm() *Alarm

func (*UpdateAlarmRequest) GetUpdateMask

func (x *UpdateAlarmRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateAlarmRequest) ProtoMessage

func (*UpdateAlarmRequest) ProtoMessage()

func (*UpdateAlarmRequest) ProtoReflect

func (x *UpdateAlarmRequest) ProtoReflect() protoreflect.Message

func (*UpdateAlarmRequest) Reset

func (x *UpdateAlarmRequest) Reset()

func (*UpdateAlarmRequest) String

func (x *UpdateAlarmRequest) String() string

func (*UpdateAlarmRequest) Validate

func (m *UpdateAlarmRequest) Validate() error

Validate checks the field values on UpdateAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateAlarmRequest) ValidateAll

func (m *UpdateAlarmRequest) ValidateAll() error

ValidateAll checks the field values on UpdateAlarmRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateAlarmRequestMultiError, or nil if none found.

type UpdateAlarmRequestMultiError

type UpdateAlarmRequestMultiError []error

UpdateAlarmRequestMultiError is an error wrapping multiple validation errors returned by UpdateAlarmRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateAlarmRequestMultiError) AllErrors

func (m UpdateAlarmRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateAlarmRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateAlarmRequestValidationError

type UpdateAlarmRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateAlarmRequestValidationError is the validation error returned by UpdateAlarmRequest.Validate if the designated constraints aren't met.

func (UpdateAlarmRequestValidationError) Cause

Cause function returns cause value.

func (UpdateAlarmRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateAlarmRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateAlarmRequestValidationError) Field

Field function returns field value.

func (UpdateAlarmRequestValidationError) Key

Key function returns key value.

func (UpdateAlarmRequestValidationError) Reason

Reason function returns reason value.

type UpdateDeviceRequest

type UpdateDeviceRequest struct {

	// Device message to update.
	Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// Fields to update. Automatically populated by a PATCH request. If not present, a full resource update is performed.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateDeviceRequest is sent to update a device.

func (*UpdateDeviceRequest) Descriptor deprecated

func (*UpdateDeviceRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDeviceRequest.ProtoReflect.Descriptor instead.

func (*UpdateDeviceRequest) GetDevice

func (x *UpdateDeviceRequest) GetDevice() *Device

func (*UpdateDeviceRequest) GetUpdateMask

func (x *UpdateDeviceRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateDeviceRequest) ProtoMessage

func (*UpdateDeviceRequest) ProtoMessage()

func (*UpdateDeviceRequest) ProtoReflect

func (x *UpdateDeviceRequest) ProtoReflect() protoreflect.Message

func (*UpdateDeviceRequest) Reset

func (x *UpdateDeviceRequest) Reset()

func (*UpdateDeviceRequest) String

func (x *UpdateDeviceRequest) String() string

func (*UpdateDeviceRequest) Validate

func (m *UpdateDeviceRequest) Validate() error

Validate checks the field values on UpdateDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateDeviceRequest) ValidateAll

func (m *UpdateDeviceRequest) ValidateAll() error

ValidateAll checks the field values on UpdateDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateDeviceRequestMultiError, or nil if none found.

type UpdateDeviceRequestMultiError

type UpdateDeviceRequestMultiError []error

UpdateDeviceRequestMultiError is an error wrapping multiple validation errors returned by UpdateDeviceRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateDeviceRequestMultiError) AllErrors

func (m UpdateDeviceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDeviceRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateDeviceRequestValidationError

type UpdateDeviceRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateDeviceRequestValidationError is the validation error returned by UpdateDeviceRequest.Validate if the designated constraints aren't met.

func (UpdateDeviceRequestValidationError) Cause

Cause function returns cause value.

func (UpdateDeviceRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateDeviceRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateDeviceRequestValidationError) Field

Field function returns field value.

func (UpdateDeviceRequestValidationError) Key

Key function returns key value.

func (UpdateDeviceRequestValidationError) Reason

Reason function returns reason value.

type UpdateOrgRequest

type UpdateOrgRequest struct {

	// Org message to update.
	Org *Org `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
	// Fields to update. Automatically populated by a PATCH request. If not present, a full resource update is performed.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateOrgRequest is sent to update an organization.

func (*UpdateOrgRequest) Descriptor deprecated

func (*UpdateOrgRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateOrgRequest.ProtoReflect.Descriptor instead.

func (*UpdateOrgRequest) GetOrg

func (x *UpdateOrgRequest) GetOrg() *Org

func (*UpdateOrgRequest) GetUpdateMask

func (x *UpdateOrgRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateOrgRequest) ProtoMessage

func (*UpdateOrgRequest) ProtoMessage()

func (*UpdateOrgRequest) ProtoReflect

func (x *UpdateOrgRequest) ProtoReflect() protoreflect.Message

func (*UpdateOrgRequest) Reset

func (x *UpdateOrgRequest) Reset()

func (*UpdateOrgRequest) String

func (x *UpdateOrgRequest) String() string

func (*UpdateOrgRequest) Validate

func (m *UpdateOrgRequest) Validate() error

Validate checks the field values on UpdateOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateOrgRequest) ValidateAll

func (m *UpdateOrgRequest) ValidateAll() error

ValidateAll checks the field values on UpdateOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateOrgRequestMultiError, or nil if none found.

type UpdateOrgRequestMultiError

type UpdateOrgRequestMultiError []error

UpdateOrgRequestMultiError is an error wrapping multiple validation errors returned by UpdateOrgRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateOrgRequestMultiError) AllErrors

func (m UpdateOrgRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateOrgRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateOrgRequestValidationError

type UpdateOrgRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateOrgRequestValidationError is the validation error returned by UpdateOrgRequest.Validate if the designated constraints aren't met.

func (UpdateOrgRequestValidationError) Cause

Cause function returns cause value.

func (UpdateOrgRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateOrgRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateOrgRequestValidationError) Field

Field function returns field value.

func (UpdateOrgRequestValidationError) Key

Key function returns key value.

func (UpdateOrgRequestValidationError) Reason

Reason function returns reason value.

type UpdateRuleRequest

type UpdateRuleRequest struct {

	// Rule message to update.
	Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	// Fields to update. Automatically populated by a PATCH request. If not present, a full resource update is performed.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateRuleRequest is sent to update a rule.

func (*UpdateRuleRequest) Descriptor deprecated

func (*UpdateRuleRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRuleRequest.ProtoReflect.Descriptor instead.

func (*UpdateRuleRequest) GetRule

func (x *UpdateRuleRequest) GetRule() *Rule

func (*UpdateRuleRequest) GetUpdateMask

func (x *UpdateRuleRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateRuleRequest) ProtoMessage

func (*UpdateRuleRequest) ProtoMessage()

func (*UpdateRuleRequest) ProtoReflect

func (x *UpdateRuleRequest) ProtoReflect() protoreflect.Message

func (*UpdateRuleRequest) Reset

func (x *UpdateRuleRequest) Reset()

func (*UpdateRuleRequest) String

func (x *UpdateRuleRequest) String() string

func (*UpdateRuleRequest) Validate

func (m *UpdateRuleRequest) Validate() error

Validate checks the field values on UpdateRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateRuleRequest) ValidateAll

func (m *UpdateRuleRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRuleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRuleRequestMultiError, or nil if none found.

type UpdateRuleRequestMultiError

type UpdateRuleRequestMultiError []error

UpdateRuleRequestMultiError is an error wrapping multiple validation errors returned by UpdateRuleRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateRuleRequestMultiError) AllErrors

func (m UpdateRuleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRuleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRuleRequestValidationError

type UpdateRuleRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateRuleRequestValidationError is the validation error returned by UpdateRuleRequest.Validate if the designated constraints aren't met.

func (UpdateRuleRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRuleRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRuleRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRuleRequestValidationError) Field

Field function returns field value.

func (UpdateRuleRequestValidationError) Key

Key function returns key value.

func (UpdateRuleRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserPasswordRequest

type UpdateUserPasswordRequest struct {

	// User ID (UUID) to update password.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// User password to update.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

UpdateUserPasswordRequest is sent to update a user's password.

func (*UpdateUserPasswordRequest) Descriptor deprecated

func (*UpdateUserPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserPasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserPasswordRequest) GetId

func (x *UpdateUserPasswordRequest) GetId() string

func (*UpdateUserPasswordRequest) GetPassword

func (x *UpdateUserPasswordRequest) GetPassword() string

func (*UpdateUserPasswordRequest) ProtoMessage

func (*UpdateUserPasswordRequest) ProtoMessage()

func (*UpdateUserPasswordRequest) ProtoReflect

func (*UpdateUserPasswordRequest) Reset

func (x *UpdateUserPasswordRequest) Reset()

func (*UpdateUserPasswordRequest) String

func (x *UpdateUserPasswordRequest) String() string

func (*UpdateUserPasswordRequest) Validate

func (m *UpdateUserPasswordRequest) Validate() error

Validate checks the field values on UpdateUserPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserPasswordRequest) ValidateAll

func (m *UpdateUserPasswordRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserPasswordRequestMultiError, or nil if none found.

type UpdateUserPasswordRequestMultiError

type UpdateUserPasswordRequestMultiError []error

UpdateUserPasswordRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserPasswordRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserPasswordRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateUserPasswordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserPasswordRequestValidationError

type UpdateUserPasswordRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserPasswordRequestValidationError is the validation error returned by UpdateUserPasswordRequest.Validate if the designated constraints aren't met.

func (UpdateUserPasswordRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserPasswordRequestValidationError) Field

Field function returns field value.

func (UpdateUserPasswordRequestValidationError) Key

Key function returns key value.

func (UpdateUserPasswordRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserRequest

type UpdateUserRequest struct {

	// User message to update.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// Fields to update. Automatically populated by a PATCH request. If not present, a full resource update is performed.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateUserRequest is sent to update a user.

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUpdateMask

func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

func (*UpdateUserRequest) Validate

func (m *UpdateUserRequest) Validate() error

Validate checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserRequest) ValidateAll

func (m *UpdateUserRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserRequestMultiError, or nil if none found.

type UpdateUserRequestMultiError

type UpdateUserRequestMultiError []error

UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserRequestMultiError) AllErrors

func (m UpdateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserRequestValidationError

type UpdateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.

func (UpdateUserRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

Reason function returns reason value.

type User

type User struct {

	// User ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// User name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// User email.
	Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// User phone number. If specified, must be in valid [E.164](https://www.twilio.com/docs/glossary/what-e164) format.
	Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
	// User role.
	Role Role `protobuf:"varint,6,opt,name=role,proto3,enum=thingspect.api.Role" json:"role,omitempty"`
	// User status.
	Status Status `protobuf:"varint,7,opt,name=status,proto3,enum=thingspect.api.Status" json:"status,omitempty"`
	// User tags. Nested tags should be delimited by '/'.
	Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"`
	// Mobile application user key.
	AppKey string `protobuf:"bytes,9,opt,name=app_key,json=appKey,proto3" json:"app_key,omitempty"`
	// User creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// User modification timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

User represents a user as stored in the database.

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAppKey

func (x *User) GetAppKey() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetOrgId

func (x *User) GetOrgId() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetRole

func (x *User) GetRole() Role

func (*User) GetStatus

func (x *User) GetStatus() Status

func (*User) GetTags

func (x *User) GetTags() []string

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserServiceClient

type UserServiceClient interface {
	// Create a user. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Get a user by ID. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	// Update a user. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Update a user's password. Passwords are checked against NIST password guidelines.
	UpdateUserPassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete a user by ID. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List users. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserServiceServer

type UserServiceServer interface {
	// Create a user. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	CreateUser(context.Context, *CreateUserRequest) (*User, error)
	// Get a user by ID. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	GetUser(context.Context, *GetUserRequest) (*User, error)
	// Update a user. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
	// Update a user's password. Passwords are checked against NIST password guidelines.
	UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*emptypb.Empty, error)
	// Delete a user by ID. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
	// List users. Users can log in and use the Atlas API and Thingspect website based on the limits of their role.
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL