forked from googleapis/google-cloud-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDnsCacheConfig.php
More file actions
67 lines (58 loc) · 1.63 KB
/
DnsCacheConfig.php
File metadata and controls
67 lines (58 loc) · 1.63 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/container/v1/cluster_service.proto
namespace Google\Cloud\Container\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Configuration for NodeLocal DNSCache
*
* Generated from protobuf message <code>google.container.v1.DnsCacheConfig</code>
*/
class DnsCacheConfig extends \Google\Protobuf\Internal\Message
{
/**
* Whether NodeLocal DNSCache is enabled for this cluster.
*
* Generated from protobuf field <code>bool enabled = 1;</code>
*/
private $enabled = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type bool $enabled
* Whether NodeLocal DNSCache is enabled for this cluster.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Container\V1\ClusterService::initOnce();
parent::__construct($data);
}
/**
* Whether NodeLocal DNSCache is enabled for this cluster.
*
* Generated from protobuf field <code>bool enabled = 1;</code>
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* Whether NodeLocal DNSCache is enabled for this cluster.
*
* Generated from protobuf field <code>bool enabled = 1;</code>
* @param bool $var
* @return $this
*/
public function setEnabled($var)
{
GPBUtil::checkBool($var);
$this->enabled = $var;
return $this;
}
}