@google-cloud/dialogflow-cx
Version:
841 lines (699 loc) • 5.66 MB
TypeScript
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import type {protobuf as $protobuf} from "google-gax";
import Long = require("long");
/** Namespace google. */
export namespace google {
/** Namespace cloud. */
namespace cloud {
/** Namespace dialogflow. */
namespace dialogflow {
/** Namespace cx. */
namespace cx {
/** Namespace v3. */
namespace v3 {
/** Properties of an AdvancedSettings. */
interface IAdvancedSettings {
/** AdvancedSettings audioExportGcsDestination */
audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3.IGcsDestination|null);
/** AdvancedSettings speechSettings */
speechSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.ISpeechSettings|null);
/** AdvancedSettings dtmfSettings */
dtmfSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings|null);
/** AdvancedSettings loggingSettings */
loggingSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null);
}
/** Represents an AdvancedSettings. */
class AdvancedSettings implements IAdvancedSettings {
/**
* Constructs a new AdvancedSettings.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.dialogflow.cx.v3.IAdvancedSettings);
/** AdvancedSettings audioExportGcsDestination. */
public audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3.IGcsDestination|null);
/** AdvancedSettings speechSettings. */
public speechSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.ISpeechSettings|null);
/** AdvancedSettings dtmfSettings. */
public dtmfSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings|null);
/** AdvancedSettings loggingSettings. */
public loggingSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null);
/**
* Creates a new AdvancedSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns AdvancedSettings instance
*/
public static create(properties?: google.cloud.dialogflow.cx.v3.IAdvancedSettings): google.cloud.dialogflow.cx.v3.AdvancedSettings;
/**
* Encodes the specified AdvancedSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.verify|verify} messages.
* @param message AdvancedSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.dialogflow.cx.v3.IAdvancedSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AdvancedSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.verify|verify} messages.
* @param message AdvancedSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IAdvancedSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an AdvancedSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AdvancedSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AdvancedSettings;
/**
* Decodes an AdvancedSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AdvancedSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AdvancedSettings;
/**
* Verifies an AdvancedSettings message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates an AdvancedSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AdvancedSettings
*/
public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AdvancedSettings;
/**
* Creates a plain object from an AdvancedSettings message. Also converts values to other types if specified.
* @param message AdvancedSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.dialogflow.cx.v3.AdvancedSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AdvancedSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AdvancedSettings
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace AdvancedSettings {
/** Properties of a SpeechSettings. */
interface ISpeechSettings {
/** SpeechSettings endpointerSensitivity */
endpointerSensitivity?: (number|null);
/** SpeechSettings noSpeechTimeout */
noSpeechTimeout?: (google.protobuf.IDuration|null);
/** SpeechSettings useTimeoutBasedEndpointing */
useTimeoutBasedEndpointing?: (boolean|null);
/** SpeechSettings models */
models?: ({ [k: string]: string }|null);
}
/** Represents a SpeechSettings. */
class SpeechSettings implements ISpeechSettings {
/**
* Constructs a new SpeechSettings.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.dialogflow.cx.v3.AdvancedSettings.ISpeechSettings);
/** SpeechSettings endpointerSensitivity. */
public endpointerSensitivity: number;
/** SpeechSettings noSpeechTimeout. */
public noSpeechTimeout?: (google.protobuf.IDuration|null);
/** SpeechSettings useTimeoutBasedEndpointing. */
public useTimeoutBasedEndpointing: boolean;
/** SpeechSettings models. */
public models: { [k: string]: string };
/**
* Creates a new SpeechSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns SpeechSettings instance
*/
public static create(properties?: google.cloud.dialogflow.cx.v3.AdvancedSettings.ISpeechSettings): google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings;
/**
* Encodes the specified SpeechSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.verify|verify} messages.
* @param message SpeechSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.ISpeechSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified SpeechSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings.verify|verify} messages.
* @param message SpeechSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.ISpeechSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a SpeechSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns SpeechSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings;
/**
* Decodes a SpeechSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns SpeechSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings;
/**
* Verifies a SpeechSettings message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a SpeechSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns SpeechSettings
*/
public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings;
/**
* Creates a plain object from a SpeechSettings message. Also converts values to other types if specified.
* @param message SpeechSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this SpeechSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for SpeechSettings
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a DtmfSettings. */
interface IDtmfSettings {
/** DtmfSettings enabled */
enabled?: (boolean|null);
/** DtmfSettings maxDigits */
maxDigits?: (number|null);
/** DtmfSettings finishDigit */
finishDigit?: (string|null);
/** DtmfSettings interdigitTimeoutDuration */
interdigitTimeoutDuration?: (google.protobuf.IDuration|null);
/** DtmfSettings endpointingTimeoutDuration */
endpointingTimeoutDuration?: (google.protobuf.IDuration|null);
}
/** Represents a DtmfSettings. */
class DtmfSettings implements IDtmfSettings {
/**
* Constructs a new DtmfSettings.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings);
/** DtmfSettings enabled. */
public enabled: boolean;
/** DtmfSettings maxDigits. */
public maxDigits: number;
/** DtmfSettings finishDigit. */
public finishDigit: string;
/** DtmfSettings interdigitTimeoutDuration. */
public interdigitTimeoutDuration?: (google.protobuf.IDuration|null);
/** DtmfSettings endpointingTimeoutDuration. */
public endpointingTimeoutDuration?: (google.protobuf.IDuration|null);
/**
* Creates a new DtmfSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns DtmfSettings instance
*/
public static create(properties?: google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings): google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings;
/**
* Encodes the specified DtmfSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.verify|verify} messages.
* @param message DtmfSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DtmfSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.verify|verify} messages.
* @param message DtmfSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DtmfSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DtmfSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings;
/**
* Decodes a DtmfSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DtmfSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings;
/**
* Verifies a DtmfSettings message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a DtmfSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DtmfSettings
*/
public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings;
/**
* Creates a plain object from a DtmfSettings message. Also converts values to other types if specified.
* @param message DtmfSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DtmfSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for DtmfSettings
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a LoggingSettings. */
interface ILoggingSettings {
/** LoggingSettings enableStackdriverLogging */
enableStackdriverLogging?: (boolean|null);
/** LoggingSettings enableInteractionLogging */
enableInteractionLogging?: (boolean|null);
/** LoggingSettings enableConsentBasedRedaction */
enableConsentBasedRedaction?: (boolean|null);
}
/** Represents a LoggingSettings. */
class LoggingSettings implements ILoggingSettings {
/**
* Constructs a new LoggingSettings.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings);
/** LoggingSettings enableStackdriverLogging. */
public enableStackdriverLogging: boolean;
/** LoggingSettings enableInteractionLogging. */
public enableInteractionLogging: boolean;
/** LoggingSettings enableConsentBasedRedaction. */
public enableConsentBasedRedaction: boolean;
/**
* Creates a new LoggingSettings instance using the specified properties.
* @param [properties] Properties to set
* @returns LoggingSettings instance
*/
public static create(properties?: google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings): google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings;
/**
* Encodes the specified LoggingSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.verify|verify} messages.
* @param message LoggingSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified LoggingSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.verify|verify} messages.
* @param message LoggingSettings message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a LoggingSettings message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns LoggingSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings;
/**
* Decodes a LoggingSettings message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns LoggingSettings
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings;
/**
* Verifies a LoggingSettings message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a LoggingSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns LoggingSettings
*/
public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings;
/**
* Creates a plain object from a LoggingSettings message. Also converts values to other types if specified.
* @param message LoggingSettings
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this LoggingSettings to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for LoggingSettings
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
/** Properties of a GcsDestination. */
interface IGcsDestination {
/** GcsDestination uri */
uri?: (string|null);
}
/** Represents a GcsDestination. */
class GcsDestination implements IGcsDestination {
/**
* Constructs a new GcsDestination.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.dialogflow.cx.v3.IGcsDestination);
/** GcsDestination uri. */
public uri: string;
/**
* Creates a new GcsDestination instance using the specified properties.
* @param [properties] Properties to set
* @returns GcsDestination instance
*/
public static create(properties?: google.cloud.dialogflow.cx.v3.IGcsDestination): google.cloud.dialogflow.cx.v3.GcsDestination;
/**
* Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GcsDestination.verify|verify} messages.
* @param message GcsDestination message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.dialogflow.cx.v3.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GcsDestination.verify|verify} messages.
* @param message GcsDestination message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a GcsDestination message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns GcsDestination
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GcsDestination;
/**
* Decodes a GcsDestination message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns GcsDestination
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GcsDestination;
/**
* Verifies a GcsDestination message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a GcsDestination message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns GcsDestination
*/
public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GcsDestination;
/**
* Creates a plain object from a GcsDestination message. Also converts values to other types if specified.
* @param message GcsDestination
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.dialogflow.cx.v3.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this GcsDestination to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for GcsDestination
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Represents an Agents */
class Agents extends $protobuf.rpc.Service {
/**
* Constructs a new Agents service.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
*/
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
/**
* Creates new Agents service using the specified rpc implementation.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
* @returns RPC service. Useful where requests and/or responses are streamed.
*/
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Agents;
/**
* Calls ListAgents.
* @param request ListAgentsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListAgentsResponse
*/
public listAgents(request: google.cloud.dialogflow.cx.v3.IListAgentsRequest, callback: google.cloud.dialogflow.cx.v3.Agents.ListAgentsCallback): void;
/**
* Calls ListAgents.
* @param request ListAgentsRequest message or plain object
* @returns Promise
*/
public listAgents(request: google.cloud.dialogflow.cx.v3.IListAgentsRequest): Promise<google.cloud.dialogflow.cx.v3.ListAgentsResponse>;
/**
* Calls GetAgent.
* @param request GetAgentRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Agent
*/
public getAgent(request: google.cloud.dialogflow.cx.v3.IGetAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.GetAgentCallback): void;
/**
* Calls GetAgent.
* @param request GetAgentRequest message or plain object
* @returns Promise
*/
public getAgent(request: google.cloud.dialogflow.cx.v3.IGetAgentRequest): Promise<google.cloud.dialogflow.cx.v3.Agent>;
/**
* Calls CreateAgent.
* @param request CreateAgentRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Agent
*/
public createAgent(request: google.cloud.dialogflow.cx.v3.ICreateAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.CreateAgentCallback): void;
/**
* Calls CreateAgent.
* @param request CreateAgentRequest message or plain object
* @returns Promise
*/
public createAgent(request: google.cloud.dialogflow.cx.v3.ICreateAgentRequest): Promise<google.cloud.dialogflow.cx.v3.Agent>;
/**
* Calls UpdateAgent.
* @param request UpdateAgentRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Agent
*/
public updateAgent(request: google.cloud.dialogflow.cx.v3.IUpdateAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.UpdateAgentCallback): void;
/**
* Calls UpdateAgent.
* @param request UpdateAgentRequest message or plain object
* @returns Promise
*/
public updateAgent(request: google.cloud.dialogflow.cx.v3.IUpdateAgentRequest): Promise<google.cloud.dialogflow.cx.v3.Agent>;
/**
* Calls DeleteAgent.
* @param request DeleteAgentRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteAgent(request: google.cloud.dialogflow.cx.v3.IDeleteAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.DeleteAgentCallback): void;
/**
* Calls DeleteAgent.
* @param request DeleteAgentRequest message or plain object
* @returns Promise
*/
public deleteAgent(request: google.cloud.dialogflow.cx.v3.IDeleteAgentRequest): Promise<google.protobuf.Empty>;
/**
* Calls ExportAgent.
* @param request ExportAgentRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Operation
*/
public exportAgent(request: google.cloud.dialogflow.cx.v3.IExportAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.ExportAgentCallback): void;
/**
* Calls ExportAgent.
* @param request ExportAgentRequest message or plain object
* @returns Promise
*/
public exportAgent(request: google.cloud.dialogflow.cx.v3.IExportAgentRequest): Promise<google.longrunning.Operation>;
/**
* Calls RestoreAgent.
* @param request RestoreAgentRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Operation
*/
public restoreAgent(request: google.cloud.dialogflow.cx.v3.IRestoreAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.RestoreAgentCallback): void;
/**
* Calls RestoreAgent.
* @param request RestoreAgentRequest message or plain object
* @returns Promise
*/
public restoreAgent(request: google.cloud.dialogflow.cx.v3.IRestoreAgentRequest): Promise<google.longrunning.Operation>;
/**
* Calls ValidateAgent.
* @param request ValidateAgentRequest message or plain object
* @param callback Node-style callback called with the error, if any, and AgentValidationResult
*/
public validateAgent(request: google.cloud.dialogflow.cx.v3.IValidateAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.ValidateAgentCallback): void;
/**
* Calls ValidateAgent.
* @param request ValidateAgentRequest message or plain object
* @returns Promise
*/
public validateAgent(request: google.cloud.dialogflow.cx.v3.IValidateAgentRequest): Promise<google.cloud.dialogflow.cx.v3.AgentValidationResult>;
/**
* Calls GetAgentValidationResult.
* @param request GetAgentValidationResultRequest message or plain object
* @param callback Node-style callback called with the error, if any, and AgentValidationResult
*/
public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest, callback: google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResultCallback): void;
/**
* Calls GetAgentValidationResult.
* @param request GetAgentValidationResultRequest message or plain object
* @returns Promise
*/
public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest): Promise<google.cloud.dialogflow.cx.v3.AgentValidationResult>;
/**
* Calls GetGenerativeSettings.
* @param request GetGenerativeSettingsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and GenerativeSettings
*/
public getGenerativeSettings(request: google.cloud.dialogflow.cx.v3.IGetGenerativeSettingsRequest, callback: google.cloud.dialogflow.cx.v3.Agents.GetGenerativeSettingsCallback): void;
/**
* Calls GetGenerativeSettings.
* @param request GetGenerativeSettingsRequest message or plain object
* @returns Promise
*/
public getGenerativeSettings(request: google.cloud.dialogflow.cx.v3.IGetGenerativeSettingsRequest): Promise<google.cloud.dialogflow.cx.v3.GenerativeSettings>;
/**
* Calls UpdateGenerativeSettings.
* @param request UpdateGenerativeSettingsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and GenerativeSettings
*/
public updateGenerativeSettings(request: google.cloud.dialogflow.cx.v3.IUpdateGenerativeSettingsRequest, callback: google.cloud.dialogflow.cx.v3.Agents.UpdateGenerativeSettingsCallback): void;
/**
* Calls UpdateGenerativeSettings.
* @param request UpdateGenerativeSettingsRequest message or plain object
* @returns Promise
*/
public updateGenerativeSettings(request: google.cloud.dialogflow.cx.v3.IUpdateGenerativeSettingsRequest): Promise<google.cloud.dialogflow.cx.v3.GenerativeSettings>;
}
namespace Agents {
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|listAgents}.
* @param error Error, if any
* @param [response] ListAgentsResponse
*/
type ListAgentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListAgentsResponse) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|getAgent}.
* @param error Error, if any
* @param [response] Agent
*/
type GetAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Agent) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|createAgent}.
* @param error Error, if any
* @param [response] Agent
*/
type CreateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Agent) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|updateAgent}.
* @param error Error, if any
* @param [response] Agent
*/
type UpdateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Agent) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|deleteAgent}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteAgentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|exportAgent}.
* @param error Error, if any
* @param [response] Operation
*/
type ExportAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|restoreAgent}.
* @param error Error, if any
* @param [response] Operation
*/
type RestoreAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|validateAgent}.
* @param error Error, if any
* @param [response] AgentValidationResult
*/
type ValidateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.AgentValidationResult) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|getAgentValidationResult}.
* @param error Error, if any
* @param [response] AgentValidationResult
*/
type GetAgentValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.AgentValidationResult) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|getGenerativeSettings}.
* @param error Error, if any
* @param [response] GenerativeSettings
*/
type GetGenerativeSettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.GenerativeSettings) => void;
/**
* Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents|updateGenerativeSettings}.
* @