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 GooglePrivacyDlpV2FieldTransformation extends \Google\Collection 21{ 22 protected $collection_key = 'fields'; 23 protected $conditionType = GooglePrivacyDlpV2RecordCondition::class; 24 protected $conditionDataType = ''; 25 protected $fieldsType = GooglePrivacyDlpV2FieldId::class; 26 protected $fieldsDataType = 'array'; 27 protected $infoTypeTransformationsType = GooglePrivacyDlpV2InfoTypeTransformations::class; 28 protected $infoTypeTransformationsDataType = ''; 29 protected $primitiveTransformationType = GooglePrivacyDlpV2PrimitiveTransformation::class; 30 protected $primitiveTransformationDataType = ''; 31 32 /** 33 * @param GooglePrivacyDlpV2RecordCondition 34 */ 35 public function setCondition(GooglePrivacyDlpV2RecordCondition $condition) 36 { 37 $this->condition = $condition; 38 } 39 /** 40 * @return GooglePrivacyDlpV2RecordCondition 41 */ 42 public function getCondition() 43 { 44 return $this->condition; 45 } 46 /** 47 * @param GooglePrivacyDlpV2FieldId[] 48 */ 49 public function setFields($fields) 50 { 51 $this->fields = $fields; 52 } 53 /** 54 * @return GooglePrivacyDlpV2FieldId[] 55 */ 56 public function getFields() 57 { 58 return $this->fields; 59 } 60 /** 61 * @param GooglePrivacyDlpV2InfoTypeTransformations 62 */ 63 public function setInfoTypeTransformations(GooglePrivacyDlpV2InfoTypeTransformations $infoTypeTransformations) 64 { 65 $this->infoTypeTransformations = $infoTypeTransformations; 66 } 67 /** 68 * @return GooglePrivacyDlpV2InfoTypeTransformations 69 */ 70 public function getInfoTypeTransformations() 71 { 72 return $this->infoTypeTransformations; 73 } 74 /** 75 * @param GooglePrivacyDlpV2PrimitiveTransformation 76 */ 77 public function setPrimitiveTransformation(GooglePrivacyDlpV2PrimitiveTransformation $primitiveTransformation) 78 { 79 $this->primitiveTransformation = $primitiveTransformation; 80 } 81 /** 82 * @return GooglePrivacyDlpV2PrimitiveTransformation 83 */ 84 public function getPrimitiveTransformation() 85 { 86 return $this->primitiveTransformation; 87 } 88} 89 90// Adding a class alias for backwards compatibility with the previous class name. 91class_alias(GooglePrivacyDlpV2FieldTransformation::class, 'Google_Service_DLP_GooglePrivacyDlpV2FieldTransformation'); 92