-
Notifications
You must be signed in to change notification settings - Fork 462
Expand file tree
/
Copy pathFetchReadTokenResponse.php
More file actions
111 lines (97 loc) · 2.83 KB
/
FetchReadTokenResponse.php
File metadata and controls
111 lines (97 loc) · 2.83 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/devtools/cloudbuild/v2/repositories.proto
namespace Google\Cloud\Build\V2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* Message for responding to get read token.
*
* Generated from protobuf message <code>google.devtools.cloudbuild.v2.FetchReadTokenResponse</code>
*/
class FetchReadTokenResponse extends \Google\Protobuf\Internal\Message
{
/**
* The token content.
*
* Generated from protobuf field <code>string token = 1;</code>
*/
protected $token = '';
/**
* Expiration timestamp. Can be empty if unknown or non-expiring.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp expiration_time = 2;</code>
*/
protected $expiration_time = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $token
* The token content.
* @type \Google\Protobuf\Timestamp $expiration_time
* Expiration timestamp. Can be empty if unknown or non-expiring.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce();
parent::__construct($data);
}
/**
* The token content.
*
* Generated from protobuf field <code>string token = 1;</code>
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* The token content.
*
* Generated from protobuf field <code>string token = 1;</code>
* @param string $var
* @return $this
*/
public function setToken($var)
{
GPBUtil::checkString($var, True);
$this->token = $var;
return $this;
}
/**
* Expiration timestamp. Can be empty if unknown or non-expiring.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp expiration_time = 2;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getExpirationTime()
{
return $this->expiration_time;
}
public function hasExpirationTime()
{
return isset($this->expiration_time);
}
public function clearExpirationTime()
{
unset($this->expiration_time);
}
/**
* Expiration timestamp. Can be empty if unknown or non-expiring.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp expiration_time = 2;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setExpirationTime($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->expiration_time = $var;
return $this;
}
}