Reference documentation and code samples for the Google Cloud Channel V1 Client class Media.
Represents media information.
Generated from protobuf message google.cloud.channel.v1.Media
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ title |
string
Title of the media. |
↳ content |
string
URL of the media. |
↳ type |
int
Type of the media. |
getTitle
Title of the media.
Generated from protobuf field string title = 1;
Returns | |
---|---|
Type | Description |
string |
setTitle
Title of the media.
Generated from protobuf field string title = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getContent
URL of the media.
Generated from protobuf field string content = 2;
Returns | |
---|---|
Type | Description |
string |
setContent
URL of the media.
Generated from protobuf field string content = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getType
Type of the media.
Generated from protobuf field .google.cloud.channel.v1.MediaType type = 3;
Returns | |
---|---|
Type | Description |
int |
setType
Type of the media.
Generated from protobuf field .google.cloud.channel.v1.MediaType type = 3;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |