-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathAttachmentDataRef.php
More file actions
113 lines (101 loc) · 3.75 KB
/
AttachmentDataRef.php
File metadata and controls
113 lines (101 loc) · 3.75 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
111
112
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/chat/v1/attachment.proto
namespace Google\Apps\Chat\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* A reference to the attachment data.
*
* Generated from protobuf message <code>google.chat.v1.AttachmentDataRef</code>
*/
class AttachmentDataRef extends \Google\Protobuf\Internal\Message
{
/**
* Optional. The resource name of the attachment data. This field is used with
* the media API to download the attachment data.
*
* Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $resource_name = '';
/**
* Optional. Opaque token containing a reference to an uploaded attachment.
* Treated by clients as an opaque string and used to create or update Chat
* messages with attachments.
*
* Generated from protobuf field <code>string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $attachment_upload_token = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $resource_name
* Optional. The resource name of the attachment data. This field is used with
* the media API to download the attachment data.
* @type string $attachment_upload_token
* Optional. Opaque token containing a reference to an uploaded attachment.
* Treated by clients as an opaque string and used to create or update Chat
* messages with attachments.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Chat\V1\Attachment::initOnce();
parent::__construct($data);
}
/**
* Optional. The resource name of the attachment data. This field is used with
* the media API to download the attachment data.
*
* Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getResourceName()
{
return $this->resource_name;
}
/**
* Optional. The resource name of the attachment data. This field is used with
* the media API to download the attachment data.
*
* Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setResourceName($var)
{
GPBUtil::checkString($var, True);
$this->resource_name = $var;
return $this;
}
/**
* Optional. Opaque token containing a reference to an uploaded attachment.
* Treated by clients as an opaque string and used to create or update Chat
* messages with attachments.
*
* Generated from protobuf field <code>string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getAttachmentUploadToken()
{
return $this->attachment_upload_token;
}
/**
* Optional. Opaque token containing a reference to an uploaded attachment.
* Treated by clients as an opaque string and used to create or update Chat
* messages with attachments.
*
* Generated from protobuf field <code>string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setAttachmentUploadToken($var)
{
GPBUtil::checkString($var, True);
$this->attachment_upload_token = $var;
return $this;
}
}