Debian Codegraph @

googleapis/actions/sdk/v2/conversation/canvas.pb.go

raw symbols SCIP
1 // Copyright 2025 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
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/actions/sdk/v2/conversation/prompt/content/canvas.proto
20
21 package conversation
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 structpb "google.golang.org/protobuf/types/known/structpb"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // Represents an Interactive Canvas response to be sent to the user.
40 // This can be used in conjunction with the "first_simple" field in the
41 // containing prompt to speak to the user in addition to displaying a
42 // interactive canvas response. The maximum size of the response is 50k bytes.
43 type Canvas struct {
44 state protoimpl.MessageState
45 sizeCache protoimpl.SizeCache
46 unknownFields protoimpl.UnknownFields
47
48 // URL of the interactive canvas web app to load. If not set, the url from
49 // current active canvas will be reused.
50 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
51 // Optional. JSON data to be passed through to the immersive experience
52 // web page as an event.
53 // If the "override" field in the containing prompt is "false" data values
54 // defined in this Canvas prompt will be added after data values defined in
55 // previous Canvas prompts.
56 Data []*structpb.Value `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"`
57 // Optional. Default value: false.
58 SuppressMic bool `protobuf:"varint,3,opt,name=suppress_mic,json=suppressMic,proto3" json:"suppress_mic,omitempty"`
59 // If `true` the canvas application occupies the full screen and won't
60 // have a header at the top. A toast message will also be displayed on the
61 // loading screen that includes the Action's display name, the developer's
62 // name, and instructions for exiting the Action. Default value: `false`.
63 EnableFullScreen bool `protobuf:"varint,8,opt,name=enable_full_screen,json=enableFullScreen,proto3" json:"enable_full_screen,omitempty"`
64 }
65
66 func (x *Canvas) Reset() {
67 *x = Canvas{}
68 if protoimpl.UnsafeEnabled {
69 mi := &file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_msgTypes[0]
70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71 ms.StoreMessageInfo(mi)
72 }
73 }
74
75 func (x *Canvas) String() string {
76 return protoimpl.X.MessageStringOf(x)
77 }
78
79 func (*Canvas) ProtoMessage() {}
80
81 func (x *Canvas) ProtoReflect() protoreflect.Message {
82 mi := &file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_msgTypes[0]
83 if protoimpl.UnsafeEnabled && x != nil {
84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
85 if ms.LoadMessageInfo() == nil {
86 ms.StoreMessageInfo(mi)
87 }
88 return ms
89 }
90 return mi.MessageOf(x)
91 }
92
93 // Deprecated: Use Canvas.ProtoReflect.Descriptor instead.
94 func (*Canvas) Descriptor() ([]byte, []int) {
95 return file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDescGZIP(), []int{0}
96 }
97
98 func (x *Canvas) GetUrl() string {
99 if x != nil {
100 return x.Url
101 }
102 return ""
103 }
104
105 func (x *Canvas) GetData() []*structpb.Value {
106 if x != nil {
107 return x.Data
108 }
109 return nil
110 }
111
112 func (x *Canvas) GetSuppressMic() bool {
113 if x != nil {
114 return x.SuppressMic
115 }
116 return false
117 }
118
119 func (x *Canvas) GetEnableFullScreen() bool {
120 if x != nil {
121 return x.EnableFullScreen
122 }
123 return false
124 }
125
126 var File_google_actions_sdk_v2_conversation_prompt_content_canvas_proto protoreflect.FileDescriptor
127
128 var file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDesc = []byte{
129 0x0a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
130 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
131 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x74,
132 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x61, 0x6e, 0x76, 0x61, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
133 0x12, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
134 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
135 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
136 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f,
137 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x76, 0x61, 0x73, 0x12, 0x10, 0x0a,
138 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12,
139 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e,
140 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
141 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x73,
142 0x75, 0x70, 0x70, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6d, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28,
143 0x08, 0x52, 0x0b, 0x73, 0x75, 0x70, 0x70, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x69, 0x63, 0x12, 0x2c,
144 0x0a, 0x12, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x73, 0x63,
145 0x72, 0x65, 0x65, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x65, 0x6e, 0x61, 0x62,
146 0x6c, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x42, 0x87, 0x01, 0x0a,
147 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69,
148 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65,
149 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0b, 0x43, 0x61, 0x6e, 0x76, 0x61, 0x73, 0x50,
150 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
151 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
152 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63,
153 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e,
154 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72,
155 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
156 }
157
158 var (
159 file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDescOnce sync.Once
160 file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDescData = file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDesc
161 )
162
163 func file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDescGZIP() []byte {
164 file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDescOnce.Do(func() {
165 file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDescData)
166 })
167 return file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDescData
168 }
169
170 var file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
171 var file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_goTypes = []interface{}{
172 (*Canvas)(nil), // 0: google.actions.sdk.v2.conversation.Canvas
173 (*structpb.Value)(nil), // 1: google.protobuf.Value
174 }
175 var file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_depIdxs = []int32{
176 1, // 0: google.actions.sdk.v2.conversation.Canvas.data:type_name -> google.protobuf.Value
177 1, // [1:1] is the sub-list for method output_type
178 1, // [1:1] is the sub-list for method input_type
179 1, // [1:1] is the sub-list for extension type_name
180 1, // [1:1] is the sub-list for extension extendee
181 0, // [0:1] is the sub-list for field type_name
182 }
183
184 func init() { file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_init() }
185 func file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_init() {
186 if File_google_actions_sdk_v2_conversation_prompt_content_canvas_proto != nil {
187 return
188 }
189 if !protoimpl.UnsafeEnabled {
190 file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
191 switch v := v.(*Canvas); i {
192 case 0:
193 return &v.state
194 case 1:
195 return &v.sizeCache
196 case 2:
197 return &v.unknownFields
198 default:
199 return nil
200 }
201 }
202 }
203 type x struct{}
204 out := protoimpl.TypeBuilder{
205 File: protoimpl.DescBuilder{
206 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
207 RawDescriptor: file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDesc,
208 NumEnums: 0,
209 NumMessages: 1,
210 NumExtensions: 0,
211 NumServices: 0,
212 },
213 GoTypes: file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_goTypes,
214 DependencyIndexes: file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_depIdxs,
215 MessageInfos: file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_msgTypes,
216 }.Build()
217 File_google_actions_sdk_v2_conversation_prompt_content_canvas_proto = out.File
218 file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_rawDesc = nil
219 file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_goTypes = nil
220 file_google_actions_sdk_v2_conversation_prompt_content_canvas_proto_depIdxs = nil
221 }