|
| 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 | + |
| 18 | +namespace Google\Service\FirebaseDataConnect; |
| 19 | + |
| 20 | +class ClientCache extends \Google\Model |
| 21 | +{ |
| 22 | + /** |
| 23 | + * Optional. A field that, if true, means that responses served by this |
| 24 | + * connector will include entityIds in GraphQL response extensions. This helps |
| 25 | + * the client SDK cache responses in an improved way, known as "normalized |
| 26 | + * caching", if caching is enabled on the client. Each entityId is a stable |
| 27 | + * key based on primary key values. Therefore, this field should only be set |
| 28 | + * to true if the primary keys of accessed tables do not contain sensitive |
| 29 | + * information. |
| 30 | + * |
| 31 | + * @var bool |
| 32 | + */ |
| 33 | + public $entityIdIncluded; |
| 34 | + /** |
| 35 | + * Optional. A field that, if true, enables stricter validation on the |
| 36 | + * connector source code to make sure the operation response shapes are |
| 37 | + * suitable for client-side caching. This can include additional errors and |
| 38 | + * warnings. For example, using the same alias for different fields is |
| 39 | + * disallowed, as it may cause conflicts or confusion with normalized caching. |
| 40 | + * (This field is off by default for compatibility, but enabling it is highly |
| 41 | + * recommended to catch common caching pitfalls.) |
| 42 | + * |
| 43 | + * @var bool |
| 44 | + */ |
| 45 | + public $strictValidationEnabled; |
| 46 | + |
| 47 | + /** |
| 48 | + * Optional. A field that, if true, means that responses served by this |
| 49 | + * connector will include entityIds in GraphQL response extensions. This helps |
| 50 | + * the client SDK cache responses in an improved way, known as "normalized |
| 51 | + * caching", if caching is enabled on the client. Each entityId is a stable |
| 52 | + * key based on primary key values. Therefore, this field should only be set |
| 53 | + * to true if the primary keys of accessed tables do not contain sensitive |
| 54 | + * information. |
| 55 | + * |
| 56 | + * @param bool $entityIdIncluded |
| 57 | + */ |
| 58 | + public function setEntityIdIncluded($entityIdIncluded) |
| 59 | + { |
| 60 | + $this->entityIdIncluded = $entityIdIncluded; |
| 61 | + } |
| 62 | + /** |
| 63 | + * @return bool |
| 64 | + */ |
| 65 | + public function getEntityIdIncluded() |
| 66 | + { |
| 67 | + return $this->entityIdIncluded; |
| 68 | + } |
| 69 | + /** |
| 70 | + * Optional. A field that, if true, enables stricter validation on the |
| 71 | + * connector source code to make sure the operation response shapes are |
| 72 | + * suitable for client-side caching. This can include additional errors and |
| 73 | + * warnings. For example, using the same alias for different fields is |
| 74 | + * disallowed, as it may cause conflicts or confusion with normalized caching. |
| 75 | + * (This field is off by default for compatibility, but enabling it is highly |
| 76 | + * recommended to catch common caching pitfalls.) |
| 77 | + * |
| 78 | + * @param bool $strictValidationEnabled |
| 79 | + */ |
| 80 | + public function setStrictValidationEnabled($strictValidationEnabled) |
| 81 | + { |
| 82 | + $this->strictValidationEnabled = $strictValidationEnabled; |
| 83 | + } |
| 84 | + /** |
| 85 | + * @return bool |
| 86 | + */ |
| 87 | + public function getStrictValidationEnabled() |
| 88 | + { |
| 89 | + return $this->strictValidationEnabled; |
| 90 | + } |
| 91 | +} |
| 92 | + |
| 93 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 94 | +class_alias(ClientCache::class, 'Google_Service_FirebaseDataConnect_ClientCache'); |
0 commit comments