action.proto 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.actions.sdk.v2;
  16. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "ActionProto";
  19. option java_package = "com.google.actions.sdk.v2";
  20. // Represents the list of Actions defined in a project.
  21. message Actions {
  22. // Defines the engagement mechanisms associated with this action. This
  23. // allows end users to subscribe to push notification and daily update.
  24. message Engagement {
  25. // Defines push notification settings that this engagement supports.
  26. message PushNotification {
  27. }
  28. // Defines daily update settings that this engagement supports.
  29. message DailyUpdate {
  30. }
  31. // Indicates whether sharing links is enabled for this action and the
  32. // corresponding settings. Action links are used to deep link a user into a
  33. // specific action.
  34. // ActionLink is deprecated. Use AssistantLink instead.
  35. message ActionLink {
  36. option deprecated = true;
  37. // User friendly display title for the link.
  38. string title = 1;
  39. }
  40. // Indicates whether sharing links is enabled for this action and the
  41. // corresponding settings. Assistant links are used to deep link a user into
  42. // a specific action.
  43. message AssistantLink {
  44. // User friendly display title for the link.
  45. string title = 1;
  46. }
  47. // The title of the engagement that will be sent to end users asking for
  48. // their permission to receive updates. The prompt sent to end users for
  49. // daily updates will look like "What time would you like me to send your
  50. // daily {title}" and for push notifications will look like
  51. // "Is it ok if I send push notifications for {title}".
  52. // **This field is localizable.**
  53. string title = 1;
  54. // Push notification settings that this engagement supports.
  55. PushNotification push_notification = 2;
  56. // Recurring update settings that this engagement supports.
  57. oneof recurring_update {
  58. // Daily update settings that this engagement supports.
  59. DailyUpdate daily_update = 3;
  60. }
  61. // Link config for an action which determines whether sharing links is
  62. // enabled for the action and if so, contains the user friendly display name
  63. // for the link.
  64. // ActionLink is deprecated. Use AssistantLink instead.
  65. ActionLink action_link = 4 [deprecated = true];
  66. // Link config for an action which determines whether sharing links is
  67. // enabled for the action and if so, contains the user friendly display name
  68. // for the link.
  69. AssistantLink assistant_link = 6;
  70. }
  71. // Details regarding a custom action.
  72. message CustomAction {
  73. // Engagement mechanisms associated with the action to help end users
  74. // subscribe to push notifications and daily updates.
  75. // Note that the intent name specified in daily updates/push notifications
  76. // slot config needs to match the intent corresponding to this action for
  77. // end users to subscribe to these updates.
  78. Engagement engagement = 2;
  79. }
  80. // Map from intents to custom Actions to configure invocation for the project.
  81. // The invocation intents could either be system or custom intents defined
  82. // in the "custom/intents/" package. All intents defined here (system
  83. // intents & custom intents) must have a corresponding intent file in the
  84. // "custom/global/" package.
  85. map<string, CustomAction> custom = 3;
  86. }