static_canvas_prompt.proto 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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.interactionmodel.prompt;
  16. import "google/api/field_behavior.proto";
  17. import "google/protobuf/struct.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "StaticCanvasPromptProto";
  21. option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt";
  22. // Represents a Interactive Canvas response to be sent to the user.
  23. // This can be used in conjunction with the `first_simple` field in the
  24. // containing prompt to speak to the user in addition to displaying a
  25. // interactive canvas response.
  26. message StaticCanvasPrompt {
  27. // Required. URL of the web view to load.
  28. string url = 1 [(google.api.field_behavior) = REQUIRED];
  29. // Optional. JSON data to be passed through to the immersive experience web page as an
  30. // event. If the `override` field in the containing prompt is `false` data
  31. // values defined in this Canvas prompt will be added after data values
  32. // defined in previous Canvas prompts.
  33. repeated google.protobuf.Value data = 2 [(google.api.field_behavior) = OPTIONAL];
  34. // Optional. A true value means that the mic won't be opened for capturing input after
  35. // this immersive response is presented to the user.
  36. bool suppress_mic = 3 [(google.api.field_behavior) = OPTIONAL];
  37. // Optional. If `true`, conversation related metadata is included and send back to the
  38. // canvas application.
  39. bool send_state_data_to_canvas_app = 5 [(google.api.field_behavior) = OPTIONAL];
  40. // Optional. If `true` the canvas application occupies the full screen and won't
  41. // have a header at the top. A toast message will also be displayed on the
  42. // loading screen that includes the Action's display name, the developer's
  43. // name, and instructions for exiting the Action. Default value: `false`.
  44. bool enable_full_screen = 6 [(google.api.field_behavior) = OPTIONAL];
  45. }