Debian Codegraph @

googleapis/apps/script/type/extension_point.pb.go

raw
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/apps/script/type/extension_point.proto
20
21 package _type
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 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
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 // Common format for declaring a menu item, or button, that appears within a
40 // host app.
41 type MenuItemExtensionPoint struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46 // Required. The endpoint to execute when this extension point is
47 // activated.
48 RunFunction string `protobuf:"bytes,1,opt,name=run_function,json=runFunction,proto3" json:"run_function,omitempty"`
49 // Required. User-visible text describing the action taken by activating this
50 // extension point. For example, "Insert invoice".
51 Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
52 // The URL for the logo image shown in the add-on toolbar.
53 //
54 // If not set, defaults to the add-on's primary logo URL.
55 LogoUrl string `protobuf:"bytes,3,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
56 }
57
58 func (x *MenuItemExtensionPoint) Reset() {
59 *x = MenuItemExtensionPoint{}
60 if protoimpl.UnsafeEnabled {
61 mi := &file_google_apps_script_type_extension_point_proto_msgTypes[0]
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 ms.StoreMessageInfo(mi)
64 }
65 }
66
67 func (x *MenuItemExtensionPoint) String() string {
68 return protoimpl.X.MessageStringOf(x)
69 }
70
71 func (*MenuItemExtensionPoint) ProtoMessage() {}
72
73 func (x *MenuItemExtensionPoint) ProtoReflect() protoreflect.Message {
74 mi := &file_google_apps_script_type_extension_point_proto_msgTypes[0]
75 if protoimpl.UnsafeEnabled && x != nil {
76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 if ms.LoadMessageInfo() == nil {
78 ms.StoreMessageInfo(mi)
79 }
80 return ms
81 }
82 return mi.MessageOf(x)
83 }
84
85 // Deprecated: Use MenuItemExtensionPoint.ProtoReflect.Descriptor instead.
86 func (*MenuItemExtensionPoint) Descriptor() ([]byte, []int) {
87 return file_google_apps_script_type_extension_point_proto_rawDescGZIP(), []int{0}
88 }
89
90 func (x *MenuItemExtensionPoint) GetRunFunction() string {
91 if x != nil {
92 return x.RunFunction
93 }
94 return ""
95 }
96
97 func (x *MenuItemExtensionPoint) GetLabel() string {
98 if x != nil {
99 return x.Label
100 }
101 return ""
102 }
103
104 func (x *MenuItemExtensionPoint) GetLogoUrl() string {
105 if x != nil {
106 return x.LogoUrl
107 }
108 return ""
109 }
110
111 // Common format for declaring an add-on's home-page view.
112 type HomepageExtensionPoint struct {
113 state protoimpl.MessageState
114 sizeCache protoimpl.SizeCache
115 unknownFields protoimpl.UnknownFields
116
117 // Required. The endpoint to execute when this extension point is
118 // activated.
119 RunFunction string `protobuf:"bytes,1,opt,name=run_function,json=runFunction,proto3" json:"run_function,omitempty"`
120 // Optional. If set to `false`, disable the home-page view in this context.
121 //
122 // Defaults to `true` if unset.
123 //
124 // If an add-ons custom home-page view is disabled, an autogenerated overview
125 // card will be provided for users instead.
126 Enabled *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
127 }
128
129 func (x *HomepageExtensionPoint) Reset() {
130 *x = HomepageExtensionPoint{}
131 if protoimpl.UnsafeEnabled {
132 mi := &file_google_apps_script_type_extension_point_proto_msgTypes[1]
133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
134 ms.StoreMessageInfo(mi)
135 }
136 }
137
138 func (x *HomepageExtensionPoint) String() string {
139 return protoimpl.X.MessageStringOf(x)
140 }
141
142 func (*HomepageExtensionPoint) ProtoMessage() {}
143
144 func (x *HomepageExtensionPoint) ProtoReflect() protoreflect.Message {
145 mi := &file_google_apps_script_type_extension_point_proto_msgTypes[1]
146 if protoimpl.UnsafeEnabled && x != nil {
147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
148 if ms.LoadMessageInfo() == nil {
149 ms.StoreMessageInfo(mi)
150 }
151 return ms
152 }
153 return mi.MessageOf(x)
154 }
155
156 // Deprecated: Use HomepageExtensionPoint.ProtoReflect.Descriptor instead.
157 func (*HomepageExtensionPoint) Descriptor() ([]byte, []int) {
158 return file_google_apps_script_type_extension_point_proto_rawDescGZIP(), []int{1}
159 }
160
161 func (x *HomepageExtensionPoint) GetRunFunction() string {
162 if x != nil {
163 return x.RunFunction
164 }
165 return ""
166 }
167
168 func (x *HomepageExtensionPoint) GetEnabled() *wrapperspb.BoolValue {
169 if x != nil {
170 return x.Enabled
171 }
172 return nil
173 }
174
175 // Format for declaring a universal action menu item extension point.
176 type UniversalActionExtensionPoint struct {
177 state protoimpl.MessageState
178 sizeCache protoimpl.SizeCache
179 unknownFields protoimpl.UnknownFields
180
181 // Required. User-visible text describing the action taken by activating this
182 // extension point, for example, "Add a new contact".
183 Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
184 // Required. The action type supported on a universal action menu item. It
185 // could be either a link to open or an endpoint to execute.
186 //
187 // Types that are assignable to ActionType:
188 //
189 // *UniversalActionExtensionPoint_OpenLink
190 // *UniversalActionExtensionPoint_RunFunction
191 ActionType isUniversalActionExtensionPoint_ActionType `protobuf_oneof:"action_type"`
192 }
193
194 func (x *UniversalActionExtensionPoint) Reset() {
195 *x = UniversalActionExtensionPoint{}
196 if protoimpl.UnsafeEnabled {
197 mi := &file_google_apps_script_type_extension_point_proto_msgTypes[2]
198 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
199 ms.StoreMessageInfo(mi)
200 }
201 }
202
203 func (x *UniversalActionExtensionPoint) String() string {
204 return protoimpl.X.MessageStringOf(x)
205 }
206
207 func (*UniversalActionExtensionPoint) ProtoMessage() {}
208
209 func (x *UniversalActionExtensionPoint) ProtoReflect() protoreflect.Message {
210 mi := &file_google_apps_script_type_extension_point_proto_msgTypes[2]
211 if protoimpl.UnsafeEnabled && x != nil {
212 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
213 if ms.LoadMessageInfo() == nil {
214 ms.StoreMessageInfo(mi)
215 }
216 return ms
217 }
218 return mi.MessageOf(x)
219 }
220
221 // Deprecated: Use UniversalActionExtensionPoint.ProtoReflect.Descriptor instead.
222 func (*UniversalActionExtensionPoint) Descriptor() ([]byte, []int) {
223 return file_google_apps_script_type_extension_point_proto_rawDescGZIP(), []int{2}
224 }
225
226 func (x *UniversalActionExtensionPoint) GetLabel() string {
227 if x != nil {
228 return x.Label
229 }
230 return ""
231 }
232
233 func (m *UniversalActionExtensionPoint) GetActionType() isUniversalActionExtensionPoint_ActionType {
234 if m != nil {
235 return m.ActionType
236 }
237 return nil
238 }
239
240 func (x *UniversalActionExtensionPoint) GetOpenLink() string {
241 if x, ok := x.GetActionType().(*UniversalActionExtensionPoint_OpenLink); ok {
242 return x.OpenLink
243 }
244 return ""
245 }
246
247 func (x *UniversalActionExtensionPoint) GetRunFunction() string {
248 if x, ok := x.GetActionType().(*UniversalActionExtensionPoint_RunFunction); ok {
249 return x.RunFunction
250 }
251 return ""
252 }
253
254 type isUniversalActionExtensionPoint_ActionType interface {
255 isUniversalActionExtensionPoint_ActionType()
256 }
257
258 type UniversalActionExtensionPoint_OpenLink struct {
259 // URL to be opened by the UniversalAction.
260 OpenLink string `protobuf:"bytes,2,opt,name=open_link,json=openLink,proto3,oneof"`
261 }
262
263 type UniversalActionExtensionPoint_RunFunction struct {
264 // Endpoint to be run by the UniversalAction.
265 RunFunction string `protobuf:"bytes,3,opt,name=run_function,json=runFunction,proto3,oneof"`
266 }
267
268 func (*UniversalActionExtensionPoint_OpenLink) isUniversalActionExtensionPoint_ActionType() {}
269
270 func (*UniversalActionExtensionPoint_RunFunction) isUniversalActionExtensionPoint_ActionType() {}
271
272 var File_google_apps_script_type_extension_point_proto protoreflect.FileDescriptor
273
274 var file_google_apps_script_type_extension_point_proto_rawDesc = []byte{
275 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x73, 0x63,
276 0x72, 0x69, 0x70, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
277 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
278 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x73, 0x63, 0x72,
279 0x69, 0x70, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
280 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65,
281 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6c, 0x0a, 0x16, 0x4d, 0x65, 0x6e, 0x75,
282 0x49, 0x74, 0x65, 0x6d, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69,
283 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x75, 0x6e, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
284 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x75, 0x6e, 0x46, 0x75, 0x6e,
285 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02,
286 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x6c,
287 0x6f, 0x67, 0x6f, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c,
288 0x6f, 0x67, 0x6f, 0x55, 0x72, 0x6c, 0x22, 0x71, 0x0a, 0x16, 0x48, 0x6f, 0x6d, 0x65, 0x70, 0x61,
289 0x67, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74,
290 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x75, 0x6e, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
291 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x75, 0x6e, 0x46, 0x75, 0x6e, 0x63, 0x74,
292 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02,
293 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
294 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65,
295 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x88, 0x01, 0x0a, 0x1d, 0x55, 0x6e,
296 0x69, 0x76, 0x65, 0x72, 0x73, 0x61, 0x6c, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x74,
297 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c,
298 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65,
299 0x6c, 0x12, 0x1d, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x02,
300 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x6e, 0x4c, 0x69, 0x6e, 0x6b,
301 0x12, 0x23, 0x0a, 0x0c, 0x72, 0x75, 0x6e, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
302 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x75, 0x6e, 0x46, 0x75, 0x6e,
303 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
304 0x74, 0x79, 0x70, 0x65, 0x42, 0xa8, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
305 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x2e,
306 0x74, 0x79, 0x70, 0x65, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
307 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
308 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70,
309 0x70, 0x73, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0xaa, 0x02,
310 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x73, 0x2e, 0x53, 0x63, 0x72,
311 0x69, 0x70, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0xca, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
312 0x65, 0x5c, 0x41, 0x70, 0x70, 0x73, 0x5c, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5c, 0x54, 0x79,
313 0x70, 0x65, 0xea, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x70, 0x70,
314 0x73, 0x3a, 0x3a, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x62,
315 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
316 }
317
318 var (
319 file_google_apps_script_type_extension_point_proto_rawDescOnce sync.Once
320 file_google_apps_script_type_extension_point_proto_rawDescData = file_google_apps_script_type_extension_point_proto_rawDesc
321 )
322
323 func file_google_apps_script_type_extension_point_proto_rawDescGZIP() []byte {
324 file_google_apps_script_type_extension_point_proto_rawDescOnce.Do(func() {
325 file_google_apps_script_type_extension_point_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_apps_script_type_extension_point_proto_rawDescData)
326 })
327 return file_google_apps_script_type_extension_point_proto_rawDescData
328 }
329
330 var file_google_apps_script_type_extension_point_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
331 var file_google_apps_script_type_extension_point_proto_goTypes = []interface{}{
332 (*MenuItemExtensionPoint)(nil), // 0: google.apps.script.type.MenuItemExtensionPoint
333 (*HomepageExtensionPoint)(nil), // 1: google.apps.script.type.HomepageExtensionPoint
334 (*UniversalActionExtensionPoint)(nil), // 2: google.apps.script.type.UniversalActionExtensionPoint
335 (*wrapperspb.BoolValue)(nil), // 3: google.protobuf.BoolValue
336 }
337 var file_google_apps_script_type_extension_point_proto_depIdxs = []int32{
338 3, // 0: google.apps.script.type.HomepageExtensionPoint.enabled:type_name -> google.protobuf.BoolValue
339 1, // [1:1] is the sub-list for method output_type
340 1, // [1:1] is the sub-list for method input_type
341 1, // [1:1] is the sub-list for extension type_name
342 1, // [1:1] is the sub-list for extension extendee
343 0, // [0:1] is the sub-list for field type_name
344 }
345
346 func init() { file_google_apps_script_type_extension_point_proto_init() }
347 func file_google_apps_script_type_extension_point_proto_init() {
348 if File_google_apps_script_type_extension_point_proto != nil {
349 return
350 }
351 if !protoimpl.UnsafeEnabled {
352 file_google_apps_script_type_extension_point_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
353 switch v := v.(*MenuItemExtensionPoint); i {
354 case 0:
355 return &v.state
356 case 1:
357 return &v.sizeCache
358 case 2:
359 return &v.unknownFields
360 default:
361 return nil
362 }
363 }
364 file_google_apps_script_type_extension_point_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
365 switch v := v.(*HomepageExtensionPoint); i {
366 case 0:
367 return &v.state
368 case 1:
369 return &v.sizeCache
370 case 2:
371 return &v.unknownFields
372 default:
373 return nil
374 }
375 }
376 file_google_apps_script_type_extension_point_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
377 switch v := v.(*UniversalActionExtensionPoint); i {
378 case 0:
379 return &v.state
380 case 1:
381 return &v.sizeCache
382 case 2:
383 return &v.unknownFields
384 default:
385 return nil
386 }
387 }
388 }
389 file_google_apps_script_type_extension_point_proto_msgTypes[2].OneofWrappers = []interface{}{
390 (*UniversalActionExtensionPoint_OpenLink)(nil),
391 (*UniversalActionExtensionPoint_RunFunction)(nil),
392 }
393 type x struct{}
394 out := protoimpl.TypeBuilder{
395 File: protoimpl.DescBuilder{
396 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
397 RawDescriptor: file_google_apps_script_type_extension_point_proto_rawDesc,
398 NumEnums: 0,
399 NumMessages: 3,
400 NumExtensions: 0,
401 NumServices: 0,
402 },
403 GoTypes: file_google_apps_script_type_extension_point_proto_goTypes,
404 DependencyIndexes: file_google_apps_script_type_extension_point_proto_depIdxs,
405 MessageInfos: file_google_apps_script_type_extension_point_proto_msgTypes,
406 }.Build()
407 File_google_apps_script_type_extension_point_proto = out.File
408 file_google_apps_script_type_extension_point_proto_rawDesc = nil
409 file_google_apps_script_type_extension_point_proto_goTypes = nil
410 file_google_apps_script_type_extension_point_proto_depIdxs = nil
411 }