client/golang/mcs/auth.pb.go

215 lines
6.4 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: auth.proto
package mcs
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 McsRegisterRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
DeviceOs DeviceType `protobuf:"varint,1,opt,name=device_os,json=deviceOs,proto3,enum=mcs.DeviceType" json:"device_os,omitempty"` // 设备名
DeviceToken string `protobuf:"bytes,2,opt,name=device_token,json=deviceToken,proto3" json:"device_token,omitempty"` // 设备唯一标识
DeviceBrand string `protobuf:"bytes,3,opt,name=device_brand,json=deviceBrand,proto3" json:"device_brand,omitempty"` // 设备厂商
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *McsRegisterRequest) Reset() {
*x = McsRegisterRequest{}
mi := &file_auth_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *McsRegisterRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*McsRegisterRequest) ProtoMessage() {}
func (x *McsRegisterRequest) ProtoReflect() protoreflect.Message {
mi := &file_auth_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use McsRegisterRequest.ProtoReflect.Descriptor instead.
func (*McsRegisterRequest) Descriptor() ([]byte, []int) {
return file_auth_proto_rawDescGZIP(), []int{0}
}
func (x *McsRegisterRequest) GetDeviceOs() DeviceType {
if x != nil {
return x.DeviceOs
}
return DeviceType_Pc
}
func (x *McsRegisterRequest) GetDeviceToken() string {
if x != nil {
return x.DeviceToken
}
return ""
}
func (x *McsRegisterRequest) GetDeviceBrand() string {
if x != nil {
return x.DeviceBrand
}
return ""
}
type McsRegisterReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // 状态
SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 秘钥
Endpoints []string `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // 服务器地址。
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *McsRegisterReply) Reset() {
*x = McsRegisterReply{}
mi := &file_auth_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *McsRegisterReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*McsRegisterReply) ProtoMessage() {}
func (x *McsRegisterReply) ProtoReflect() protoreflect.Message {
mi := &file_auth_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use McsRegisterReply.ProtoReflect.Descriptor instead.
func (*McsRegisterReply) Descriptor() ([]byte, []int) {
return file_auth_proto_rawDescGZIP(), []int{1}
}
func (x *McsRegisterReply) GetStatus() int32 {
if x != nil {
return x.Status
}
return 0
}
func (x *McsRegisterReply) GetSecretKey() string {
if x != nil {
return x.SecretKey
}
return ""
}
func (x *McsRegisterReply) GetEndpoints() []string {
if x != nil {
return x.Endpoints
}
return nil
}
var File_auth_proto protoreflect.FileDescriptor
const file_auth_proto_rawDesc = "" +
"\n" +
"\n" +
"auth.proto\x12\x03mcs\x1a\fblocks.proto\"\x88\x01\n" +
"\x12McsRegisterRequest\x12,\n" +
"\tdevice_os\x18\x01 \x01(\x0e2\x0f.mcs.DeviceTypeR\bdeviceOs\x12!\n" +
"\fdevice_token\x18\x02 \x01(\tR\vdeviceToken\x12!\n" +
"\fdevice_brand\x18\x03 \x01(\tR\vdeviceBrand\"g\n" +
"\x10McsRegisterReply\x12\x16\n" +
"\x06status\x18\x01 \x01(\x05R\x06status\x12\x1d\n" +
"\n" +
"secret_key\x18\x02 \x01(\tR\tsecretKey\x12\x1c\n" +
"\tendpoints\x18\x03 \x03(\tR\tendpoints2D\n" +
"\x04Auth\x12<\n" +
"\bRegister\x12\x17.mcs.McsRegisterRequest\x1a\x15.mcs.McsRegisterReply\"\x00B\aZ\x05.;mcsb\x06proto3"
var (
file_auth_proto_rawDescOnce sync.Once
file_auth_proto_rawDescData []byte
)
func file_auth_proto_rawDescGZIP() []byte {
file_auth_proto_rawDescOnce.Do(func() {
file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_auth_proto_rawDesc), len(file_auth_proto_rawDesc)))
})
return file_auth_proto_rawDescData
}
var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_auth_proto_goTypes = []any{
(*McsRegisterRequest)(nil), // 0: mcs.McsRegisterRequest
(*McsRegisterReply)(nil), // 1: mcs.McsRegisterReply
(DeviceType)(0), // 2: mcs.DeviceType
}
var file_auth_proto_depIdxs = []int32{
2, // 0: mcs.McsRegisterRequest.device_os:type_name -> mcs.DeviceType
0, // 1: mcs.Auth.Register:input_type -> mcs.McsRegisterRequest
1, // 2: mcs.Auth.Register:output_type -> mcs.McsRegisterReply
2, // [2:3] is the sub-list for method output_type
1, // [1:2] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_auth_proto_init() }
func file_auth_proto_init() {
if File_auth_proto != nil {
return
}
file_blocks_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_auth_proto_rawDesc), len(file_auth_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_auth_proto_goTypes,
DependencyIndexes: file_auth_proto_depIdxs,
MessageInfos: file_auth_proto_msgTypes,
}.Build()
File_auth_proto = out.File
file_auth_proto_goTypes = nil
file_auth_proto_depIdxs = nil
}