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\DataprocMetastore;
|
---|
19 |
|
---|
20 | class LocationMetadata extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'supportedHiveMetastoreVersions';
|
---|
23 | protected $customRegionMetadataType = CustomRegionMetadata::class;
|
---|
24 | protected $customRegionMetadataDataType = 'array';
|
---|
25 | protected $multiRegionMetadataType = MultiRegionMetadata::class;
|
---|
26 | protected $multiRegionMetadataDataType = '';
|
---|
27 | protected $supportedHiveMetastoreVersionsType = HiveMetastoreVersion::class;
|
---|
28 | protected $supportedHiveMetastoreVersionsDataType = 'array';
|
---|
29 |
|
---|
30 | /**
|
---|
31 | * @param CustomRegionMetadata[]
|
---|
32 | */
|
---|
33 | public function setCustomRegionMetadata($customRegionMetadata)
|
---|
34 | {
|
---|
35 | $this->customRegionMetadata = $customRegionMetadata;
|
---|
36 | }
|
---|
37 | /**
|
---|
38 | * @return CustomRegionMetadata[]
|
---|
39 | */
|
---|
40 | public function getCustomRegionMetadata()
|
---|
41 | {
|
---|
42 | return $this->customRegionMetadata;
|
---|
43 | }
|
---|
44 | /**
|
---|
45 | * @param MultiRegionMetadata
|
---|
46 | */
|
---|
47 | public function setMultiRegionMetadata(MultiRegionMetadata $multiRegionMetadata)
|
---|
48 | {
|
---|
49 | $this->multiRegionMetadata = $multiRegionMetadata;
|
---|
50 | }
|
---|
51 | /**
|
---|
52 | * @return MultiRegionMetadata
|
---|
53 | */
|
---|
54 | public function getMultiRegionMetadata()
|
---|
55 | {
|
---|
56 | return $this->multiRegionMetadata;
|
---|
57 | }
|
---|
58 | /**
|
---|
59 | * @param HiveMetastoreVersion[]
|
---|
60 | */
|
---|
61 | public function setSupportedHiveMetastoreVersions($supportedHiveMetastoreVersions)
|
---|
62 | {
|
---|
63 | $this->supportedHiveMetastoreVersions = $supportedHiveMetastoreVersions;
|
---|
64 | }
|
---|
65 | /**
|
---|
66 | * @return HiveMetastoreVersion[]
|
---|
67 | */
|
---|
68 | public function getSupportedHiveMetastoreVersions()
|
---|
69 | {
|
---|
70 | return $this->supportedHiveMetastoreVersions;
|
---|
71 | }
|
---|
72 | }
|
---|
73 |
|
---|
74 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
75 | class_alias(LocationMetadata::class, 'Google_Service_DataprocMetastore_LocationMetadata');
|
---|