sanka-baileyss
Version:
WhatsApp API Modification By Sanka_Vollerei
1,169 lines (905 loc) • 252 kB
TypeScript
import * as $protobuf from "protobufjs";
import Long = require("long");
/** Namespace BotMetadata. */
export namespace BotMetadata {
/** Properties of a BotMetadata. */
interface IBotMetadata {
/** BotMetadata avatarMetadata */
avatarMetadata?: (BotMetadata.IBotAvatarMetadata|null);
/** BotMetadata personaId */
personaId?: (string|null);
/** BotMetadata pluginMetadata */
pluginMetadata?: (BotMetadata.IBotPluginMetadata|null);
/** BotMetadata suggestedPromptMetadata */
suggestedPromptMetadata?: (BotMetadata.IBotSuggestedPromptMetadata|null);
/** BotMetadata invokerJid */
invokerJid?: (string|null);
/** BotMetadata sessionMetadata */
sessionMetadata?: (BotMetadata.IBotSessionMetadata|null);
/** BotMetadata memuMetadata */
memuMetadata?: (BotMetadata.IBotMemuMetadata|null);
/** BotMetadata timezone */
timezone?: (string|null);
/** BotMetadata reminderMetadata */
reminderMetadata?: (BotMetadata.IBotReminderMetadata|null);
/** BotMetadata modelMetadata */
modelMetadata?: (BotMetadata.IBotModelMetadata|null);
/** BotMetadata messageDisclaimerText */
messageDisclaimerText?: (string|null);
/** BotMetadata progressIndicatorMetadata */
progressIndicatorMetadata?: (BotMetadata.IBotProgressIndicatorMetadata|null);
/** BotMetadata capabilityMetadata */
capabilityMetadata?: (BotMetadata.IBotCapabilityMetadata|null);
/** BotMetadata imagineMetadata */
imagineMetadata?: (BotMetadata.IBotImagineMetadata|null);
/** BotMetadata memoryMetadata */
memoryMetadata?: (BotMetadata.IBotMemoryMetadata|null);
/** BotMetadata renderingMetadata */
renderingMetadata?: (BotMetadata.IBotRenderingMetadata|null);
/** BotMetadata botMetricsMetadata */
botMetricsMetadata?: (BotMetadata.IBotMetricsMetadata|null);
/** BotMetadata botLinkedAccountsMetadata */
botLinkedAccountsMetadata?: (BotMetadata.IBotLinkedAccountsMetadata|null);
/** BotMetadata richResponseSourcesMetadata */
richResponseSourcesMetadata?: (BotMetadata.IBotSourcesMetadata|null);
/** BotMetadata aiConversationContext */
aiConversationContext?: (Uint8Array|null);
/** BotMetadata botPromotionMessageMetadata */
botPromotionMessageMetadata?: (BotMetadata.IBotPromotionMessageMetadata|null);
/** BotMetadata botModeSelectionMetadata */
botModeSelectionMetadata?: (BotMetadata.IBotModeSelectionMetadata|null);
/** BotMetadata botQuotaMetadata */
botQuotaMetadata?: (BotMetadata.IBotQuotaMetadata|null);
/** BotMetadata botAgeCollectionMetadata */
botAgeCollectionMetadata?: (BotMetadata.IBotAgeCollectionMetadata|null);
/** BotMetadata conversationStarterPromptId */
conversationStarterPromptId?: (string|null);
/** BotMetadata botResponseId */
botResponseId?: (string|null);
/** BotMetadata verificationMetadata */
verificationMetadata?: (BotMetadata.IBotSignatureVerificationMetadata|null);
/** BotMetadata unifiedResponseMutation */
unifiedResponseMutation?: (BotMetadata.IBotUnifiedResponseMutation|null);
/** BotMetadata botMessageOriginMetadata */
botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null);
/** BotMetadata inThreadSurveyMetadata */
inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null);
}
/** Represents a BotMetadata. */
class BotMetadata implements IBotMetadata {
/**
* Constructs a new BotMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: BotMetadata.IBotMetadata);
/** BotMetadata avatarMetadata. */
public avatarMetadata?: (BotMetadata.IBotAvatarMetadata|null);
/** BotMetadata personaId. */
public personaId?: (string|null);
/** BotMetadata pluginMetadata. */
public pluginMetadata?: (BotMetadata.IBotPluginMetadata|null);
/** BotMetadata suggestedPromptMetadata. */
public suggestedPromptMetadata?: (BotMetadata.IBotSuggestedPromptMetadata|null);
/** BotMetadata invokerJid. */
public invokerJid?: (string|null);
/** BotMetadata sessionMetadata. */
public sessionMetadata?: (BotMetadata.IBotSessionMetadata|null);
/** BotMetadata memuMetadata. */
public memuMetadata?: (BotMetadata.IBotMemuMetadata|null);
/** BotMetadata timezone. */
public timezone?: (string|null);
/** BotMetadata reminderMetadata. */
public reminderMetadata?: (BotMetadata.IBotReminderMetadata|null);
/** BotMetadata modelMetadata. */
public modelMetadata?: (BotMetadata.IBotModelMetadata|null);
/** BotMetadata messageDisclaimerText. */
public messageDisclaimerText?: (string|null);
/** BotMetadata progressIndicatorMetadata. */
public progressIndicatorMetadata?: (BotMetadata.IBotProgressIndicatorMetadata|null);
/** BotMetadata capabilityMetadata. */
public capabilityMetadata?: (BotMetadata.IBotCapabilityMetadata|null);
/** BotMetadata imagineMetadata. */
public imagineMetadata?: (BotMetadata.IBotImagineMetadata|null);
/** BotMetadata memoryMetadata. */
public memoryMetadata?: (BotMetadata.IBotMemoryMetadata|null);
/** BotMetadata renderingMetadata. */
public renderingMetadata?: (BotMetadata.IBotRenderingMetadata|null);
/** BotMetadata botMetricsMetadata. */
public botMetricsMetadata?: (BotMetadata.IBotMetricsMetadata|null);
/** BotMetadata botLinkedAccountsMetadata. */
public botLinkedAccountsMetadata?: (BotMetadata.IBotLinkedAccountsMetadata|null);
/** BotMetadata richResponseSourcesMetadata. */
public richResponseSourcesMetadata?: (BotMetadata.IBotSourcesMetadata|null);
/** BotMetadata aiConversationContext. */
public aiConversationContext?: (Uint8Array|null);
/** BotMetadata botPromotionMessageMetadata. */
public botPromotionMessageMetadata?: (BotMetadata.IBotPromotionMessageMetadata|null);
/** BotMetadata botModeSelectionMetadata. */
public botModeSelectionMetadata?: (BotMetadata.IBotModeSelectionMetadata|null);
/** BotMetadata botQuotaMetadata. */
public botQuotaMetadata?: (BotMetadata.IBotQuotaMetadata|null);
/** BotMetadata botAgeCollectionMetadata. */
public botAgeCollectionMetadata?: (BotMetadata.IBotAgeCollectionMetadata|null);
/** BotMetadata conversationStarterPromptId. */
public conversationStarterPromptId?: (string|null);
/** BotMetadata botResponseId. */
public botResponseId?: (string|null);
/** BotMetadata verificationMetadata. */
public verificationMetadata?: (BotMetadata.IBotSignatureVerificationMetadata|null);
/** BotMetadata unifiedResponseMutation. */
public unifiedResponseMutation?: (BotMetadata.IBotUnifiedResponseMutation|null);
/** BotMetadata botMessageOriginMetadata. */
public botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null);
/** BotMetadata inThreadSurveyMetadata. */
public inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null);
/** BotMetadata _avatarMetadata. */
public _avatarMetadata?: "avatarMetadata";
/** BotMetadata _personaId. */
public _personaId?: "personaId";
/** BotMetadata _pluginMetadata. */
public _pluginMetadata?: "pluginMetadata";
/** BotMetadata _suggestedPromptMetadata. */
public _suggestedPromptMetadata?: "suggestedPromptMetadata";
/** BotMetadata _invokerJid. */
public _invokerJid?: "invokerJid";
/** BotMetadata _sessionMetadata. */
public _sessionMetadata?: "sessionMetadata";
/** BotMetadata _memuMetadata. */
public _memuMetadata?: "memuMetadata";
/** BotMetadata _timezone. */
public _timezone?: "timezone";
/** BotMetadata _reminderMetadata. */
public _reminderMetadata?: "reminderMetadata";
/** BotMetadata _modelMetadata. */
public _modelMetadata?: "modelMetadata";
/** BotMetadata _messageDisclaimerText. */
public _messageDisclaimerText?: "messageDisclaimerText";
/** BotMetadata _progressIndicatorMetadata. */
public _progressIndicatorMetadata?: "progressIndicatorMetadata";
/** BotMetadata _capabilityMetadata. */
public _capabilityMetadata?: "capabilityMetadata";
/** BotMetadata _imagineMetadata. */
public _imagineMetadata?: "imagineMetadata";
/** BotMetadata _memoryMetadata. */
public _memoryMetadata?: "memoryMetadata";
/** BotMetadata _renderingMetadata. */
public _renderingMetadata?: "renderingMetadata";
/** BotMetadata _botMetricsMetadata. */
public _botMetricsMetadata?: "botMetricsMetadata";
/** BotMetadata _botLinkedAccountsMetadata. */
public _botLinkedAccountsMetadata?: "botLinkedAccountsMetadata";
/** BotMetadata _richResponseSourcesMetadata. */
public _richResponseSourcesMetadata?: "richResponseSourcesMetadata";
/** BotMetadata _aiConversationContext. */
public _aiConversationContext?: "aiConversationContext";
/** BotMetadata _botPromotionMessageMetadata. */
public _botPromotionMessageMetadata?: "botPromotionMessageMetadata";
/** BotMetadata _botModeSelectionMetadata. */
public _botModeSelectionMetadata?: "botModeSelectionMetadata";
/** BotMetadata _botQuotaMetadata. */
public _botQuotaMetadata?: "botQuotaMetadata";
/** BotMetadata _botAgeCollectionMetadata. */
public _botAgeCollectionMetadata?: "botAgeCollectionMetadata";
/** BotMetadata _conversationStarterPromptId. */
public _conversationStarterPromptId?: "conversationStarterPromptId";
/** BotMetadata _botResponseId. */
public _botResponseId?: "botResponseId";
/** BotMetadata _verificationMetadata. */
public _verificationMetadata?: "verificationMetadata";
/** BotMetadata _unifiedResponseMutation. */
public _unifiedResponseMutation?: "unifiedResponseMutation";
/** BotMetadata _botMessageOriginMetadata. */
public _botMessageOriginMetadata?: "botMessageOriginMetadata";
/** BotMetadata _inThreadSurveyMetadata. */
public _inThreadSurveyMetadata?: "inThreadSurveyMetadata";
/**
* Creates a new BotMetadata instance using the specified properties.
* @param [properties] Properties to set
* @returns BotMetadata instance
*/
public static create(properties?: BotMetadata.IBotMetadata): BotMetadata.BotMetadata;
/**
* Encodes the specified BotMetadata message. Does not implicitly {@link BotMetadata.BotMetadata.verify|verify} messages.
* @param message BotMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: BotMetadata.IBotMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified BotMetadata message, length delimited. Does not implicitly {@link BotMetadata.BotMetadata.verify|verify} messages.
* @param message BotMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: BotMetadata.IBotMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a BotMetadata message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns BotMetadata
* @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): BotMetadata.BotMetadata;
/**
* Decodes a BotMetadata message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns BotMetadata
* @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)): BotMetadata.BotMetadata;
/**
* Verifies a BotMetadata 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 BotMetadata message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns BotMetadata
*/
public static fromObject(object: { [k: string]: any }): BotMetadata.BotMetadata;
/**
* Creates a plain object from a BotMetadata message. Also converts values to other types if specified.
* @param message BotMetadata
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: BotMetadata.BotMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this BotMetadata to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for BotMetadata
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a BotUnifiedResponseMutation. */
interface IBotUnifiedResponseMutation {
/** BotUnifiedResponseMutation sbsMetadata */
sbsMetadata?: (BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata|null);
}
/** Represents a BotUnifiedResponseMutation. */
class BotUnifiedResponseMutation implements IBotUnifiedResponseMutation {
/**
* Constructs a new BotUnifiedResponseMutation.
* @param [properties] Properties to set
*/
constructor(properties?: BotMetadata.IBotUnifiedResponseMutation);
/** BotUnifiedResponseMutation sbsMetadata. */
public sbsMetadata?: (BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata|null);
/** BotUnifiedResponseMutation _sbsMetadata. */
public _sbsMetadata?: "sbsMetadata";
/**
* Creates a new BotUnifiedResponseMutation instance using the specified properties.
* @param [properties] Properties to set
* @returns BotUnifiedResponseMutation instance
*/
public static create(properties?: BotMetadata.IBotUnifiedResponseMutation): BotMetadata.BotUnifiedResponseMutation;
/**
* Encodes the specified BotUnifiedResponseMutation message. Does not implicitly {@link BotMetadata.BotUnifiedResponseMutation.verify|verify} messages.
* @param message BotUnifiedResponseMutation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: BotMetadata.IBotUnifiedResponseMutation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified BotUnifiedResponseMutation message, length delimited. Does not implicitly {@link BotMetadata.BotUnifiedResponseMutation.verify|verify} messages.
* @param message BotUnifiedResponseMutation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: BotMetadata.IBotUnifiedResponseMutation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a BotUnifiedResponseMutation message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns BotUnifiedResponseMutation
* @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): BotMetadata.BotUnifiedResponseMutation;
/**
* Decodes a BotUnifiedResponseMutation message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns BotUnifiedResponseMutation
* @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)): BotMetadata.BotUnifiedResponseMutation;
/**
* Verifies a BotUnifiedResponseMutation 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 BotUnifiedResponseMutation message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns BotUnifiedResponseMutation
*/
public static fromObject(object: { [k: string]: any }): BotMetadata.BotUnifiedResponseMutation;
/**
* Creates a plain object from a BotUnifiedResponseMutation message. Also converts values to other types if specified.
* @param message BotUnifiedResponseMutation
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: BotMetadata.BotUnifiedResponseMutation, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this BotUnifiedResponseMutation to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for BotUnifiedResponseMutation
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace BotUnifiedResponseMutation {
/** Properties of a SideBySideMetadata. */
interface ISideBySideMetadata {
/** SideBySideMetadata primaryResponseId */
primaryResponseId?: (string|null);
}
/** Represents a SideBySideMetadata. */
class SideBySideMetadata implements ISideBySideMetadata {
/**
* Constructs a new SideBySideMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata);
/** SideBySideMetadata primaryResponseId. */
public primaryResponseId?: (string|null);
/** SideBySideMetadata _primaryResponseId. */
public _primaryResponseId?: "primaryResponseId";
/**
* Creates a new SideBySideMetadata instance using the specified properties.
* @param [properties] Properties to set
* @returns SideBySideMetadata instance
*/
public static create(properties?: BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata): BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata;
/**
* Encodes the specified SideBySideMetadata message. Does not implicitly {@link BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata.verify|verify} messages.
* @param message SideBySideMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified SideBySideMetadata message, length delimited. Does not implicitly {@link BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata.verify|verify} messages.
* @param message SideBySideMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a SideBySideMetadata message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns SideBySideMetadata
* @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): BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata;
/**
* Decodes a SideBySideMetadata message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns SideBySideMetadata
* @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)): BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata;
/**
* Verifies a SideBySideMetadata 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 SideBySideMetadata message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns SideBySideMetadata
*/
public static fromObject(object: { [k: string]: any }): BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata;
/**
* Creates a plain object from a SideBySideMetadata message. Also converts values to other types if specified.
* @param message SideBySideMetadata
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this SideBySideMetadata to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for SideBySideMetadata
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
/** Properties of a BotMessageOrigin. */
interface IBotMessageOrigin {
/** BotMessageOrigin type */
type?: (BotMetadata.BotMessageOrigin.BotMessageOriginType|null);
}
/** Represents a BotMessageOrigin. */
class BotMessageOrigin implements IBotMessageOrigin {
/**
* Constructs a new BotMessageOrigin.
* @param [properties] Properties to set
*/
constructor(properties?: BotMetadata.IBotMessageOrigin);
/** BotMessageOrigin type. */
public type?: (BotMetadata.BotMessageOrigin.BotMessageOriginType|null);
/** BotMessageOrigin _type. */
public _type?: "type";
/**
* Creates a new BotMessageOrigin instance using the specified properties.
* @param [properties] Properties to set
* @returns BotMessageOrigin instance
*/
public static create(properties?: BotMetadata.IBotMessageOrigin): BotMetadata.BotMessageOrigin;
/**
* Encodes the specified BotMessageOrigin message. Does not implicitly {@link BotMetadata.BotMessageOrigin.verify|verify} messages.
* @param message BotMessageOrigin message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: BotMetadata.IBotMessageOrigin, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified BotMessageOrigin message, length delimited. Does not implicitly {@link BotMetadata.BotMessageOrigin.verify|verify} messages.
* @param message BotMessageOrigin message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: BotMetadata.IBotMessageOrigin, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a BotMessageOrigin message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns BotMessageOrigin
* @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): BotMetadata.BotMessageOrigin;
/**
* Decodes a BotMessageOrigin message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns BotMessageOrigin
* @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)): BotMetadata.BotMessageOrigin;
/**
* Verifies a BotMessageOrigin 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 BotMessageOrigin message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns BotMessageOrigin
*/
public static fromObject(object: { [k: string]: any }): BotMetadata.BotMessageOrigin;
/**
* Creates a plain object from a BotMessageOrigin message. Also converts values to other types if specified.
* @param message BotMessageOrigin
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: BotMetadata.BotMessageOrigin, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this BotMessageOrigin to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for BotMessageOrigin
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace BotMessageOrigin {
/** BotMessageOriginType enum. */
enum BotMessageOriginType {
BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0
}
}
/** Properties of a BotMessageOriginMetadata. */
interface IBotMessageOriginMetadata {
/** BotMessageOriginMetadata origins */
origins?: (BotMetadata.IBotMessageOrigin[]|null);
}
/** Represents a BotMessageOriginMetadata. */
class BotMessageOriginMetadata implements IBotMessageOriginMetadata {
/**
* Constructs a new BotMessageOriginMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: BotMetadata.IBotMessageOriginMetadata);
/** BotMessageOriginMetadata origins. */
public origins: BotMetadata.IBotMessageOrigin[];
/**
* Creates a new BotMessageOriginMetadata instance using the specified properties.
* @param [properties] Properties to set
* @returns BotMessageOriginMetadata instance
*/
public static create(properties?: BotMetadata.IBotMessageOriginMetadata): BotMetadata.BotMessageOriginMetadata;
/**
* Encodes the specified BotMessageOriginMetadata message. Does not implicitly {@link BotMetadata.BotMessageOriginMetadata.verify|verify} messages.
* @param message BotMessageOriginMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: BotMetadata.IBotMessageOriginMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified BotMessageOriginMetadata message, length delimited. Does not implicitly {@link BotMetadata.BotMessageOriginMetadata.verify|verify} messages.
* @param message BotMessageOriginMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: BotMetadata.IBotMessageOriginMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a BotMessageOriginMetadata message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns BotMessageOriginMetadata
* @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): BotMetadata.BotMessageOriginMetadata;
/**
* Decodes a BotMessageOriginMetadata message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns BotMessageOriginMetadata
* @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)): BotMetadata.BotMessageOriginMetadata;
/**
* Verifies a BotMessageOriginMetadata 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 BotMessageOriginMetadata message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns BotMessageOriginMetadata
*/
public static fromObject(object: { [k: string]: any }): BotMetadata.BotMessageOriginMetadata;
/**
* Creates a plain object from a BotMessageOriginMetadata message. Also converts values to other types if specified.
* @param message BotMessageOriginMetadata
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: BotMetadata.BotMessageOriginMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this BotMessageOriginMetadata to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for BotMessageOriginMetadata
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an InThreadSurveyMetadata. */
interface IInThreadSurveyMetadata {
/** InThreadSurveyMetadata tessaSessionId */
tessaSessionId?: (string|null);
/** InThreadSurveyMetadata simonSessionId */
simonSessionId?: (string|null);
/** InThreadSurveyMetadata simonSurveyId */
simonSurveyId?: (string|null);
/** InThreadSurveyMetadata tessaRootId */
tessaRootId?: (string|null);
/** InThreadSurveyMetadata requestId */
requestId?: (string|null);
/** InThreadSurveyMetadata tessaEvent */
tessaEvent?: (string|null);
/** InThreadSurveyMetadata invitationHeaderText */
invitationHeaderText?: (string|null);
/** InThreadSurveyMetadata invitationBodyText */
invitationBodyText?: (string|null);
/** InThreadSurveyMetadata invitationCtaText */
invitationCtaText?: (string|null);
/** InThreadSurveyMetadata invitationCtaUrl */
invitationCtaUrl?: (string|null);
/** InThreadSurveyMetadata surveyTitle */
surveyTitle?: (string|null);
/** InThreadSurveyMetadata questions */
questions?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[]|null);
/** InThreadSurveyMetadata surveyContinueButtonText */
surveyContinueButtonText?: (string|null);
/** InThreadSurveyMetadata surveySubmitButtonText */
surveySubmitButtonText?: (string|null);
/** InThreadSurveyMetadata privacyStatementFull */
privacyStatementFull?: (string|null);
/** InThreadSurveyMetadata privacyStatementParts */
privacyStatementParts?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[]|null);
/** InThreadSurveyMetadata feedbackToastText */
feedbackToastText?: (string|null);
}
/** Represents an InThreadSurveyMetadata. */
class InThreadSurveyMetadata implements IInThreadSurveyMetadata {
/**
* Constructs a new InThreadSurveyMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: BotMetadata.IInThreadSurveyMetadata);
/** InThreadSurveyMetadata tessaSessionId. */
public tessaSessionId?: (string|null);
/** InThreadSurveyMetadata simonSessionId. */
public simonSessionId?: (string|null);
/** InThreadSurveyMetadata simonSurveyId. */
public simonSurveyId?: (string|null);
/** InThreadSurveyMetadata tessaRootId. */
public tessaRootId?: (string|null);
/** InThreadSurveyMetadata requestId. */
public requestId?: (string|null);
/** InThreadSurveyMetadata tessaEvent. */
public tessaEvent?: (string|null);
/** InThreadSurveyMetadata invitationHeaderText. */
public invitationHeaderText?: (string|null);
/** InThreadSurveyMetadata invitationBodyText. */
public invitationBodyText?: (string|null);
/** InThreadSurveyMetadata invitationCtaText. */
public invitationCtaText?: (string|null);
/** InThreadSurveyMetadata invitationCtaUrl. */
public invitationCtaUrl?: (string|null);
/** InThreadSurveyMetadata surveyTitle. */
public surveyTitle?: (string|null);
/** InThreadSurveyMetadata questions. */
public questions: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[];
/** InThreadSurveyMetadata surveyContinueButtonText. */
public surveyContinueButtonText?: (string|null);
/** InThreadSurveyMetadata surveySubmitButtonText. */
public surveySubmitButtonText?: (string|null);
/** InThreadSurveyMetadata privacyStatementFull. */
public privacyStatementFull?: (string|null);
/** InThreadSurveyMetadata privacyStatementParts. */
public privacyStatementParts: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[];
/** InThreadSurveyMetadata feedbackToastText. */
public feedbackToastText?: (string|null);
/** InThreadSurveyMetadata _tessaSessionId. */
public _tessaSessionId?: "tessaSessionId";
/** InThreadSurveyMetadata _simonSessionId. */
public _simonSessionId?: "simonSessionId";
/** InThreadSurveyMetadata _simonSurveyId. */
public _simonSurveyId?: "simonSurveyId";
/** InThreadSurveyMetadata _tessaRootId. */
public _tessaRootId?: "tessaRootId";
/** InThreadSurveyMetadata _requestId. */
public _requestId?: "requestId";
/** InThreadSurveyMetadata _tessaEvent. */
public _tessaEvent?: "tessaEvent";
/** InThreadSurveyMetadata _invitationHeaderText. */
public _invitationHeaderText?: "invitationHeaderText";
/** InThreadSurveyMetadata _invitationBodyText. */
public _invitationBodyText?: "invitationBodyText";
/** InThreadSurveyMetadata _invitationCtaText. */
public _invitationCtaText?: "invitationCtaText";
/** InThreadSurveyMetadata _invitationCtaUrl. */
public _invitationCtaUrl?: "invitationCtaUrl";
/** InThreadSurveyMetadata _surveyTitle. */
public _surveyTitle?: "surveyTitle";
/** InThreadSurveyMetadata _surveyContinueButtonText. */
public _surveyContinueButtonText?: "surveyContinueButtonText";
/** InThreadSurveyMetadata _surveySubmitButtonText. */
public _surveySubmitButtonText?: "surveySubmitButtonText";
/** InThreadSurveyMetadata _privacyStatementFull. */
public _privacyStatementFull?: "privacyStatementFull";
/** InThreadSurveyMetadata _feedbackToastText. */
public _feedbackToastText?: "feedbackToastText";
/**
* Creates a new InThreadSurveyMetadata instance using the specified properties.
* @param [properties] Properties to set
* @returns InThreadSurveyMetadata instance
*/
public static create(properties?: BotMetadata.IInThreadSurveyMetadata): BotMetadata.InThreadSurveyMetadata;
/**
* Encodes the specified InThreadSurveyMetadata message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
* @param message InThreadSurveyMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified InThreadSurveyMetadata message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
* @param message InThreadSurveyMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an InThreadSurveyMetadata message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns InThreadSurveyMetadata
* @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): BotMetadata.InThreadSurveyMetadata;
/**
* Decodes an InThreadSurveyMetadata message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns InThreadSurveyMetadata
* @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)): BotMetadata.InThreadSurveyMetadata;
/**
* Verifies an InThreadSurveyMetadata 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 InThreadSurveyMetadata message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns InThreadSurveyMetadata
*/
public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata;
/**
* Creates a plain object from an InThreadSurveyMetadata message. Also converts values to other types if specified.
* @param message InThreadSurveyMetadata
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: BotMetadata.InThreadSurveyMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this InThreadSurveyMetadata to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for InThreadSurveyMetadata
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace InThreadSurveyMetadata {
/** Properties of an InThreadSurveyOption. */
interface IInThreadSurveyOption {
/** InThreadSurveyOption stringValue */
stringValue?: (string|null);
/** InThreadSurveyOption numericValue */
numericValue?: (number|null);
/** InThreadSurveyOption textTranslated */
textTranslated?: (string|null);
}
/** Represents an InThreadSurveyOption. */
class InThreadSurveyOption implements IInThreadSurveyOption {
/**
* Constructs a new InThreadSurveyOption.
* @param [properties] Properties to set
*/
constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption);
/** InThreadSurveyOption stringValue. */
public stringValue?: (string|null);
/** InThreadSurveyOption numericValue. */
public numericValue?: (number|null);
/** InThreadSurveyOption textTranslated. */
public textTranslated?: (string|null);
/** InThreadSurveyOption _stringValue. */
public _stringValue?: "stringValue";
/** InThreadSurveyOption _numericValue. */
public _numericValue?: "numericValue";
/** InThreadSurveyOption _textTranslated. */
public _textTranslated?: "textTranslated";
/**
* Creates a new InThreadSurveyOption instance using the specified properties.
* @param [properties] Properties to set
* @returns InThreadSurveyOption instance
*/
public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
/**
* Encodes the specified InThreadSurveyOption message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
* @param message InThreadSurveyOption message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified InThreadSurveyOption message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
* @param message InThreadSurveyOption message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an InThreadSurveyOption message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns InThreadSurveyOption
* @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): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
/**
* Decodes an InThreadSurveyOption message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns InThreadSurveyOption
* @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)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
/**
* Verifies an InThreadSurveyOption 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 InThreadSurveyOption message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns InThreadSurveyOption
*/
public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
/**
* Creates a plain object from an InThreadSurveyOption message. Also converts values to other types if specified.
* @param message InThreadSurveyOption
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this InThreadSurveyOption to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for InThreadSurveyOption
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an InThreadSurveyPrivacyStatementPart. */
interface IInThreadSurveyPrivacyStatementPart {
/** InThreadSurveyPrivacyStatementPart text */
text?: (string|null);
/** InThreadSurveyPrivacyStatementPart url */
url?: (string|null);
}
/** Represents an InThreadSurveyPrivacyStatementPart. */
class InThreadSurveyPrivacyStatementPart implements IInThreadSurveyPrivacyStatementPart {
/**
* Constructs a new InThreadSurveyPrivacyStatementPart.
* @param [properties] Properties to set
*/
constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart);
/** InThreadSurveyPrivacyStatementPart text. */
public text?: (string|null);
/** InThreadSurveyPrivacyStatementPart url. */
public url?: (string|null);
/** InThreadSurveyPrivacyStatementPart _text. */
public _text?: "text";
/** InThreadSurveyPrivacyStatementPart _url. */
public _url?: "url";
/**
* Creates a new InThreadSurveyPrivacyStatementPart instance using the specified properties.
* @param [properties] Properties to set
* @returns InThreadSurveyPrivacyStatementPart instance
*/
public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStat