1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * 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, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\DLP; 19 20class GooglePrivacyDlpV2StoredInfoTypeVersion extends \Google\Collection 21{ 22 protected $collection_key = 'errors'; 23 protected $configType = GooglePrivacyDlpV2StoredInfoTypeConfig::class; 24 protected $configDataType = ''; 25 /** 26 * @var string 27 */ 28 public $createTime; 29 protected $errorsType = GooglePrivacyDlpV2Error::class; 30 protected $errorsDataType = 'array'; 31 /** 32 * @var string 33 */ 34 public $state; 35 protected $statsType = GooglePrivacyDlpV2StoredInfoTypeStats::class; 36 protected $statsDataType = ''; 37 38 /** 39 * @param GooglePrivacyDlpV2StoredInfoTypeConfig 40 */ 41 public function setConfig(GooglePrivacyDlpV2StoredInfoTypeConfig $config) 42 { 43 $this->config = $config; 44 } 45 /** 46 * @return GooglePrivacyDlpV2StoredInfoTypeConfig 47 */ 48 public function getConfig() 49 { 50 return $this->config; 51 } 52 /** 53 * @param string 54 */ 55 public function setCreateTime($createTime) 56 { 57 $this->createTime = $createTime; 58 } 59 /** 60 * @return string 61 */ 62 public function getCreateTime() 63 { 64 return $this->createTime; 65 } 66 /** 67 * @param GooglePrivacyDlpV2Error[] 68 */ 69 public function setErrors($errors) 70 { 71 $this->errors = $errors; 72 } 73 /** 74 * @return GooglePrivacyDlpV2Error[] 75 */ 76 public function getErrors() 77 { 78 return $this->errors; 79 } 80 /** 81 * @param string 82 */ 83 public function setState($state) 84 { 85 $this->state = $state; 86 } 87 /** 88 * @return string 89 */ 90 public function getState() 91 { 92 return $this->state; 93 } 94 /** 95 * @param GooglePrivacyDlpV2StoredInfoTypeStats 96 */ 97 public function setStats(GooglePrivacyDlpV2StoredInfoTypeStats $stats) 98 { 99 $this->stats = $stats; 100 } 101 /** 102 * @return GooglePrivacyDlpV2StoredInfoTypeStats 103 */ 104 public function getStats() 105 { 106 return $this->stats; 107 } 108} 109 110// Adding a class alias for backwards compatibility with the previous class name. 111class_alias(GooglePrivacyDlpV2StoredInfoTypeVersion::class, 'Google_Service_DLP_GooglePrivacyDlpV2StoredInfoTypeVersion'); 112