Class protos.google.cloud.dialogflow.v2.ExportDocumentRequest (4.7.0)

Represents an ExportDocumentRequest.

Package

@google-cloud/dialogflow

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.dialogflow.v2.IExportDocumentRequest);

Constructs a new ExportDocumentRequest.

Parameter
NameDescription
properties IExportDocumentRequest

Properties to set

Properties

destination

public destination?: "gcsDestination";

ExportDocumentRequest destination.

exportFullContent

public exportFullContent: boolean;

ExportDocumentRequest exportFullContent.

gcsDestination

public gcsDestination?: (google.cloud.dialogflow.v2.IGcsDestination|null);

ExportDocumentRequest gcsDestination.

name

public name: string;

ExportDocumentRequest name.

smartMessagingPartialUpdate

public smartMessagingPartialUpdate: boolean;

ExportDocumentRequest smartMessagingPartialUpdate.

Methods

create(properties)

public static create(properties?: google.cloud.dialogflow.v2.IExportDocumentRequest): google.cloud.dialogflow.v2.ExportDocumentRequest;

Creates a new ExportDocumentRequest instance using the specified properties.

Parameter
NameDescription
properties IExportDocumentRequest

Properties to set

Returns
TypeDescription
google.cloud.dialogflow.v2.ExportDocumentRequest

ExportDocumentRequest instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.v2.ExportDocumentRequest;

Decodes an ExportDocumentRequest message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.dialogflow.v2.ExportDocumentRequest

ExportDocumentRequest

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.v2.ExportDocumentRequest;

Decodes an ExportDocumentRequest message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.dialogflow.v2.ExportDocumentRequest

ExportDocumentRequest

encode(message, writer)

public static encode(message: google.cloud.dialogflow.v2.IExportDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ExportDocumentRequest message. Does not implicitly messages.

Parameters
NameDescription
message IExportDocumentRequest

ExportDocumentRequest message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.dialogflow.v2.IExportDocumentRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ExportDocumentRequest message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IExportDocumentRequest

ExportDocumentRequest message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.v2.ExportDocumentRequest;

Creates an ExportDocumentRequest message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.dialogflow.v2.ExportDocumentRequest

ExportDocumentRequest

toJSON()

public toJSON(): { [k: string]: any };

Converts this ExportDocumentRequest to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.dialogflow.v2.ExportDocumentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from an ExportDocumentRequest message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.dialogflow.v2.ExportDocumentRequest

ExportDocumentRequest

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an ExportDocumentRequest message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not