WDeviceAuthReq.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v3.19.4
  5. // source: wecom/WDeviceAuthReq.proto
  6. package wecom
  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. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // 认证方式枚举
  21. type DeviceAuthReqMessage_EnumAuthType int32
  22. const (
  23. DeviceAuthReqMessage_Default DeviceAuthReqMessage_EnumAuthType = 0 //默认方式,默认使用
  24. DeviceAuthReqMessage_DeviceCode DeviceAuthReqMessage_EnumAuthType = 1 //设备码(用于手机客户端,此方式Credential应传入手机IMEI)
  25. DeviceAuthReqMessage_Username DeviceAuthReqMessage_EnumAuthType = 2 //用户名密码方式(此方式Credential应传入base64(user:pwd))
  26. DeviceAuthReqMessage_InternalCode DeviceAuthReqMessage_EnumAuthType = 3 //内部服务间通讯方式(此方式Credential可为空,服务器根据ip白名单来认证)
  27. )
  28. // Enum value maps for DeviceAuthReqMessage_EnumAuthType.
  29. var (
  30. DeviceAuthReqMessage_EnumAuthType_name = map[int32]string{
  31. 0: "Default",
  32. 1: "DeviceCode",
  33. 2: "Username",
  34. 3: "InternalCode",
  35. }
  36. DeviceAuthReqMessage_EnumAuthType_value = map[string]int32{
  37. "Default": 0,
  38. "DeviceCode": 1,
  39. "Username": 2,
  40. "InternalCode": 3,
  41. }
  42. )
  43. func (x DeviceAuthReqMessage_EnumAuthType) Enum() *DeviceAuthReqMessage_EnumAuthType {
  44. p := new(DeviceAuthReqMessage_EnumAuthType)
  45. *p = x
  46. return p
  47. }
  48. func (x DeviceAuthReqMessage_EnumAuthType) String() string {
  49. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  50. }
  51. func (DeviceAuthReqMessage_EnumAuthType) Descriptor() protoreflect.EnumDescriptor {
  52. return file_wecom_WDeviceAuthReq_proto_enumTypes[0].Descriptor()
  53. }
  54. func (DeviceAuthReqMessage_EnumAuthType) Type() protoreflect.EnumType {
  55. return &file_wecom_WDeviceAuthReq_proto_enumTypes[0]
  56. }
  57. func (x DeviceAuthReqMessage_EnumAuthType) Number() protoreflect.EnumNumber {
  58. return protoreflect.EnumNumber(x)
  59. }
  60. // Deprecated: Use DeviceAuthReqMessage_EnumAuthType.Descriptor instead.
  61. func (DeviceAuthReqMessage_EnumAuthType) EnumDescriptor() ([]byte, []int) {
  62. return file_wecom_WDeviceAuthReq_proto_rawDescGZIP(), []int{0, 0}
  63. }
  64. type DeviceAuthReqMessage struct {
  65. state protoimpl.MessageState `protogen:"open.v1"`
  66. AuthType DeviceAuthReqMessage_EnumAuthType `protobuf:"varint,1,opt,name=AuthType,proto3,enum=Im.Scrm.Ww.Proto.DeviceAuthReqMessage_EnumAuthType" json:"AuthType,omitempty"` //认证方式
  67. Credential string `protobuf:"bytes,2,opt,name=Credential,proto3" json:"Credential,omitempty"` //凭证信息(不同认证方式传入不同的凭证信息)
  68. unknownFields protoimpl.UnknownFields
  69. sizeCache protoimpl.SizeCache
  70. }
  71. func (x *DeviceAuthReqMessage) Reset() {
  72. *x = DeviceAuthReqMessage{}
  73. mi := &file_wecom_WDeviceAuthReq_proto_msgTypes[0]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. func (x *DeviceAuthReqMessage) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*DeviceAuthReqMessage) ProtoMessage() {}
  81. func (x *DeviceAuthReqMessage) ProtoReflect() protoreflect.Message {
  82. mi := &file_wecom_WDeviceAuthReq_proto_msgTypes[0]
  83. if x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use DeviceAuthReqMessage.ProtoReflect.Descriptor instead.
  93. func (*DeviceAuthReqMessage) Descriptor() ([]byte, []int) {
  94. return file_wecom_WDeviceAuthReq_proto_rawDescGZIP(), []int{0}
  95. }
  96. func (x *DeviceAuthReqMessage) GetAuthType() DeviceAuthReqMessage_EnumAuthType {
  97. if x != nil {
  98. return x.AuthType
  99. }
  100. return DeviceAuthReqMessage_Default
  101. }
  102. func (x *DeviceAuthReqMessage) GetCredential() string {
  103. if x != nil {
  104. return x.Credential
  105. }
  106. return ""
  107. }
  108. var File_wecom_WDeviceAuthReq_proto protoreflect.FileDescriptor
  109. const file_wecom_WDeviceAuthReq_proto_rawDesc = "" +
  110. "\n" +
  111. "\x1awecom/WDeviceAuthReq.proto\x12\x10Im.Scrm.Ww.Proto\"\xd4\x01\n" +
  112. "\x14DeviceAuthReqMessage\x12O\n" +
  113. "\bAuthType\x18\x01 \x01(\x0e23.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthTypeR\bAuthType\x12\x1e\n" +
  114. "\n" +
  115. "Credential\x18\x02 \x01(\tR\n" +
  116. "Credential\"K\n" +
  117. "\fEnumAuthType\x12\v\n" +
  118. "\aDefault\x10\x00\x12\x0e\n" +
  119. "\n" +
  120. "DeviceCode\x10\x01\x12\f\n" +
  121. "\bUsername\x10\x02\x12\x10\n" +
  122. "\fInternalCode\x10\x03B\x13Z\x11./workphone/wecomb\x06proto3"
  123. var (
  124. file_wecom_WDeviceAuthReq_proto_rawDescOnce sync.Once
  125. file_wecom_WDeviceAuthReq_proto_rawDescData []byte
  126. )
  127. func file_wecom_WDeviceAuthReq_proto_rawDescGZIP() []byte {
  128. file_wecom_WDeviceAuthReq_proto_rawDescOnce.Do(func() {
  129. file_wecom_WDeviceAuthReq_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_WDeviceAuthReq_proto_rawDesc), len(file_wecom_WDeviceAuthReq_proto_rawDesc)))
  130. })
  131. return file_wecom_WDeviceAuthReq_proto_rawDescData
  132. }
  133. var file_wecom_WDeviceAuthReq_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  134. var file_wecom_WDeviceAuthReq_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  135. var file_wecom_WDeviceAuthReq_proto_goTypes = []any{
  136. (DeviceAuthReqMessage_EnumAuthType)(0), // 0: Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType
  137. (*DeviceAuthReqMessage)(nil), // 1: Im.Scrm.Ww.Proto.DeviceAuthReqMessage
  138. }
  139. var file_wecom_WDeviceAuthReq_proto_depIdxs = []int32{
  140. 0, // 0: Im.Scrm.Ww.Proto.DeviceAuthReqMessage.AuthType:type_name -> Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType
  141. 1, // [1:1] is the sub-list for method output_type
  142. 1, // [1:1] is the sub-list for method input_type
  143. 1, // [1:1] is the sub-list for extension type_name
  144. 1, // [1:1] is the sub-list for extension extendee
  145. 0, // [0:1] is the sub-list for field type_name
  146. }
  147. func init() { file_wecom_WDeviceAuthReq_proto_init() }
  148. func file_wecom_WDeviceAuthReq_proto_init() {
  149. if File_wecom_WDeviceAuthReq_proto != nil {
  150. return
  151. }
  152. type x struct{}
  153. out := protoimpl.TypeBuilder{
  154. File: protoimpl.DescBuilder{
  155. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  156. RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_WDeviceAuthReq_proto_rawDesc), len(file_wecom_WDeviceAuthReq_proto_rawDesc)),
  157. NumEnums: 1,
  158. NumMessages: 1,
  159. NumExtensions: 0,
  160. NumServices: 0,
  161. },
  162. GoTypes: file_wecom_WDeviceAuthReq_proto_goTypes,
  163. DependencyIndexes: file_wecom_WDeviceAuthReq_proto_depIdxs,
  164. EnumInfos: file_wecom_WDeviceAuthReq_proto_enumTypes,
  165. MessageInfos: file_wecom_WDeviceAuthReq_proto_msgTypes,
  166. }.Build()
  167. File_wecom_WDeviceAuthReq_proto = out.File
  168. file_wecom_WDeviceAuthReq_proto_goTypes = nil
  169. file_wecom_WDeviceAuthReq_proto_depIdxs = nil
  170. }