Documentation ¶
Index ¶
- Variables
- func RegisterDeviceHTTPServer(container *go_restful.Container, srv DeviceHTTPServer)
- func RegisterDeviceServer(s grpc.ServiceRegistrar, srv DeviceServer)
- type AddDeviceExtRequest
- func (*AddDeviceExtRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddDeviceExtRequest) GetExt() *structpb.Value
- func (x *AddDeviceExtRequest) GetId() string
- func (*AddDeviceExtRequest) ProtoMessage()
- func (x *AddDeviceExtRequest) ProtoReflect() protoreflect.Message
- func (x *AddDeviceExtRequest) Reset()
- func (x *AddDeviceExtRequest) String() string
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (x *Condition) GetField() string
- func (x *Condition) GetOperator() string
- func (x *Condition) GetValue() *structpb.Value
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) String() string
- type CreateDeviceDataRelationRequest
- func (*CreateDeviceDataRelationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeviceDataRelationRequest) GetId() string
- func (x *CreateDeviceDataRelationRequest) GetRelation() *Relation
- func (*CreateDeviceDataRelationRequest) ProtoMessage()
- func (x *CreateDeviceDataRelationRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceDataRelationRequest) Reset()
- func (x *CreateDeviceDataRelationRequest) String() string
- type CreateDeviceRequest
- func (*CreateDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeviceRequest) GetDevBasicInfo() *DeviceEntityBasicInfo
- func (*CreateDeviceRequest) ProtoMessage()
- func (x *CreateDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceRequest) Reset()
- func (x *CreateDeviceRequest) String() string
- type CreateDeviceResponse
- func (*CreateDeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeviceResponse) GetDeviceObject() *structpb.Value
- func (*CreateDeviceResponse) ProtoMessage()
- func (x *CreateDeviceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceResponse) Reset()
- func (x *CreateDeviceResponse) String() string
- type DeleteDeviceDataRelationRequest
- func (*DeleteDeviceDataRelationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDeviceDataRelationRequest) GetId() string
- func (x *DeleteDeviceDataRelationRequest) GetRelation() *Relation
- func (*DeleteDeviceDataRelationRequest) ProtoMessage()
- func (x *DeleteDeviceDataRelationRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDeviceDataRelationRequest) Reset()
- func (x *DeleteDeviceDataRelationRequest) String() string
- type DeleteDeviceExtRequest
- func (*DeleteDeviceExtRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDeviceExtRequest) GetId() string
- func (x *DeleteDeviceExtRequest) GetKeys() *Keys
- func (*DeleteDeviceExtRequest) ProtoMessage()
- func (x *DeleteDeviceExtRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDeviceExtRequest) Reset()
- func (x *DeleteDeviceExtRequest) String() string
- type DeleteDeviceRequest
- func (*DeleteDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDeviceRequest) GetIds() *Ids
- func (*DeleteDeviceRequest) ProtoMessage()
- func (x *DeleteDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDeviceRequest) Reset()
- func (x *DeleteDeviceRequest) String() string
- type DeleteDeviceResponse
- func (*DeleteDeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDeviceResponse) GetFaildDelDevice() []*FaildDelDevice
- func (*DeleteDeviceResponse) ProtoMessage()
- func (x *DeleteDeviceResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteDeviceResponse) Reset()
- func (x *DeleteDeviceResponse) String() string
- type DeviceClient
- type DeviceEntityBasicInfo
- func (*DeviceEntityBasicInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceEntityBasicInfo) GetDescription() string
- func (x *DeviceEntityBasicInfo) GetDirectConnection() bool
- func (x *DeviceEntityBasicInfo) GetExt() *structpb.Value
- func (x *DeviceEntityBasicInfo) GetName() string
- func (x *DeviceEntityBasicInfo) GetParentId() string
- func (x *DeviceEntityBasicInfo) GetParentName() string
- func (x *DeviceEntityBasicInfo) GetSelfLearn() bool
- func (x *DeviceEntityBasicInfo) GetTemplateId() string
- func (x *DeviceEntityBasicInfo) GetTemplateName() string
- func (*DeviceEntityBasicInfo) ProtoMessage()
- func (x *DeviceEntityBasicInfo) ProtoReflect() protoreflect.Message
- func (x *DeviceEntityBasicInfo) Reset()
- func (x *DeviceEntityBasicInfo) String() string
- type DeviceEntityConnectInfo
- func (*DeviceEntityConnectInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceEntityConnectInfo) GetXClientId() string
- func (x *DeviceEntityConnectInfo) GetXOnline() bool
- func (x *DeviceEntityConnectInfo) GetXPeerHost() string
- func (x *DeviceEntityConnectInfo) GetXProtocol() string
- func (x *DeviceEntityConnectInfo) GetXSockPort() string
- func (x *DeviceEntityConnectInfo) GetXUserName() string
- func (*DeviceEntityConnectInfo) ProtoMessage()
- func (x *DeviceEntityConnectInfo) ProtoReflect() protoreflect.Message
- func (x *DeviceEntityConnectInfo) Reset()
- func (x *DeviceEntityConnectInfo) String() string
- type DeviceEntityCoreInfo
- func (*DeviceEntityCoreInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceEntityCoreInfo) GetBasicInfo() *DeviceEntityBasicInfo
- func (x *DeviceEntityCoreInfo) GetConnectInfo() *DeviceEntityConnectInfo
- func (x *DeviceEntityCoreInfo) GetSysField() *DeviceEntitySysField
- func (*DeviceEntityCoreInfo) ProtoMessage()
- func (x *DeviceEntityCoreInfo) ProtoReflect() protoreflect.Message
- func (x *DeviceEntityCoreInfo) Reset()
- func (x *DeviceEntityCoreInfo) String() string
- type DeviceEntitySysField
- func (*DeviceEntitySysField) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceEntitySysField) GetXCreatedAt() int64
- func (x *DeviceEntitySysField) GetXEnable() bool
- func (x *DeviceEntitySysField) GetXId() string
- func (x *DeviceEntitySysField) GetXOwner() string
- func (x *DeviceEntitySysField) GetXSource() string
- func (x *DeviceEntitySysField) GetXSpacePath() string
- func (x *DeviceEntitySysField) GetXStatus() string
- func (x *DeviceEntitySysField) GetXSubscribeAddr() string
- func (x *DeviceEntitySysField) GetXToken() string
- func (x *DeviceEntitySysField) GetXUpdatedAt() int64
- func (*DeviceEntitySysField) ProtoMessage()
- func (x *DeviceEntitySysField) ProtoReflect() protoreflect.Message
- func (x *DeviceEntitySysField) Reset()
- func (x *DeviceEntitySysField) String() string
- type DeviceHTTPHandler
- func (h *DeviceHTTPHandler) AddDeviceExt(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) CreateDevice(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) CreateDeviceDataRelation(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) DeleteDevice(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) DeleteDeviceDataRelation(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) DeleteDeviceExt(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) GetDevice(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) ListDeviceDataRelation(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) SearchEntity(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) SetDeviceAttribte(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) SetDeviceCommand(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) SetDeviceRaw(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) UpdateDevice(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) UpdateDeviceDataRelation(req *go_restful.Request, resp *go_restful.Response)
- func (h *DeviceHTTPHandler) UpdateDeviceExt(req *go_restful.Request, resp *go_restful.Response)
- type DeviceHTTPServer
- type DeviceServer
- type Enable
- type EnableDeviceRequest
- func (*EnableDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnableDeviceRequest) GetEnable() *Enable
- func (x *EnableDeviceRequest) GetId() string
- func (*EnableDeviceRequest) ProtoMessage()
- func (x *EnableDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *EnableDeviceRequest) Reset()
- func (x *EnableDeviceRequest) String() string
- type Ext
- type FaildDelDevice
- func (*FaildDelDevice) Descriptor() ([]byte, []int)deprecated
- func (x *FaildDelDevice) GetId() string
- func (x *FaildDelDevice) GetReason() string
- func (*FaildDelDevice) ProtoMessage()
- func (x *FaildDelDevice) ProtoReflect() protoreflect.Message
- func (x *FaildDelDevice) Reset()
- func (x *FaildDelDevice) String() string
- type GetDeviceRequest
- type GetDeviceResponse
- func (*GetDeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceResponse) GetDeviceObject() *structpb.Value
- func (*GetDeviceResponse) ProtoMessage()
- func (x *GetDeviceResponse) ProtoReflect() protoreflect.Message
- func (x *GetDeviceResponse) Reset()
- func (x *GetDeviceResponse) String() string
- type Ids
- type Keys
- type ListDeviceDataRelationRequest
- func (*ListDeviceDataRelationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDeviceDataRelationRequest) GetId() string
- func (*ListDeviceDataRelationRequest) ProtoMessage()
- func (x *ListDeviceDataRelationRequest) ProtoReflect() protoreflect.Message
- func (x *ListDeviceDataRelationRequest) Reset()
- func (x *ListDeviceDataRelationRequest) String() string
- type ListDeviceRequest
- func (*ListDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDeviceRequest) GetListEntityQuery() *ListEntityQuery
- func (*ListDeviceRequest) ProtoMessage()
- func (x *ListDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *ListDeviceRequest) Reset()
- func (x *ListDeviceRequest) String() string
- type ListDeviceResponse
- func (*ListDeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDeviceResponse) GetListDeviceObject() *structpb.Value
- func (*ListDeviceResponse) ProtoMessage()
- func (x *ListDeviceResponse) ProtoReflect() protoreflect.Message
- func (x *ListDeviceResponse) Reset()
- func (x *ListDeviceResponse) String() string
- type ListEntityQuery
- func (*ListEntityQuery) Descriptor() ([]byte, []int)deprecated
- func (x *ListEntityQuery) GetCondition() []*Condition
- func (x *ListEntityQuery) GetIsDescending() bool
- func (x *ListEntityQuery) GetOrderBy() string
- func (x *ListEntityQuery) GetPageNum() int32
- func (x *ListEntityQuery) GetPageSize() int32
- func (x *ListEntityQuery) GetQuery() string
- func (*ListEntityQuery) ProtoMessage()
- func (x *ListEntityQuery) ProtoReflect() protoreflect.Message
- func (x *ListEntityQuery) Reset()
- func (x *ListEntityQuery) String() string
- type Relation
- type SetContent
- type SetDeviceAttributeRequest
- func (*SetDeviceAttributeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetDeviceAttributeRequest) GetContent() *SetContent
- func (x *SetDeviceAttributeRequest) GetId() string
- func (*SetDeviceAttributeRequest) ProtoMessage()
- func (x *SetDeviceAttributeRequest) ProtoReflect() protoreflect.Message
- func (x *SetDeviceAttributeRequest) Reset()
- func (x *SetDeviceAttributeRequest) String() string
- type SetDeviceCommandRequest
- func (*SetDeviceCommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetDeviceCommandRequest) GetContent() *SetContent
- func (x *SetDeviceCommandRequest) GetId() string
- func (*SetDeviceCommandRequest) ProtoMessage()
- func (x *SetDeviceCommandRequest) ProtoReflect() protoreflect.Message
- func (x *SetDeviceCommandRequest) Reset()
- func (x *SetDeviceCommandRequest) String() string
- type SetDeviceRawRequest
- func (*SetDeviceRawRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetDeviceRawRequest) GetId() string
- func (x *SetDeviceRawRequest) GetValue() *structpb.Value
- func (*SetDeviceRawRequest) ProtoMessage()
- func (x *SetDeviceRawRequest) ProtoReflect() protoreflect.Message
- func (x *SetDeviceRawRequest) Reset()
- func (x *SetDeviceRawRequest) String() string
- type UnimplementedDeviceServer
- func (UnimplementedDeviceServer) AddDeviceExt(context.Context, *AddDeviceExtRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServer) CreateDevice(context.Context, *CreateDeviceRequest) (*CreateDeviceResponse, error)
- func (UnimplementedDeviceServer) CreateDeviceDataRelation(context.Context, *CreateDeviceDataRelationRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServer) DeleteDevice(context.Context, *DeleteDeviceRequest) (*DeleteDeviceResponse, error)
- func (UnimplementedDeviceServer) DeleteDeviceDataRelation(context.Context, *DeleteDeviceDataRelationRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServer) DeleteDeviceExt(context.Context, *DeleteDeviceExtRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServer) GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error)
- func (UnimplementedDeviceServer) ListDeviceDataRelation(context.Context, *ListDeviceDataRelationRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServer) SearchEntity(context.Context, *ListDeviceRequest) (*ListDeviceResponse, error)
- func (UnimplementedDeviceServer) SetDeviceAttribte(context.Context, *SetDeviceAttributeRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServer) SetDeviceCommand(context.Context, *SetDeviceCommandRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServer) SetDeviceRaw(context.Context, *SetDeviceRawRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServer) UpdateDevice(context.Context, *UpdateDeviceRequest) (*UpdateDeviceResponse, error)
- func (UnimplementedDeviceServer) UpdateDeviceDataRelation(context.Context, *UpdateDeviceDataRelationRequest) (*emptypb.Empty, error)
- func (UnimplementedDeviceServer) UpdateDeviceExt(context.Context, *UpdateDeviceExtRequest) (*emptypb.Empty, error)
- type UnsafeDeviceServer
- type UpdateDeviceDataRelationRequest
- func (*UpdateDeviceDataRelationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceDataRelationRequest) GetId() string
- func (x *UpdateDeviceDataRelationRequest) GetRelation() *Relation
- func (*UpdateDeviceDataRelationRequest) ProtoMessage()
- func (x *UpdateDeviceDataRelationRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceDataRelationRequest) Reset()
- func (x *UpdateDeviceDataRelationRequest) String() string
- type UpdateDeviceEntityCoreInfo
- func (*UpdateDeviceEntityCoreInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceEntityCoreInfo) GetBasicInfo() *DeviceEntityBasicInfo
- func (*UpdateDeviceEntityCoreInfo) ProtoMessage()
- func (x *UpdateDeviceEntityCoreInfo) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceEntityCoreInfo) Reset()
- func (x *UpdateDeviceEntityCoreInfo) String() string
- type UpdateDeviceExtRequest
- func (*UpdateDeviceExtRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceExtRequest) GetExt() *structpb.Value
- func (x *UpdateDeviceExtRequest) GetId() string
- func (*UpdateDeviceExtRequest) ProtoMessage()
- func (x *UpdateDeviceExtRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceExtRequest) Reset()
- func (x *UpdateDeviceExtRequest) String() string
- type UpdateDeviceRequest
- func (*UpdateDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceRequest) GetDevBasicInfo() *DeviceEntityBasicInfo
- func (x *UpdateDeviceRequest) GetId() string
- func (*UpdateDeviceRequest) ProtoMessage()
- func (x *UpdateDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceRequest) Reset()
- func (x *UpdateDeviceRequest) String() string
- type UpdateDeviceResponse
- func (*UpdateDeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDeviceResponse) GetDeviceObject() *structpb.Value
- func (*UpdateDeviceResponse) ProtoMessage()
- func (x *UpdateDeviceResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateDeviceResponse) Reset()
- func (x *UpdateDeviceResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var Device_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.device.v1.Device", HandlerType: (*DeviceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateDevice", Handler: _Device_CreateDevice_Handler, }, { MethodName: "UpdateDevice", Handler: _Device_UpdateDevice_Handler, }, { MethodName: "DeleteDevice", Handler: _Device_DeleteDevice_Handler, }, { MethodName: "GetDevice", Handler: _Device_GetDevice_Handler, }, { MethodName: "SearchEntity", Handler: _Device_SearchEntity_Handler, }, { MethodName: "AddDeviceExt", Handler: _Device_AddDeviceExt_Handler, }, { MethodName: "DeleteDeviceExt", Handler: _Device_DeleteDeviceExt_Handler, }, { MethodName: "UpdateDeviceExt", Handler: _Device_UpdateDeviceExt_Handler, }, { MethodName: "CreateDeviceDataRelation", Handler: _Device_CreateDeviceDataRelation_Handler, }, { MethodName: "UpdateDeviceDataRelation", Handler: _Device_UpdateDeviceDataRelation_Handler, }, { MethodName: "DeleteDeviceDataRelation", Handler: _Device_DeleteDeviceDataRelation_Handler, }, { MethodName: "ListDeviceDataRelation", Handler: _Device_ListDeviceDataRelation_Handler, }, { MethodName: "SetDeviceRaw", Handler: _Device_SetDeviceRaw_Handler, }, { MethodName: "SetDeviceAttribte", Handler: _Device_SetDeviceAttribte_Handler, }, { MethodName: "SetDeviceCommand", Handler: _Device_SetDeviceCommand_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/device/v1/device.proto", }
Device_ServiceDesc is the grpc.ServiceDesc for Device 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_device_v1_device_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDeviceHTTPServer ¶
func RegisterDeviceHTTPServer(container *go_restful.Container, srv DeviceHTTPServer)
func RegisterDeviceServer ¶
func RegisterDeviceServer(s grpc.ServiceRegistrar, srv DeviceServer)
Types ¶
type AddDeviceExtRequest ¶
type AddDeviceExtRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Ext *structpb.Value `protobuf:"bytes,2,opt,name=ext,proto3" json:"ext,"` // contains filtered or unexported fields }
func (*AddDeviceExtRequest) Descriptor
deprecated
func (*AddDeviceExtRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddDeviceExtRequest.ProtoReflect.Descriptor instead.
func (*AddDeviceExtRequest) GetExt ¶
func (x *AddDeviceExtRequest) GetExt() *structpb.Value
func (*AddDeviceExtRequest) GetId ¶
func (x *AddDeviceExtRequest) GetId() string
func (*AddDeviceExtRequest) ProtoMessage ¶
func (*AddDeviceExtRequest) ProtoMessage()
func (*AddDeviceExtRequest) ProtoReflect ¶
func (x *AddDeviceExtRequest) ProtoReflect() protoreflect.Message
func (*AddDeviceExtRequest) Reset ¶
func (x *AddDeviceExtRequest) Reset()
func (*AddDeviceExtRequest) String ¶
func (x *AddDeviceExtRequest) String() string
type Condition ¶
type Condition struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,"` Value *structpb.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,"` //string value = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "值"}]; Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,"` // contains filtered or unexported fields }
func (*Condition) Descriptor
deprecated
func (*Condition) GetOperator ¶
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
type CreateDeviceDataRelationRequest ¶ added in v0.4.0
type CreateDeviceDataRelationRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Relation *Relation `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,"` // contains filtered or unexported fields }
func (*CreateDeviceDataRelationRequest) Descriptor
deprecated
added in
v0.4.0
func (*CreateDeviceDataRelationRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeviceDataRelationRequest.ProtoReflect.Descriptor instead.
func (*CreateDeviceDataRelationRequest) GetId ¶ added in v0.4.0
func (x *CreateDeviceDataRelationRequest) GetId() string
func (*CreateDeviceDataRelationRequest) GetRelation ¶ added in v0.4.0
func (x *CreateDeviceDataRelationRequest) GetRelation() *Relation
func (*CreateDeviceDataRelationRequest) ProtoMessage ¶ added in v0.4.0
func (*CreateDeviceDataRelationRequest) ProtoMessage()
func (*CreateDeviceDataRelationRequest) ProtoReflect ¶ added in v0.4.0
func (x *CreateDeviceDataRelationRequest) ProtoReflect() protoreflect.Message
func (*CreateDeviceDataRelationRequest) Reset ¶ added in v0.4.0
func (x *CreateDeviceDataRelationRequest) Reset()
func (*CreateDeviceDataRelationRequest) String ¶ added in v0.4.0
func (x *CreateDeviceDataRelationRequest) String() string
type CreateDeviceRequest ¶
type CreateDeviceRequest struct { DevBasicInfo *DeviceEntityBasicInfo `protobuf:"bytes,1,opt,name=devBasicInfo,proto3" json:"devBasicInfo,"` // contains filtered or unexported fields }
user to device
func (*CreateDeviceRequest) Descriptor
deprecated
func (*CreateDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeviceRequest.ProtoReflect.Descriptor instead.
func (*CreateDeviceRequest) GetDevBasicInfo ¶ added in v0.3.0
func (x *CreateDeviceRequest) GetDevBasicInfo() *DeviceEntityBasicInfo
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
type CreateDeviceResponse ¶
type CreateDeviceResponse struct { //api.core.v1.EntityResponse deviceObject = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "设备对象"}]; DeviceObject *structpb.Value `protobuf:"bytes,1,opt,name=deviceObject,proto3" json:"deviceObject,"` // contains filtered or unexported fields }
func (*CreateDeviceResponse) Descriptor
deprecated
func (*CreateDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeviceResponse.ProtoReflect.Descriptor instead.
func (*CreateDeviceResponse) GetDeviceObject ¶ added in v0.3.0
func (x *CreateDeviceResponse) GetDeviceObject() *structpb.Value
func (*CreateDeviceResponse) ProtoMessage ¶
func (*CreateDeviceResponse) ProtoMessage()
func (*CreateDeviceResponse) ProtoReflect ¶
func (x *CreateDeviceResponse) ProtoReflect() protoreflect.Message
func (*CreateDeviceResponse) Reset ¶
func (x *CreateDeviceResponse) Reset()
func (*CreateDeviceResponse) String ¶
func (x *CreateDeviceResponse) String() string
type DeleteDeviceDataRelationRequest ¶ added in v0.4.0
type DeleteDeviceDataRelationRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Relation *Relation `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,"` // contains filtered or unexported fields }
func (*DeleteDeviceDataRelationRequest) Descriptor
deprecated
added in
v0.4.0
func (*DeleteDeviceDataRelationRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDeviceDataRelationRequest.ProtoReflect.Descriptor instead.
func (*DeleteDeviceDataRelationRequest) GetId ¶ added in v0.4.0
func (x *DeleteDeviceDataRelationRequest) GetId() string
func (*DeleteDeviceDataRelationRequest) GetRelation ¶ added in v0.4.0
func (x *DeleteDeviceDataRelationRequest) GetRelation() *Relation
func (*DeleteDeviceDataRelationRequest) ProtoMessage ¶ added in v0.4.0
func (*DeleteDeviceDataRelationRequest) ProtoMessage()
func (*DeleteDeviceDataRelationRequest) ProtoReflect ¶ added in v0.4.0
func (x *DeleteDeviceDataRelationRequest) ProtoReflect() protoreflect.Message
func (*DeleteDeviceDataRelationRequest) Reset ¶ added in v0.4.0
func (x *DeleteDeviceDataRelationRequest) Reset()
func (*DeleteDeviceDataRelationRequest) String ¶ added in v0.4.0
func (x *DeleteDeviceDataRelationRequest) String() string
type DeleteDeviceExtRequest ¶
type DeleteDeviceExtRequest struct { Keys *Keys `protobuf:"bytes,1,opt,name=keys,proto3" json:"keys,"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,"` // contains filtered or unexported fields }
func (*DeleteDeviceExtRequest) Descriptor
deprecated
func (*DeleteDeviceExtRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDeviceExtRequest.ProtoReflect.Descriptor instead.
func (*DeleteDeviceExtRequest) GetId ¶
func (x *DeleteDeviceExtRequest) GetId() string
func (*DeleteDeviceExtRequest) GetKeys ¶
func (x *DeleteDeviceExtRequest) GetKeys() *Keys
func (*DeleteDeviceExtRequest) ProtoMessage ¶
func (*DeleteDeviceExtRequest) ProtoMessage()
func (*DeleteDeviceExtRequest) ProtoReflect ¶
func (x *DeleteDeviceExtRequest) ProtoReflect() protoreflect.Message
func (*DeleteDeviceExtRequest) Reset ¶
func (x *DeleteDeviceExtRequest) Reset()
func (*DeleteDeviceExtRequest) String ¶
func (x *DeleteDeviceExtRequest) String() string
type DeleteDeviceRequest ¶
type DeleteDeviceRequest struct { Ids *Ids `protobuf:"bytes,1,opt,name=ids,proto3" json:"ids,"` // contains filtered or unexported fields }
func (*DeleteDeviceRequest) Descriptor
deprecated
func (*DeleteDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDeviceRequest.ProtoReflect.Descriptor instead.
func (*DeleteDeviceRequest) GetIds ¶
func (x *DeleteDeviceRequest) GetIds() *Ids
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
type DeleteDeviceResponse ¶
type DeleteDeviceResponse struct { FaildDelDevice []*FaildDelDevice `protobuf:"bytes,1,rep,name=faildDelDevice,proto3" json:"faildDelDevice,"` // contains filtered or unexported fields }
func (*DeleteDeviceResponse) Descriptor
deprecated
func (*DeleteDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDeviceResponse.ProtoReflect.Descriptor instead.
func (*DeleteDeviceResponse) GetFaildDelDevice ¶ added in v0.4.0
func (x *DeleteDeviceResponse) GetFaildDelDevice() []*FaildDelDevice
func (*DeleteDeviceResponse) ProtoMessage ¶
func (*DeleteDeviceResponse) ProtoMessage()
func (*DeleteDeviceResponse) ProtoReflect ¶
func (x *DeleteDeviceResponse) ProtoReflect() protoreflect.Message
func (*DeleteDeviceResponse) Reset ¶
func (x *DeleteDeviceResponse) Reset()
func (*DeleteDeviceResponse) String ¶
func (x *DeleteDeviceResponse) String() string
type DeviceClient ¶
type DeviceClient interface { CreateDevice(ctx context.Context, in *CreateDeviceRequest, opts ...grpc.CallOption) (*CreateDeviceResponse, error) UpdateDevice(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*UpdateDeviceResponse, error) DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*DeleteDeviceResponse, error) GetDevice(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*GetDeviceResponse, error) SearchEntity(ctx context.Context, in *ListDeviceRequest, opts ...grpc.CallOption) (*ListDeviceResponse, error) AddDeviceExt(ctx context.Context, in *AddDeviceExtRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteDeviceExt(ctx context.Context, in *DeleteDeviceExtRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateDeviceExt(ctx context.Context, in *UpdateDeviceExtRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CreateDeviceDataRelation(ctx context.Context, in *CreateDeviceDataRelationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateDeviceDataRelation(ctx context.Context, in *UpdateDeviceDataRelationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteDeviceDataRelation(ctx context.Context, in *DeleteDeviceDataRelationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ListDeviceDataRelation(ctx context.Context, in *ListDeviceDataRelationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SetDeviceRaw(ctx context.Context, in *SetDeviceRawRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SetDeviceAttribte(ctx context.Context, in *SetDeviceAttributeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SetDeviceCommand(ctx context.Context, in *SetDeviceCommandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
DeviceClient is the client API for Device service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDeviceClient ¶
func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient
type DeviceEntityBasicInfo ¶ added in v0.3.0
type DeviceEntityBasicInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,"` ParentId string `protobuf:"bytes,3,opt,name=parentId,proto3" json:"parentId,"` ParentName string `protobuf:"bytes,4,opt,name=parentName,proto3" json:"parentName,"` DirectConnection bool `protobuf:"varint,5,opt,name=directConnection,proto3" json:"directConnection,"` TemplateId string `protobuf:"bytes,6,opt,name=templateId,proto3" json:"templateId,"` TemplateName string `protobuf:"bytes,7,opt,name=templateName,proto3" json:"templateName,"` SelfLearn bool `protobuf:"varint,8,opt,name=selfLearn,proto3" json:"selfLearn,"` Ext *structpb.Value `protobuf:"bytes,9,opt,name=ext,proto3" json:"ext,"` // contains filtered or unexported fields }
------------------------------------------------------------------------------ Basic data types ------------------------------------------------------------------------------
func (*DeviceEntityBasicInfo) Descriptor
deprecated
added in
v0.3.0
func (*DeviceEntityBasicInfo) Descriptor() ([]byte, []int)
Deprecated: Use DeviceEntityBasicInfo.ProtoReflect.Descriptor instead.
func (*DeviceEntityBasicInfo) GetDescription ¶ added in v0.4.0
func (x *DeviceEntityBasicInfo) GetDescription() string
func (*DeviceEntityBasicInfo) GetDirectConnection ¶ added in v0.3.0
func (x *DeviceEntityBasicInfo) GetDirectConnection() bool
func (*DeviceEntityBasicInfo) GetExt ¶ added in v0.3.0
func (x *DeviceEntityBasicInfo) GetExt() *structpb.Value
func (*DeviceEntityBasicInfo) GetName ¶ added in v0.3.0
func (x *DeviceEntityBasicInfo) GetName() string
func (*DeviceEntityBasicInfo) GetParentId ¶ added in v0.4.0
func (x *DeviceEntityBasicInfo) GetParentId() string
func (*DeviceEntityBasicInfo) GetParentName ¶ added in v0.4.0
func (x *DeviceEntityBasicInfo) GetParentName() string
func (*DeviceEntityBasicInfo) GetSelfLearn ¶ added in v0.3.0
func (x *DeviceEntityBasicInfo) GetSelfLearn() bool
func (*DeviceEntityBasicInfo) GetTemplateId ¶ added in v0.3.0
func (x *DeviceEntityBasicInfo) GetTemplateId() string
func (*DeviceEntityBasicInfo) GetTemplateName ¶ added in v0.4.0
func (x *DeviceEntityBasicInfo) GetTemplateName() string
func (*DeviceEntityBasicInfo) ProtoMessage ¶ added in v0.3.0
func (*DeviceEntityBasicInfo) ProtoMessage()
func (*DeviceEntityBasicInfo) ProtoReflect ¶ added in v0.3.0
func (x *DeviceEntityBasicInfo) ProtoReflect() protoreflect.Message
func (*DeviceEntityBasicInfo) Reset ¶ added in v0.3.0
func (x *DeviceEntityBasicInfo) Reset()
func (*DeviceEntityBasicInfo) String ¶ added in v0.3.0
func (x *DeviceEntityBasicInfo) String() string
type DeviceEntityConnectInfo ¶ added in v0.3.0
type DeviceEntityConnectInfo struct { XClientId string `protobuf:"bytes,1,opt,name=_clientId,json=ClientId,proto3" json:"_clientId,"` XOnline bool `protobuf:"varint,2,opt,name=_online,json=Online,proto3" json:"_online,"` XUserName string `protobuf:"bytes,3,opt,name=_userName,json=UserName,proto3" json:"_userName,"` XPeerHost string `protobuf:"bytes,4,opt,name=_peerHost,json=PeerHost,proto3" json:"_peerHost,"` XSockPort string `protobuf:"bytes,5,opt,name=_sockPort,json=SockPort,proto3" json:"_sockPort,"` XProtocol string `protobuf:"bytes,6,opt,name=_protocol,json=Protocol,proto3" json:"_protocol,"` // contains filtered or unexported fields }
connectInfo
func (*DeviceEntityConnectInfo) Descriptor
deprecated
added in
v0.3.0
func (*DeviceEntityConnectInfo) Descriptor() ([]byte, []int)
Deprecated: Use DeviceEntityConnectInfo.ProtoReflect.Descriptor instead.
func (*DeviceEntityConnectInfo) GetXClientId ¶ added in v0.4.0
func (x *DeviceEntityConnectInfo) GetXClientId() string
func (*DeviceEntityConnectInfo) GetXOnline ¶ added in v0.4.0
func (x *DeviceEntityConnectInfo) GetXOnline() bool
func (*DeviceEntityConnectInfo) GetXPeerHost ¶ added in v0.4.0
func (x *DeviceEntityConnectInfo) GetXPeerHost() string
func (*DeviceEntityConnectInfo) GetXProtocol ¶ added in v0.3.0
func (x *DeviceEntityConnectInfo) GetXProtocol() string
func (*DeviceEntityConnectInfo) GetXSockPort ¶ added in v0.4.0
func (x *DeviceEntityConnectInfo) GetXSockPort() string
func (*DeviceEntityConnectInfo) GetXUserName ¶ added in v0.4.0
func (x *DeviceEntityConnectInfo) GetXUserName() string
func (*DeviceEntityConnectInfo) ProtoMessage ¶ added in v0.3.0
func (*DeviceEntityConnectInfo) ProtoMessage()
func (*DeviceEntityConnectInfo) ProtoReflect ¶ added in v0.3.0
func (x *DeviceEntityConnectInfo) ProtoReflect() protoreflect.Message
func (*DeviceEntityConnectInfo) Reset ¶ added in v0.3.0
func (x *DeviceEntityConnectInfo) Reset()
func (*DeviceEntityConnectInfo) String ¶ added in v0.3.0
func (x *DeviceEntityConnectInfo) String() string
type DeviceEntityCoreInfo ¶
type DeviceEntityCoreInfo struct { BasicInfo *DeviceEntityBasicInfo `protobuf:"bytes,1,opt,name=basicInfo,proto3" json:"basicInfo,"` SysField *DeviceEntitySysField `protobuf:"bytes,2,opt,name=sysField,proto3" json:"sysField,"` ConnectInfo *DeviceEntityConnectInfo `protobuf:"bytes,3,opt,name=connectInfo,proto3" json:"connectInfo,"` // contains filtered or unexported fields }
device to core
func (*DeviceEntityCoreInfo) Descriptor
deprecated
func (*DeviceEntityCoreInfo) Descriptor() ([]byte, []int)
Deprecated: Use DeviceEntityCoreInfo.ProtoReflect.Descriptor instead.
func (*DeviceEntityCoreInfo) GetBasicInfo ¶ added in v0.3.0
func (x *DeviceEntityCoreInfo) GetBasicInfo() *DeviceEntityBasicInfo
func (*DeviceEntityCoreInfo) GetConnectInfo ¶ added in v0.3.0
func (x *DeviceEntityCoreInfo) GetConnectInfo() *DeviceEntityConnectInfo
func (*DeviceEntityCoreInfo) GetSysField ¶
func (x *DeviceEntityCoreInfo) GetSysField() *DeviceEntitySysField
func (*DeviceEntityCoreInfo) ProtoMessage ¶
func (*DeviceEntityCoreInfo) ProtoMessage()
func (*DeviceEntityCoreInfo) ProtoReflect ¶
func (x *DeviceEntityCoreInfo) ProtoReflect() protoreflect.Message
func (*DeviceEntityCoreInfo) Reset ¶
func (x *DeviceEntityCoreInfo) Reset()
func (*DeviceEntityCoreInfo) String ¶
func (x *DeviceEntityCoreInfo) String() string
type DeviceEntitySysField ¶
type DeviceEntitySysField struct { XId string `protobuf:"bytes,1,opt,name=_id,json=Id,proto3" json:"_id,"` XCreatedAt int64 `protobuf:"varint,2,opt,name=_createdAt,json=CreatedAt,proto3" json:"_createdAt,"` XUpdatedAt int64 `protobuf:"varint,3,opt,name=_updatedAt,json=UpdatedAt,proto3" json:"_updatedAt,"` XStatus string `protobuf:"bytes,4,opt,name=_status,json=Status,proto3" json:"_status,"` XEnable bool `protobuf:"varint,5,opt,name=_enable,json=Enable,proto3" json:"_enable,"` XToken string `protobuf:"bytes,6,opt,name=_token,json=Token,proto3" json:"_token,"` XOwner string `protobuf:"bytes,7,opt,name=_owner,json=Owner,proto3" json:"_owner,"` XSource string `protobuf:"bytes,8,opt,name=_source,json=Source,proto3" json:"_source,"` XSpacePath string `protobuf:"bytes,9,opt,name=_spacePath,json=SpacePath,proto3" json:"_spacePath,"` XSubscribeAddr string `protobuf:"bytes,10,opt,name=_subscribeAddr,json=SubscribeAddr,proto3" json:"_subscribeAddr,"` // contains filtered or unexported fields }
system fields
func (*DeviceEntitySysField) Descriptor
deprecated
func (*DeviceEntitySysField) Descriptor() ([]byte, []int)
Deprecated: Use DeviceEntitySysField.ProtoReflect.Descriptor instead.
func (*DeviceEntitySysField) GetXCreatedAt ¶
func (x *DeviceEntitySysField) GetXCreatedAt() int64
func (*DeviceEntitySysField) GetXEnable ¶
func (x *DeviceEntitySysField) GetXEnable() bool
func (*DeviceEntitySysField) GetXId ¶
func (x *DeviceEntitySysField) GetXId() string
func (*DeviceEntitySysField) GetXOwner ¶
func (x *DeviceEntitySysField) GetXOwner() string
func (*DeviceEntitySysField) GetXSource ¶
func (x *DeviceEntitySysField) GetXSource() string
func (*DeviceEntitySysField) GetXSpacePath ¶ added in v0.4.0
func (x *DeviceEntitySysField) GetXSpacePath() string
func (*DeviceEntitySysField) GetXStatus ¶
func (x *DeviceEntitySysField) GetXStatus() string
func (*DeviceEntitySysField) GetXSubscribeAddr ¶ added in v0.4.0
func (x *DeviceEntitySysField) GetXSubscribeAddr() string
func (*DeviceEntitySysField) GetXToken ¶
func (x *DeviceEntitySysField) GetXToken() string
func (*DeviceEntitySysField) GetXUpdatedAt ¶
func (x *DeviceEntitySysField) GetXUpdatedAt() int64
func (*DeviceEntitySysField) ProtoMessage ¶
func (*DeviceEntitySysField) ProtoMessage()
func (*DeviceEntitySysField) ProtoReflect ¶
func (x *DeviceEntitySysField) ProtoReflect() protoreflect.Message
func (*DeviceEntitySysField) Reset ¶
func (x *DeviceEntitySysField) Reset()
func (*DeviceEntitySysField) String ¶
func (x *DeviceEntitySysField) String() string
type DeviceHTTPHandler ¶
type DeviceHTTPHandler struct {
// contains filtered or unexported fields
}
func (*DeviceHTTPHandler) AddDeviceExt ¶
func (h *DeviceHTTPHandler) AddDeviceExt(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) CreateDevice ¶
func (h *DeviceHTTPHandler) CreateDevice(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) CreateDeviceDataRelation ¶ added in v0.4.0
func (h *DeviceHTTPHandler) CreateDeviceDataRelation(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) DeleteDevice ¶
func (h *DeviceHTTPHandler) DeleteDevice(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) DeleteDeviceDataRelation ¶ added in v0.4.0
func (h *DeviceHTTPHandler) DeleteDeviceDataRelation(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) DeleteDeviceExt ¶
func (h *DeviceHTTPHandler) DeleteDeviceExt(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) GetDevice ¶
func (h *DeviceHTTPHandler) GetDevice(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) ListDeviceDataRelation ¶ added in v0.4.0
func (h *DeviceHTTPHandler) ListDeviceDataRelation(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) SearchEntity ¶ added in v0.4.0
func (h *DeviceHTTPHandler) SearchEntity(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) SetDeviceAttribte ¶ added in v0.4.0
func (h *DeviceHTTPHandler) SetDeviceAttribte(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) SetDeviceCommand ¶ added in v0.4.0
func (h *DeviceHTTPHandler) SetDeviceCommand(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) SetDeviceRaw ¶ added in v0.4.0
func (h *DeviceHTTPHandler) SetDeviceRaw(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) UpdateDevice ¶
func (h *DeviceHTTPHandler) UpdateDevice(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) UpdateDeviceDataRelation ¶ added in v0.4.0
func (h *DeviceHTTPHandler) UpdateDeviceDataRelation(req *go_restful.Request, resp *go_restful.Response)
func (*DeviceHTTPHandler) UpdateDeviceExt ¶
func (h *DeviceHTTPHandler) UpdateDeviceExt(req *go_restful.Request, resp *go_restful.Response)
type DeviceHTTPServer ¶
type DeviceHTTPServer interface { AddDeviceExt(context.Context, *AddDeviceExtRequest) (*emptypb.Empty, error) CreateDevice(context.Context, *CreateDeviceRequest) (*CreateDeviceResponse, error) CreateDeviceDataRelation(context.Context, *CreateDeviceDataRelationRequest) (*emptypb.Empty, error) DeleteDevice(context.Context, *DeleteDeviceRequest) (*DeleteDeviceResponse, error) DeleteDeviceDataRelation(context.Context, *DeleteDeviceDataRelationRequest) (*emptypb.Empty, error) DeleteDeviceExt(context.Context, *DeleteDeviceExtRequest) (*emptypb.Empty, error) GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error) ListDeviceDataRelation(context.Context, *ListDeviceDataRelationRequest) (*emptypb.Empty, error) SearchEntity(context.Context, *ListDeviceRequest) (*ListDeviceResponse, error) SetDeviceAttribte(context.Context, *SetDeviceAttributeRequest) (*emptypb.Empty, error) SetDeviceCommand(context.Context, *SetDeviceCommandRequest) (*emptypb.Empty, error) SetDeviceRaw(context.Context, *SetDeviceRawRequest) (*emptypb.Empty, error) UpdateDevice(context.Context, *UpdateDeviceRequest) (*UpdateDeviceResponse, error) UpdateDeviceDataRelation(context.Context, *UpdateDeviceDataRelationRequest) (*emptypb.Empty, error) UpdateDeviceExt(context.Context, *UpdateDeviceExtRequest) (*emptypb.Empty, error) }
type DeviceServer ¶
type DeviceServer interface { CreateDevice(context.Context, *CreateDeviceRequest) (*CreateDeviceResponse, error) UpdateDevice(context.Context, *UpdateDeviceRequest) (*UpdateDeviceResponse, error) DeleteDevice(context.Context, *DeleteDeviceRequest) (*DeleteDeviceResponse, error) GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error) SearchEntity(context.Context, *ListDeviceRequest) (*ListDeviceResponse, error) AddDeviceExt(context.Context, *AddDeviceExtRequest) (*emptypb.Empty, error) DeleteDeviceExt(context.Context, *DeleteDeviceExtRequest) (*emptypb.Empty, error) UpdateDeviceExt(context.Context, *UpdateDeviceExtRequest) (*emptypb.Empty, error) CreateDeviceDataRelation(context.Context, *CreateDeviceDataRelationRequest) (*emptypb.Empty, error) UpdateDeviceDataRelation(context.Context, *UpdateDeviceDataRelationRequest) (*emptypb.Empty, error) DeleteDeviceDataRelation(context.Context, *DeleteDeviceDataRelationRequest) (*emptypb.Empty, error) ListDeviceDataRelation(context.Context, *ListDeviceDataRelationRequest) (*emptypb.Empty, error) SetDeviceRaw(context.Context, *SetDeviceRawRequest) (*emptypb.Empty, error) SetDeviceAttribte(context.Context, *SetDeviceAttributeRequest) (*emptypb.Empty, error) SetDeviceCommand(context.Context, *SetDeviceCommandRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
DeviceServer is the server API for Device service. All implementations must embed UnimplementedDeviceServer for forward compatibility
type Enable ¶
type Enable struct { Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,"` // contains filtered or unexported fields }
func (*Enable) Descriptor
deprecated
func (*Enable) ProtoMessage ¶
func (*Enable) ProtoMessage()
func (*Enable) ProtoReflect ¶
func (x *Enable) ProtoReflect() protoreflect.Message
type EnableDeviceRequest ¶
type EnableDeviceRequest struct { Enable *Enable `protobuf:"bytes,1,opt,name=enable,proto3" json:"enable,"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,"` // contains filtered or unexported fields }
func (*EnableDeviceRequest) Descriptor
deprecated
func (*EnableDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnableDeviceRequest.ProtoReflect.Descriptor instead.
func (*EnableDeviceRequest) GetEnable ¶
func (x *EnableDeviceRequest) GetEnable() *Enable
func (*EnableDeviceRequest) GetId ¶
func (x *EnableDeviceRequest) GetId() string
func (*EnableDeviceRequest) ProtoMessage ¶
func (*EnableDeviceRequest) ProtoMessage()
func (*EnableDeviceRequest) ProtoReflect ¶
func (x *EnableDeviceRequest) ProtoReflect() protoreflect.Message
func (*EnableDeviceRequest) Reset ¶
func (x *EnableDeviceRequest) Reset()
func (*EnableDeviceRequest) String ¶
func (x *EnableDeviceRequest) String() string
type Ext ¶
type Ext struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,"` // contains filtered or unexported fields }
func (*Ext) Descriptor
deprecated
func (*Ext) ProtoMessage ¶
func (*Ext) ProtoMessage()
func (*Ext) ProtoReflect ¶
func (x *Ext) ProtoReflect() protoreflect.Message
type FaildDelDevice ¶ added in v0.4.0
type FaildDelDevice struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,"` // contains filtered or unexported fields }
func (*FaildDelDevice) Descriptor
deprecated
added in
v0.4.0
func (*FaildDelDevice) Descriptor() ([]byte, []int)
Deprecated: Use FaildDelDevice.ProtoReflect.Descriptor instead.
func (*FaildDelDevice) GetId ¶ added in v0.4.0
func (x *FaildDelDevice) GetId() string
func (*FaildDelDevice) GetReason ¶ added in v0.4.0
func (x *FaildDelDevice) GetReason() string
func (*FaildDelDevice) ProtoMessage ¶ added in v0.4.0
func (*FaildDelDevice) ProtoMessage()
func (*FaildDelDevice) ProtoReflect ¶ added in v0.4.0
func (x *FaildDelDevice) ProtoReflect() protoreflect.Message
func (*FaildDelDevice) Reset ¶ added in v0.4.0
func (x *FaildDelDevice) Reset()
func (*FaildDelDevice) String ¶ added in v0.4.0
func (x *FaildDelDevice) String() string
type GetDeviceRequest ¶
type GetDeviceRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` // contains filtered or unexported fields }
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
type GetDeviceResponse ¶
type GetDeviceResponse struct { //api.core.v1.EntityResponse deviceObject = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "设备对象"}]; DeviceObject *structpb.Value `protobuf:"bytes,1,opt,name=deviceObject,proto3" json:"deviceObject,"` // contains filtered or unexported fields }
func (*GetDeviceResponse) Descriptor
deprecated
func (*GetDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceResponse.ProtoReflect.Descriptor instead.
func (*GetDeviceResponse) GetDeviceObject ¶ added in v0.3.0
func (x *GetDeviceResponse) GetDeviceObject() *structpb.Value
func (*GetDeviceResponse) ProtoMessage ¶
func (*GetDeviceResponse) ProtoMessage()
func (*GetDeviceResponse) ProtoReflect ¶
func (x *GetDeviceResponse) ProtoReflect() protoreflect.Message
func (*GetDeviceResponse) Reset ¶
func (x *GetDeviceResponse) Reset()
func (*GetDeviceResponse) String ¶
func (x *GetDeviceResponse) String() string
type Ids ¶
type Ids struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,"` // contains filtered or unexported fields }
func (*Ids) Descriptor
deprecated
func (*Ids) ProtoMessage ¶
func (*Ids) ProtoMessage()
func (*Ids) ProtoReflect ¶
func (x *Ids) ProtoReflect() protoreflect.Message
type Keys ¶
type Keys struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,"` // contains filtered or unexported fields }
func (*Keys) Descriptor
deprecated
func (*Keys) ProtoMessage ¶
func (*Keys) ProtoMessage()
func (*Keys) ProtoReflect ¶
func (x *Keys) ProtoReflect() protoreflect.Message
type ListDeviceDataRelationRequest ¶ added in v0.4.0
type ListDeviceDataRelationRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` // contains filtered or unexported fields }
func (*ListDeviceDataRelationRequest) Descriptor
deprecated
added in
v0.4.0
func (*ListDeviceDataRelationRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDeviceDataRelationRequest.ProtoReflect.Descriptor instead.
func (*ListDeviceDataRelationRequest) GetId ¶ added in v0.4.0
func (x *ListDeviceDataRelationRequest) GetId() string
func (*ListDeviceDataRelationRequest) ProtoMessage ¶ added in v0.4.0
func (*ListDeviceDataRelationRequest) ProtoMessage()
func (*ListDeviceDataRelationRequest) ProtoReflect ¶ added in v0.4.0
func (x *ListDeviceDataRelationRequest) ProtoReflect() protoreflect.Message
func (*ListDeviceDataRelationRequest) Reset ¶ added in v0.4.0
func (x *ListDeviceDataRelationRequest) Reset()
func (*ListDeviceDataRelationRequest) String ¶ added in v0.4.0
func (x *ListDeviceDataRelationRequest) String() string
type ListDeviceRequest ¶
type ListDeviceRequest struct { ListEntityQuery *ListEntityQuery `protobuf:"bytes,1,opt,name=listEntityQuery,proto3" json:"listEntityQuery,"` // contains filtered or unexported fields }
func (*ListDeviceRequest) Descriptor
deprecated
func (*ListDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDeviceRequest.ProtoReflect.Descriptor instead.
func (*ListDeviceRequest) GetListEntityQuery ¶ added in v0.3.0
func (x *ListDeviceRequest) GetListEntityQuery() *ListEntityQuery
func (*ListDeviceRequest) ProtoMessage ¶
func (*ListDeviceRequest) ProtoMessage()
func (*ListDeviceRequest) ProtoReflect ¶
func (x *ListDeviceRequest) ProtoReflect() protoreflect.Message
func (*ListDeviceRequest) Reset ¶
func (x *ListDeviceRequest) Reset()
func (*ListDeviceRequest) String ¶
func (x *ListDeviceRequest) String() string
type ListDeviceResponse ¶
type ListDeviceResponse struct { //api.core.v1.ListEntityResponse listDeviceObject = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "设备列表对象"}]; ListDeviceObject *structpb.Value `protobuf:"bytes,1,opt,name=listDeviceObject,proto3" json:"listDeviceObject,"` // contains filtered or unexported fields }
func (*ListDeviceResponse) Descriptor
deprecated
func (*ListDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDeviceResponse.ProtoReflect.Descriptor instead.
func (*ListDeviceResponse) GetListDeviceObject ¶ added in v0.3.0
func (x *ListDeviceResponse) GetListDeviceObject() *structpb.Value
func (*ListDeviceResponse) ProtoMessage ¶
func (*ListDeviceResponse) ProtoMessage()
func (*ListDeviceResponse) ProtoReflect ¶
func (x *ListDeviceResponse) ProtoReflect() protoreflect.Message
func (*ListDeviceResponse) Reset ¶
func (x *ListDeviceResponse) Reset()
func (*ListDeviceResponse) String ¶
func (x *ListDeviceResponse) String() string
type ListEntityQuery ¶ added in v0.3.0
type ListEntityQuery struct { //Filter filter = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "限制"}]; //Page page = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "分页"}]; PageNum int32 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,"` OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,"` IsDescending bool `protobuf:"varint,4,opt,name=is_descending,json=isDescending,proto3" json:"is_descending,"` Query string `protobuf:"bytes,5,opt,name=query,proto3" json:"query,"` Condition []*Condition `protobuf:"bytes,6,rep,name=condition,proto3" json:"condition,"` // contains filtered or unexported fields }
func (*ListEntityQuery) Descriptor
deprecated
added in
v0.3.0
func (*ListEntityQuery) Descriptor() ([]byte, []int)
Deprecated: Use ListEntityQuery.ProtoReflect.Descriptor instead.
func (*ListEntityQuery) GetCondition ¶ added in v0.4.0
func (x *ListEntityQuery) GetCondition() []*Condition
func (*ListEntityQuery) GetIsDescending ¶ added in v0.4.0
func (x *ListEntityQuery) GetIsDescending() bool
func (*ListEntityQuery) GetOrderBy ¶ added in v0.4.0
func (x *ListEntityQuery) GetOrderBy() string
func (*ListEntityQuery) GetPageNum ¶ added in v0.4.0
func (x *ListEntityQuery) GetPageNum() int32
func (*ListEntityQuery) GetPageSize ¶ added in v0.4.0
func (x *ListEntityQuery) GetPageSize() int32
func (*ListEntityQuery) GetQuery ¶ added in v0.3.0
func (x *ListEntityQuery) GetQuery() string
func (*ListEntityQuery) ProtoMessage ¶ added in v0.3.0
func (*ListEntityQuery) ProtoMessage()
func (*ListEntityQuery) ProtoReflect ¶ added in v0.3.0
func (x *ListEntityQuery) ProtoReflect() protoreflect.Message
func (*ListEntityQuery) Reset ¶ added in v0.3.0
func (x *ListEntityQuery) Reset()
func (*ListEntityQuery) String ¶ added in v0.3.0
func (x *ListEntityQuery) String() string
type Relation ¶ added in v0.4.0
type Relation struct { Direction string `protobuf:"bytes,1,opt,name=direction,proto3" json:"direction,"` TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,"` // contains filtered or unexported fields }
func (*Relation) Descriptor
deprecated
added in
v0.4.0
func (*Relation) GetDirection ¶ added in v0.4.0
func (*Relation) GetTargetId ¶ added in v0.4.0
func (*Relation) ProtoMessage ¶ added in v0.4.0
func (*Relation) ProtoMessage()
func (*Relation) ProtoReflect ¶ added in v0.4.0
func (x *Relation) ProtoReflect() protoreflect.Message
type SetContent ¶ added in v0.4.0
type SetContent struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Value *structpb.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,"` // contains filtered or unexported fields }
func (*SetContent) Descriptor
deprecated
added in
v0.4.0
func (*SetContent) Descriptor() ([]byte, []int)
Deprecated: Use SetContent.ProtoReflect.Descriptor instead.
func (*SetContent) GetId ¶ added in v0.4.0
func (x *SetContent) GetId() string
func (*SetContent) GetValue ¶ added in v0.4.0
func (x *SetContent) GetValue() *structpb.Value
func (*SetContent) ProtoMessage ¶ added in v0.4.0
func (*SetContent) ProtoMessage()
func (*SetContent) ProtoReflect ¶ added in v0.4.0
func (x *SetContent) ProtoReflect() protoreflect.Message
func (*SetContent) Reset ¶ added in v0.4.0
func (x *SetContent) Reset()
func (*SetContent) String ¶ added in v0.4.0
func (x *SetContent) String() string
type SetDeviceAttributeRequest ¶ added in v0.4.0
type SetDeviceAttributeRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Content *SetContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,"` // contains filtered or unexported fields }
func (*SetDeviceAttributeRequest) Descriptor
deprecated
added in
v0.4.0
func (*SetDeviceAttributeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetDeviceAttributeRequest.ProtoReflect.Descriptor instead.
func (*SetDeviceAttributeRequest) GetContent ¶ added in v0.4.0
func (x *SetDeviceAttributeRequest) GetContent() *SetContent
func (*SetDeviceAttributeRequest) GetId ¶ added in v0.4.0
func (x *SetDeviceAttributeRequest) GetId() string
func (*SetDeviceAttributeRequest) ProtoMessage ¶ added in v0.4.0
func (*SetDeviceAttributeRequest) ProtoMessage()
func (*SetDeviceAttributeRequest) ProtoReflect ¶ added in v0.4.0
func (x *SetDeviceAttributeRequest) ProtoReflect() protoreflect.Message
func (*SetDeviceAttributeRequest) Reset ¶ added in v0.4.0
func (x *SetDeviceAttributeRequest) Reset()
func (*SetDeviceAttributeRequest) String ¶ added in v0.4.0
func (x *SetDeviceAttributeRequest) String() string
type SetDeviceCommandRequest ¶ added in v0.4.0
type SetDeviceCommandRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Content *SetContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,"` // contains filtered or unexported fields }
func (*SetDeviceCommandRequest) Descriptor
deprecated
added in
v0.4.0
func (*SetDeviceCommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetDeviceCommandRequest.ProtoReflect.Descriptor instead.
func (*SetDeviceCommandRequest) GetContent ¶ added in v0.4.0
func (x *SetDeviceCommandRequest) GetContent() *SetContent
func (*SetDeviceCommandRequest) GetId ¶ added in v0.4.0
func (x *SetDeviceCommandRequest) GetId() string
func (*SetDeviceCommandRequest) ProtoMessage ¶ added in v0.4.0
func (*SetDeviceCommandRequest) ProtoMessage()
func (*SetDeviceCommandRequest) ProtoReflect ¶ added in v0.4.0
func (x *SetDeviceCommandRequest) ProtoReflect() protoreflect.Message
func (*SetDeviceCommandRequest) Reset ¶ added in v0.4.0
func (x *SetDeviceCommandRequest) Reset()
func (*SetDeviceCommandRequest) String ¶ added in v0.4.0
func (x *SetDeviceCommandRequest) String() string
type SetDeviceRawRequest ¶ added in v0.4.0
type SetDeviceRawRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Value *structpb.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,"` // contains filtered or unexported fields }
func (*SetDeviceRawRequest) Descriptor
deprecated
added in
v0.4.0
func (*SetDeviceRawRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetDeviceRawRequest.ProtoReflect.Descriptor instead.
func (*SetDeviceRawRequest) GetId ¶ added in v0.4.0
func (x *SetDeviceRawRequest) GetId() string
func (*SetDeviceRawRequest) GetValue ¶ added in v0.4.0
func (x *SetDeviceRawRequest) GetValue() *structpb.Value
func (*SetDeviceRawRequest) ProtoMessage ¶ added in v0.4.0
func (*SetDeviceRawRequest) ProtoMessage()
func (*SetDeviceRawRequest) ProtoReflect ¶ added in v0.4.0
func (x *SetDeviceRawRequest) ProtoReflect() protoreflect.Message
func (*SetDeviceRawRequest) Reset ¶ added in v0.4.0
func (x *SetDeviceRawRequest) Reset()
func (*SetDeviceRawRequest) String ¶ added in v0.4.0
func (x *SetDeviceRawRequest) String() string
type UnimplementedDeviceServer ¶
type UnimplementedDeviceServer struct { }
UnimplementedDeviceServer must be embedded to have forward compatible implementations.
func (UnimplementedDeviceServer) AddDeviceExt ¶
func (UnimplementedDeviceServer) AddDeviceExt(context.Context, *AddDeviceExtRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServer) CreateDevice ¶
func (UnimplementedDeviceServer) CreateDevice(context.Context, *CreateDeviceRequest) (*CreateDeviceResponse, error)
func (UnimplementedDeviceServer) CreateDeviceDataRelation ¶ added in v0.4.0
func (UnimplementedDeviceServer) CreateDeviceDataRelation(context.Context, *CreateDeviceDataRelationRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServer) DeleteDevice ¶
func (UnimplementedDeviceServer) DeleteDevice(context.Context, *DeleteDeviceRequest) (*DeleteDeviceResponse, error)
func (UnimplementedDeviceServer) DeleteDeviceDataRelation ¶ added in v0.4.0
func (UnimplementedDeviceServer) DeleteDeviceDataRelation(context.Context, *DeleteDeviceDataRelationRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServer) DeleteDeviceExt ¶
func (UnimplementedDeviceServer) DeleteDeviceExt(context.Context, *DeleteDeviceExtRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServer) GetDevice ¶
func (UnimplementedDeviceServer) GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error)
func (UnimplementedDeviceServer) ListDeviceDataRelation ¶ added in v0.4.0
func (UnimplementedDeviceServer) ListDeviceDataRelation(context.Context, *ListDeviceDataRelationRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServer) SearchEntity ¶ added in v0.4.0
func (UnimplementedDeviceServer) SearchEntity(context.Context, *ListDeviceRequest) (*ListDeviceResponse, error)
func (UnimplementedDeviceServer) SetDeviceAttribte ¶ added in v0.4.0
func (UnimplementedDeviceServer) SetDeviceAttribte(context.Context, *SetDeviceAttributeRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServer) SetDeviceCommand ¶ added in v0.4.0
func (UnimplementedDeviceServer) SetDeviceCommand(context.Context, *SetDeviceCommandRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServer) SetDeviceRaw ¶ added in v0.4.0
func (UnimplementedDeviceServer) SetDeviceRaw(context.Context, *SetDeviceRawRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServer) UpdateDevice ¶
func (UnimplementedDeviceServer) UpdateDevice(context.Context, *UpdateDeviceRequest) (*UpdateDeviceResponse, error)
func (UnimplementedDeviceServer) UpdateDeviceDataRelation ¶ added in v0.4.0
func (UnimplementedDeviceServer) UpdateDeviceDataRelation(context.Context, *UpdateDeviceDataRelationRequest) (*emptypb.Empty, error)
func (UnimplementedDeviceServer) UpdateDeviceExt ¶
func (UnimplementedDeviceServer) UpdateDeviceExt(context.Context, *UpdateDeviceExtRequest) (*emptypb.Empty, error)
type UnsafeDeviceServer ¶
type UnsafeDeviceServer interface {
// contains filtered or unexported methods
}
UnsafeDeviceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeviceServer will result in compilation errors.
type UpdateDeviceDataRelationRequest ¶ added in v0.4.0
type UpdateDeviceDataRelationRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Relation *Relation `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,"` // contains filtered or unexported fields }
func (*UpdateDeviceDataRelationRequest) Descriptor
deprecated
added in
v0.4.0
func (*UpdateDeviceDataRelationRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceDataRelationRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeviceDataRelationRequest) GetId ¶ added in v0.4.0
func (x *UpdateDeviceDataRelationRequest) GetId() string
func (*UpdateDeviceDataRelationRequest) GetRelation ¶ added in v0.4.0
func (x *UpdateDeviceDataRelationRequest) GetRelation() *Relation
func (*UpdateDeviceDataRelationRequest) ProtoMessage ¶ added in v0.4.0
func (*UpdateDeviceDataRelationRequest) ProtoMessage()
func (*UpdateDeviceDataRelationRequest) ProtoReflect ¶ added in v0.4.0
func (x *UpdateDeviceDataRelationRequest) ProtoReflect() protoreflect.Message
func (*UpdateDeviceDataRelationRequest) Reset ¶ added in v0.4.0
func (x *UpdateDeviceDataRelationRequest) Reset()
func (*UpdateDeviceDataRelationRequest) String ¶ added in v0.4.0
func (x *UpdateDeviceDataRelationRequest) String() string
type UpdateDeviceEntityCoreInfo ¶ added in v0.4.0
type UpdateDeviceEntityCoreInfo struct { BasicInfo *DeviceEntityBasicInfo `protobuf:"bytes,1,opt,name=basicInfo,proto3" json:"basicInfo,"` // contains filtered or unexported fields }
func (*UpdateDeviceEntityCoreInfo) Descriptor
deprecated
added in
v0.4.0
func (*UpdateDeviceEntityCoreInfo) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceEntityCoreInfo.ProtoReflect.Descriptor instead.
func (*UpdateDeviceEntityCoreInfo) GetBasicInfo ¶ added in v0.4.0
func (x *UpdateDeviceEntityCoreInfo) GetBasicInfo() *DeviceEntityBasicInfo
func (*UpdateDeviceEntityCoreInfo) ProtoMessage ¶ added in v0.4.0
func (*UpdateDeviceEntityCoreInfo) ProtoMessage()
func (*UpdateDeviceEntityCoreInfo) ProtoReflect ¶ added in v0.4.0
func (x *UpdateDeviceEntityCoreInfo) ProtoReflect() protoreflect.Message
func (*UpdateDeviceEntityCoreInfo) Reset ¶ added in v0.4.0
func (x *UpdateDeviceEntityCoreInfo) Reset()
func (*UpdateDeviceEntityCoreInfo) String ¶ added in v0.4.0
func (x *UpdateDeviceEntityCoreInfo) String() string
type UpdateDeviceExtRequest ¶
type UpdateDeviceExtRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` Ext *structpb.Value `protobuf:"bytes,2,opt,name=ext,proto3" json:"ext,"` // contains filtered or unexported fields }
func (*UpdateDeviceExtRequest) Descriptor
deprecated
func (*UpdateDeviceExtRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceExtRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeviceExtRequest) GetExt ¶
func (x *UpdateDeviceExtRequest) GetExt() *structpb.Value
func (*UpdateDeviceExtRequest) GetId ¶
func (x *UpdateDeviceExtRequest) GetId() string
func (*UpdateDeviceExtRequest) ProtoMessage ¶
func (*UpdateDeviceExtRequest) ProtoMessage()
func (*UpdateDeviceExtRequest) ProtoReflect ¶
func (x *UpdateDeviceExtRequest) ProtoReflect() protoreflect.Message
func (*UpdateDeviceExtRequest) Reset ¶
func (x *UpdateDeviceExtRequest) Reset()
func (*UpdateDeviceExtRequest) String ¶
func (x *UpdateDeviceExtRequest) String() string
type UpdateDeviceRequest ¶
type UpdateDeviceRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,"` DevBasicInfo *DeviceEntityBasicInfo `protobuf:"bytes,2,opt,name=devBasicInfo,proto3" json:"devBasicInfo,"` // contains filtered or unexported fields }
func (*UpdateDeviceRequest) Descriptor
deprecated
func (*UpdateDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeviceRequest) GetDevBasicInfo ¶ added in v0.3.0
func (x *UpdateDeviceRequest) GetDevBasicInfo() *DeviceEntityBasicInfo
func (*UpdateDeviceRequest) GetId ¶
func (x *UpdateDeviceRequest) GetId() string
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
type UpdateDeviceResponse ¶
type UpdateDeviceResponse struct { //api.core.v1.EntityResponse deviceObject = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "设备对象"}]; DeviceObject *structpb.Value `protobuf:"bytes,1,opt,name=deviceObject,proto3" json:"deviceObject,"` // contains filtered or unexported fields }
func (*UpdateDeviceResponse) Descriptor
deprecated
func (*UpdateDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDeviceResponse.ProtoReflect.Descriptor instead.
func (*UpdateDeviceResponse) GetDeviceObject ¶ added in v0.3.0
func (x *UpdateDeviceResponse) GetDeviceObject() *structpb.Value
func (*UpdateDeviceResponse) ProtoMessage ¶
func (*UpdateDeviceResponse) ProtoMessage()
func (*UpdateDeviceResponse) ProtoReflect ¶
func (x *UpdateDeviceResponse) ProtoReflect() protoreflect.Message
func (*UpdateDeviceResponse) Reset ¶
func (x *UpdateDeviceResponse) Reset()
func (*UpdateDeviceResponse) String ¶
func (x *UpdateDeviceResponse) String() string