Represents a ResponseMediaObject.
Package
@google-cloud/dialogflow!Constructors
(constructor)(properties)
constructor(properties?: google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.IResponseMediaObject);
Constructs a new ResponseMediaObject.
Name | Description |
properties |
IResponseMediaObject
Properties to set |
Properties
contentUrl
public contentUrl: string;
ResponseMediaObject contentUrl.
Type | Description |
string |
description
public description: string;
ResponseMediaObject description.
Type | Description |
string |
icon
public icon?: (google.cloud.dialogflow.v2beta1.Intent.Message.IImage|null);
ResponseMediaObject icon.
Type | Description |
(google.cloud.dialogflow.v2beta1.Intent.Message.IImage|null) |
image
public image?: ("largeImage"|"icon");
ResponseMediaObject image.
Type | Description |
("largeImage"|"icon") |
largeImage
public largeImage?: (google.cloud.dialogflow.v2beta1.Intent.Message.IImage|null);
ResponseMediaObject largeImage.
Type | Description |
(google.cloud.dialogflow.v2beta1.Intent.Message.IImage|null) |
name
public name: string;
ResponseMediaObject name.
Type | Description |
string |
Methods
create(properties)
public static create(properties?: google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.IResponseMediaObject): google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject;
Creates a new ResponseMediaObject instance using the specified properties.
Name | Description |
properties |
IResponseMediaObject
Properties to set |
Type | Description |
google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject | ResponseMediaObject instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject;
Decodes a ResponseMediaObject message from the specified reader or buffer.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Type | Description |
google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject | ResponseMediaObject |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject;
Decodes a ResponseMediaObject message from the specified reader or buffer, length delimited.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject | ResponseMediaObject |
encode(message, writer)
public static encode(message: google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.IResponseMediaObject, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified ResponseMediaObject message. Does not implicitly messages.
Name | Description |
message |
IResponseMediaObject
ResponseMediaObject message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.IResponseMediaObject, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified ResponseMediaObject message, length delimited. Does not implicitly messages.
Name | Description |
message |
IResponseMediaObject
ResponseMediaObject message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject;
Creates a ResponseMediaObject message from a plain object. Also converts values to their respective internal types.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject | ResponseMediaObject |
toJSON()
public toJSON(): { [k: string]: any };
Converts this ResponseMediaObject to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a ResponseMediaObject message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject
ResponseMediaObject |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a ResponseMediaObject message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|