UNPKG

@assistant/actions

Version:
889 lines (736 loc) 1.16 MB
// Copyright 2021 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 * as Long from "long"; import {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { /** Namespace actions. */ namespace actions { /** Namespace sdk. */ namespace sdk { /** Namespace v2. */ namespace v2 { /** Properties of an AccountLinking. */ interface IAccountLinking { /** AccountLinking enableAccountCreation */ enableAccountCreation?: (boolean|null); /** AccountLinking linkingType */ linkingType?: (google.actions.sdk.v2.AccountLinking.LinkingType|keyof typeof google.actions.sdk.v2.AccountLinking.LinkingType|null); /** AccountLinking authGrantType */ authGrantType?: (google.actions.sdk.v2.AccountLinking.AuthGrantType|keyof typeof google.actions.sdk.v2.AccountLinking.AuthGrantType|null); /** AccountLinking appClientId */ appClientId?: (string|null); /** AccountLinking authorizationUrl */ authorizationUrl?: (string|null); /** AccountLinking tokenUrl */ tokenUrl?: (string|null); /** AccountLinking scopes */ scopes?: (string[]|null); /** AccountLinking learnMoreUrl */ learnMoreUrl?: (string|null); /** AccountLinking useBasicAuthHeader */ useBasicAuthHeader?: (boolean|null); } /** Represents an AccountLinking. */ class AccountLinking implements IAccountLinking { /** * Constructs a new AccountLinking. * @param [properties] Properties to set */ constructor(properties?: google.actions.sdk.v2.IAccountLinking); /** AccountLinking enableAccountCreation. */ public enableAccountCreation: boolean; /** AccountLinking linkingType. */ public linkingType: (google.actions.sdk.v2.AccountLinking.LinkingType|keyof typeof google.actions.sdk.v2.AccountLinking.LinkingType); /** AccountLinking authGrantType. */ public authGrantType: (google.actions.sdk.v2.AccountLinking.AuthGrantType|keyof typeof google.actions.sdk.v2.AccountLinking.AuthGrantType); /** AccountLinking appClientId. */ public appClientId: string; /** AccountLinking authorizationUrl. */ public authorizationUrl: string; /** AccountLinking tokenUrl. */ public tokenUrl: string; /** AccountLinking scopes. */ public scopes: string[]; /** AccountLinking learnMoreUrl. */ public learnMoreUrl: string; /** AccountLinking useBasicAuthHeader. */ public useBasicAuthHeader: boolean; /** * Creates a new AccountLinking instance using the specified properties. * @param [properties] Properties to set * @returns AccountLinking instance */ public static create(properties?: google.actions.sdk.v2.IAccountLinking): google.actions.sdk.v2.AccountLinking; /** * Encodes the specified AccountLinking message. Does not implicitly {@link google.actions.sdk.v2.AccountLinking.verify|verify} messages. * @param message AccountLinking message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.actions.sdk.v2.IAccountLinking, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AccountLinking message, length delimited. Does not implicitly {@link google.actions.sdk.v2.AccountLinking.verify|verify} messages. * @param message AccountLinking message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.actions.sdk.v2.IAccountLinking, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AccountLinking message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AccountLinking * @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.actions.sdk.v2.AccountLinking; /** * Decodes an AccountLinking message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AccountLinking * @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.actions.sdk.v2.AccountLinking; /** * Verifies an AccountLinking 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 AccountLinking message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AccountLinking */ public static fromObject(object: { [k: string]: any }): google.actions.sdk.v2.AccountLinking; /** * Creates a plain object from an AccountLinking message. Also converts values to other types if specified. * @param message AccountLinking * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.actions.sdk.v2.AccountLinking, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AccountLinking to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace AccountLinking { /** LinkingType enum. */ enum LinkingType { LINKING_TYPE_UNSPECIFIED = 0, GOOGLE_SIGN_IN = 1, OAUTH_AND_GOOGLE_SIGN_IN = 2, OAUTH = 3 } /** AuthGrantType enum. */ enum AuthGrantType { AUTH_GRANT_TYPE_UNSPECIFIED = 0, AUTH_CODE = 1, IMPLICIT = 2 } } /** Properties of an AccountLinkingSecret. */ interface IAccountLinkingSecret { /** AccountLinkingSecret encryptedClientSecret */ encryptedClientSecret?: (Uint8Array|string|null); /** AccountLinkingSecret encryptionKeyVersion */ encryptionKeyVersion?: (string|null); } /** Represents an AccountLinkingSecret. */ class AccountLinkingSecret implements IAccountLinkingSecret { /** * Constructs a new AccountLinkingSecret. * @param [properties] Properties to set */ constructor(properties?: google.actions.sdk.v2.IAccountLinkingSecret); /** AccountLinkingSecret encryptedClientSecret. */ public encryptedClientSecret: (Uint8Array|string); /** AccountLinkingSecret encryptionKeyVersion. */ public encryptionKeyVersion: string; /** * Creates a new AccountLinkingSecret instance using the specified properties. * @param [properties] Properties to set * @returns AccountLinkingSecret instance */ public static create(properties?: google.actions.sdk.v2.IAccountLinkingSecret): google.actions.sdk.v2.AccountLinkingSecret; /** * Encodes the specified AccountLinkingSecret message. Does not implicitly {@link google.actions.sdk.v2.AccountLinkingSecret.verify|verify} messages. * @param message AccountLinkingSecret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.actions.sdk.v2.IAccountLinkingSecret, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AccountLinkingSecret message, length delimited. Does not implicitly {@link google.actions.sdk.v2.AccountLinkingSecret.verify|verify} messages. * @param message AccountLinkingSecret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.actions.sdk.v2.IAccountLinkingSecret, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AccountLinkingSecret message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AccountLinkingSecret * @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.actions.sdk.v2.AccountLinkingSecret; /** * Decodes an AccountLinkingSecret message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AccountLinkingSecret * @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.actions.sdk.v2.AccountLinkingSecret; /** * Verifies an AccountLinkingSecret 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 AccountLinkingSecret message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AccountLinkingSecret */ public static fromObject(object: { [k: string]: any }): google.actions.sdk.v2.AccountLinkingSecret; /** * Creates a plain object from an AccountLinkingSecret message. Also converts values to other types if specified. * @param message AccountLinkingSecret * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.actions.sdk.v2.AccountLinkingSecret, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AccountLinkingSecret to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an Actions. */ interface IActions { /** Actions custom */ custom?: ({ [k: string]: google.actions.sdk.v2.Actions.ICustomAction }|null); } /** Represents an Actions. */ class Actions implements IActions { /** * Constructs a new Actions. * @param [properties] Properties to set */ constructor(properties?: google.actions.sdk.v2.IActions); /** Actions custom. */ public custom: { [k: string]: google.actions.sdk.v2.Actions.ICustomAction }; /** * Creates a new Actions instance using the specified properties. * @param [properties] Properties to set * @returns Actions instance */ public static create(properties?: google.actions.sdk.v2.IActions): google.actions.sdk.v2.Actions; /** * Encodes the specified Actions message. Does not implicitly {@link google.actions.sdk.v2.Actions.verify|verify} messages. * @param message Actions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.actions.sdk.v2.IActions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Actions message, length delimited. Does not implicitly {@link google.actions.sdk.v2.Actions.verify|verify} messages. * @param message Actions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.actions.sdk.v2.IActions, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Actions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Actions * @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.actions.sdk.v2.Actions; /** * Decodes an Actions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Actions * @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.actions.sdk.v2.Actions; /** * Verifies an Actions 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 Actions message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Actions */ public static fromObject(object: { [k: string]: any }): google.actions.sdk.v2.Actions; /** * Creates a plain object from an Actions message. Also converts values to other types if specified. * @param message Actions * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.actions.sdk.v2.Actions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Actions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace Actions { /** Properties of an Engagement. */ interface IEngagement { /** Engagement title */ title?: (string|null); /** Engagement pushNotification */ pushNotification?: (google.actions.sdk.v2.Actions.Engagement.IPushNotification|null); /** Engagement dailyUpdate */ dailyUpdate?: (google.actions.sdk.v2.Actions.Engagement.IDailyUpdate|null); /** Engagement actionLink */ actionLink?: (google.actions.sdk.v2.Actions.Engagement.IActionLink|null); /** Engagement assistantLink */ assistantLink?: (google.actions.sdk.v2.Actions.Engagement.IAssistantLink|null); } /** Represents an Engagement. */ class Engagement implements IEngagement { /** * Constructs a new Engagement. * @param [properties] Properties to set */ constructor(properties?: google.actions.sdk.v2.Actions.IEngagement); /** Engagement title. */ public title: string; /** Engagement pushNotification. */ public pushNotification?: (google.actions.sdk.v2.Actions.Engagement.IPushNotification|null); /** Engagement dailyUpdate. */ public dailyUpdate?: (google.actions.sdk.v2.Actions.Engagement.IDailyUpdate|null); /** Engagement actionLink. */ public actionLink?: (google.actions.sdk.v2.Actions.Engagement.IActionLink|null); /** Engagement assistantLink. */ public assistantLink?: (google.actions.sdk.v2.Actions.Engagement.IAssistantLink|null); /** Engagement recurringUpdate. */ public recurringUpdate?: "dailyUpdate"; /** * Creates a new Engagement instance using the specified properties. * @param [properties] Properties to set * @returns Engagement instance */ public static create(properties?: google.actions.sdk.v2.Actions.IEngagement): google.actions.sdk.v2.Actions.Engagement; /** * Encodes the specified Engagement message. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.verify|verify} messages. * @param message Engagement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.actions.sdk.v2.Actions.IEngagement, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Engagement message, length delimited. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.verify|verify} messages. * @param message Engagement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.actions.sdk.v2.Actions.IEngagement, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Engagement message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Engagement * @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.actions.sdk.v2.Actions.Engagement; /** * Decodes an Engagement message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Engagement * @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.actions.sdk.v2.Actions.Engagement; /** * Verifies an Engagement 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 Engagement message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Engagement */ public static fromObject(object: { [k: string]: any }): google.actions.sdk.v2.Actions.Engagement; /** * Creates a plain object from an Engagement message. Also converts values to other types if specified. * @param message Engagement * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.actions.sdk.v2.Actions.Engagement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Engagement to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace Engagement { /** Properties of a PushNotification. */ interface IPushNotification { } /** Represents a PushNotification. */ class PushNotification implements IPushNotification { /** * Constructs a new PushNotification. * @param [properties] Properties to set */ constructor(properties?: google.actions.sdk.v2.Actions.Engagement.IPushNotification); /** * Creates a new PushNotification instance using the specified properties. * @param [properties] Properties to set * @returns PushNotification instance */ public static create(properties?: google.actions.sdk.v2.Actions.Engagement.IPushNotification): google.actions.sdk.v2.Actions.Engagement.PushNotification; /** * Encodes the specified PushNotification message. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.PushNotification.verify|verify} messages. * @param message PushNotification message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.actions.sdk.v2.Actions.Engagement.IPushNotification, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PushNotification message, length delimited. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.PushNotification.verify|verify} messages. * @param message PushNotification message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.actions.sdk.v2.Actions.Engagement.IPushNotification, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PushNotification message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns PushNotification * @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.actions.sdk.v2.Actions.Engagement.PushNotification; /** * Decodes a PushNotification message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns PushNotification * @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.actions.sdk.v2.Actions.Engagement.PushNotification; /** * Verifies a PushNotification 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 PushNotification message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns PushNotification */ public static fromObject(object: { [k: string]: any }): google.actions.sdk.v2.Actions.Engagement.PushNotification; /** * Creates a plain object from a PushNotification message. Also converts values to other types if specified. * @param message PushNotification * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.actions.sdk.v2.Actions.Engagement.PushNotification, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PushNotification to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a DailyUpdate. */ interface IDailyUpdate { } /** Represents a DailyUpdate. */ class DailyUpdate implements IDailyUpdate { /** * Constructs a new DailyUpdate. * @param [properties] Properties to set */ constructor(properties?: google.actions.sdk.v2.Actions.Engagement.IDailyUpdate); /** * Creates a new DailyUpdate instance using the specified properties. * @param [properties] Properties to set * @returns DailyUpdate instance */ public static create(properties?: google.actions.sdk.v2.Actions.Engagement.IDailyUpdate): google.actions.sdk.v2.Actions.Engagement.DailyUpdate; /** * Encodes the specified DailyUpdate message. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.DailyUpdate.verify|verify} messages. * @param message DailyUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.actions.sdk.v2.Actions.Engagement.IDailyUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified DailyUpdate message, length delimited. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.DailyUpdate.verify|verify} messages. * @param message DailyUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.actions.sdk.v2.Actions.Engagement.IDailyUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DailyUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns DailyUpdate * @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.actions.sdk.v2.Actions.Engagement.DailyUpdate; /** * Decodes a DailyUpdate message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns DailyUpdate * @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.actions.sdk.v2.Actions.Engagement.DailyUpdate; /** * Verifies a DailyUpdate 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 DailyUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns DailyUpdate */ public static fromObject(object: { [k: string]: any }): google.actions.sdk.v2.Actions.Engagement.DailyUpdate; /** * Creates a plain object from a DailyUpdate message. Also converts values to other types if specified. * @param message DailyUpdate * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.actions.sdk.v2.Actions.Engagement.DailyUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DailyUpdate to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an ActionLink. */ interface IActionLink { /** ActionLink title */ title?: (string|null); } /** Represents an ActionLink. */ class ActionLink implements IActionLink { /** * Constructs a new ActionLink. * @param [properties] Properties to set */ constructor(properties?: google.actions.sdk.v2.Actions.Engagement.IActionLink); /** ActionLink title. */ public title: string; /** * Creates a new ActionLink instance using the specified properties. * @param [properties] Properties to set * @returns ActionLink instance */ public static create(properties?: google.actions.sdk.v2.Actions.Engagement.IActionLink): google.actions.sdk.v2.Actions.Engagement.ActionLink; /** * Encodes the specified ActionLink message. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.ActionLink.verify|verify} messages. * @param message ActionLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.actions.sdk.v2.Actions.Engagement.IActionLink, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ActionLink message, length delimited. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.ActionLink.verify|verify} messages. * @param message ActionLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.actions.sdk.v2.Actions.Engagement.IActionLink, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ActionLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ActionLink * @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.actions.sdk.v2.Actions.Engagement.ActionLink; /** * Decodes an ActionLink message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ActionLink * @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.actions.sdk.v2.Actions.Engagement.ActionLink; /** * Verifies an ActionLink 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 ActionLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ActionLink */ public static fromObject(object: { [k: string]: any }): google.actions.sdk.v2.Actions.Engagement.ActionLink; /** * Creates a plain object from an ActionLink message. Also converts values to other types if specified. * @param message ActionLink * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.actions.sdk.v2.Actions.Engagement.ActionLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ActionLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an AssistantLink. */ interface IAssistantLink { /** AssistantLink title */ title?: (string|null); } /** Represents an AssistantLink. */ class AssistantLink implements IAssistantLink { /** * Constructs a new AssistantLink. * @param [properties] Properties to set */ constructor(properties?: google.actions.sdk.v2.Actions.Engagement.IAssistantLink); /** AssistantLink title. */ public title: string; /** * Creates a new AssistantLink instance using the specified properties. * @param [properties] Properties to set * @returns AssistantLink instance */ public static create(properties?: google.actions.sdk.v2.Actions.Engagement.IAssistantLink): google.actions.sdk.v2.Actions.Engagement.AssistantLink; /** * Encodes the specified AssistantLink message. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.AssistantLink.verify|verify} messages. * @param message AssistantLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.actions.sdk.v2.Actions.Engagement.IAssistantLink, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AssistantLink message, length delimited. Does not implicitly {@link google.actions.sdk.v2.Actions.Engagement.AssistantLink.verify|verify} messages. * @param message AssistantLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.actions.sdk.v2.Actions.Engagement.IAssistantLink, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AssistantLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AssistantLink * @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.actions.sdk.v2.Actions.Engagement.AssistantLink; /** * Decodes an AssistantLink message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AssistantLink * @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.actions.sdk.v2.Actions.Engagement.AssistantLink; /** * Verifies an AssistantLink 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 AssistantLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AssistantLink */ public static fromObject(object: { [k: string]: any }): google.actions.sdk.v2.Actions.Engagement.AssistantLink; /** * Creates a plain object from an AssistantLink message. Also converts values to other types if specified. * @param message AssistantLink * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.actions.sdk.v2.Actions.Engagement.AssistantLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AssistantLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } /** Properties of a CustomAction. */ interface ICustomAction { /** CustomAction engagement */ engagement?: (google.actions.sdk.v2.Actions.IEngagement|null); } /** Represents a CustomAction. */ class CustomAction implements ICustomAction { /** * Constructs a new CustomAction. * @param [properties] Properties to set */ constructor(properties?: google.actions.sdk.v2.Actions.ICustomAction); /** CustomAction engagement. */ public engagement?: (google.actions.sdk.v2.Actions.IEngagement|null); /** * Creates a new CustomAction instance using the specified properties. * @param [properties] Properties to set * @returns CustomAction instance */ public static create(properties?: google.actions.sdk.v2.Actions.ICustomAction): google.actions.sdk.v2.Actions.CustomAction; /** * Encodes the specified CustomAction message. Does not implicitly {@link google.actions.sdk.v2.Actions.CustomAction.verify|verify} messages. * @param message CustomAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.actions.sdk.v2.Actions.ICustomAction, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CustomAction message, length delimited. Does not implicitly {@link google.actions.sdk.v2.Actions.CustomAction.verify|verify} messages. * @param message CustomAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.actions.sdk.v2.Actions.ICustomAction, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CustomAction message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CustomAction * @throws {Error} If the payload is not a reader or valid buffer * @throws