-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathTieredStorageRule.php
More file actions
78 lines (67 loc) · 2.1 KB
/
TieredStorageRule.php
File metadata and controls
78 lines (67 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/bigtable/admin/v2/table.proto
namespace Google\Cloud\Bigtable\Admin\V2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Rule to specify what data is stored in a storage tier.
*
* Generated from protobuf message <code>google.bigtable.admin.v2.TieredStorageRule</code>
*/
class TieredStorageRule extends \Google\Protobuf\Internal\Message
{
protected $rule;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Protobuf\Duration $include_if_older_than
* Include cells older than the given age.
* For the infrequent access tier, this value must be at least 30 days.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce();
parent::__construct($data);
}
/**
* Include cells older than the given age.
* For the infrequent access tier, this value must be at least 30 days.
*
* Generated from protobuf field <code>.google.protobuf.Duration include_if_older_than = 1;</code>
* @return \Google\Protobuf\Duration|null
*/
public function getIncludeIfOlderThan()
{
return $this->readOneof(1);
}
public function hasIncludeIfOlderThan()
{
return $this->hasOneof(1);
}
/**
* Include cells older than the given age.
* For the infrequent access tier, this value must be at least 30 days.
*
* Generated from protobuf field <code>.google.protobuf.Duration include_if_older_than = 1;</code>
* @param \Google\Protobuf\Duration $var
* @return $this
*/
public function setIncludeIfOlderThan($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* @return string
*/
public function getRule()
{
return $this->whichOneof("rule");
}
}