FileInfo.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /*
  3. * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. namespace TencentCloud\Faceid\V20180301\Models;
  18. use TencentCloud\Common\AbstractModel;
  19. /**
  20. * 用于描述一个文件内容,包括一个下载链接和与文件内容对应的MD5和大小。
  21. *
  22. * @method string getUrl() 获取用于下载文件的URL
  23. * @method void setUrl(string $Url) 设置用于下载文件的URL
  24. * @method string getMD5() 获取文件的32位MD5
  25. * @method void setMD5(string $MD5) 设置文件的32位MD5
  26. * @method integer getSize() 获取文件字节数
  27. * @method void setSize(integer $Size) 设置文件字节数
  28. */
  29. class FileInfo extends AbstractModel
  30. {
  31. /**
  32. * @var string 用于下载文件的URL
  33. */
  34. public $Url;
  35. /**
  36. * @var string 文件的32位MD5
  37. */
  38. public $MD5;
  39. /**
  40. * @var integer 文件字节数
  41. */
  42. public $Size;
  43. /**
  44. * @param string $Url 用于下载文件的URL
  45. * @param string $MD5 文件的32位MD5
  46. * @param integer $Size 文件字节数
  47. */
  48. function __construct()
  49. {
  50. }
  51. /**
  52. * For internal only. DO NOT USE IT.
  53. */
  54. public function deserialize($param)
  55. {
  56. if ($param === null) {
  57. return;
  58. }
  59. if (array_key_exists("Url",$param) and $param["Url"] !== null) {
  60. $this->Url = $param["Url"];
  61. }
  62. if (array_key_exists("MD5",$param) and $param["MD5"] !== null) {
  63. $this->MD5 = $param["MD5"];
  64. }
  65. if (array_key_exists("Size",$param) and $param["Size"] !== null) {
  66. $this->Size = $param["Size"];
  67. }
  68. }
  69. }