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
- Variables
- func RegisterAlertServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAlertServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertServiceClient) error
- func RegisterAlertServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAlertServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AlertServiceServer) error
- func RegisterAlertServiceServer(s grpc.ServiceRegistrar, srv AlertServiceServer)
- func RegisterDataPointServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDataPointServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DataPointServiceClient) error
- func RegisterDataPointServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDataPointServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DataPointServiceServer) error
- func RegisterDataPointServiceServer(s grpc.ServiceRegistrar, srv DataPointServiceServer)
- func RegisterDeviceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDeviceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DeviceServiceClient) error
- func RegisterDeviceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDeviceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DeviceServiceServer) error
- func RegisterDeviceServiceServer(s grpc.ServiceRegistrar, srv DeviceServiceServer)
- func RegisterEventServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterEventServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventServiceClient) error
- func RegisterEventServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterEventServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventServiceServer) error
- func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
- func RegisterOrgServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterOrgServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrgServiceClient) error
- func RegisterOrgServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterOrgServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OrgServiceServer) error
- func RegisterOrgServiceServer(s grpc.ServiceRegistrar, srv OrgServiceServer)
- func RegisterRuleAlarmServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRuleAlarmServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RuleAlarmServiceClient) error
- func RegisterRuleAlarmServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRuleAlarmServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RuleAlarmServiceServer) error
- func RegisterRuleAlarmServiceServer(s grpc.ServiceRegistrar, srv RuleAlarmServiceServer)
- func RegisterSessionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSessionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SessionServiceClient) error
- func RegisterSessionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSessionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SessionServiceServer) error
- func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)
- func RegisterTagServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTagServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TagServiceClient) error
- func RegisterTagServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTagServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TagServiceServer) error
- func RegisterTagServiceServer(s grpc.ServiceRegistrar, srv TagServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type Alarm
- func (*Alarm) Descriptor() ([]byte, []int)deprecated
- func (x *Alarm) GetBodyTemplate() string
- func (x *Alarm) GetCreatedAt() *timestamppb.Timestamp
- func (x *Alarm) GetId() string
- func (x *Alarm) GetName() string
- func (x *Alarm) GetOrgId() string
- func (x *Alarm) GetRepeatInterval() int32
- func (x *Alarm) GetRuleId() string
- func (x *Alarm) GetStatus() Status
- func (x *Alarm) GetSubjectTemplate() string
- func (x *Alarm) GetType() AlarmType
- func (x *Alarm) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Alarm) GetUserTags() []string
- func (*Alarm) ProtoMessage()
- func (x *Alarm) ProtoReflect() protoreflect.Message
- func (x *Alarm) Reset()
- func (x *Alarm) String() string
- func (m *Alarm) Validate() error
- func (m *Alarm) ValidateAll() error
- type AlarmMultiError
- type AlarmType
- type AlarmValidationError
- type Alert
- func (*Alert) Descriptor() ([]byte, []int)deprecated
- func (x *Alert) GetAlarmId() string
- func (x *Alert) GetCreatedAt() *timestamppb.Timestamp
- func (x *Alert) GetError() string
- func (x *Alert) GetOrgId() string
- func (x *Alert) GetStatus() AlertStatus
- func (x *Alert) GetTraceId() string
- func (x *Alert) GetUniqId() string
- func (x *Alert) GetUserId() string
- func (*Alert) ProtoMessage()
- func (x *Alert) ProtoReflect() protoreflect.Message
- func (x *Alert) Reset()
- func (x *Alert) String() string
- func (m *Alert) Validate() error
- func (m *Alert) ValidateAll() error
- type AlertMultiError
- type AlertServiceClient
- type AlertServiceServer
- type AlertStatus
- func (AlertStatus) Descriptor() protoreflect.EnumDescriptor
- func (x AlertStatus) Enum() *AlertStatus
- func (AlertStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x AlertStatus) Number() protoreflect.EnumNumber
- func (x AlertStatus) String() string
- func (AlertStatus) Type() protoreflect.EnumType
- type AlertValidationError
- type CreateAlarmRequest
- func (*CreateAlarmRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAlarmRequest) GetAlarm() *Alarm
- func (*CreateAlarmRequest) ProtoMessage()
- func (x *CreateAlarmRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAlarmRequest) Reset()
- func (x *CreateAlarmRequest) String() string
- func (m *CreateAlarmRequest) Validate() error
- func (m *CreateAlarmRequest) ValidateAll() error
- type CreateAlarmRequestMultiError
- type CreateAlarmRequestValidationError
- func (e CreateAlarmRequestValidationError) Cause() error
- func (e CreateAlarmRequestValidationError) Error() string
- func (e CreateAlarmRequestValidationError) ErrorName() string
- func (e CreateAlarmRequestValidationError) Field() string
- func (e CreateAlarmRequestValidationError) Key() bool
- func (e CreateAlarmRequestValidationError) Reason() string
- type CreateDeviceLoRaWANRequest
- func (*CreateDeviceLoRaWANRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeviceLoRaWANRequest) GetDeviceLorawanType() *CreateDeviceLoRaWANRequest_DeviceLoRaWANType
- func (x *CreateDeviceLoRaWANRequest) GetGatewayLorawanType() *CreateDeviceLoRaWANRequest_GatewayLoRaWANType
- func (x *CreateDeviceLoRaWANRequest) GetId() string
- func (m *CreateDeviceLoRaWANRequest) GetTypeOneof() isCreateDeviceLoRaWANRequest_TypeOneof
- func (*CreateDeviceLoRaWANRequest) ProtoMessage()
- func (x *CreateDeviceLoRaWANRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceLoRaWANRequest) Reset()
- func (x *CreateDeviceLoRaWANRequest) String() string
- func (m *CreateDeviceLoRaWANRequest) Validate() error
- func (m *CreateDeviceLoRaWANRequest) ValidateAll() error
- type CreateDeviceLoRaWANRequestMultiError
- type CreateDeviceLoRaWANRequestValidationError
- func (e CreateDeviceLoRaWANRequestValidationError) Cause() error
- func (e CreateDeviceLoRaWANRequestValidationError) Error() string
- func (e CreateDeviceLoRaWANRequestValidationError) ErrorName() string
- func (e CreateDeviceLoRaWANRequestValidationError) Field() string
- func (e CreateDeviceLoRaWANRequestValidationError) Key() bool
- func (e CreateDeviceLoRaWANRequestValidationError) Reason() string
- type CreateDeviceLoRaWANRequest_DeviceLoRaWANType
- func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) GetAppKey() string
- func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ProtoMessage()
- func (x *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Reset()
- func (x *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) String() string
- func (m *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Validate() error
- func (m *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ValidateAll() error
- type CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError
- type CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError
- func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Cause() error
- func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Error() string
- func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) ErrorName() string
- func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Field() string
- func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Key() bool
- func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Reason() string
- type CreateDeviceLoRaWANRequest_DeviceLorawanType
- type CreateDeviceLoRaWANRequest_GatewayLoRaWANType
- func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Descriptor() ([]byte, []int)deprecated
- func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ProtoMessage()
- func (x *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Reset()
- func (x *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) String() string
- func (m *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Validate() error
- func (m *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ValidateAll() error
- type CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError
- type CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError
- func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Cause() error
- func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Error() string
- func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) ErrorName() string
- func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Field() string
- func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Key() bool
- func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Reason() string
- type CreateDeviceLoRaWANRequest_GatewayLorawanType
- type CreateDeviceRequest
- func (*CreateDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeviceRequest) GetDevice() *Device
- func (*CreateDeviceRequest) ProtoMessage()
- func (x *CreateDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceRequest) Reset()
- func (x *CreateDeviceRequest) String() string
- func (m *CreateDeviceRequest) Validate() error
- func (m *CreateDeviceRequest) ValidateAll() error
- type CreateDeviceRequestMultiError
- type CreateDeviceRequestValidationError
- func (e CreateDeviceRequestValidationError) Cause() error
- func (e CreateDeviceRequestValidationError) Error() string
- func (e CreateDeviceRequestValidationError) ErrorName() string
- func (e CreateDeviceRequestValidationError) Field() string
- func (e CreateDeviceRequestValidationError) Key() bool
- func (e CreateDeviceRequestValidationError) Reason() string
- type CreateKeyRequest
- func (*CreateKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateKeyRequest) GetKey() *Key
- func (*CreateKeyRequest) ProtoMessage()
- func (x *CreateKeyRequest) ProtoReflect() protoreflect.Message
- func (x *CreateKeyRequest) Reset()
- func (x *CreateKeyRequest) String() string
- func (m *CreateKeyRequest) Validate() error
- func (m *CreateKeyRequest) ValidateAll() error
- type CreateKeyRequestMultiError
- type CreateKeyRequestValidationError
- func (e CreateKeyRequestValidationError) Cause() error
- func (e CreateKeyRequestValidationError) Error() string
- func (e CreateKeyRequestValidationError) ErrorName() string
- func (e CreateKeyRequestValidationError) Field() string
- func (e CreateKeyRequestValidationError) Key() bool
- func (e CreateKeyRequestValidationError) Reason() string
- type CreateKeyResponse
- func (*CreateKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateKeyResponse) GetKey() *Key
- func (x *CreateKeyResponse) GetToken() string
- func (*CreateKeyResponse) ProtoMessage()
- func (x *CreateKeyResponse) ProtoReflect() protoreflect.Message
- func (x *CreateKeyResponse) Reset()
- func (x *CreateKeyResponse) String() string
- func (m *CreateKeyResponse) Validate() error
- func (m *CreateKeyResponse) ValidateAll() error
- type CreateKeyResponseMultiError
- type CreateKeyResponseValidationError
- func (e CreateKeyResponseValidationError) Cause() error
- func (e CreateKeyResponseValidationError) Error() string
- func (e CreateKeyResponseValidationError) ErrorName() string
- func (e CreateKeyResponseValidationError) Field() string
- func (e CreateKeyResponseValidationError) Key() bool
- func (e CreateKeyResponseValidationError) Reason() string
- type CreateOrgRequest
- func (*CreateOrgRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrgRequest) GetOrg() *Org
- func (*CreateOrgRequest) ProtoMessage()
- func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrgRequest) Reset()
- func (x *CreateOrgRequest) String() string
- func (m *CreateOrgRequest) Validate() error
- func (m *CreateOrgRequest) ValidateAll() error
- type CreateOrgRequestMultiError
- type CreateOrgRequestValidationError
- func (e CreateOrgRequestValidationError) Cause() error
- func (e CreateOrgRequestValidationError) Error() string
- func (e CreateOrgRequestValidationError) ErrorName() string
- func (e CreateOrgRequestValidationError) Field() string
- func (e CreateOrgRequestValidationError) Key() bool
- func (e CreateOrgRequestValidationError) Reason() string
- type CreateRuleRequest
- func (*CreateRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRuleRequest) GetRule() *Rule
- func (*CreateRuleRequest) ProtoMessage()
- func (x *CreateRuleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRuleRequest) Reset()
- func (x *CreateRuleRequest) String() string
- func (m *CreateRuleRequest) Validate() error
- func (m *CreateRuleRequest) ValidateAll() error
- type CreateRuleRequestMultiError
- type CreateRuleRequestValidationError
- func (e CreateRuleRequestValidationError) Cause() error
- func (e CreateRuleRequestValidationError) Error() string
- func (e CreateRuleRequestValidationError) ErrorName() string
- func (e CreateRuleRequestValidationError) Field() string
- func (e CreateRuleRequestValidationError) Key() bool
- func (e CreateRuleRequestValidationError) Reason() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetUser() *User
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type DataPointServiceClient
- type DataPointServiceServer
- type Decoder
- type DeleteAlarmRequest
- func (*DeleteAlarmRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAlarmRequest) GetId() string
- func (x *DeleteAlarmRequest) GetRuleId() string
- func (*DeleteAlarmRequest) ProtoMessage()
- func (x *DeleteAlarmRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAlarmRequest) Reset()
- func (x *DeleteAlarmRequest) String() string
- func (m *DeleteAlarmRequest) Validate() error
- func (m *DeleteAlarmRequest) ValidateAll() error
- type DeleteAlarmRequestMultiError
- type DeleteAlarmRequestValidationError
- func (e DeleteAlarmRequestValidationError) Cause() error
- func (e DeleteAlarmRequestValidationError) Error() string
- func (e DeleteAlarmRequestValidationError) ErrorName() string
- func (e DeleteAlarmRequestValidationError) Field() string
- func (e DeleteAlarmRequestValidationError) Key() bool
- func (e DeleteAlarmRequestValidationError) Reason() string
- type DeleteDeviceLoRaWANRequest
- func (*DeleteDeviceLoRaWANRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDeviceLoRaWANRequest) GetId() string
- func (*DeleteDeviceLoRaWANRequest) ProtoMessage()
- func (x *DeleteDeviceLoRaWANRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDeviceLoRaWANRequest) Reset()
- func (x *DeleteDeviceLoRaWANRequest) String() string
- func (m *DeleteDeviceLoRaWANRequest) Validate() error
- func (m *DeleteDeviceLoRaWANRequest) ValidateAll() error
- type DeleteDeviceLoRaWANRequestMultiError
- type DeleteDeviceLoRaWANRequestValidationError
- func (e DeleteDeviceLoRaWANRequestValidationError) Cause() error
- func (e DeleteDeviceLoRaWANRequestValidationError) Error() string
- func (e DeleteDeviceLoRaWANRequestValidationError) ErrorName() string
- func (e DeleteDeviceLoRaWANRequestValidationError) Field() string
- func (e DeleteDeviceLoRaWANRequestValidationError) Key() bool
- func (e DeleteDeviceLoRaWANRequestValidationError) Reason() string
- type DeleteDeviceRequest
- func (*DeleteDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDeviceRequest) GetId() string
- func (*DeleteDeviceRequest) ProtoMessage()
- func (x *DeleteDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDeviceRequest) Reset()
- func (x *DeleteDeviceRequest) String() string
- func (m *DeleteDeviceRequest) Validate() error
- func (m *DeleteDeviceRequest) ValidateAll() error
- type DeleteDeviceRequestMultiError
- type DeleteDeviceRequestValidationError
- func (e DeleteDeviceRequestValidationError) Cause() error
- func (e DeleteDeviceRequestValidationError) Error() string
- func (e DeleteDeviceRequestValidationError) ErrorName() string
- func (e DeleteDeviceRequestValidationError) Field() string
- func (e DeleteDeviceRequestValidationError) Key() bool
- func (e DeleteDeviceRequestValidationError) Reason() string
- type DeleteKeyRequest
- func (*DeleteKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteKeyRequest) GetId() string
- func (*DeleteKeyRequest) ProtoMessage()
- func (x *DeleteKeyRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteKeyRequest) Reset()
- func (x *DeleteKeyRequest) String() string
- func (m *DeleteKeyRequest) Validate() error
- func (m *DeleteKeyRequest) ValidateAll() error
- type DeleteKeyRequestMultiError
- type DeleteKeyRequestValidationError
- func (e DeleteKeyRequestValidationError) Cause() error
- func (e DeleteKeyRequestValidationError) Error() string
- func (e DeleteKeyRequestValidationError) ErrorName() string
- func (e DeleteKeyRequestValidationError) Field() string
- func (e DeleteKeyRequestValidationError) Key() bool
- func (e DeleteKeyRequestValidationError) Reason() string
- type DeleteOrgRequest
- func (*DeleteOrgRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteOrgRequest) GetId() string
- func (*DeleteOrgRequest) ProtoMessage()
- func (x *DeleteOrgRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteOrgRequest) Reset()
- func (x *DeleteOrgRequest) String() string
- func (m *DeleteOrgRequest) Validate() error
- func (m *DeleteOrgRequest) ValidateAll() error
- type DeleteOrgRequestMultiError
- type DeleteOrgRequestValidationError
- func (e DeleteOrgRequestValidationError) Cause() error
- func (e DeleteOrgRequestValidationError) Error() string
- func (e DeleteOrgRequestValidationError) ErrorName() string
- func (e DeleteOrgRequestValidationError) Field() string
- func (e DeleteOrgRequestValidationError) Key() bool
- func (e DeleteOrgRequestValidationError) Reason() string
- type DeleteRuleRequest
- func (*DeleteRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRuleRequest) GetId() string
- func (*DeleteRuleRequest) ProtoMessage()
- func (x *DeleteRuleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRuleRequest) Reset()
- func (x *DeleteRuleRequest) String() string
- func (m *DeleteRuleRequest) Validate() error
- func (m *DeleteRuleRequest) ValidateAll() error
- type DeleteRuleRequestMultiError
- type DeleteRuleRequestValidationError
- func (e DeleteRuleRequestValidationError) Cause() error
- func (e DeleteRuleRequestValidationError) Error() string
- func (e DeleteRuleRequestValidationError) ErrorName() string
- func (e DeleteRuleRequestValidationError) Field() string
- func (e DeleteRuleRequestValidationError) Key() bool
- func (e DeleteRuleRequestValidationError) Reason() string
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRequest) GetId() string
- func (*DeleteUserRequest) ProtoMessage()
- func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRequest) Reset()
- func (x *DeleteUserRequest) String() string
- func (m *DeleteUserRequest) Validate() error
- func (m *DeleteUserRequest) ValidateAll() error
- type DeleteUserRequestMultiError
- type DeleteUserRequestValidationError
- func (e DeleteUserRequestValidationError) Cause() error
- func (e DeleteUserRequestValidationError) Error() string
- func (e DeleteUserRequestValidationError) ErrorName() string
- func (e DeleteUserRequestValidationError) Field() string
- func (e DeleteUserRequestValidationError) Key() bool
- func (e DeleteUserRequestValidationError) Reason() string
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetCreatedAt() *timestamppb.Timestamp
- func (x *Device) GetDecoder() Decoder
- func (x *Device) GetId() string
- func (x *Device) GetName() string
- func (x *Device) GetOrgId() string
- func (x *Device) GetStatus() Status
- func (x *Device) GetTags() []string
- func (x *Device) GetToken() string
- func (x *Device) GetUniqId() string
- func (x *Device) GetUpdatedAt() *timestamppb.Timestamp
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- func (m *Device) Validate() error
- func (m *Device) ValidateAll() error
- type DeviceMultiError
- type DeviceServiceClient
- type DeviceServiceServer
- type DeviceValidationError
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetCreatedAt() *timestamppb.Timestamp
- func (x *Event) GetOrgId() string
- func (x *Event) GetRuleId() string
- func (x *Event) GetTraceId() string
- func (x *Event) GetUniqId() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- func (m *Event) Validate() error
- func (m *Event) ValidateAll() error
- type EventMultiError
- type EventServiceClient
- type EventServiceServer
- type EventValidationError
- type GetAlarmRequest
- func (*GetAlarmRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAlarmRequest) GetId() string
- func (x *GetAlarmRequest) GetRuleId() string
- func (*GetAlarmRequest) ProtoMessage()
- func (x *GetAlarmRequest) ProtoReflect() protoreflect.Message
- func (x *GetAlarmRequest) Reset()
- func (x *GetAlarmRequest) String() string
- func (m *GetAlarmRequest) Validate() error
- func (m *GetAlarmRequest) ValidateAll() error
- type GetAlarmRequestMultiError
- type GetAlarmRequestValidationError
- func (e GetAlarmRequestValidationError) Cause() error
- func (e GetAlarmRequestValidationError) Error() string
- func (e GetAlarmRequestValidationError) ErrorName() string
- func (e GetAlarmRequestValidationError) Field() string
- func (e GetAlarmRequestValidationError) Key() bool
- func (e GetAlarmRequestValidationError) Reason() string
- type GetDeviceRequest
- func (*GetDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceRequest) GetId() string
- func (*GetDeviceRequest) ProtoMessage()
- func (x *GetDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *GetDeviceRequest) Reset()
- func (x *GetDeviceRequest) String() string
- func (m *GetDeviceRequest) Validate() error
- func (m *GetDeviceRequest) ValidateAll() error
- type GetDeviceRequestMultiError
- type GetDeviceRequestValidationError
- func (e GetDeviceRequestValidationError) Cause() error
- func (e GetDeviceRequestValidationError) Error() string
- func (e GetDeviceRequestValidationError) ErrorName() string
- func (e GetDeviceRequestValidationError) Field() string
- func (e GetDeviceRequestValidationError) Key() bool
- func (e GetDeviceRequestValidationError) Reason() string
- type GetOrgRequest
- func (*GetOrgRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrgRequest) GetId() string
- func (*GetOrgRequest) ProtoMessage()
- func (x *GetOrgRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrgRequest) Reset()
- func (x *GetOrgRequest) String() string
- func (m *GetOrgRequest) Validate() error
- func (m *GetOrgRequest) ValidateAll() error
- type GetOrgRequestMultiError
- type GetOrgRequestValidationError
- func (e GetOrgRequestValidationError) Cause() error
- func (e GetOrgRequestValidationError) Error() string
- func (e GetOrgRequestValidationError) ErrorName() string
- func (e GetOrgRequestValidationError) Field() string
- func (e GetOrgRequestValidationError) Key() bool
- func (e GetOrgRequestValidationError) Reason() string
- type GetRuleRequest
- func (*GetRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRuleRequest) GetId() string
- func (*GetRuleRequest) ProtoMessage()
- func (x *GetRuleRequest) ProtoReflect() protoreflect.Message
- func (x *GetRuleRequest) Reset()
- func (x *GetRuleRequest) String() string
- func (m *GetRuleRequest) Validate() error
- func (m *GetRuleRequest) ValidateAll() error
- type GetRuleRequestMultiError
- type GetRuleRequestValidationError
- func (e GetRuleRequestValidationError) Cause() error
- func (e GetRuleRequestValidationError) Error() string
- func (e GetRuleRequestValidationError) ErrorName() string
- func (e GetRuleRequestValidationError) Field() string
- func (e GetRuleRequestValidationError) Key() bool
- func (e GetRuleRequestValidationError) Reason() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetId() string
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- func (m *GetUserRequest) Validate() error
- func (m *GetUserRequest) ValidateAll() error
- type GetUserRequestMultiError
- type GetUserRequestValidationError
- func (e GetUserRequestValidationError) Cause() error
- func (e GetUserRequestValidationError) Error() string
- func (e GetUserRequestValidationError) ErrorName() string
- func (e GetUserRequestValidationError) Field() string
- func (e GetUserRequestValidationError) Key() bool
- func (e GetUserRequestValidationError) Reason() string
- type Key
- func (*Key) Descriptor() ([]byte, []int)deprecated
- func (x *Key) GetCreatedAt() *timestamppb.Timestamp
- func (x *Key) GetId() string
- func (x *Key) GetName() string
- func (x *Key) GetOrgId() string
- func (x *Key) GetRole() Role
- func (*Key) ProtoMessage()
- func (x *Key) ProtoReflect() protoreflect.Message
- func (x *Key) Reset()
- func (x *Key) String() string
- func (m *Key) Validate() error
- func (m *Key) ValidateAll() error
- type KeyMultiError
- type KeyValidationError
- type LatestDataPointsRequest
- func (*LatestDataPointsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LatestDataPointsRequest) GetDeviceId() string
- func (m *LatestDataPointsRequest) GetIdOneof() isLatestDataPointsRequest_IdOneof
- func (x *LatestDataPointsRequest) GetStartTime() *timestamppb.Timestamp
- func (x *LatestDataPointsRequest) GetUniqId() string
- func (*LatestDataPointsRequest) ProtoMessage()
- func (x *LatestDataPointsRequest) ProtoReflect() protoreflect.Message
- func (x *LatestDataPointsRequest) Reset()
- func (x *LatestDataPointsRequest) String() string
- func (m *LatestDataPointsRequest) Validate() error
- func (m *LatestDataPointsRequest) ValidateAll() error
- type LatestDataPointsRequestMultiError
- type LatestDataPointsRequestValidationError
- func (e LatestDataPointsRequestValidationError) Cause() error
- func (e LatestDataPointsRequestValidationError) Error() string
- func (e LatestDataPointsRequestValidationError) ErrorName() string
- func (e LatestDataPointsRequestValidationError) Field() string
- func (e LatestDataPointsRequestValidationError) Key() bool
- func (e LatestDataPointsRequestValidationError) Reason() string
- type LatestDataPointsRequest_DeviceId
- type LatestDataPointsRequest_UniqId
- type LatestDataPointsResponse
- func (*LatestDataPointsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LatestDataPointsResponse) GetPoints() []*common.DataPoint
- func (*LatestDataPointsResponse) ProtoMessage()
- func (x *LatestDataPointsResponse) ProtoReflect() protoreflect.Message
- func (x *LatestDataPointsResponse) Reset()
- func (x *LatestDataPointsResponse) String() string
- func (m *LatestDataPointsResponse) Validate() error
- func (m *LatestDataPointsResponse) ValidateAll() error
- type LatestDataPointsResponseMultiError
- type LatestDataPointsResponseValidationError
- func (e LatestDataPointsResponseValidationError) Cause() error
- func (e LatestDataPointsResponseValidationError) Error() string
- func (e LatestDataPointsResponseValidationError) ErrorName() string
- func (e LatestDataPointsResponseValidationError) Field() string
- func (e LatestDataPointsResponseValidationError) Key() bool
- func (e LatestDataPointsResponseValidationError) Reason() string
- type LatestEventsRequest
- func (*LatestEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LatestEventsRequest) GetRuleId() string
- func (*LatestEventsRequest) ProtoMessage()
- func (x *LatestEventsRequest) ProtoReflect() protoreflect.Message
- func (x *LatestEventsRequest) Reset()
- func (x *LatestEventsRequest) String() string
- func (m *LatestEventsRequest) Validate() error
- func (m *LatestEventsRequest) ValidateAll() error
- type LatestEventsRequestMultiError
- type LatestEventsRequestValidationError
- func (e LatestEventsRequestValidationError) Cause() error
- func (e LatestEventsRequestValidationError) Error() string
- func (e LatestEventsRequestValidationError) ErrorName() string
- func (e LatestEventsRequestValidationError) Field() string
- func (e LatestEventsRequestValidationError) Key() bool
- func (e LatestEventsRequestValidationError) Reason() string
- type LatestEventsResponse
- func (*LatestEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LatestEventsResponse) GetEvents() []*Event
- func (*LatestEventsResponse) ProtoMessage()
- func (x *LatestEventsResponse) ProtoReflect() protoreflect.Message
- func (x *LatestEventsResponse) Reset()
- func (x *LatestEventsResponse) String() string
- func (m *LatestEventsResponse) Validate() error
- func (m *LatestEventsResponse) ValidateAll() error
- type LatestEventsResponseMultiError
- type LatestEventsResponseValidationError
- func (e LatestEventsResponseValidationError) Cause() error
- func (e LatestEventsResponseValidationError) Error() string
- func (e LatestEventsResponseValidationError) ErrorName() string
- func (e LatestEventsResponseValidationError) Field() string
- func (e LatestEventsResponseValidationError) Key() bool
- func (e LatestEventsResponseValidationError) Reason() string
- type ListAlarmsRequest
- func (*ListAlarmsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAlarmsRequest) GetPageSize() int32
- func (x *ListAlarmsRequest) GetPageToken() string
- func (x *ListAlarmsRequest) GetRuleId() string
- func (*ListAlarmsRequest) ProtoMessage()
- func (x *ListAlarmsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAlarmsRequest) Reset()
- func (x *ListAlarmsRequest) String() string
- func (m *ListAlarmsRequest) Validate() error
- func (m *ListAlarmsRequest) ValidateAll() error
- type ListAlarmsRequestMultiError
- type ListAlarmsRequestValidationError
- func (e ListAlarmsRequestValidationError) Cause() error
- func (e ListAlarmsRequestValidationError) Error() string
- func (e ListAlarmsRequestValidationError) ErrorName() string
- func (e ListAlarmsRequestValidationError) Field() string
- func (e ListAlarmsRequestValidationError) Key() bool
- func (e ListAlarmsRequestValidationError) Reason() string
- type ListAlarmsResponse
- func (*ListAlarmsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAlarmsResponse) GetAlarms() []*Alarm
- func (x *ListAlarmsResponse) GetNextPageToken() string
- func (x *ListAlarmsResponse) GetTotalSize() int32
- func (*ListAlarmsResponse) ProtoMessage()
- func (x *ListAlarmsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAlarmsResponse) Reset()
- func (x *ListAlarmsResponse) String() string
- func (m *ListAlarmsResponse) Validate() error
- func (m *ListAlarmsResponse) ValidateAll() error
- type ListAlarmsResponseMultiError
- type ListAlarmsResponseValidationError
- func (e ListAlarmsResponseValidationError) Cause() error
- func (e ListAlarmsResponseValidationError) Error() string
- func (e ListAlarmsResponseValidationError) ErrorName() string
- func (e ListAlarmsResponseValidationError) Field() string
- func (e ListAlarmsResponseValidationError) Key() bool
- func (e ListAlarmsResponseValidationError) Reason() string
- type ListAlertsRequest
- func (*ListAlertsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAlertsRequest) GetAlarmId() string
- func (x *ListAlertsRequest) GetDeviceId() string
- func (x *ListAlertsRequest) GetEndTime() *timestamppb.Timestamp
- func (m *ListAlertsRequest) GetIdOneof() isListAlertsRequest_IdOneof
- func (x *ListAlertsRequest) GetStartTime() *timestamppb.Timestamp
- func (x *ListAlertsRequest) GetUniqId() string
- func (x *ListAlertsRequest) GetUserId() string
- func (*ListAlertsRequest) ProtoMessage()
- func (x *ListAlertsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAlertsRequest) Reset()
- func (x *ListAlertsRequest) String() string
- func (m *ListAlertsRequest) Validate() error
- func (m *ListAlertsRequest) ValidateAll() error
- type ListAlertsRequestMultiError
- type ListAlertsRequestValidationError
- func (e ListAlertsRequestValidationError) Cause() error
- func (e ListAlertsRequestValidationError) Error() string
- func (e ListAlertsRequestValidationError) ErrorName() string
- func (e ListAlertsRequestValidationError) Field() string
- func (e ListAlertsRequestValidationError) Key() bool
- func (e ListAlertsRequestValidationError) Reason() string
- type ListAlertsRequest_DeviceId
- type ListAlertsRequest_UniqId
- type ListAlertsResponse
- func (*ListAlertsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAlertsResponse) GetAlerts() []*Alert
- func (*ListAlertsResponse) ProtoMessage()
- func (x *ListAlertsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAlertsResponse) Reset()
- func (x *ListAlertsResponse) String() string
- func (m *ListAlertsResponse) Validate() error
- func (m *ListAlertsResponse) ValidateAll() error
- type ListAlertsResponseMultiError
- type ListAlertsResponseValidationError
- func (e ListAlertsResponseValidationError) Cause() error
- func (e ListAlertsResponseValidationError) Error() string
- func (e ListAlertsResponseValidationError) ErrorName() string
- func (e ListAlertsResponseValidationError) Field() string
- func (e ListAlertsResponseValidationError) Key() bool
- func (e ListAlertsResponseValidationError) Reason() string
- type ListDataPointsRequest
- func (*ListDataPointsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDataPointsRequest) GetAttr() string
- func (x *ListDataPointsRequest) GetDeviceId() string
- func (x *ListDataPointsRequest) GetEndTime() *timestamppb.Timestamp
- func (m *ListDataPointsRequest) GetIdOneof() isListDataPointsRequest_IdOneof
- func (x *ListDataPointsRequest) GetStartTime() *timestamppb.Timestamp
- func (x *ListDataPointsRequest) GetUniqId() string
- func (*ListDataPointsRequest) ProtoMessage()
- func (x *ListDataPointsRequest) ProtoReflect() protoreflect.Message
- func (x *ListDataPointsRequest) Reset()
- func (x *ListDataPointsRequest) String() string
- func (m *ListDataPointsRequest) Validate() error
- func (m *ListDataPointsRequest) ValidateAll() error
- type ListDataPointsRequestMultiError
- type ListDataPointsRequestValidationError
- func (e ListDataPointsRequestValidationError) Cause() error
- func (e ListDataPointsRequestValidationError) Error() string
- func (e ListDataPointsRequestValidationError) ErrorName() string
- func (e ListDataPointsRequestValidationError) Field() string
- func (e ListDataPointsRequestValidationError) Key() bool
- func (e ListDataPointsRequestValidationError) Reason() string
- type ListDataPointsRequest_DeviceId
- type ListDataPointsRequest_UniqId
- type ListDataPointsResponse
- func (*ListDataPointsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDataPointsResponse) GetPoints() []*common.DataPoint
- func (*ListDataPointsResponse) ProtoMessage()
- func (x *ListDataPointsResponse) ProtoReflect() protoreflect.Message
- func (x *ListDataPointsResponse) Reset()
- func (x *ListDataPointsResponse) String() string
- func (m *ListDataPointsResponse) Validate() error
- func (m *ListDataPointsResponse) ValidateAll() error
- type ListDataPointsResponseMultiError
- type ListDataPointsResponseValidationError
- func (e ListDataPointsResponseValidationError) Cause() error
- func (e ListDataPointsResponseValidationError) Error() string
- func (e ListDataPointsResponseValidationError) ErrorName() string
- func (e ListDataPointsResponseValidationError) Field() string
- func (e ListDataPointsResponseValidationError) Key() bool
- func (e ListDataPointsResponseValidationError) Reason() string
- type ListDevicesRequest
- func (*ListDevicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDevicesRequest) GetPageSize() int32
- func (x *ListDevicesRequest) GetPageToken() string
- func (x *ListDevicesRequest) GetTag() string
- func (*ListDevicesRequest) ProtoMessage()
- func (x *ListDevicesRequest) ProtoReflect() protoreflect.Message
- func (x *ListDevicesRequest) Reset()
- func (x *ListDevicesRequest) String() string
- func (m *ListDevicesRequest) Validate() error
- func (m *ListDevicesRequest) ValidateAll() error
- type ListDevicesRequestMultiError
- type ListDevicesRequestValidationError
- func (e ListDevicesRequestValidationError) Cause() error
- func (e ListDevicesRequestValidationError) Error() string
- func (e ListDevicesRequestValidationError) ErrorName() string
- func (e ListDevicesRequestValidationError) Field() string
- func (e ListDevicesRequestValidationError) Key() bool
- func (e ListDevicesRequestValidationError) Reason() string
- type ListDevicesResponse
- func (*ListDevicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDevicesResponse) GetDevices() []*Device
- func (x *ListDevicesResponse) GetNextPageToken() string
- func (x *ListDevicesResponse) GetTotalSize() int32
- func (*ListDevicesResponse) ProtoMessage()
- func (x *ListDevicesResponse) ProtoReflect() protoreflect.Message
- func (x *ListDevicesResponse) Reset()
- func (x *ListDevicesResponse) String() string
- func (m *ListDevicesResponse) Validate() error
- func (m *ListDevicesResponse) ValidateAll() error
- type ListDevicesResponseMultiError
- type ListDevicesResponseValidationError
- func (e ListDevicesResponseValidationError) Cause() error
- func (e ListDevicesResponseValidationError) Error() string
- func (e ListDevicesResponseValidationError) ErrorName() string
- func (e ListDevicesResponseValidationError) Field() string
- func (e ListDevicesResponseValidationError) Key() bool
- func (e ListDevicesResponseValidationError) Reason() string
- type ListEventsRequest
- func (*ListEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListEventsRequest) GetDeviceId() string
- func (x *ListEventsRequest) GetEndTime() *timestamppb.Timestamp
- func (m *ListEventsRequest) GetIdOneof() isListEventsRequest_IdOneof
- func (x *ListEventsRequest) GetRuleId() string
- func (x *ListEventsRequest) GetStartTime() *timestamppb.Timestamp
- func (x *ListEventsRequest) GetUniqId() string
- func (*ListEventsRequest) ProtoMessage()
- func (x *ListEventsRequest) ProtoReflect() protoreflect.Message
- func (x *ListEventsRequest) Reset()
- func (x *ListEventsRequest) String() string
- func (m *ListEventsRequest) Validate() error
- func (m *ListEventsRequest) ValidateAll() error
- type ListEventsRequestMultiError
- type ListEventsRequestValidationError
- func (e ListEventsRequestValidationError) Cause() error
- func (e ListEventsRequestValidationError) Error() string
- func (e ListEventsRequestValidationError) ErrorName() string
- func (e ListEventsRequestValidationError) Field() string
- func (e ListEventsRequestValidationError) Key() bool
- func (e ListEventsRequestValidationError) Reason() string
- type ListEventsRequest_DeviceId
- type ListEventsRequest_UniqId
- type ListEventsResponse
- func (*ListEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListEventsResponse) GetEvents() []*Event
- func (*ListEventsResponse) ProtoMessage()
- func (x *ListEventsResponse) ProtoReflect() protoreflect.Message
- func (x *ListEventsResponse) Reset()
- func (x *ListEventsResponse) String() string
- func (m *ListEventsResponse) Validate() error
- func (m *ListEventsResponse) ValidateAll() error
- type ListEventsResponseMultiError
- type ListEventsResponseValidationError
- func (e ListEventsResponseValidationError) Cause() error
- func (e ListEventsResponseValidationError) Error() string
- func (e ListEventsResponseValidationError) ErrorName() string
- func (e ListEventsResponseValidationError) Field() string
- func (e ListEventsResponseValidationError) Key() bool
- func (e ListEventsResponseValidationError) Reason() string
- type ListKeysRequest
- func (*ListKeysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeysRequest) GetPageSize() int32
- func (x *ListKeysRequest) GetPageToken() string
- func (*ListKeysRequest) ProtoMessage()
- func (x *ListKeysRequest) ProtoReflect() protoreflect.Message
- func (x *ListKeysRequest) Reset()
- func (x *ListKeysRequest) String() string
- func (m *ListKeysRequest) Validate() error
- func (m *ListKeysRequest) ValidateAll() error
- type ListKeysRequestMultiError
- type ListKeysRequestValidationError
- func (e ListKeysRequestValidationError) Cause() error
- func (e ListKeysRequestValidationError) Error() string
- func (e ListKeysRequestValidationError) ErrorName() string
- func (e ListKeysRequestValidationError) Field() string
- func (e ListKeysRequestValidationError) Key() bool
- func (e ListKeysRequestValidationError) Reason() string
- type ListKeysResponse
- func (*ListKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListKeysResponse) GetKeys() []*Key
- func (x *ListKeysResponse) GetNextPageToken() string
- func (x *ListKeysResponse) GetTotalSize() int32
- func (*ListKeysResponse) ProtoMessage()
- func (x *ListKeysResponse) ProtoReflect() protoreflect.Message
- func (x *ListKeysResponse) Reset()
- func (x *ListKeysResponse) String() string
- func (m *ListKeysResponse) Validate() error
- func (m *ListKeysResponse) ValidateAll() error
- type ListKeysResponseMultiError
- type ListKeysResponseValidationError
- func (e ListKeysResponseValidationError) Cause() error
- func (e ListKeysResponseValidationError) Error() string
- func (e ListKeysResponseValidationError) ErrorName() string
- func (e ListKeysResponseValidationError) Field() string
- func (e ListKeysResponseValidationError) Key() bool
- func (e ListKeysResponseValidationError) Reason() string
- type ListOrgsRequest
- func (*ListOrgsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrgsRequest) GetPageSize() int32
- func (x *ListOrgsRequest) GetPageToken() string
- func (*ListOrgsRequest) ProtoMessage()
- func (x *ListOrgsRequest) ProtoReflect() protoreflect.Message
- func (x *ListOrgsRequest) Reset()
- func (x *ListOrgsRequest) String() string
- func (m *ListOrgsRequest) Validate() error
- func (m *ListOrgsRequest) ValidateAll() error
- type ListOrgsRequestMultiError
- type ListOrgsRequestValidationError
- func (e ListOrgsRequestValidationError) Cause() error
- func (e ListOrgsRequestValidationError) Error() string
- func (e ListOrgsRequestValidationError) ErrorName() string
- func (e ListOrgsRequestValidationError) Field() string
- func (e ListOrgsRequestValidationError) Key() bool
- func (e ListOrgsRequestValidationError) Reason() string
- type ListOrgsResponse
- func (*ListOrgsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrgsResponse) GetNextPageToken() string
- func (x *ListOrgsResponse) GetOrgs() []*Org
- func (x *ListOrgsResponse) GetTotalSize() int32
- func (*ListOrgsResponse) ProtoMessage()
- func (x *ListOrgsResponse) ProtoReflect() protoreflect.Message
- func (x *ListOrgsResponse) Reset()
- func (x *ListOrgsResponse) String() string
- func (m *ListOrgsResponse) Validate() error
- func (m *ListOrgsResponse) ValidateAll() error
- type ListOrgsResponseMultiError
- type ListOrgsResponseValidationError
- func (e ListOrgsResponseValidationError) Cause() error
- func (e ListOrgsResponseValidationError) Error() string
- func (e ListOrgsResponseValidationError) ErrorName() string
- func (e ListOrgsResponseValidationError) Field() string
- func (e ListOrgsResponseValidationError) Key() bool
- func (e ListOrgsResponseValidationError) Reason() string
- type ListRulesRequest
- func (*ListRulesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRulesRequest) GetPageSize() int32
- func (x *ListRulesRequest) GetPageToken() string
- func (*ListRulesRequest) ProtoMessage()
- func (x *ListRulesRequest) ProtoReflect() protoreflect.Message
- func (x *ListRulesRequest) Reset()
- func (x *ListRulesRequest) String() string
- func (m *ListRulesRequest) Validate() error
- func (m *ListRulesRequest) ValidateAll() error
- type ListRulesRequestMultiError
- type ListRulesRequestValidationError
- func (e ListRulesRequestValidationError) Cause() error
- func (e ListRulesRequestValidationError) Error() string
- func (e ListRulesRequestValidationError) ErrorName() string
- func (e ListRulesRequestValidationError) Field() string
- func (e ListRulesRequestValidationError) Key() bool
- func (e ListRulesRequestValidationError) Reason() string
- type ListRulesResponse
- func (*ListRulesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRulesResponse) GetNextPageToken() string
- func (x *ListRulesResponse) GetRules() []*Rule
- func (x *ListRulesResponse) GetTotalSize() int32
- func (*ListRulesResponse) ProtoMessage()
- func (x *ListRulesResponse) ProtoReflect() protoreflect.Message
- func (x *ListRulesResponse) Reset()
- func (x *ListRulesResponse) String() string
- func (m *ListRulesResponse) Validate() error
- func (m *ListRulesResponse) ValidateAll() error
- type ListRulesResponseMultiError
- type ListRulesResponseValidationError
- func (e ListRulesResponseValidationError) Cause() error
- func (e ListRulesResponseValidationError) Error() string
- func (e ListRulesResponseValidationError) ErrorName() string
- func (e ListRulesResponseValidationError) Field() string
- func (e ListRulesResponseValidationError) Key() bool
- func (e ListRulesResponseValidationError) Reason() string
- type ListTagsRequest
- func (*ListTagsRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListTagsRequest) ProtoMessage()
- func (x *ListTagsRequest) ProtoReflect() protoreflect.Message
- func (x *ListTagsRequest) Reset()
- func (x *ListTagsRequest) String() string
- func (m *ListTagsRequest) Validate() error
- func (m *ListTagsRequest) ValidateAll() error
- type ListTagsRequestMultiError
- type ListTagsRequestValidationError
- func (e ListTagsRequestValidationError) Cause() error
- func (e ListTagsRequestValidationError) Error() string
- func (e ListTagsRequestValidationError) ErrorName() string
- func (e ListTagsRequestValidationError) Field() string
- func (e ListTagsRequestValidationError) Key() bool
- func (e ListTagsRequestValidationError) Reason() string
- type ListTagsResponse
- func (*ListTagsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTagsResponse) GetTags() []string
- func (*ListTagsResponse) ProtoMessage()
- func (x *ListTagsResponse) ProtoReflect() protoreflect.Message
- func (x *ListTagsResponse) Reset()
- func (x *ListTagsResponse) String() string
- func (m *ListTagsResponse) Validate() error
- func (m *ListTagsResponse) ValidateAll() error
- type ListTagsResponseMultiError
- type ListTagsResponseValidationError
- func (e ListTagsResponseValidationError) Cause() error
- func (e ListTagsResponseValidationError) Error() string
- func (e ListTagsResponseValidationError) ErrorName() string
- func (e ListTagsResponseValidationError) Field() string
- func (e ListTagsResponseValidationError) Key() bool
- func (e ListTagsResponseValidationError) Reason() string
- type ListUsersRequest
- func (*ListUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersRequest) GetPageSize() int32
- func (x *ListUsersRequest) GetPageToken() string
- func (x *ListUsersRequest) GetTag() string
- func (*ListUsersRequest) ProtoMessage()
- func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsersRequest) Reset()
- func (x *ListUsersRequest) String() string
- func (m *ListUsersRequest) Validate() error
- func (m *ListUsersRequest) ValidateAll() error
- type ListUsersRequestMultiError
- type ListUsersRequestValidationError
- func (e ListUsersRequestValidationError) Cause() error
- func (e ListUsersRequestValidationError) Error() string
- func (e ListUsersRequestValidationError) ErrorName() string
- func (e ListUsersRequestValidationError) Field() string
- func (e ListUsersRequestValidationError) Key() bool
- func (e ListUsersRequestValidationError) Reason() string
- type ListUsersResponse
- func (*ListUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersResponse) GetNextPageToken() string
- func (x *ListUsersResponse) GetTotalSize() int32
- func (x *ListUsersResponse) GetUsers() []*User
- func (*ListUsersResponse) ProtoMessage()
- func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsersResponse) Reset()
- func (x *ListUsersResponse) String() string
- func (m *ListUsersResponse) Validate() error
- func (m *ListUsersResponse) ValidateAll() error
- type ListUsersResponseMultiError
- type ListUsersResponseValidationError
- func (e ListUsersResponseValidationError) Cause() error
- func (e ListUsersResponseValidationError) Error() string
- func (e ListUsersResponseValidationError) ErrorName() string
- func (e ListUsersResponseValidationError) Field() string
- func (e ListUsersResponseValidationError) Key() bool
- func (e ListUsersResponseValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetOrgName() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetExpiresAt() *timestamppb.Timestamp
- func (x *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type Org
- func (*Org) Descriptor() ([]byte, []int)deprecated
- func (x *Org) GetCreatedAt() *timestamppb.Timestamp
- func (x *Org) GetDisplayName() string
- func (x *Org) GetEmail() string
- func (x *Org) GetId() string
- func (x *Org) GetName() string
- func (x *Org) GetUpdatedAt() *timestamppb.Timestamp
- func (*Org) ProtoMessage()
- func (x *Org) ProtoReflect() protoreflect.Message
- func (x *Org) Reset()
- func (x *Org) String() string
- func (m *Org) Validate() error
- func (m *Org) ValidateAll() error
- type OrgMultiError
- type OrgServiceClient
- type OrgServiceServer
- type OrgValidationError
- type PublishDataPointsRequest
- func (*PublishDataPointsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishDataPointsRequest) GetPoints() []*common.DataPoint
- func (*PublishDataPointsRequest) ProtoMessage()
- func (x *PublishDataPointsRequest) ProtoReflect() protoreflect.Message
- func (x *PublishDataPointsRequest) Reset()
- func (x *PublishDataPointsRequest) String() string
- func (m *PublishDataPointsRequest) Validate() error
- func (m *PublishDataPointsRequest) ValidateAll() error
- type PublishDataPointsRequestMultiError
- type PublishDataPointsRequestValidationError
- func (e PublishDataPointsRequestValidationError) Cause() error
- func (e PublishDataPointsRequestValidationError) Error() string
- func (e PublishDataPointsRequestValidationError) ErrorName() string
- func (e PublishDataPointsRequestValidationError) Field() string
- func (e PublishDataPointsRequestValidationError) Key() bool
- func (e PublishDataPointsRequestValidationError) Reason() string
- type Role
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)deprecated
- func (x *Rule) GetAttr() string
- func (x *Rule) GetCreatedAt() *timestamppb.Timestamp
- func (x *Rule) GetDeviceTag() string
- func (x *Rule) GetExpr() string
- func (x *Rule) GetId() string
- func (x *Rule) GetName() string
- func (x *Rule) GetOrgId() string
- func (x *Rule) GetStatus() Status
- func (x *Rule) GetUpdatedAt() *timestamppb.Timestamp
- func (*Rule) ProtoMessage()
- func (x *Rule) ProtoReflect() protoreflect.Message
- func (x *Rule) Reset()
- func (x *Rule) String() string
- func (m *Rule) Validate() error
- func (m *Rule) ValidateAll() error
- type RuleAlarmServiceClient
- type RuleAlarmServiceServer
- type RuleMultiError
- type RuleValidationError
- type SessionServiceClient
- type SessionServiceServer
- type Status
- type TagServiceClient
- type TagServiceServer
- type TestAlarmRequest
- func (*TestAlarmRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestAlarmRequest) GetAlarm() *Alarm
- func (x *TestAlarmRequest) GetDevice() *Device
- func (x *TestAlarmRequest) GetPoint() *common.DataPoint
- func (x *TestAlarmRequest) GetRule() *Rule
- func (*TestAlarmRequest) ProtoMessage()
- func (x *TestAlarmRequest) ProtoReflect() protoreflect.Message
- func (x *TestAlarmRequest) Reset()
- func (x *TestAlarmRequest) String() string
- func (m *TestAlarmRequest) Validate() error
- func (m *TestAlarmRequest) ValidateAll() error
- type TestAlarmRequestMultiError
- type TestAlarmRequestValidationError
- func (e TestAlarmRequestValidationError) Cause() error
- func (e TestAlarmRequestValidationError) Error() string
- func (e TestAlarmRequestValidationError) ErrorName() string
- func (e TestAlarmRequestValidationError) Field() string
- func (e TestAlarmRequestValidationError) Key() bool
- func (e TestAlarmRequestValidationError) Reason() string
- type TestAlarmResponse
- func (*TestAlarmResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestAlarmResponse) GetResult() string
- func (*TestAlarmResponse) ProtoMessage()
- func (x *TestAlarmResponse) ProtoReflect() protoreflect.Message
- func (x *TestAlarmResponse) Reset()
- func (x *TestAlarmResponse) String() string
- func (m *TestAlarmResponse) Validate() error
- func (m *TestAlarmResponse) ValidateAll() error
- type TestAlarmResponseMultiError
- type TestAlarmResponseValidationError
- func (e TestAlarmResponseValidationError) Cause() error
- func (e TestAlarmResponseValidationError) Error() string
- func (e TestAlarmResponseValidationError) ErrorName() string
- func (e TestAlarmResponseValidationError) Field() string
- func (e TestAlarmResponseValidationError) Key() bool
- func (e TestAlarmResponseValidationError) Reason() string
- type TestRuleRequest
- func (*TestRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestRuleRequest) GetPoint() *common.DataPoint
- func (x *TestRuleRequest) GetRule() *Rule
- func (*TestRuleRequest) ProtoMessage()
- func (x *TestRuleRequest) ProtoReflect() protoreflect.Message
- func (x *TestRuleRequest) Reset()
- func (x *TestRuleRequest) String() string
- func (m *TestRuleRequest) Validate() error
- func (m *TestRuleRequest) ValidateAll() error
- type TestRuleRequestMultiError
- type TestRuleRequestValidationError
- func (e TestRuleRequestValidationError) Cause() error
- func (e TestRuleRequestValidationError) Error() string
- func (e TestRuleRequestValidationError) ErrorName() string
- func (e TestRuleRequestValidationError) Field() string
- func (e TestRuleRequestValidationError) Key() bool
- func (e TestRuleRequestValidationError) Reason() string
- type TestRuleResponse
- func (*TestRuleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestRuleResponse) GetResult() bool
- func (*TestRuleResponse) ProtoMessage()
- func (x *TestRuleResponse) ProtoReflect() protoreflect.Message
- func (x *TestRuleResponse) Reset()
- func (x *TestRuleResponse) String() string
- func (m *TestRuleResponse) Validate() error
- func (m *TestRuleResponse) ValidateAll() error
- type TestRuleResponseMultiError
- type TestRuleResponseValidationError
- func (e TestRuleResponseValidationError) Cause() error
- func (e TestRuleResponseValidationError) Error() string
- func (e TestRuleResponseValidationError) ErrorName() string
- func (e TestRuleResponseValidationError) Field() string
- func (e TestRuleResponseValidationError) Key() bool
- func (e TestRuleResponseValidationError) Reason() string
- type UnimplementedAlertServiceServer
- type UnimplementedDataPointServiceServer
- func (UnimplementedDataPointServiceServer) LatestDataPoints(context.Context, *LatestDataPointsRequest) (*LatestDataPointsResponse, error)
- func (UnimplementedDataPointServiceServer) ListDataPoints(context.Context, *ListDataPointsRequest) (*ListDataPointsResponse, error)
- func (UnimplementedDataPointServiceServer) PublishDataPoints(context.Context, *PublishDataPointsRequest) (*emptypb.Empty, error)
- type UnimplementedDeviceServiceServer
- func (UnimplementedDeviceServiceServer) CreateDevice(context.Context, *CreateDeviceRequest) (*Device, error)
- func (UnimplementedDeviceServiceServer) CreateDeviceLoRaWAN(context.Context, *CreateDeviceLoRaWANRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServiceServer) DeleteDevice(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServiceServer) DeleteDeviceLoRaWAN(context.Context, *DeleteDeviceLoRaWANRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServiceServer) GetDevice(context.Context, *GetDeviceRequest) (*Device, error)
- func (UnimplementedDeviceServiceServer) ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error)
- func (UnimplementedDeviceServiceServer) UpdateDevice(context.Context, *UpdateDeviceRequest) (*Device, error)
- type UnimplementedEventServiceServer
- type UnimplementedOrgServiceServer
- func (UnimplementedOrgServiceServer) CreateOrg(context.Context, *CreateOrgRequest) (*Org, error)
- func (UnimplementedOrgServiceServer) DeleteOrg(context.Context, *DeleteOrgRequest) (*emptypb.Empty, error)
- func (UnimplementedOrgServiceServer) GetOrg(context.Context, *GetOrgRequest) (*Org, error)
- func (UnimplementedOrgServiceServer) ListOrgs(context.Context, *ListOrgsRequest) (*ListOrgsResponse, error)
- func (UnimplementedOrgServiceServer) UpdateOrg(context.Context, *UpdateOrgRequest) (*Org, error)
- type UnimplementedRuleAlarmServiceServer
- func (UnimplementedRuleAlarmServiceServer) CreateAlarm(context.Context, *CreateAlarmRequest) (*Alarm, error)
- func (UnimplementedRuleAlarmServiceServer) CreateRule(context.Context, *CreateRuleRequest) (*Rule, error)
- func (UnimplementedRuleAlarmServiceServer) DeleteAlarm(context.Context, *DeleteAlarmRequest) (*emptypb.Empty, error)
- func (UnimplementedRuleAlarmServiceServer) DeleteRule(context.Context, *DeleteRuleRequest) (*emptypb.Empty, error)
- func (UnimplementedRuleAlarmServiceServer) GetAlarm(context.Context, *GetAlarmRequest) (*Alarm, error)
- func (UnimplementedRuleAlarmServiceServer) GetRule(context.Context, *GetRuleRequest) (*Rule, error)
- func (UnimplementedRuleAlarmServiceServer) ListAlarms(context.Context, *ListAlarmsRequest) (*ListAlarmsResponse, error)
- func (UnimplementedRuleAlarmServiceServer) ListRules(context.Context, *ListRulesRequest) (*ListRulesResponse, error)
- func (UnimplementedRuleAlarmServiceServer) TestAlarm(context.Context, *TestAlarmRequest) (*TestAlarmResponse, error)
- func (UnimplementedRuleAlarmServiceServer) TestRule(context.Context, *TestRuleRequest) (*TestRuleResponse, error)
- func (UnimplementedRuleAlarmServiceServer) UpdateAlarm(context.Context, *UpdateAlarmRequest) (*Alarm, error)
- func (UnimplementedRuleAlarmServiceServer) UpdateRule(context.Context, *UpdateRuleRequest) (*Rule, error)
- type UnimplementedSessionServiceServer
- func (UnimplementedSessionServiceServer) CreateKey(context.Context, *CreateKeyRequest) (*CreateKeyResponse, error)
- func (UnimplementedSessionServiceServer) DeleteKey(context.Context, *DeleteKeyRequest) (*emptypb.Empty, error)
- func (UnimplementedSessionServiceServer) ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error)
- func (UnimplementedSessionServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- type UnimplementedTagServiceServer
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*emptypb.Empty, error)
- type UnsafeAlertServiceServer
- type UnsafeDataPointServiceServer
- type UnsafeDeviceServiceServer
- type UnsafeEventServiceServer
- type UnsafeOrgServiceServer
- type UnsafeRuleAlarmServiceServer
- type UnsafeSessionServiceServer
- type UnsafeTagServiceServer
- type UnsafeUserServiceServer
- type UpdateAlarmRequest
- func (*UpdateAlarmRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAlarmRequest) GetAlarm() *Alarm
- func (x *UpdateAlarmRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateAlarmRequest) ProtoMessage()
- func (x *UpdateAlarmRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAlarmRequest) Reset()
- func (x *UpdateAlarmRequest) String() string
- func (m *UpdateAlarmRequest) Validate() error
- func (m *UpdateAlarmRequest) ValidateAll() error
- type UpdateAlarmRequestMultiError
- type UpdateAlarmRequestValidationError
- func (e UpdateAlarmRequestValidationError) Cause() error
- func (e UpdateAlarmRequestValidationError) Error() string
- func (e UpdateAlarmRequestValidationError) ErrorName() string
- func (e UpdateAlarmRequestValidationError) Field() string
- func (e UpdateAlarmRequestValidationError) Key() bool
- func (e UpdateAlarmRequestValidationError) Reason() string
- type UpdateDeviceRequest
- func (*UpdateDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceRequest) GetDevice() *Device
- func (x *UpdateDeviceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateDeviceRequest) ProtoMessage()
- func (x *UpdateDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceRequest) Reset()
- func (x *UpdateDeviceRequest) String() string
- func (m *UpdateDeviceRequest) Validate() error
- func (m *UpdateDeviceRequest) ValidateAll() error
- type UpdateDeviceRequestMultiError
- type UpdateDeviceRequestValidationError
- func (e UpdateDeviceRequestValidationError) Cause() error
- func (e UpdateDeviceRequestValidationError) Error() string
- func (e UpdateDeviceRequestValidationError) ErrorName() string
- func (e UpdateDeviceRequestValidationError) Field() string
- func (e UpdateDeviceRequestValidationError) Key() bool
- func (e UpdateDeviceRequestValidationError) Reason() string
- type UpdateOrgRequest
- func (*UpdateOrgRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOrgRequest) GetOrg() *Org
- func (x *UpdateOrgRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateOrgRequest) ProtoMessage()
- func (x *UpdateOrgRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateOrgRequest) Reset()
- func (x *UpdateOrgRequest) String() string
- func (m *UpdateOrgRequest) Validate() error
- func (m *UpdateOrgRequest) ValidateAll() error
- type UpdateOrgRequestMultiError
- type UpdateOrgRequestValidationError
- func (e UpdateOrgRequestValidationError) Cause() error
- func (e UpdateOrgRequestValidationError) Error() string
- func (e UpdateOrgRequestValidationError) ErrorName() string
- func (e UpdateOrgRequestValidationError) Field() string
- func (e UpdateOrgRequestValidationError) Key() bool
- func (e UpdateOrgRequestValidationError) Reason() string
- type UpdateRuleRequest
- func (*UpdateRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRuleRequest) GetRule() *Rule
- func (x *UpdateRuleRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateRuleRequest) ProtoMessage()
- func (x *UpdateRuleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRuleRequest) Reset()
- func (x *UpdateRuleRequest) String() string
- func (m *UpdateRuleRequest) Validate() error
- func (m *UpdateRuleRequest) ValidateAll() error
- type UpdateRuleRequestMultiError
- type UpdateRuleRequestValidationError
- func (e UpdateRuleRequestValidationError) Cause() error
- func (e UpdateRuleRequestValidationError) Error() string
- func (e UpdateRuleRequestValidationError) ErrorName() string
- func (e UpdateRuleRequestValidationError) Field() string
- func (e UpdateRuleRequestValidationError) Key() bool
- func (e UpdateRuleRequestValidationError) Reason() string
- type UpdateUserPasswordRequest
- func (*UpdateUserPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserPasswordRequest) GetId() string
- func (x *UpdateUserPasswordRequest) GetPassword() string
- func (*UpdateUserPasswordRequest) ProtoMessage()
- func (x *UpdateUserPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserPasswordRequest) Reset()
- func (x *UpdateUserPasswordRequest) String() string
- func (m *UpdateUserPasswordRequest) Validate() error
- func (m *UpdateUserPasswordRequest) ValidateAll() error
- type UpdateUserPasswordRequestMultiError
- type UpdateUserPasswordRequestValidationError
- func (e UpdateUserPasswordRequestValidationError) Cause() error
- func (e UpdateUserPasswordRequestValidationError) Error() string
- func (e UpdateUserPasswordRequestValidationError) ErrorName() string
- func (e UpdateUserPasswordRequestValidationError) Field() string
- func (e UpdateUserPasswordRequestValidationError) Key() bool
- func (e UpdateUserPasswordRequestValidationError) Reason() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (x *UpdateUserRequest) GetUser() *User
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) Validate() error
- func (m *UpdateUserRequest) ValidateAll() error
- type UpdateUserRequestMultiError
- type UpdateUserRequestValidationError
- func (e UpdateUserRequestValidationError) Cause() error
- func (e UpdateUserRequestValidationError) Error() string
- func (e UpdateUserRequestValidationError) ErrorName() string
- func (e UpdateUserRequestValidationError) Field() string
- func (e UpdateUserRequestValidationError) Key() bool
- func (e UpdateUserRequestValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAppKey() string
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetName() string
- func (x *User) GetOrgId() string
- func (x *User) GetPhone() string
- func (x *User) GetRole() Role
- func (x *User) GetStatus() Status
- func (x *User) GetTags() []string
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserMultiError
- type UserServiceClient
- type UserServiceServer
- type UserValidationError
Constants ¶
const ( DataPointService_PublishDataPoints_FullMethodName = "/thingspect.api.DataPointService/PublishDataPoints" DataPointService_ListDataPoints_FullMethodName = "/thingspect.api.DataPointService/ListDataPoints" DataPointService_LatestDataPoints_FullMethodName = "/thingspect.api.DataPointService/LatestDataPoints" )
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" )
const ( EventService_ListEvents_FullMethodName = "/thingspect.api.EventService/ListEvents" EventService_LatestEvents_FullMethodName = "/thingspect.api.EventService/LatestEvents" )
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" )
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" )
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" )
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" )
const (
AlertService_ListAlerts_FullMethodName = "/thingspect.api.AlertService/ListAlerts"
)
const (
TagService_ListTags_FullMethodName = "/thingspect.api.TagService/ListTags"
)
Variables ¶
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.
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.
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.
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.
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.
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)
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)
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)
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)
var File_api_thingspect_alert_proto protoreflect.FileDescriptor
var File_api_thingspect_datapoint_proto protoreflect.FileDescriptor
var File_api_thingspect_device_proto protoreflect.FileDescriptor
var File_api_thingspect_event_proto protoreflect.FileDescriptor
var File_api_thingspect_org_proto protoreflect.FileDescriptor
var File_api_thingspect_role_proto protoreflect.FileDescriptor
var File_api_thingspect_rule_alarm_proto protoreflect.FileDescriptor
var File_api_thingspect_session_proto protoreflect.FileDescriptor
var File_api_thingspect_status_proto protoreflect.FileDescriptor
var File_api_thingspect_tag_proto protoreflect.FileDescriptor
var File_api_thingspect_user_proto protoreflect.FileDescriptor
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)
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)
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)
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)
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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) GetBodyTemplate ¶
func (*Alarm) GetCreatedAt ¶
func (x *Alarm) GetCreatedAt() *timestamppb.Timestamp
func (*Alarm) GetRepeatInterval ¶
func (*Alarm) GetSubjectTemplate ¶
func (*Alarm) GetUpdatedAt ¶
func (x *Alarm) GetUpdatedAt() *timestamppb.Timestamp
func (*Alarm) GetUserTags ¶
func (*Alarm) ProtoMessage ¶
func (*Alarm) ProtoMessage()
func (*Alarm) ProtoReflect ¶
func (x *Alarm) ProtoReflect() protoreflect.Message
func (*Alarm) Validate ¶
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 ¶
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.
func (AlarmType) Descriptor ¶
func (AlarmType) Descriptor() protoreflect.EnumDescriptor
func (AlarmType) EnumDescriptor
deprecated
func (AlarmType) Number ¶
func (x AlarmType) Number() protoreflect.EnumNumber
func (AlarmType) Type ¶
func (AlarmType) Type() protoreflect.EnumType
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) GetAlarmId ¶
func (*Alert) GetCreatedAt ¶
func (x *Alert) GetCreatedAt() *timestamppb.Timestamp
func (*Alert) GetStatus ¶
func (x *Alert) GetStatus() AlertStatus
func (*Alert) GetTraceId ¶
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) ProtoReflect ¶
func (x *Alert) ProtoReflect() protoreflect.Message
func (*Alert) Validate ¶
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 ¶
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.
AlertService contains functions to query alerts.
func NewAlertServiceClient ¶
func NewAlertServiceClient(cc grpc.ClientConnInterface) AlertServiceClient
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.
AlertService contains functions to query alerts.
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (AlertStatus) Type() protoreflect.EnumType
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 ¶
func (m CreateAlarmRequestMultiError) Error() string
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 ¶
func (e CreateAlarmRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAlarmRequestValidationError) Error ¶
func (e CreateAlarmRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAlarmRequestValidationError) ErrorName ¶
func (e CreateAlarmRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAlarmRequestValidationError) Field ¶
func (e CreateAlarmRequestValidationError) Field() string
Field function returns field value.
func (CreateAlarmRequestValidationError) Key ¶
func (e CreateAlarmRequestValidationError) Key() bool
Key function returns key value.
func (CreateAlarmRequestValidationError) Reason ¶
func (e CreateAlarmRequestValidationError) Reason() string
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 (x *CreateDeviceLoRaWANRequest) GetDeviceLorawanType() *CreateDeviceLoRaWANRequest_DeviceLoRaWANType
func (*CreateDeviceLoRaWANRequest) GetGatewayLorawanType ¶
func (x *CreateDeviceLoRaWANRequest) GetGatewayLorawanType() *CreateDeviceLoRaWANRequest_GatewayLoRaWANType
func (*CreateDeviceLoRaWANRequest) GetId ¶
func (x *CreateDeviceLoRaWANRequest) GetId() string
func (*CreateDeviceLoRaWANRequest) GetTypeOneof ¶
func (m *CreateDeviceLoRaWANRequest) GetTypeOneof() isCreateDeviceLoRaWANRequest_TypeOneof
func (*CreateDeviceLoRaWANRequest) ProtoMessage ¶
func (*CreateDeviceLoRaWANRequest) ProtoMessage()
func (*CreateDeviceLoRaWANRequest) ProtoReflect ¶
func (x *CreateDeviceLoRaWANRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m CreateDeviceLoRaWANRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDeviceLoRaWANRequestMultiError) Error ¶
func (m CreateDeviceLoRaWANRequestMultiError) Error() string
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 ¶
func (e CreateDeviceLoRaWANRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateDeviceLoRaWANRequestValidationError) Error ¶
func (e CreateDeviceLoRaWANRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDeviceLoRaWANRequestValidationError) ErrorName ¶
func (e CreateDeviceLoRaWANRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDeviceLoRaWANRequestValidationError) Field ¶
func (e CreateDeviceLoRaWANRequestValidationError) Field() string
Field function returns field value.
func (CreateDeviceLoRaWANRequestValidationError) Key ¶
func (e CreateDeviceLoRaWANRequestValidationError) Key() bool
Key function returns key value.
func (CreateDeviceLoRaWANRequestValidationError) Reason ¶
func (e CreateDeviceLoRaWANRequestValidationError) Reason() string
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
func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeviceLoRaWANRequest_DeviceLoRaWANType.ProtoReflect.Descriptor instead.
func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) GetAppKey ¶
func (x *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) GetAppKey() string
func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ProtoMessage ¶
func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ProtoMessage()
func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ProtoReflect ¶
func (x *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ProtoReflect() protoreflect.Message
func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Reset ¶
func (x *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Reset()
func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) String ¶
func (x *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) String() string
func (*CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Validate ¶
func (m *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) Validate() error
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 ¶
func (m *CreateDeviceLoRaWANRequest_DeviceLoRaWANType) ValidateAll() error
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 ¶
func (m CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError) Error ¶
func (m CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeMultiError) Error() string
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 ¶
func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Cause() error
Cause function returns cause value.
func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Error ¶
func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) ErrorName ¶
func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Field ¶
func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Field() string
Field function returns field value.
func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Key ¶
func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Key() bool
Key function returns key value.
func (CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Reason ¶
func (e CreateDeviceLoRaWANRequest_DeviceLoRaWANTypeValidationError) Reason() string
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
func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeviceLoRaWANRequest_GatewayLoRaWANType.ProtoReflect.Descriptor instead.
func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ProtoMessage ¶
func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ProtoMessage()
func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ProtoReflect ¶
func (x *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ProtoReflect() protoreflect.Message
func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Reset ¶
func (x *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Reset()
func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) String ¶
func (x *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) String() string
func (*CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Validate ¶
func (m *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) Validate() error
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 ¶
func (m *CreateDeviceLoRaWANRequest_GatewayLoRaWANType) ValidateAll() error
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 ¶
func (m CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError) Error ¶
func (m CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeMultiError) Error() string
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 ¶
func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Cause() error
Cause function returns cause value.
func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Error ¶
func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) ErrorName ¶
func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Field ¶
func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Field() string
Field function returns field value.
func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Key ¶
func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Key() bool
Key function returns key value.
func (CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Reason ¶
func (e CreateDeviceLoRaWANRequest_GatewayLoRaWANTypeValidationError) Reason() string
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 ¶
func (m CreateDeviceRequestMultiError) Error() string
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 ¶
func (e CreateDeviceRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateDeviceRequestValidationError) Error ¶
func (e CreateDeviceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDeviceRequestValidationError) ErrorName ¶
func (e CreateDeviceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDeviceRequestValidationError) Field ¶
func (e CreateDeviceRequestValidationError) Field() string
Field function returns field value.
func (CreateDeviceRequestValidationError) Key ¶
func (e CreateDeviceRequestValidationError) Key() bool
Key function returns key value.
func (CreateDeviceRequestValidationError) Reason ¶
func (e CreateDeviceRequestValidationError) Reason() string
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 ¶
func (m CreateKeyRequestMultiError) Error() string
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 ¶
func (e CreateKeyRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateKeyRequestValidationError) Error ¶
func (e CreateKeyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateKeyRequestValidationError) ErrorName ¶
func (e CreateKeyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateKeyRequestValidationError) Field ¶
func (e CreateKeyRequestValidationError) Field() string
Field function returns field value.
func (CreateKeyRequestValidationError) Key ¶
func (e CreateKeyRequestValidationError) Key() bool
Key function returns key value.
func (CreateKeyRequestValidationError) Reason ¶
func (e CreateKeyRequestValidationError) Reason() string
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 ¶
func (m CreateKeyResponseMultiError) Error() string
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 ¶
func (e CreateKeyResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateKeyResponseValidationError) Error ¶
func (e CreateKeyResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateKeyResponseValidationError) ErrorName ¶
func (e CreateKeyResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateKeyResponseValidationError) Field ¶
func (e CreateKeyResponseValidationError) Field() string
Field function returns field value.
func (CreateKeyResponseValidationError) Key ¶
func (e CreateKeyResponseValidationError) Key() bool
Key function returns key value.
func (CreateKeyResponseValidationError) Reason ¶
func (e CreateKeyResponseValidationError) Reason() string
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 ¶
func (m CreateOrgRequestMultiError) Error() string
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 ¶
func (e CreateOrgRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateOrgRequestValidationError) Error ¶
func (e CreateOrgRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrgRequestValidationError) ErrorName ¶
func (e CreateOrgRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrgRequestValidationError) Field ¶
func (e CreateOrgRequestValidationError) Field() string
Field function returns field value.
func (CreateOrgRequestValidationError) Key ¶
func (e CreateOrgRequestValidationError) Key() bool
Key function returns key value.
func (CreateOrgRequestValidationError) Reason ¶
func (e CreateOrgRequestValidationError) Reason() string
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 ¶
func (m CreateRuleRequestMultiError) Error() string
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 ¶
func (e CreateRuleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRuleRequestValidationError) Error ¶
func (e CreateRuleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRuleRequestValidationError) ErrorName ¶
func (e CreateRuleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRuleRequestValidationError) Field ¶
func (e CreateRuleRequestValidationError) Field() string
Field function returns field value.
func (CreateRuleRequestValidationError) Key ¶
func (e CreateRuleRequestValidationError) Key() bool
Key function returns key value.
func (CreateRuleRequestValidationError) Reason ¶
func (e CreateRuleRequestValidationError) Reason() string
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 ¶
func (m CreateUserRequestMultiError) Error() string
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 ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
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.
DataPointService contains functions to create and query data points.
func NewDataPointServiceClient ¶
func NewDataPointServiceClient(cc grpc.ClientConnInterface) DataPointServiceClient
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.
DataPointService contains functions to create and query data points.
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) EnumDescriptor
deprecated
func (Decoder) Number ¶
func (x Decoder) Number() protoreflect.EnumNumber
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 ¶
func (m DeleteAlarmRequestMultiError) Error() string
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 ¶
func (e DeleteAlarmRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteAlarmRequestValidationError) Error ¶
func (e DeleteAlarmRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAlarmRequestValidationError) ErrorName ¶
func (e DeleteAlarmRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAlarmRequestValidationError) Field ¶
func (e DeleteAlarmRequestValidationError) Field() string
Field function returns field value.
func (DeleteAlarmRequestValidationError) Key ¶
func (e DeleteAlarmRequestValidationError) Key() bool
Key function returns key value.
func (DeleteAlarmRequestValidationError) Reason ¶
func (e DeleteAlarmRequestValidationError) Reason() string
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 (x *DeleteDeviceLoRaWANRequest) GetId() string
func (*DeleteDeviceLoRaWANRequest) ProtoMessage ¶
func (*DeleteDeviceLoRaWANRequest) ProtoMessage()
func (*DeleteDeviceLoRaWANRequest) ProtoReflect ¶
func (x *DeleteDeviceLoRaWANRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m DeleteDeviceLoRaWANRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDeviceLoRaWANRequestMultiError) Error ¶
func (m DeleteDeviceLoRaWANRequestMultiError) Error() string
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 ¶
func (e DeleteDeviceLoRaWANRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDeviceLoRaWANRequestValidationError) Error ¶
func (e DeleteDeviceLoRaWANRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDeviceLoRaWANRequestValidationError) ErrorName ¶
func (e DeleteDeviceLoRaWANRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDeviceLoRaWANRequestValidationError) Field ¶
func (e DeleteDeviceLoRaWANRequestValidationError) Field() string
Field function returns field value.
func (DeleteDeviceLoRaWANRequestValidationError) Key ¶
func (e DeleteDeviceLoRaWANRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDeviceLoRaWANRequestValidationError) Reason ¶
func (e DeleteDeviceLoRaWANRequestValidationError) Reason() string
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 ¶
func (m DeleteDeviceRequestMultiError) Error() string
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 ¶
func (e DeleteDeviceRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDeviceRequestValidationError) Error ¶
func (e DeleteDeviceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDeviceRequestValidationError) ErrorName ¶
func (e DeleteDeviceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDeviceRequestValidationError) Field ¶
func (e DeleteDeviceRequestValidationError) Field() string
Field function returns field value.
func (DeleteDeviceRequestValidationError) Key ¶
func (e DeleteDeviceRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDeviceRequestValidationError) Reason ¶
func (e DeleteDeviceRequestValidationError) Reason() string
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 ¶
func (m DeleteKeyRequestMultiError) Error() string
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 ¶
func (e DeleteKeyRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteKeyRequestValidationError) Error ¶
func (e DeleteKeyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteKeyRequestValidationError) ErrorName ¶
func (e DeleteKeyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteKeyRequestValidationError) Field ¶
func (e DeleteKeyRequestValidationError) Field() string
Field function returns field value.
func (DeleteKeyRequestValidationError) Key ¶
func (e DeleteKeyRequestValidationError) Key() bool
Key function returns key value.
func (DeleteKeyRequestValidationError) Reason ¶
func (e DeleteKeyRequestValidationError) Reason() string
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 ¶
func (m DeleteOrgRequestMultiError) Error() string
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 ¶
func (e DeleteOrgRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteOrgRequestValidationError) Error ¶
func (e DeleteOrgRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteOrgRequestValidationError) ErrorName ¶
func (e DeleteOrgRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteOrgRequestValidationError) Field ¶
func (e DeleteOrgRequestValidationError) Field() string
Field function returns field value.
func (DeleteOrgRequestValidationError) Key ¶
func (e DeleteOrgRequestValidationError) Key() bool
Key function returns key value.
func (DeleteOrgRequestValidationError) Reason ¶
func (e DeleteOrgRequestValidationError) Reason() string
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 ¶
func (m DeleteRuleRequestMultiError) Error() string
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 ¶
func (e DeleteRuleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRuleRequestValidationError) Error ¶
func (e DeleteRuleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRuleRequestValidationError) ErrorName ¶
func (e DeleteRuleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRuleRequestValidationError) Field ¶
func (e DeleteRuleRequestValidationError) Field() string
Field function returns field value.
func (DeleteRuleRequestValidationError) Key ¶
func (e DeleteRuleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRuleRequestValidationError) Reason ¶
func (e DeleteRuleRequestValidationError) Reason() string
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 ¶
func (m DeleteUserRequestMultiError) Error() string
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 ¶
func (e DeleteUserRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserRequestValidationError) Error ¶
func (e DeleteUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserRequestValidationError) ErrorName ¶
func (e DeleteUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserRequestValidationError) Field ¶
func (e DeleteUserRequestValidationError) Field() string
Field function returns field value.
func (DeleteUserRequestValidationError) Key ¶
func (e DeleteUserRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUserRequestValidationError) Reason ¶
func (e DeleteUserRequestValidationError) Reason() string
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) GetCreatedAt ¶
func (x *Device) GetCreatedAt() *timestamppb.Timestamp
func (*Device) GetDecoder ¶
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) Validate ¶
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 ¶
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.
DeviceService contains functions to query and modify devices.
func NewDeviceServiceClient ¶
func NewDeviceServiceClient(cc grpc.ClientConnInterface) DeviceServiceClient
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.
DeviceService contains functions to query and modify devices.
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) GetCreatedAt ¶
func (x *Event) GetCreatedAt() *timestamppb.Timestamp
func (*Event) GetTraceId ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) Validate ¶
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 ¶
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.
EventService contains functions to query events.
func NewEventServiceClient ¶
func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient
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.
EventService contains functions to query events.
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 ¶
func (m GetAlarmRequestMultiError) Error() string
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 ¶
func (e GetAlarmRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAlarmRequestValidationError) Error ¶
func (e GetAlarmRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAlarmRequestValidationError) ErrorName ¶
func (e GetAlarmRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAlarmRequestValidationError) Field ¶
func (e GetAlarmRequestValidationError) Field() string
Field function returns field value.
func (GetAlarmRequestValidationError) Key ¶
func (e GetAlarmRequestValidationError) Key() bool
Key function returns key value.
func (GetAlarmRequestValidationError) Reason ¶
func (e GetAlarmRequestValidationError) Reason() string
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 ¶
func (m GetDeviceRequestMultiError) Error() string
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 ¶
func (e GetDeviceRequestValidationError) Cause() error
Cause function returns cause value.
func (GetDeviceRequestValidationError) Error ¶
func (e GetDeviceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetDeviceRequestValidationError) ErrorName ¶
func (e GetDeviceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetDeviceRequestValidationError) Field ¶
func (e GetDeviceRequestValidationError) Field() string
Field function returns field value.
func (GetDeviceRequestValidationError) Key ¶
func (e GetDeviceRequestValidationError) Key() bool
Key function returns key value.
func (GetDeviceRequestValidationError) Reason ¶
func (e GetDeviceRequestValidationError) Reason() string
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 ¶
func (e GetOrgRequestValidationError) Cause() error
Cause function returns cause value.
func (GetOrgRequestValidationError) Error ¶
func (e GetOrgRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetOrgRequestValidationError) ErrorName ¶
func (e GetOrgRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetOrgRequestValidationError) Field ¶
func (e GetOrgRequestValidationError) Field() string
Field function returns field value.
func (GetOrgRequestValidationError) Key ¶
func (e GetOrgRequestValidationError) Key() bool
Key function returns key value.
func (GetOrgRequestValidationError) Reason ¶
func (e GetOrgRequestValidationError) Reason() string
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 ¶
func (e GetRuleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRuleRequestValidationError) Error ¶
func (e GetRuleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRuleRequestValidationError) ErrorName ¶
func (e GetRuleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRuleRequestValidationError) Field ¶
func (e GetRuleRequestValidationError) Field() string
Field function returns field value.
func (GetRuleRequestValidationError) Key ¶
func (e GetRuleRequestValidationError) Key() bool
Key function returns key value.
func (GetRuleRequestValidationError) Reason ¶
func (e GetRuleRequestValidationError) Reason() string
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 ¶
func (e GetUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRequestValidationError) Error ¶
func (e GetUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRequestValidationError) ErrorName ¶
func (e GetUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRequestValidationError) Field ¶
func (e GetUserRequestValidationError) Field() string
Field function returns field value.
func (GetUserRequestValidationError) Key ¶
func (e GetUserRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRequestValidationError) Reason ¶
func (e GetUserRequestValidationError) Reason() string
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) GetCreatedAt ¶
func (x *Key) GetCreatedAt() *timestamppb.Timestamp
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
func (*Key) Validate ¶
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 ¶
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 ¶
func (m LatestDataPointsRequestMultiError) Error() string
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 ¶
func (e LatestDataPointsRequestValidationError) Cause() error
Cause function returns cause value.
func (LatestDataPointsRequestValidationError) Error ¶
func (e LatestDataPointsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LatestDataPointsRequestValidationError) ErrorName ¶
func (e LatestDataPointsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LatestDataPointsRequestValidationError) Field ¶
func (e LatestDataPointsRequestValidationError) Field() string
Field function returns field value.
func (LatestDataPointsRequestValidationError) Key ¶
func (e LatestDataPointsRequestValidationError) Key() bool
Key function returns key value.
func (LatestDataPointsRequestValidationError) Reason ¶
func (e LatestDataPointsRequestValidationError) Reason() string
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 ¶
func (m LatestDataPointsResponseMultiError) Error() string
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 ¶
func (e LatestDataPointsResponseValidationError) Cause() error
Cause function returns cause value.
func (LatestDataPointsResponseValidationError) Error ¶
func (e LatestDataPointsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LatestDataPointsResponseValidationError) ErrorName ¶
func (e LatestDataPointsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LatestDataPointsResponseValidationError) Field ¶
func (e LatestDataPointsResponseValidationError) Field() string
Field function returns field value.
func (LatestDataPointsResponseValidationError) Key ¶
func (e LatestDataPointsResponseValidationError) Key() bool
Key function returns key value.
func (LatestDataPointsResponseValidationError) Reason ¶
func (e LatestDataPointsResponseValidationError) Reason() string
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 ¶
func (m LatestEventsRequestMultiError) Error() string
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 ¶
func (e LatestEventsRequestValidationError) Cause() error
Cause function returns cause value.
func (LatestEventsRequestValidationError) Error ¶
func (e LatestEventsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LatestEventsRequestValidationError) ErrorName ¶
func (e LatestEventsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LatestEventsRequestValidationError) Field ¶
func (e LatestEventsRequestValidationError) Field() string
Field function returns field value.
func (LatestEventsRequestValidationError) Key ¶
func (e LatestEventsRequestValidationError) Key() bool
Key function returns key value.
func (LatestEventsRequestValidationError) Reason ¶
func (e LatestEventsRequestValidationError) Reason() string
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 ¶
func (m LatestEventsResponseMultiError) Error() string
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 ¶
func (e LatestEventsResponseValidationError) Cause() error
Cause function returns cause value.
func (LatestEventsResponseValidationError) Error ¶
func (e LatestEventsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LatestEventsResponseValidationError) ErrorName ¶
func (e LatestEventsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LatestEventsResponseValidationError) Field ¶
func (e LatestEventsResponseValidationError) Field() string
Field function returns field value.
func (LatestEventsResponseValidationError) Key ¶
func (e LatestEventsResponseValidationError) Key() bool
Key function returns key value.
func (LatestEventsResponseValidationError) Reason ¶
func (e LatestEventsResponseValidationError) Reason() string
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 ¶
func (m ListAlarmsRequestMultiError) Error() string
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 ¶
func (e ListAlarmsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListAlarmsRequestValidationError) Error ¶
func (e ListAlarmsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListAlarmsRequestValidationError) ErrorName ¶
func (e ListAlarmsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListAlarmsRequestValidationError) Field ¶
func (e ListAlarmsRequestValidationError) Field() string
Field function returns field value.
func (ListAlarmsRequestValidationError) Key ¶
func (e ListAlarmsRequestValidationError) Key() bool
Key function returns key value.
func (ListAlarmsRequestValidationError) Reason ¶
func (e ListAlarmsRequestValidationError) Reason() string
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 ¶
func (m ListAlarmsResponseMultiError) Error() string
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 ¶
func (e ListAlarmsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListAlarmsResponseValidationError) Error ¶
func (e ListAlarmsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListAlarmsResponseValidationError) ErrorName ¶
func (e ListAlarmsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListAlarmsResponseValidationError) Field ¶
func (e ListAlarmsResponseValidationError) Field() string
Field function returns field value.
func (ListAlarmsResponseValidationError) Key ¶
func (e ListAlarmsResponseValidationError) Key() bool
Key function returns key value.
func (ListAlarmsResponseValidationError) Reason ¶
func (e ListAlarmsResponseValidationError) Reason() string
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 ¶
func (m ListAlertsRequestMultiError) Error() string
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 ¶
func (e ListAlertsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListAlertsRequestValidationError) Error ¶
func (e ListAlertsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListAlertsRequestValidationError) ErrorName ¶
func (e ListAlertsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListAlertsRequestValidationError) Field ¶
func (e ListAlertsRequestValidationError) Field() string
Field function returns field value.
func (ListAlertsRequestValidationError) Key ¶
func (e ListAlertsRequestValidationError) Key() bool
Key function returns key value.
func (ListAlertsRequestValidationError) Reason ¶
func (e ListAlertsRequestValidationError) Reason() string
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 ¶
func (m ListAlertsResponseMultiError) Error() string
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 ¶
func (e ListAlertsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListAlertsResponseValidationError) Error ¶
func (e ListAlertsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListAlertsResponseValidationError) ErrorName ¶
func (e ListAlertsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListAlertsResponseValidationError) Field ¶
func (e ListAlertsResponseValidationError) Field() string
Field function returns field value.
func (ListAlertsResponseValidationError) Key ¶
func (e ListAlertsResponseValidationError) Key() bool
Key function returns key value.
func (ListAlertsResponseValidationError) Reason ¶
func (e ListAlertsResponseValidationError) Reason() string
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 ¶
func (m ListDataPointsRequestMultiError) Error() string
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 ¶
func (e ListDataPointsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListDataPointsRequestValidationError) Error ¶
func (e ListDataPointsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListDataPointsRequestValidationError) ErrorName ¶
func (e ListDataPointsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListDataPointsRequestValidationError) Field ¶
func (e ListDataPointsRequestValidationError) Field() string
Field function returns field value.
func (ListDataPointsRequestValidationError) Key ¶
func (e ListDataPointsRequestValidationError) Key() bool
Key function returns key value.
func (ListDataPointsRequestValidationError) Reason ¶
func (e ListDataPointsRequestValidationError) Reason() string
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 ¶
func (m ListDataPointsResponseMultiError) Error() string
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 ¶
func (e ListDataPointsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListDataPointsResponseValidationError) Error ¶
func (e ListDataPointsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListDataPointsResponseValidationError) ErrorName ¶
func (e ListDataPointsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListDataPointsResponseValidationError) Field ¶
func (e ListDataPointsResponseValidationError) Field() string
Field function returns field value.
func (ListDataPointsResponseValidationError) Key ¶
func (e ListDataPointsResponseValidationError) Key() bool
Key function returns key value.
func (ListDataPointsResponseValidationError) Reason ¶
func (e ListDataPointsResponseValidationError) Reason() string
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 ¶
func (m ListDevicesRequestMultiError) Error() string
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 ¶
func (e ListDevicesRequestValidationError) Cause() error
Cause function returns cause value.
func (ListDevicesRequestValidationError) Error ¶
func (e ListDevicesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListDevicesRequestValidationError) ErrorName ¶
func (e ListDevicesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListDevicesRequestValidationError) Field ¶
func (e ListDevicesRequestValidationError) Field() string
Field function returns field value.
func (ListDevicesRequestValidationError) Key ¶
func (e ListDevicesRequestValidationError) Key() bool
Key function returns key value.
func (ListDevicesRequestValidationError) Reason ¶
func (e ListDevicesRequestValidationError) Reason() string
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 ¶
func (m ListDevicesResponseMultiError) Error() string
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 ¶
func (e ListDevicesResponseValidationError) Cause() error
Cause function returns cause value.
func (ListDevicesResponseValidationError) Error ¶
func (e ListDevicesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListDevicesResponseValidationError) ErrorName ¶
func (e ListDevicesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListDevicesResponseValidationError) Field ¶
func (e ListDevicesResponseValidationError) Field() string
Field function returns field value.
func (ListDevicesResponseValidationError) Key ¶
func (e ListDevicesResponseValidationError) Key() bool
Key function returns key value.
func (ListDevicesResponseValidationError) Reason ¶
func (e ListDevicesResponseValidationError) Reason() string
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 ¶
func (m ListEventsRequestMultiError) Error() string
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 ¶
func (e ListEventsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListEventsRequestValidationError) Error ¶
func (e ListEventsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListEventsRequestValidationError) ErrorName ¶
func (e ListEventsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListEventsRequestValidationError) Field ¶
func (e ListEventsRequestValidationError) Field() string
Field function returns field value.
func (ListEventsRequestValidationError) Key ¶
func (e ListEventsRequestValidationError) Key() bool
Key function returns key value.
func (ListEventsRequestValidationError) Reason ¶
func (e ListEventsRequestValidationError) Reason() string
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 ¶
func (m ListEventsResponseMultiError) Error() string
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 ¶
func (e ListEventsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListEventsResponseValidationError) Error ¶
func (e ListEventsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListEventsResponseValidationError) ErrorName ¶
func (e ListEventsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListEventsResponseValidationError) Field ¶
func (e ListEventsResponseValidationError) Field() string
Field function returns field value.
func (ListEventsResponseValidationError) Key ¶
func (e ListEventsResponseValidationError) Key() bool
Key function returns key value.
func (ListEventsResponseValidationError) Reason ¶
func (e ListEventsResponseValidationError) Reason() string
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 ¶
func (m ListKeysRequestMultiError) Error() string
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 ¶
func (e ListKeysRequestValidationError) Cause() error
Cause function returns cause value.
func (ListKeysRequestValidationError) Error ¶
func (e ListKeysRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListKeysRequestValidationError) ErrorName ¶
func (e ListKeysRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListKeysRequestValidationError) Field ¶
func (e ListKeysRequestValidationError) Field() string
Field function returns field value.
func (ListKeysRequestValidationError) Key ¶
func (e ListKeysRequestValidationError) Key() bool
Key function returns key value.
func (ListKeysRequestValidationError) Reason ¶
func (e ListKeysRequestValidationError) Reason() string
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 ¶
func (m ListKeysResponseMultiError) Error() string
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 ¶
func (e ListKeysResponseValidationError) Cause() error
Cause function returns cause value.
func (ListKeysResponseValidationError) Error ¶
func (e ListKeysResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListKeysResponseValidationError) ErrorName ¶
func (e ListKeysResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListKeysResponseValidationError) Field ¶
func (e ListKeysResponseValidationError) Field() string
Field function returns field value.
func (ListKeysResponseValidationError) Key ¶
func (e ListKeysResponseValidationError) Key() bool
Key function returns key value.
func (ListKeysResponseValidationError) Reason ¶
func (e ListKeysResponseValidationError) Reason() string
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 ¶
func (m ListOrgsRequestMultiError) Error() string
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 ¶
func (e ListOrgsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListOrgsRequestValidationError) Error ¶
func (e ListOrgsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListOrgsRequestValidationError) ErrorName ¶
func (e ListOrgsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListOrgsRequestValidationError) Field ¶
func (e ListOrgsRequestValidationError) Field() string
Field function returns field value.
func (ListOrgsRequestValidationError) Key ¶
func (e ListOrgsRequestValidationError) Key() bool
Key function returns key value.
func (ListOrgsRequestValidationError) Reason ¶
func (e ListOrgsRequestValidationError) Reason() string
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 ¶
func (m ListOrgsResponseMultiError) Error() string
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 ¶
func (e ListOrgsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListOrgsResponseValidationError) Error ¶
func (e ListOrgsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListOrgsResponseValidationError) ErrorName ¶
func (e ListOrgsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListOrgsResponseValidationError) Field ¶
func (e ListOrgsResponseValidationError) Field() string
Field function returns field value.
func (ListOrgsResponseValidationError) Key ¶
func (e ListOrgsResponseValidationError) Key() bool
Key function returns key value.
func (ListOrgsResponseValidationError) Reason ¶
func (e ListOrgsResponseValidationError) Reason() string
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 ¶
func (m ListRulesRequestMultiError) Error() string
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 ¶
func (e ListRulesRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRulesRequestValidationError) Error ¶
func (e ListRulesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRulesRequestValidationError) ErrorName ¶
func (e ListRulesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRulesRequestValidationError) Field ¶
func (e ListRulesRequestValidationError) Field() string
Field function returns field value.
func (ListRulesRequestValidationError) Key ¶
func (e ListRulesRequestValidationError) Key() bool
Key function returns key value.
func (ListRulesRequestValidationError) Reason ¶
func (e ListRulesRequestValidationError) Reason() string
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 ¶
func (m ListRulesResponseMultiError) Error() string
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 ¶
func (e ListRulesResponseValidationError) Cause() error
Cause function returns cause value.
func (ListRulesResponseValidationError) Error ¶
func (e ListRulesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListRulesResponseValidationError) ErrorName ¶
func (e ListRulesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListRulesResponseValidationError) Field ¶
func (e ListRulesResponseValidationError) Field() string
Field function returns field value.
func (ListRulesResponseValidationError) Key ¶
func (e ListRulesResponseValidationError) Key() bool
Key function returns key value.
func (ListRulesResponseValidationError) Reason ¶
func (e ListRulesResponseValidationError) Reason() string
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 ¶
func (m ListTagsRequestMultiError) Error() string
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 ¶
func (e ListTagsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListTagsRequestValidationError) Error ¶
func (e ListTagsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListTagsRequestValidationError) ErrorName ¶
func (e ListTagsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListTagsRequestValidationError) Field ¶
func (e ListTagsRequestValidationError) Field() string
Field function returns field value.
func (ListTagsRequestValidationError) Key ¶
func (e ListTagsRequestValidationError) Key() bool
Key function returns key value.
func (ListTagsRequestValidationError) Reason ¶
func (e ListTagsRequestValidationError) Reason() string
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 ¶
func (m ListTagsResponseMultiError) Error() string
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 ¶
func (e ListTagsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListTagsResponseValidationError) Error ¶
func (e ListTagsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListTagsResponseValidationError) ErrorName ¶
func (e ListTagsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListTagsResponseValidationError) Field ¶
func (e ListTagsResponseValidationError) Field() string
Field function returns field value.
func (ListTagsResponseValidationError) Key ¶
func (e ListTagsResponseValidationError) Key() bool
Key function returns key value.
func (ListTagsResponseValidationError) Reason ¶
func (e ListTagsResponseValidationError) Reason() string
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 ¶
func (m ListUsersRequestMultiError) Error() string
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 ¶
func (e ListUsersRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUsersRequestValidationError) Error ¶
func (e ListUsersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUsersRequestValidationError) ErrorName ¶
func (e ListUsersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUsersRequestValidationError) Field ¶
func (e ListUsersRequestValidationError) Field() string
Field function returns field value.
func (ListUsersRequestValidationError) Key ¶
func (e ListUsersRequestValidationError) Key() bool
Key function returns key value.
func (ListUsersRequestValidationError) Reason ¶
func (e ListUsersRequestValidationError) Reason() string
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 ¶
func (m ListUsersResponseMultiError) Error() string
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 ¶
func (e ListUsersResponseValidationError) Cause() error
Cause function returns cause value.
func (ListUsersResponseValidationError) Error ¶
func (e ListUsersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListUsersResponseValidationError) ErrorName ¶
func (e ListUsersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListUsersResponseValidationError) Field ¶
func (e ListUsersResponseValidationError) Field() string
Field function returns field value.
func (ListUsersResponseValidationError) Key ¶
func (e ListUsersResponseValidationError) Key() bool
Key function returns key value.
func (ListUsersResponseValidationError) Reason ¶
func (e ListUsersResponseValidationError) Reason() string
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 ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
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 ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
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) GetCreatedAt ¶
func (x *Org) GetCreatedAt() *timestamppb.Timestamp
func (*Org) GetDisplayName ¶
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) Validate ¶
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 ¶
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.
OrgService contains functions to query and modify organizations.
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.
OrgService contains functions to query and modify organizations.
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 ¶
func (m PublishDataPointsRequestMultiError) Error() string
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 ¶
func (e PublishDataPointsRequestValidationError) Cause() error
Cause function returns cause value.
func (PublishDataPointsRequestValidationError) Error ¶
func (e PublishDataPointsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PublishDataPointsRequestValidationError) ErrorName ¶
func (e PublishDataPointsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PublishDataPointsRequestValidationError) Field ¶
func (e PublishDataPointsRequestValidationError) Field() string
Field function returns field value.
func (PublishDataPointsRequestValidationError) Key ¶
func (e PublishDataPointsRequestValidationError) Key() bool
Key function returns key value.
func (PublishDataPointsRequestValidationError) Reason ¶
func (e PublishDataPointsRequestValidationError) Reason() string
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) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
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) GetCreatedAt ¶
func (x *Rule) GetCreatedAt() *timestamppb.Timestamp
func (*Rule) GetDeviceTag ¶
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) Validate ¶
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 ¶
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.
RuleAlarmService contains functions to query and modify rules and alarms.
func NewRuleAlarmServiceClient ¶
func NewRuleAlarmServiceClient(cc grpc.ClientConnInterface) RuleAlarmServiceClient
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.
RuleAlarmService contains functions to query and modify rules and alarms.
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.
SessionService contains functions to create sessions and keys.
func NewSessionServiceClient ¶
func NewSessionServiceClient(cc grpc.ClientConnInterface) SessionServiceClient
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.
SessionService contains functions to create sessions and keys.
type Status ¶
type Status int32
Status represents the status of a message.
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
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.
TagService contains functions to query tags.
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.
TagService contains functions to query tags.
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 ¶
func (m TestAlarmRequestMultiError) Error() string
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 ¶
func (e TestAlarmRequestValidationError) Cause() error
Cause function returns cause value.
func (TestAlarmRequestValidationError) Error ¶
func (e TestAlarmRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TestAlarmRequestValidationError) ErrorName ¶
func (e TestAlarmRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TestAlarmRequestValidationError) Field ¶
func (e TestAlarmRequestValidationError) Field() string
Field function returns field value.
func (TestAlarmRequestValidationError) Key ¶
func (e TestAlarmRequestValidationError) Key() bool
Key function returns key value.
func (TestAlarmRequestValidationError) Reason ¶
func (e TestAlarmRequestValidationError) Reason() string
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 ¶
func (m TestAlarmResponseMultiError) Error() string
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 ¶
func (e TestAlarmResponseValidationError) Cause() error
Cause function returns cause value.
func (TestAlarmResponseValidationError) Error ¶
func (e TestAlarmResponseValidationError) Error() string
Error satisfies the builtin error interface
func (TestAlarmResponseValidationError) ErrorName ¶
func (e TestAlarmResponseValidationError) ErrorName() string
ErrorName returns error name.
func (TestAlarmResponseValidationError) Field ¶
func (e TestAlarmResponseValidationError) Field() string
Field function returns field value.
func (TestAlarmResponseValidationError) Key ¶
func (e TestAlarmResponseValidationError) Key() bool
Key function returns key value.
func (TestAlarmResponseValidationError) Reason ¶
func (e TestAlarmResponseValidationError) Reason() string
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 ¶
func (m TestRuleRequestMultiError) Error() string
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 ¶
func (e TestRuleRequestValidationError) Cause() error
Cause function returns cause value.
func (TestRuleRequestValidationError) Error ¶
func (e TestRuleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TestRuleRequestValidationError) ErrorName ¶
func (e TestRuleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TestRuleRequestValidationError) Field ¶
func (e TestRuleRequestValidationError) Field() string
Field function returns field value.
func (TestRuleRequestValidationError) Key ¶
func (e TestRuleRequestValidationError) Key() bool
Key function returns key value.
func (TestRuleRequestValidationError) Reason ¶
func (e TestRuleRequestValidationError) Reason() string
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 ¶
func (m TestRuleResponseMultiError) Error() string
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 ¶
func (e TestRuleResponseValidationError) Cause() error
Cause function returns cause value.
func (TestRuleResponseValidationError) Error ¶
func (e TestRuleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (TestRuleResponseValidationError) ErrorName ¶
func (e TestRuleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (TestRuleResponseValidationError) Field ¶
func (e TestRuleResponseValidationError) Field() string
Field function returns field value.
func (TestRuleResponseValidationError) Key ¶
func (e TestRuleResponseValidationError) Key() bool
Key function returns key value.
func (TestRuleResponseValidationError) Reason ¶
func (e TestRuleResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAlertServiceServer ¶
type UnimplementedAlertServiceServer struct{}
UnimplementedAlertServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAlertServiceServer) ListAlerts ¶
func (UnimplementedAlertServiceServer) ListAlerts(context.Context, *ListAlertsRequest) (*ListAlertsResponse, error)
type UnimplementedDataPointServiceServer ¶
type UnimplementedDataPointServiceServer struct{}
UnimplementedDataPointServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedDataPointServiceServer) LatestDataPoints ¶
func (UnimplementedDataPointServiceServer) LatestDataPoints(context.Context, *LatestDataPointsRequest) (*LatestDataPointsResponse, error)
func (UnimplementedDataPointServiceServer) ListDataPoints ¶
func (UnimplementedDataPointServiceServer) ListDataPoints(context.Context, *ListDataPointsRequest) (*ListDataPointsResponse, error)
func (UnimplementedDataPointServiceServer) PublishDataPoints ¶
func (UnimplementedDataPointServiceServer) PublishDataPoints(context.Context, *PublishDataPointsRequest) (*emptypb.Empty, error)
type UnimplementedDeviceServiceServer ¶
type UnimplementedDeviceServiceServer struct{}
UnimplementedDeviceServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedDeviceServiceServer) CreateDevice ¶
func (UnimplementedDeviceServiceServer) CreateDevice(context.Context, *CreateDeviceRequest) (*Device, error)
func (UnimplementedDeviceServiceServer) CreateDeviceLoRaWAN ¶
func (UnimplementedDeviceServiceServer) CreateDeviceLoRaWAN(context.Context, *CreateDeviceLoRaWANRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServiceServer) DeleteDevice ¶
func (UnimplementedDeviceServiceServer) DeleteDevice(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServiceServer) DeleteDeviceLoRaWAN ¶
func (UnimplementedDeviceServiceServer) DeleteDeviceLoRaWAN(context.Context, *DeleteDeviceLoRaWANRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServiceServer) GetDevice ¶
func (UnimplementedDeviceServiceServer) GetDevice(context.Context, *GetDeviceRequest) (*Device, error)
func (UnimplementedDeviceServiceServer) ListDevices ¶
func (UnimplementedDeviceServiceServer) ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error)
func (UnimplementedDeviceServiceServer) UpdateDevice ¶
func (UnimplementedDeviceServiceServer) UpdateDevice(context.Context, *UpdateDeviceRequest) (*Device, error)
type UnimplementedEventServiceServer ¶
type UnimplementedEventServiceServer struct{}
UnimplementedEventServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedEventServiceServer) LatestEvents ¶
func (UnimplementedEventServiceServer) LatestEvents(context.Context, *LatestEventsRequest) (*LatestEventsResponse, error)
func (UnimplementedEventServiceServer) ListEvents ¶
func (UnimplementedEventServiceServer) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
type UnimplementedOrgServiceServer ¶
type UnimplementedOrgServiceServer struct{}
UnimplementedOrgServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedOrgServiceServer) CreateOrg ¶
func (UnimplementedOrgServiceServer) CreateOrg(context.Context, *CreateOrgRequest) (*Org, error)
func (UnimplementedOrgServiceServer) DeleteOrg ¶
func (UnimplementedOrgServiceServer) DeleteOrg(context.Context, *DeleteOrgRequest) (*emptypb.Empty, error)
func (UnimplementedOrgServiceServer) GetOrg ¶
func (UnimplementedOrgServiceServer) GetOrg(context.Context, *GetOrgRequest) (*Org, error)
func (UnimplementedOrgServiceServer) ListOrgs ¶
func (UnimplementedOrgServiceServer) ListOrgs(context.Context, *ListOrgsRequest) (*ListOrgsResponse, error)
func (UnimplementedOrgServiceServer) UpdateOrg ¶
func (UnimplementedOrgServiceServer) UpdateOrg(context.Context, *UpdateOrgRequest) (*Org, error)
type UnimplementedRuleAlarmServiceServer ¶
type UnimplementedRuleAlarmServiceServer struct{}
UnimplementedRuleAlarmServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRuleAlarmServiceServer) CreateAlarm ¶
func (UnimplementedRuleAlarmServiceServer) CreateAlarm(context.Context, *CreateAlarmRequest) (*Alarm, error)
func (UnimplementedRuleAlarmServiceServer) CreateRule ¶
func (UnimplementedRuleAlarmServiceServer) CreateRule(context.Context, *CreateRuleRequest) (*Rule, error)
func (UnimplementedRuleAlarmServiceServer) DeleteAlarm ¶
func (UnimplementedRuleAlarmServiceServer) DeleteAlarm(context.Context, *DeleteAlarmRequest) (*emptypb.Empty, error)
func (UnimplementedRuleAlarmServiceServer) DeleteRule ¶
func (UnimplementedRuleAlarmServiceServer) DeleteRule(context.Context, *DeleteRuleRequest) (*emptypb.Empty, error)
func (UnimplementedRuleAlarmServiceServer) GetAlarm ¶
func (UnimplementedRuleAlarmServiceServer) GetAlarm(context.Context, *GetAlarmRequest) (*Alarm, error)
func (UnimplementedRuleAlarmServiceServer) GetRule ¶
func (UnimplementedRuleAlarmServiceServer) GetRule(context.Context, *GetRuleRequest) (*Rule, error)
func (UnimplementedRuleAlarmServiceServer) ListAlarms ¶
func (UnimplementedRuleAlarmServiceServer) ListAlarms(context.Context, *ListAlarmsRequest) (*ListAlarmsResponse, error)
func (UnimplementedRuleAlarmServiceServer) ListRules ¶
func (UnimplementedRuleAlarmServiceServer) ListRules(context.Context, *ListRulesRequest) (*ListRulesResponse, error)
func (UnimplementedRuleAlarmServiceServer) TestAlarm ¶
func (UnimplementedRuleAlarmServiceServer) TestAlarm(context.Context, *TestAlarmRequest) (*TestAlarmResponse, error)
func (UnimplementedRuleAlarmServiceServer) TestRule ¶
func (UnimplementedRuleAlarmServiceServer) TestRule(context.Context, *TestRuleRequest) (*TestRuleResponse, error)
func (UnimplementedRuleAlarmServiceServer) UpdateAlarm ¶
func (UnimplementedRuleAlarmServiceServer) UpdateAlarm(context.Context, *UpdateAlarmRequest) (*Alarm, error)
func (UnimplementedRuleAlarmServiceServer) UpdateRule ¶
func (UnimplementedRuleAlarmServiceServer) UpdateRule(context.Context, *UpdateRuleRequest) (*Rule, error)
type UnimplementedSessionServiceServer ¶
type UnimplementedSessionServiceServer struct{}
UnimplementedSessionServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSessionServiceServer) CreateKey ¶
func (UnimplementedSessionServiceServer) CreateKey(context.Context, *CreateKeyRequest) (*CreateKeyResponse, error)
func (UnimplementedSessionServiceServer) DeleteKey ¶
func (UnimplementedSessionServiceServer) DeleteKey(context.Context, *DeleteKeyRequest) (*emptypb.Empty, error)
func (UnimplementedSessionServiceServer) ListKeys ¶
func (UnimplementedSessionServiceServer) ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error)
func (UnimplementedSessionServiceServer) Login ¶
func (UnimplementedSessionServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
type UnimplementedTagServiceServer ¶
type UnimplementedTagServiceServer struct{}
UnimplementedTagServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTagServiceServer) ListTags ¶
func (UnimplementedTagServiceServer) ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct{}
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
func (UnimplementedUserServiceServer) ListUsers ¶
func (UnimplementedUserServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
func (UnimplementedUserServiceServer) UpdateUserPassword ¶
func (UnimplementedUserServiceServer) UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*emptypb.Empty, error)
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 ¶
func (m UpdateAlarmRequestMultiError) Error() string
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 ¶
func (e UpdateAlarmRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateAlarmRequestValidationError) Error ¶
func (e UpdateAlarmRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAlarmRequestValidationError) ErrorName ¶
func (e UpdateAlarmRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAlarmRequestValidationError) Field ¶
func (e UpdateAlarmRequestValidationError) Field() string
Field function returns field value.
func (UpdateAlarmRequestValidationError) Key ¶
func (e UpdateAlarmRequestValidationError) Key() bool
Key function returns key value.
func (UpdateAlarmRequestValidationError) Reason ¶
func (e UpdateAlarmRequestValidationError) Reason() string
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 ¶
func (m UpdateDeviceRequestMultiError) Error() string
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 ¶
func (e UpdateDeviceRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateDeviceRequestValidationError) Error ¶
func (e UpdateDeviceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDeviceRequestValidationError) ErrorName ¶
func (e UpdateDeviceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDeviceRequestValidationError) Field ¶
func (e UpdateDeviceRequestValidationError) Field() string
Field function returns field value.
func (UpdateDeviceRequestValidationError) Key ¶
func (e UpdateDeviceRequestValidationError) Key() bool
Key function returns key value.
func (UpdateDeviceRequestValidationError) Reason ¶
func (e UpdateDeviceRequestValidationError) Reason() string
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 ¶
func (m UpdateOrgRequestMultiError) Error() string
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 ¶
func (e UpdateOrgRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateOrgRequestValidationError) Error ¶
func (e UpdateOrgRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateOrgRequestValidationError) ErrorName ¶
func (e UpdateOrgRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateOrgRequestValidationError) Field ¶
func (e UpdateOrgRequestValidationError) Field() string
Field function returns field value.
func (UpdateOrgRequestValidationError) Key ¶
func (e UpdateOrgRequestValidationError) Key() bool
Key function returns key value.
func (UpdateOrgRequestValidationError) Reason ¶
func (e UpdateOrgRequestValidationError) Reason() string
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 ¶
func (m UpdateRuleRequestMultiError) Error() string
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 ¶
func (e UpdateRuleRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRuleRequestValidationError) Error ¶
func (e UpdateRuleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRuleRequestValidationError) ErrorName ¶
func (e UpdateRuleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRuleRequestValidationError) Field ¶
func (e UpdateRuleRequestValidationError) Field() string
Field function returns field value.
func (UpdateRuleRequestValidationError) Key ¶
func (e UpdateRuleRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRuleRequestValidationError) Reason ¶
func (e UpdateRuleRequestValidationError) Reason() string
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 (x *UpdateUserPasswordRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m UpdateUserPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserPasswordRequestMultiError) Error ¶
func (m UpdateUserPasswordRequestMultiError) Error() string
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 ¶
func (e UpdateUserPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserPasswordRequestValidationError) Error ¶
func (e UpdateUserPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserPasswordRequestValidationError) ErrorName ¶
func (e UpdateUserPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserPasswordRequestValidationError) Field ¶
func (e UpdateUserPasswordRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserPasswordRequestValidationError) Key ¶
func (e UpdateUserPasswordRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserPasswordRequestValidationError) Reason ¶
func (e UpdateUserPasswordRequestValidationError) Reason() string
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 ¶
func (m UpdateUserRequestMultiError) Error() string
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 ¶
func (e UpdateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserRequestValidationError) Error ¶
func (e UpdateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserRequestValidationError) ErrorName ¶
func (e UpdateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserRequestValidationError) Field ¶
func (e UpdateUserRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserRequestValidationError) Key ¶
func (e UpdateUserRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserRequestValidationError) Reason ¶
func (e UpdateUserRequestValidationError) Reason() string
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) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
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) Validate ¶
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 ¶
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.
UserService contains functions to query and modify users.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
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.
UserService contains functions to query and modify users.
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.
Source Files ¶
- doc.go
- thingspect_alert.pb.go
- thingspect_alert.pb.gw.go
- thingspect_alert.pb.validate.go
- thingspect_alert_grpc.pb.go
- thingspect_datapoint.pb.go
- thingspect_datapoint.pb.gw.go
- thingspect_datapoint.pb.validate.go
- thingspect_datapoint_grpc.pb.go
- thingspect_device.pb.go
- thingspect_device.pb.gw.go
- thingspect_device.pb.validate.go
- thingspect_device_grpc.pb.go
- thingspect_event.pb.go
- thingspect_event.pb.gw.go
- thingspect_event.pb.validate.go
- thingspect_event_grpc.pb.go
- thingspect_org.pb.go
- thingspect_org.pb.gw.go
- thingspect_org.pb.validate.go
- thingspect_org_grpc.pb.go
- thingspect_role.pb.go
- thingspect_role.pb.validate.go
- thingspect_rule_alarm.pb.go
- thingspect_rule_alarm.pb.gw.go
- thingspect_rule_alarm.pb.validate.go
- thingspect_rule_alarm_grpc.pb.go
- thingspect_session.pb.go
- thingspect_session.pb.gw.go
- thingspect_session.pb.validate.go
- thingspect_session_grpc.pb.go
- thingspect_status.pb.go
- thingspect_status.pb.validate.go
- thingspect_tag.pb.go
- thingspect_tag.pb.gw.go
- thingspect_tag.pb.validate.go
- thingspect_tag_grpc.pb.go
- thingspect_user.pb.go
- thingspect_user.pb.gw.go
- thingspect_user.pb.validate.go
- thingspect_user_grpc.pb.go