DeviceAuthReq.pb.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.2
  4. // protoc v5.28.3
  5. // source: DeviceAuthReq.proto
  6. package workphone
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // 认证方式枚举
  20. type DeviceAuthReqMessage_EnumAuthType int32
  21. const (
  22. DeviceAuthReqMessage_Default DeviceAuthReqMessage_EnumAuthType = 0 //默认方式,默认使用
  23. DeviceAuthReqMessage_DeviceCode DeviceAuthReqMessage_EnumAuthType = 1 //设备码(用于手机客户端,此方式Credential应传入手机IMEI)
  24. DeviceAuthReqMessage_Username DeviceAuthReqMessage_EnumAuthType = 2 //用户名密码方式(此方式Credential应传入base64(user:pwd))
  25. DeviceAuthReqMessage_InternalCode DeviceAuthReqMessage_EnumAuthType = 3 //内部服务间通讯方式(此方式Credential可为空,服务器根据ip白名单来认证)
  26. )
  27. // Enum value maps for DeviceAuthReqMessage_EnumAuthType.
  28. var (
  29. DeviceAuthReqMessage_EnumAuthType_name = map[int32]string{
  30. 0: "Default",
  31. 1: "DeviceCode",
  32. 2: "Username",
  33. 3: "InternalCode",
  34. }
  35. DeviceAuthReqMessage_EnumAuthType_value = map[string]int32{
  36. "Default": 0,
  37. "DeviceCode": 1,
  38. "Username": 2,
  39. "InternalCode": 3,
  40. }
  41. )
  42. func (x DeviceAuthReqMessage_EnumAuthType) Enum() *DeviceAuthReqMessage_EnumAuthType {
  43. p := new(DeviceAuthReqMessage_EnumAuthType)
  44. *p = x
  45. return p
  46. }
  47. func (x DeviceAuthReqMessage_EnumAuthType) String() string {
  48. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  49. }
  50. func (DeviceAuthReqMessage_EnumAuthType) Descriptor() protoreflect.EnumDescriptor {
  51. return file_DeviceAuthReq_proto_enumTypes[0].Descriptor()
  52. }
  53. func (DeviceAuthReqMessage_EnumAuthType) Type() protoreflect.EnumType {
  54. return &file_DeviceAuthReq_proto_enumTypes[0]
  55. }
  56. func (x DeviceAuthReqMessage_EnumAuthType) Number() protoreflect.EnumNumber {
  57. return protoreflect.EnumNumber(x)
  58. }
  59. // Deprecated: Use DeviceAuthReqMessage_EnumAuthType.Descriptor instead.
  60. func (DeviceAuthReqMessage_EnumAuthType) EnumDescriptor() ([]byte, []int) {
  61. return file_DeviceAuthReq_proto_rawDescGZIP(), []int{0, 0}
  62. }
  63. type DeviceAuthReqMessage struct {
  64. state protoimpl.MessageState
  65. sizeCache protoimpl.SizeCache
  66. unknownFields protoimpl.UnknownFields
  67. AuthType DeviceAuthReqMessage_EnumAuthType `protobuf:"varint,1,opt,name=AuthType,proto3,enum=Jubo.JuLiao.IM.Wx.Proto.DeviceAuthReqMessage_EnumAuthType" json:"AuthType,omitempty"` //认证方式
  68. Credential string `protobuf:"bytes,2,opt,name=Credential,proto3" json:"Credential,omitempty"` //凭证信息(不同认证方式传入不同的凭证信息)
  69. }
  70. func (x *DeviceAuthReqMessage) Reset() {
  71. *x = DeviceAuthReqMessage{}
  72. mi := &file_DeviceAuthReq_proto_msgTypes[0]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. func (x *DeviceAuthReqMessage) String() string {
  77. return protoimpl.X.MessageStringOf(x)
  78. }
  79. func (*DeviceAuthReqMessage) ProtoMessage() {}
  80. func (x *DeviceAuthReqMessage) ProtoReflect() protoreflect.Message {
  81. mi := &file_DeviceAuthReq_proto_msgTypes[0]
  82. if x != nil {
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. if ms.LoadMessageInfo() == nil {
  85. ms.StoreMessageInfo(mi)
  86. }
  87. return ms
  88. }
  89. return mi.MessageOf(x)
  90. }
  91. // Deprecated: Use DeviceAuthReqMessage.ProtoReflect.Descriptor instead.
  92. func (*DeviceAuthReqMessage) Descriptor() ([]byte, []int) {
  93. return file_DeviceAuthReq_proto_rawDescGZIP(), []int{0}
  94. }
  95. func (x *DeviceAuthReqMessage) GetAuthType() DeviceAuthReqMessage_EnumAuthType {
  96. if x != nil {
  97. return x.AuthType
  98. }
  99. return DeviceAuthReqMessage_Default
  100. }
  101. func (x *DeviceAuthReqMessage) GetCredential() string {
  102. if x != nil {
  103. return x.Credential
  104. }
  105. return ""
  106. }
  107. var File_DeviceAuthReq_proto protoreflect.FileDescriptor
  108. var file_DeviceAuthReq_proto_rawDesc = []byte{
  109. 0x0a, 0x13, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x2e,
  110. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x4a, 0x75, 0x62, 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69,
  111. 0x61, 0x6f, 0x2e, 0x49, 0x4d, 0x2e, 0x57, 0x78, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdb,
  112. 0x01, 0x0a, 0x14, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71,
  113. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x56, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54,
  114. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x4a, 0x75, 0x62, 0x6f,
  115. 0x2e, 0x4a, 0x75, 0x4c, 0x69, 0x61, 0x6f, 0x2e, 0x49, 0x4d, 0x2e, 0x57, 0x78, 0x2e, 0x50, 0x72,
  116. 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
  117. 0x71, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x41, 0x75, 0x74,
  118. 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12,
  119. 0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x02, 0x20,
  120. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22,
  121. 0x4b, 0x0a, 0x0c, 0x45, 0x6e, 0x75, 0x6d, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12,
  122. 0x0b, 0x0a, 0x07, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a,
  123. 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
  124. 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x6e,
  125. 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x10, 0x03, 0x42, 0x0d, 0x5a, 0x0b,
  126. 0x2e, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,
  127. 0x74, 0x6f, 0x33,
  128. }
  129. var (
  130. file_DeviceAuthReq_proto_rawDescOnce sync.Once
  131. file_DeviceAuthReq_proto_rawDescData = file_DeviceAuthReq_proto_rawDesc
  132. )
  133. func file_DeviceAuthReq_proto_rawDescGZIP() []byte {
  134. file_DeviceAuthReq_proto_rawDescOnce.Do(func() {
  135. file_DeviceAuthReq_proto_rawDescData = protoimpl.X.CompressGZIP(file_DeviceAuthReq_proto_rawDescData)
  136. })
  137. return file_DeviceAuthReq_proto_rawDescData
  138. }
  139. var file_DeviceAuthReq_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  140. var file_DeviceAuthReq_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  141. var file_DeviceAuthReq_proto_goTypes = []any{
  142. (DeviceAuthReqMessage_EnumAuthType)(0), // 0: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthReqMessage.EnumAuthType
  143. (*DeviceAuthReqMessage)(nil), // 1: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthReqMessage
  144. }
  145. var file_DeviceAuthReq_proto_depIdxs = []int32{
  146. 0, // 0: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthReqMessage.AuthType:type_name -> Jubo.JuLiao.IM.Wx.Proto.DeviceAuthReqMessage.EnumAuthType
  147. 1, // [1:1] is the sub-list for method output_type
  148. 1, // [1:1] is the sub-list for method input_type
  149. 1, // [1:1] is the sub-list for extension type_name
  150. 1, // [1:1] is the sub-list for extension extendee
  151. 0, // [0:1] is the sub-list for field type_name
  152. }
  153. func init() { file_DeviceAuthReq_proto_init() }
  154. func file_DeviceAuthReq_proto_init() {
  155. if File_DeviceAuthReq_proto != nil {
  156. return
  157. }
  158. type x struct{}
  159. out := protoimpl.TypeBuilder{
  160. File: protoimpl.DescBuilder{
  161. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  162. RawDescriptor: file_DeviceAuthReq_proto_rawDesc,
  163. NumEnums: 1,
  164. NumMessages: 1,
  165. NumExtensions: 0,
  166. NumServices: 0,
  167. },
  168. GoTypes: file_DeviceAuthReq_proto_goTypes,
  169. DependencyIndexes: file_DeviceAuthReq_proto_depIdxs,
  170. EnumInfos: file_DeviceAuthReq_proto_enumTypes,
  171. MessageInfos: file_DeviceAuthReq_proto_msgTypes,
  172. }.Build()
  173. File_DeviceAuthReq_proto = out.File
  174. file_DeviceAuthReq_proto_rawDesc = nil
  175. file_DeviceAuthReq_proto_goTypes = nil
  176. file_DeviceAuthReq_proto_depIdxs = nil
  177. }