Skip to content

Commit 8c7bbba

Browse files
1 parent 7dacd12 commit 8c7bbba

File tree

4 files changed

+173
-0
lines changed

4 files changed

+173
-0
lines changed

src/Dataflow/BoundedTrie.php

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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\Dataflow;
19+
20+
class BoundedTrie extends \Google\Collection
21+
{
22+
protected $collection_key = 'singleton';
23+
/**
24+
* @var int
25+
*/
26+
public $bound;
27+
protected $rootType = BoundedTrieNode::class;
28+
protected $rootDataType = '';
29+
/**
30+
* @var string[]
31+
*/
32+
public $singleton;
33+
34+
/**
35+
* @param int
36+
*/
37+
public function setBound($bound)
38+
{
39+
$this->bound = $bound;
40+
}
41+
/**
42+
* @return int
43+
*/
44+
public function getBound()
45+
{
46+
return $this->bound;
47+
}
48+
/**
49+
* @param BoundedTrieNode
50+
*/
51+
public function setRoot(BoundedTrieNode $root)
52+
{
53+
$this->root = $root;
54+
}
55+
/**
56+
* @return BoundedTrieNode
57+
*/
58+
public function getRoot()
59+
{
60+
return $this->root;
61+
}
62+
/**
63+
* @param string[]
64+
*/
65+
public function setSingleton($singleton)
66+
{
67+
$this->singleton = $singleton;
68+
}
69+
/**
70+
* @return string[]
71+
*/
72+
public function getSingleton()
73+
{
74+
return $this->singleton;
75+
}
76+
}
77+
78+
// Adding a class alias for backwards compatibility with the previous class name.
79+
class_alias(BoundedTrie::class, 'Google_Service_Dataflow_BoundedTrie');

src/Dataflow/BoundedTrieNode.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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\Dataflow;
19+
20+
class BoundedTrieNode extends \Google\Model
21+
{
22+
protected $childrenType = BoundedTrieNode::class;
23+
protected $childrenDataType = 'map';
24+
/**
25+
* @var bool
26+
*/
27+
public $truncated;
28+
29+
/**
30+
* @param BoundedTrieNode[]
31+
*/
32+
public function setChildren($children)
33+
{
34+
$this->children = $children;
35+
}
36+
/**
37+
* @return BoundedTrieNode[]
38+
*/
39+
public function getChildren()
40+
{
41+
return $this->children;
42+
}
43+
/**
44+
* @param bool
45+
*/
46+
public function setTruncated($truncated)
47+
{
48+
$this->truncated = $truncated;
49+
}
50+
/**
51+
* @return bool
52+
*/
53+
public function getTruncated()
54+
{
55+
return $this->truncated;
56+
}
57+
}
58+
59+
// Adding a class alias for backwards compatibility with the previous class name.
60+
class_alias(BoundedTrieNode::class, 'Google_Service_Dataflow_BoundedTrieNode');

src/Dataflow/CounterUpdate.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class CounterUpdate extends \Google\Model
2323
* @var bool
2424
*/
2525
public $boolean;
26+
protected $boundedTrieType = BoundedTrie::class;
27+
protected $boundedTrieDataType = '';
2628
/**
2729
* @var bool
2830
*/
@@ -71,6 +73,20 @@ public function getBoolean()
7173
{
7274
return $this->boolean;
7375
}
76+
/**
77+
* @param BoundedTrie
78+
*/
79+
public function setBoundedTrie(BoundedTrie $boundedTrie)
80+
{
81+
$this->boundedTrie = $boundedTrie;
82+
}
83+
/**
84+
* @return BoundedTrie
85+
*/
86+
public function getBoundedTrie()
87+
{
88+
return $this->boundedTrie;
89+
}
7490
/**
7591
* @param bool
7692
*/

src/Dataflow/MetricUpdate.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ class MetricUpdate extends \Google\Model
5757
* @var array
5858
*/
5959
public $set;
60+
/**
61+
* @var array
62+
*/
63+
public $trie;
6064
/**
6165
* @var string
6266
*/
@@ -202,6 +206,20 @@ public function getSet()
202206
{
203207
return $this->set;
204208
}
209+
/**
210+
* @param array
211+
*/
212+
public function setTrie($trie)
213+
{
214+
$this->trie = $trie;
215+
}
216+
/**
217+
* @return array
218+
*/
219+
public function getTrie()
220+
{
221+
return $this->trie;
222+
}
205223
/**
206224
* @param string
207225
*/

0 commit comments

Comments
 (0)