代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v3.19.4
// source: proto/dg.proto
package dg
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Request struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"`
}
func (x *Request) Reset() {
*x = Request{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_dg_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Request) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Request) ProtoMessage() {}
func (x *Request) ProtoReflect() protoreflect.Message {
mi := &file_proto_dg_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Request.ProtoReflect.Descriptor instead.
func (*Request) Descriptor() ([]byte, []int) {
return file_proto_dg_proto_rawDescGZIP(), []int{0}
}
func (x *Request) GetPing() string {
if x != nil {
return x.Ping
}
return ""
}
type Response struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"`
}
func (x *Response) Reset() {
*x = Response{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_dg_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Response) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Response) ProtoMessage() {}
func (x *Response) ProtoReflect() protoreflect.Message {
mi := &file_proto_dg_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Response.ProtoReflect.Descriptor instead.
func (*Response) Descriptor() ([]byte, []int) {
return file_proto_dg_proto_rawDescGZIP(), []int{1}
}
func (x *Response) GetPong() string {
if x != nil {
return x.Pong
}
return ""
}
type DeviceRegisterReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ProductID string `protobuf:"bytes,1,opt,name=productID,proto3" json:"productID,omitempty"` //产品id
DeviceName string `protobuf:"bytes,2,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //设备名称
Nonce int64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` //随机数
Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //秒级时间戳
Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` //签名信息
RetEnc string `protobuf:"bytes,6,opt,name=retEnc,proto3" json:"retEnc,omitempty"` //返回使用的加密方式: aes128cbc(默认) aes128ecb
}
func (x *DeviceRegisterReq) Reset() {
*x = DeviceRegisterReq{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_dg_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeviceRegisterReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeviceRegisterReq) ProtoMessage() {}
func (x *DeviceRegisterReq) ProtoReflect() protoreflect.Message {
mi := &file_proto_dg_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeviceRegisterReq.ProtoReflect.Descriptor instead.
func (*DeviceRegisterReq) Descriptor() ([]byte, []int) {
return file_proto_dg_proto_rawDescGZIP(), []int{2}
}
func (x *DeviceRegisterReq) GetProductID() string {
if x != nil {
return x.ProductID
}
return ""
}
func (x *DeviceRegisterReq) GetDeviceName() string {
if x != nil {
return x.DeviceName
}
return ""
}
func (x *DeviceRegisterReq) GetNonce() int64 {
if x != nil {
return x.Nonce
}
return 0
}
func (x *DeviceRegisterReq) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *DeviceRegisterReq) GetSignature() string {
if x != nil {
return x.Signature
}
return ""
}
func (x *DeviceRegisterReq) GetRetEnc() string {
if x != nil {
return x.RetEnc
}
return ""
}
type DeviceRegisterResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Len int64 `protobuf:"varint,1,opt,name=len,proto3" json:"len,omitempty"` //payload加密前信息的长度
// 加密过程将原始 JSON 格式的 payload 转为字符串后进行 AES 加密,再进行 base64 加密。AES 加密算法为 CBC 模式,密钥长度128,取 productSecret 前16位,偏移量为长度16的字符“0”。
// 原始 payload 内容说明:
// key value 描述
// encryptionType 1 加密类型,1表示证书认证,2表示签名认证。
// psk 1239 设备密钥,当产品认证类型为签名认证时有此参数
// clientCert - 设备证书文件字符串格式,当产品认证类型为证书认证时有此参数。
// clientKey - 设备私钥文件字符串格式,当产品认证类型为证书认证时有此参数。
Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}
func (x *DeviceRegisterResp) Reset() {
*x = DeviceRegisterResp{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_dg_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeviceRegisterResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeviceRegisterResp) ProtoMessage() {}
func (x *DeviceRegisterResp) ProtoReflect() protoreflect.Message {
mi := &file_proto_dg_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeviceRegisterResp.ProtoReflect.Descriptor instead.
func (*DeviceRegisterResp) Descriptor() ([]byte, []int) {
return file_proto_dg_proto_rawDescGZIP(), []int{3}
}
func (x *DeviceRegisterResp) GetLen() int64 {
if x != nil {
return x.Len
}
return 0
}
func (x *DeviceRegisterResp) GetPayload() string {
if x != nil {
return x.Payload
}
return ""
}
type LoginAuthReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ProtocolType string `protobuf:"bytes,1,opt,name=protocolType,proto3" json:"protocolType,omitempty"` // 协议类型: iThings,iThings-thingsboard
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` //用户名
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` //密码
ClientID string `protobuf:"bytes,4,opt,name=clientID,proto3" json:"clientID,omitempty"` //clientID
Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"` //访问的ip地址
Certificate []byte `protobuf:"bytes,6,opt,name=certificate,proto3" json:"certificate,omitempty"` //客户端证书
}
func (x *LoginAuthReq) Reset() {
*x = LoginAuthReq{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_dg_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LoginAuthReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoginAuthReq) ProtoMessage() {}
func (x *LoginAuthReq) ProtoReflect() protoreflect.Message {
mi := &file_proto_dg_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LoginAuthReq.ProtoReflect.Descriptor instead.
func (*LoginAuthReq) Descriptor() ([]byte, []int) {
return file_proto_dg_proto_rawDescGZIP(), []int{4}
}
func (x *LoginAuthReq) GetProtocolType() string {
if x != nil {
return x.ProtocolType
}
return ""
}
func (x *LoginAuthReq) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *LoginAuthReq) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *LoginAuthReq) GetClientID() string {
if x != nil {
return x.ClientID
}
return ""
}
func (x *LoginAuthReq) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *LoginAuthReq) GetCertificate() []byte {
if x != nil {
return x.Certificate
}
return nil
}
type AccessAuthReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ProtocolType string `protobuf:"bytes,1,opt,name=protocolType,proto3" json:"protocolType,omitempty"` // 协议类型: iThings,iThings-thingsboard
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` //用户名
Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` //主题
ClientID string `protobuf:"bytes,4,opt,name=clientID,proto3" json:"clientID,omitempty"` //clientID
Access string `protobuf:"bytes,5,opt,name=access,proto3" json:"access,omitempty"` //操作
Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"` //访问的ip地址
}
func (x *AccessAuthReq) Reset() {
*x = AccessAuthReq{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_dg_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccessAuthReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccessAuthReq) ProtoMessage() {}
func (x *AccessAuthReq) ProtoReflect() protoreflect.Message {
mi := &file_proto_dg_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccessAuthReq.ProtoReflect.Descriptor instead.
func (*AccessAuthReq) Descriptor() ([]byte, []int) {
return file_proto_dg_proto_rawDescGZIP(), []int{5}
}
func (x *AccessAuthReq) GetProtocolType() string {
if x != nil {
return x.ProtocolType
}
return ""
}
func (x *AccessAuthReq) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *AccessAuthReq) GetTopic() string {
if x != nil {
return x.Topic
}
return ""
}
func (x *AccessAuthReq) GetClientID() string {
if x != nil {
return x.ClientID
}
return ""
}
func (x *AccessAuthReq) GetAccess() string {
if x != nil {
return x.Access
}
return ""
}
func (x *AccessAuthReq) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
var File_proto_dg_proto protoreflect.FileDescriptor
var file_proto_dg_proto_rawDesc = []byte{
0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x02, 0x64, 0x67, 0x22, 0x1d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x12, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
0x69, 0x6e, 0x67, 0x22, 0x1e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
0x6f, 0x6e, 0x67, 0x22, 0xbb, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f,
0x64, 0x75, 0x63, 0x74, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72,
0x6f, 0x64, 0x75, 0x63, 0x74, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63,
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x76,
0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x1c, 0x0a,
0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x73,
0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x74,
0x45, 0x6e, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x74, 0x45, 0x6e,
0x63, 0x22, 0x40, 0x0a, 0x12, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73,
0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x65, 0x6e, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6c, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79,
0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c,
0x6f, 0x61, 0x64, 0x22, 0xb8, 0x01, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x75, 0x74,
0x68, 0x52, 0x65, 0x71, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x63, 0x6f, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x20, 0x0a, 0x0b,
0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0xa9,
0x01, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71,
0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x54, 0x79, 0x70, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70,
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x32, 0xa9, 0x01, 0x0a, 0x0a, 0x44,
0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x12, 0x2b, 0x0a, 0x09, 0x6c, 0x6f, 0x67,
0x69, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x10, 0x2e, 0x64, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x69,
0x6e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x64, 0x67, 0x2e, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x2e, 0x64, 0x67, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x64, 0x67, 0x2e, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52,
0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x64, 0x67, 0x2e, 0x44, 0x65, 0x76,
0x69, 0x63, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x16,
0x2e, 0x64, 0x67, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x42, 0x07, 0x5a, 0x05, 0x70, 0x62, 0x2f, 0x64, 0x67, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_proto_dg_proto_rawDescOnce sync.Once
file_proto_dg_proto_rawDescData = file_proto_dg_proto_rawDesc
)
func file_proto_dg_proto_rawDescGZIP() []byte {
file_proto_dg_proto_rawDescOnce.Do(func() {
file_proto_dg_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_dg_proto_rawDescData)
})
return file_proto_dg_proto_rawDescData
}
var file_proto_dg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_proto_dg_proto_goTypes = []interface{}{
(*Request)(nil), // 0: dg.Request
(*Response)(nil), // 1: dg.Response
(*DeviceRegisterReq)(nil), // 2: dg.DeviceRegisterReq
(*DeviceRegisterResp)(nil), // 3: dg.DeviceRegisterResp
(*LoginAuthReq)(nil), // 4: dg.LoginAuthReq
(*AccessAuthReq)(nil), // 5: dg.AccessAuthReq
}
var file_proto_dg_proto_depIdxs = []int32{
4, // 0: dg.DeviceAuth.loginAuth:input_type -> dg.LoginAuthReq
5, // 1: dg.DeviceAuth.accessAuth:input_type -> dg.AccessAuthReq
2, // 2: dg.DeviceAuth.deviceRegister:input_type -> dg.DeviceRegisterReq
1, // 3: dg.DeviceAuth.loginAuth:output_type -> dg.Response
1, // 4: dg.DeviceAuth.accessAuth:output_type -> dg.Response
3, // 5: dg.DeviceAuth.deviceRegister:output_type -> dg.DeviceRegisterResp
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_proto_dg_proto_init() }
func file_proto_dg_proto_init() {
if File_proto_dg_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_proto_dg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Request); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_dg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Response); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_dg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeviceRegisterReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_dg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeviceRegisterResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_dg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LoginAuthReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_proto_dg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AccessAuthReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_proto_dg_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_proto_dg_proto_goTypes,
DependencyIndexes: file_proto_dg_proto_depIdxs,
MessageInfos: file_proto_dg_proto_msgTypes,
}.Build()
File_proto_dg_proto = out.File
file_proto_dg_proto_rawDesc = nil
file_proto_dg_proto_goTypes = nil
file_proto_dg_proto_depIdxs = nil
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。