canvas.proto 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.conversation;
  16. import "google/protobuf/struct.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "CanvasProto";
  20. option java_package = "com.google.actions.sdk.v2.conversation";
  21. // Represents an Interactive Canvas response to be sent to the user.
  22. // This can be used in conjunction with the "first_simple" field in the
  23. // containing prompt to speak to the user in addition to displaying a
  24. // interactive canvas response. The maximum size of the response is 50k bytes.
  25. message Canvas {
  26. // URL of the interactive canvas web app to load. If not set, the url from
  27. // current active canvas will be reused.
  28. string url = 1;
  29. // Optional. JSON data to be passed through to the immersive experience
  30. // web page as an event.
  31. // If the "override" field in the containing prompt is "false" data values
  32. // defined in this Canvas prompt will be added after data values defined in
  33. // previous Canvas prompts.
  34. repeated google.protobuf.Value data = 4;
  35. // Optional. Default value: false.
  36. bool suppress_mic = 3;
  37. // If `true` the canvas application occupies the full screen and won't
  38. // have a header at the top. A toast message will also be displayed on the
  39. // loading screen that includes the Action's display name, the developer's
  40. // name, and instructions for exiting the Action. Default value: `false`.
  41. bool enable_full_screen = 8;
  42. }