google-apps-script-type 0.a → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5235246b1fcd10bdebb4425ddf3d87cab2d010a2d680e2e82fed520ac91c29fa
4
- data.tar.gz: 92f871ccb4455b83f585e92d41a137b7adbe951f9ae778cb51e070db61d033db
3
+ metadata.gz: 4b105049f9c36bb4d5babb786cc450f6285ac5dfd02f8f2d2ad429d719bdd3c6
4
+ data.tar.gz: 73fd404750687fa72f82d7d1c69048a21e396bb91cad932d52e13e7ad5998d3b
5
5
  SHA512:
6
- metadata.gz: 9ba2debd274ec5df6a2ec0e7e91b4f09d47f0668140b717fd26d6c0cad15bd07df9f31a9b4143ada90ea2a6f4bfe140d55bba91fe27eb3ebc18d4bbc213d8fe6
7
- data.tar.gz: 23b9484a54e1779cee714b20fb9f8231bb343e3729fe4b443a207930e541b9b4ab7209d9657acd0e527ee8883dbecc44c946dd729806de702775710b18476bc1
6
+ metadata.gz: 5d431ee9766765d95dc882b4ece63073186fc919ae1a7b07c3da04056533af9076323f7b6b9194405b5b0761c6eea7c8f30ae8d4d54bda12e94dab3861aac373
7
+ data.tar.gz: 88d354041f429c85d8122b45b0dd197bdf70942f89cebd7cd72720c13fcebe9e30326178a206fbc9125579ffe58eb8857332d72f1294a1c0c894f6b911cedab5
data/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ### 1.0.0 (2023-08-07)
4
+
5
+ #### Features
6
+
7
+ * Updated generated protobuf output to use binary descriptors for better future compatibility
8
+
9
+ ### 0.1.0 (2023-01-04)
10
+
11
+ #### Features
12
+
13
+ * Initial generation of google-apps-script-type gem
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
- # Placeholder for Ruby gem google-apps-script-type
1
+ # Common Apps Script Types
2
2
 
3
- This is a placeholder for the future Google-authored gem google-apps-script-type.
4
- This placeholder is being released on 2023-01-03 in order to reserve the name.
5
- The final gem should be available shortly after that date. If it has not been
6
- released in a timely manner, or if this placeholder interferes with your work,
7
- you can contact the Google Ruby team by opening an issue in the GitHub
8
- repository https://github.com/googleapis/google-cloud-ruby.
3
+ This gem contains common protocol buffer types used by Google Apps Script
4
+ related client libraries.
5
+
6
+ ## Installation
7
+
8
+ This library is generally brought in as a dependency by Google API client
9
+ libraries that use it. However, you can include it directly in your
10
+ application's Gemfile if you need to use its protos directly.
@@ -0,0 +1,104 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/apps/script/type/addon_widget_set.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n.google/apps/script/type/addon_widget_set.proto\x12\x17google.apps.script.type\"\xa4\x02\n\x0e\x41\x64\x64OnWidgetSet\x12H\n\x0cused_widgets\x18\x01 \x03(\x0e\x32\x32.google.apps.script.type.AddOnWidgetSet.WidgetType\"\xc7\x01\n\nWidgetType\x12\x1b\n\x17WIDGET_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x44\x41TE_PICKER\x10\x01\x12\x12\n\x0eSTYLED_BUTTONS\x10\x02\x12\x14\n\x10PERSISTENT_FORMS\x10\x03\x12\x10\n\x0c\x46IXED_FOOTER\x10\x04\x12!\n\x1dUPDATE_SUBJECT_AND_RECIPIENTS\x10\x05\x12\x0f\n\x0bGRID_WIDGET\x10\x06\x12\x1b\n\x17\x41\x44\x44ON_COMPOSE_UI_ACTION\x10\x07\x42\xbd\x01\n\x1b\x63om.google.apps.script.typeB\x13\x41\x64\x64OnWidgetSetProtoP\x01Z6google.golang.org/genproto/googleapis/apps/script/type\xaa\x02\x17Google.Apps.Script.Type\xca\x02\x17Google\\Apps\\Script\\Type\xea\x02\x1aGoogle::Apps::Script::Typeb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Google
35
+ module Apps
36
+ module Script
37
+ module Type
38
+ AddOnWidgetSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.AddOnWidgetSet").msgclass
39
+ AddOnWidgetSet::WidgetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.AddOnWidgetSet.WidgetType").enummodule
40
+ end
41
+ end
42
+ end
43
+ end
44
+
45
+ #### Source proto file: google/apps/script/type/addon_widget_set.proto ####
46
+ #
47
+ # // Copyright 2020 Google LLC
48
+ # //
49
+ # // Licensed under the Apache License, Version 2.0 (the "License");
50
+ # // you may not use this file except in compliance with the License.
51
+ # // You may obtain a copy of the License at
52
+ # //
53
+ # // http://www.apache.org/licenses/LICENSE-2.0
54
+ # //
55
+ # // Unless required by applicable law or agreed to in writing, software
56
+ # // distributed under the License is distributed on an "AS IS" BASIS,
57
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58
+ # // See the License for the specific language governing permissions and
59
+ # // limitations under the License.
60
+ #
61
+ # syntax = "proto3";
62
+ #
63
+ # package google.apps.script.type;
64
+ #
65
+ # option csharp_namespace = "Google.Apps.Script.Type";
66
+ # option go_package = "google.golang.org/genproto/googleapis/apps/script/type";
67
+ # option java_multiple_files = true;
68
+ # option java_outer_classname = "AddOnWidgetSetProto";
69
+ # option java_package = "com.google.apps.script.type";
70
+ # option php_namespace = "Google\\Apps\\Script\\Type";
71
+ # option ruby_package = "Google::Apps::Script::Type";
72
+ #
73
+ # // The widget subset used by an add-on.
74
+ # message AddOnWidgetSet {
75
+ # // The Widget type. DEFAULT is the basic widget set.
76
+ # enum WidgetType {
77
+ # // The default widget set.
78
+ # WIDGET_TYPE_UNSPECIFIED = 0;
79
+ #
80
+ # // The date picker.
81
+ # DATE_PICKER = 1;
82
+ #
83
+ # // Styled buttons include filled buttons and disabled buttons.
84
+ # STYLED_BUTTONS = 2;
85
+ #
86
+ # // Persistent forms allow persisting form values during actions.
87
+ # PERSISTENT_FORMS = 3;
88
+ #
89
+ # // Fixed footer in card.
90
+ # FIXED_FOOTER = 4;
91
+ #
92
+ # // Update the subject and recipients of a draft.
93
+ # UPDATE_SUBJECT_AND_RECIPIENTS = 5;
94
+ #
95
+ # // The grid widget.
96
+ # GRID_WIDGET = 6;
97
+ #
98
+ # // A Gmail add-on action that applies to the addon compose UI.
99
+ # ADDON_COMPOSE_UI_ACTION = 7;
100
+ # }
101
+ #
102
+ # // The list of widgets used in an add-on.
103
+ # repeated WidgetType used_widgets = 1;
104
+ # }
@@ -0,0 +1,161 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/apps/script/type/calendar/calendar_addon_manifest.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/apps/script/type/extension_point_pb'
9
+
10
+
11
+ descriptor_data = "\n>google/apps/script/type/calendar/calendar_addon_manifest.proto\x12 google.apps.script.type.calendar\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/apps/script/type/extension_point.proto\"\xbf\x04\n\x15\x43\x61lendarAddOnManifest\x12I\n\x10homepage_trigger\x18\x06 \x01(\x0b\x32/.google.apps.script.type.HomepageExtensionPoint\x12Q\n\x13\x63onference_solution\x18\x03 \x03(\x0b\x32\x34.google.apps.script.type.calendar.ConferenceSolution\x12$\n\x1c\x63reate_settings_url_function\x18\x05 \x01(\t\x12T\n\x12\x65vent_open_trigger\x18\n \x01(\x0b\x32\x38.google.apps.script.type.calendar.CalendarExtensionPoint\x12V\n\x14\x65vent_update_trigger\x18\x0b \x01(\x0b\x32\x38.google.apps.script.type.calendar.CalendarExtensionPoint\x12\x61\n\x14\x63urrent_event_access\x18\x0c \x01(\x0e\x32\x43.google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess\"Q\n\x0b\x45ventAccess\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0c\n\x08METADATA\x10\x01\x12\x08\n\x04READ\x10\x03\x12\t\n\x05WRITE\x10\x04\x12\x0e\n\nREAD_WRITE\x10\x05\"p\n\x12\x43onferenceSolution\x12\x1f\n\x12on_create_function\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x02id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08logo_url\x18\x06 \x01(\tB\x03\xe0\x41\x02\"3\n\x16\x43\x61lendarExtensionPoint\x12\x19\n\x0crun_function\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\xf2\x01\n$com.google.apps.script.type.calendarB\x1a\x43\x61lendarAddOnManifestProtoP\x01Z?google.golang.org/genproto/googleapis/apps/script/type/calendar\xaa\x02 Google.Apps.Script.Type.Calendar\xca\x02 Google\\Apps\\Script\\Type\\Calendar\xea\x02$Google::Apps::Script::Type::Calendarb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.apps.script.type.HomepageExtensionPoint", "google/apps/script/type/extension_point.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
32
+ end
33
+ end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
36
+ end
37
+
38
+ module Google
39
+ module Apps
40
+ module Script
41
+ module Type
42
+ module Calendar
43
+ CalendarAddOnManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.calendar.CalendarAddOnManifest").msgclass
44
+ CalendarAddOnManifest::EventAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess").enummodule
45
+ ConferenceSolution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.calendar.ConferenceSolution").msgclass
46
+ CalendarExtensionPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.calendar.CalendarExtensionPoint").msgclass
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+
53
+ #### Source proto file: google/apps/script/type/calendar/calendar_addon_manifest.proto ####
54
+ #
55
+ # // Copyright 2020 Google LLC
56
+ # //
57
+ # // Licensed under the Apache License, Version 2.0 (the "License");
58
+ # // you may not use this file except in compliance with the License.
59
+ # // You may obtain a copy of the License at
60
+ # //
61
+ # // http://www.apache.org/licenses/LICENSE-2.0
62
+ # //
63
+ # // Unless required by applicable law or agreed to in writing, software
64
+ # // distributed under the License is distributed on an "AS IS" BASIS,
65
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66
+ # // See the License for the specific language governing permissions and
67
+ # // limitations under the License.
68
+ #
69
+ # syntax = "proto3";
70
+ #
71
+ # package google.apps.script.type.calendar;
72
+ #
73
+ # import "google/api/field_behavior.proto";
74
+ # import "google/apps/script/type/extension_point.proto";
75
+ #
76
+ # option csharp_namespace = "Google.Apps.Script.Type.Calendar";
77
+ # option go_package = "google.golang.org/genproto/googleapis/apps/script/type/calendar";
78
+ # option java_multiple_files = true;
79
+ # option java_outer_classname = "CalendarAddOnManifestProto";
80
+ # option java_package = "com.google.apps.script.type.calendar";
81
+ # option php_namespace = "Google\\Apps\\Script\\Type\\Calendar";
82
+ # option ruby_package = "Google::Apps::Script::Type::Calendar";
83
+ #
84
+ # // Manifest section specific to Calendar Add-ons.
85
+ #
86
+ # // Calendar add-on manifest.
87
+ # message CalendarAddOnManifest {
88
+ # // An enum defining the level of data access event triggers require.
89
+ # enum EventAccess {
90
+ # // Default value when nothing is set for EventAccess.
91
+ # UNSPECIFIED = 0;
92
+ #
93
+ # // METADATA gives event triggers the permission to access the metadata of
94
+ # // events such as event id and calendar id.
95
+ # METADATA = 1;
96
+ #
97
+ # // READ gives event triggers access to all provided event fields including
98
+ # // the metadata, attendees, and conference data.
99
+ # READ = 3;
100
+ #
101
+ # // WRITE gives event triggers access to the metadata of events and the
102
+ # // ability to perform all actions, including adding attendees and setting
103
+ # // conference data.
104
+ # WRITE = 4;
105
+ #
106
+ # // READ_WRITE gives event triggers access to all provided event fields
107
+ # // including the metadata, attendees, and conference data and the ability to
108
+ # // perform all actions.
109
+ # READ_WRITE = 5;
110
+ # }
111
+ #
112
+ # // Defines an endpoint that will be executed contexts that don't
113
+ # // match a declared contextual trigger. Any cards generated by this function
114
+ # // will always be available to the user, but may be eclipsed by contextual
115
+ # // content when this add-on declares more targeted triggers.
116
+ # //
117
+ # // If present, this overrides the configuration from
118
+ # // `addOns.common.homepageTrigger`.
119
+ # google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6;
120
+ #
121
+ # // Defines conference solutions provided by this add-on.
122
+ # repeated ConferenceSolution conference_solution = 3;
123
+ #
124
+ # // An endpoint to execute that creates a URL to the add-on's settings page.
125
+ # string create_settings_url_function = 5;
126
+ #
127
+ # // An endpoint to trigger when an event is opened (viewed/edited).
128
+ # CalendarExtensionPoint event_open_trigger = 10;
129
+ #
130
+ # // An endpoint to trigger when the open event is updated.
131
+ # CalendarExtensionPoint event_update_trigger = 11;
132
+ #
133
+ # // Define the level of data access when an event addon is triggered.
134
+ # EventAccess current_event_access = 12;
135
+ # }
136
+ #
137
+ # // Defines conference related values.
138
+ # message ConferenceSolution {
139
+ # // Required. The endpoint to call when ConferenceData should be created.
140
+ # string on_create_function = 1 [(google.api.field_behavior) = REQUIRED];
141
+ #
142
+ # // Required. IDs should be unique across ConferenceSolutions within one
143
+ # // add-on, but this is not strictly enforced. It is up to the add-on developer
144
+ # // to assign them uniquely, otherwise the wrong ConferenceSolution may be
145
+ # // used when the add-on is triggered. While the developer may change the
146
+ # // display name of an add-on, the ID should not be changed.
147
+ # string id = 4 [(google.api.field_behavior) = REQUIRED];
148
+ #
149
+ # // Required. The display name of the ConferenceSolution.
150
+ # string name = 5 [(google.api.field_behavior) = REQUIRED];
151
+ #
152
+ # // Required. The URL for the logo image of the ConferenceSolution.
153
+ # string logo_url = 6 [(google.api.field_behavior) = REQUIRED];
154
+ # }
155
+ #
156
+ # // Common format for declaring a calendar add-on's triggers.
157
+ # message CalendarExtensionPoint {
158
+ # // Required. The endpoint to execute when this extension point is
159
+ # // activated.
160
+ # string run_function = 1 [(google.api.field_behavior) = REQUIRED];
161
+ # }
@@ -0,0 +1,99 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/apps/script/type/docs/docs_addon_manifest.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/apps/script/type/extension_point_pb'
9
+
10
+
11
+ descriptor_data = "\n6google/apps/script/type/docs/docs_addon_manifest.proto\x12\x1cgoogle.apps.script.type.docs\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/apps/script/type/extension_point.proto\"\xb7\x01\n\x11\x44ocsAddOnManifest\x12I\n\x10homepage_trigger\x18\x01 \x01(\x0b\x32/.google.apps.script.type.HomepageExtensionPoint\x12W\n\x1don_file_scope_granted_trigger\x18\x02 \x01(\x0b\x32\x30.google.apps.script.type.docs.DocsExtensionPoint\"/\n\x12\x44ocsExtensionPoint\x12\x19\n\x0crun_function\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\xda\x01\n com.google.apps.script.type.docsB\x16\x44ocsAddOnManifestProtoP\x01Z;google.golang.org/genproto/googleapis/apps/script/type/docs\xaa\x02\x1cGoogle.Apps.Script.Type.Docs\xca\x02\x1cGoogle\\Apps\\Script\\Type\\Docs\xea\x02 Google::Apps::Script::Type::Docsb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.apps.script.type.HomepageExtensionPoint", "google/apps/script/type/extension_point.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
32
+ end
33
+ end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
36
+ end
37
+
38
+ module Google
39
+ module Apps
40
+ module Script
41
+ module Type
42
+ module Docs
43
+ DocsAddOnManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.docs.DocsAddOnManifest").msgclass
44
+ DocsExtensionPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.docs.DocsExtensionPoint").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ #### Source proto file: google/apps/script/type/docs/docs_addon_manifest.proto ####
52
+ #
53
+ # // Copyright 2020 Google LLC
54
+ # //
55
+ # // Licensed under the Apache License, Version 2.0 (the "License");
56
+ # // you may not use this file except in compliance with the License.
57
+ # // You may obtain a copy of the License at
58
+ # //
59
+ # // http://www.apache.org/licenses/LICENSE-2.0
60
+ # //
61
+ # // Unless required by applicable law or agreed to in writing, software
62
+ # // distributed under the License is distributed on an "AS IS" BASIS,
63
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
64
+ # // See the License for the specific language governing permissions and
65
+ # // limitations under the License.
66
+ #
67
+ # syntax = "proto3";
68
+ #
69
+ # package google.apps.script.type.docs;
70
+ #
71
+ # import "google/api/field_behavior.proto";
72
+ # import "google/apps/script/type/extension_point.proto";
73
+ #
74
+ # option csharp_namespace = "Google.Apps.Script.Type.Docs";
75
+ # option go_package = "google.golang.org/genproto/googleapis/apps/script/type/docs";
76
+ # option java_multiple_files = true;
77
+ # option java_outer_classname = "DocsAddOnManifestProto";
78
+ # option java_package = "com.google.apps.script.type.docs";
79
+ # option php_namespace = "Google\\Apps\\Script\\Type\\Docs";
80
+ # option ruby_package = "Google::Apps::Script::Type::Docs";
81
+ #
82
+ # // Manifest section specific to Docs Add-ons.
83
+ #
84
+ # // Docs add-on manifest.
85
+ # message DocsAddOnManifest {
86
+ # // If present, this overrides the configuration from
87
+ # // `addOns.common.homepageTrigger`.
88
+ # google.apps.script.type.HomepageExtensionPoint homepage_trigger = 1;
89
+ #
90
+ # // Endpoint to execute when file scope authorization is granted
91
+ # // for this document/user pair.
92
+ # DocsExtensionPoint on_file_scope_granted_trigger = 2;
93
+ # }
94
+ #
95
+ # // Common format for declaring a Docs add-on's triggers.
96
+ # message DocsExtensionPoint {
97
+ # // Required. The endpoint to execute when this extension point is activated.
98
+ # string run_function = 1 [(google.api.field_behavior) = REQUIRED];
99
+ # }
@@ -0,0 +1,99 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/apps/script/type/drive/drive_addon_manifest.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/apps/script/type/extension_point_pb'
8
+
9
+
10
+ descriptor_data = "\n8google/apps/script/type/drive/drive_addon_manifest.proto\x12\x1dgoogle.apps.script.type.drive\x1a-google/apps/script/type/extension_point.proto\"\xb6\x01\n\x12\x44riveAddOnManifest\x12I\n\x10homepage_trigger\x18\x01 \x01(\x0b\x32/.google.apps.script.type.HomepageExtensionPoint\x12U\n\x19on_items_selected_trigger\x18\x02 \x01(\x0b\x32\x32.google.apps.script.type.drive.DriveExtensionPoint\"+\n\x13\x44riveExtensionPoint\x12\x14\n\x0crun_function\x18\x01 \x01(\tB\xe0\x01\n!com.google.apps.script.type.driveB\x17\x44riveAddOnManifestProtoP\x01Z<google.golang.org/genproto/googleapis/apps/script/type/drive\xaa\x02\x1dGoogle.Apps.Script.Type.Drive\xca\x02\x1dGoogle\\Apps\\Script\\Type\\Drive\xea\x02!Google::Apps::Script::Type::Driveb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.apps.script.type.HomepageExtensionPoint", "google/apps/script/type/extension_point.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
36
+
37
+ module Google
38
+ module Apps
39
+ module Script
40
+ module Type
41
+ module Drive
42
+ DriveAddOnManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.drive.DriveAddOnManifest").msgclass
43
+ DriveExtensionPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.drive.DriveExtensionPoint").msgclass
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ #### Source proto file: google/apps/script/type/drive/drive_addon_manifest.proto ####
51
+ #
52
+ # // Copyright 2020 Google LLC
53
+ # //
54
+ # // Licensed under the Apache License, Version 2.0 (the "License");
55
+ # // you may not use this file except in compliance with the License.
56
+ # // You may obtain a copy of the License at
57
+ # //
58
+ # // http://www.apache.org/licenses/LICENSE-2.0
59
+ # //
60
+ # // Unless required by applicable law or agreed to in writing, software
61
+ # // distributed under the License is distributed on an "AS IS" BASIS,
62
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
63
+ # // See the License for the specific language governing permissions and
64
+ # // limitations under the License.
65
+ #
66
+ # syntax = "proto3";
67
+ #
68
+ # package google.apps.script.type.drive;
69
+ #
70
+ # import "google/apps/script/type/extension_point.proto";
71
+ #
72
+ # option csharp_namespace = "Google.Apps.Script.Type.Drive";
73
+ # option go_package = "google.golang.org/genproto/googleapis/apps/script/type/drive";
74
+ # option java_multiple_files = true;
75
+ # option java_outer_classname = "DriveAddOnManifestProto";
76
+ # option java_package = "com.google.apps.script.type.drive";
77
+ # option php_namespace = "Google\\Apps\\Script\\Type\\Drive";
78
+ # option ruby_package = "Google::Apps::Script::Type::Drive";
79
+ #
80
+ # // Manifest section specific to Drive Add-ons.
81
+ #
82
+ # // Drive add-on manifest.
83
+ # message DriveAddOnManifest {
84
+ # // If present, this overrides the configuration from
85
+ # // `addOns.common.homepageTrigger`.
86
+ # google.apps.script.type.HomepageExtensionPoint homepage_trigger = 1;
87
+ #
88
+ # // Corresponds to behvior that should execute when items are selected
89
+ # // in relevant Drive view (e.g. the My Drive Doclist).
90
+ # DriveExtensionPoint on_items_selected_trigger = 2;
91
+ # }
92
+ #
93
+ # // A generic extension point with common features, e.g. something that simply
94
+ # // needs a corresponding run function to work.
95
+ # message DriveExtensionPoint {
96
+ # // Required. The endpoint to execute when this extension point is
97
+ # // activated.
98
+ # string run_function = 1;
99
+ # }
@@ -0,0 +1,127 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/apps/script/type/extension_point.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/wrappers_pb'
8
+
9
+
10
+ descriptor_data = "\n-google/apps/script/type/extension_point.proto\x12\x17google.apps.script.type\x1a\x1egoogle/protobuf/wrappers.proto\"O\n\x16MenuItemExtensionPoint\x12\x14\n\x0crun_function\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x10\n\x08logo_url\x18\x03 \x01(\t\"[\n\x16HomepageExtensionPoint\x12\x14\n\x0crun_function\x18\x01 \x01(\t\x12+\n\x07\x65nabled\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"j\n\x1dUniversalActionExtensionPoint\x12\r\n\x05label\x18\x01 \x01(\t\x12\x13\n\topen_link\x18\x02 \x01(\tH\x00\x12\x16\n\x0crun_function\x18\x03 \x01(\tH\x00\x42\r\n\x0b\x61\x63tion_typeB\xa8\x01\n\x1b\x63om.google.apps.script.typeP\x01Z6google.golang.org/genproto/googleapis/apps/script/type\xaa\x02\x17Google.Apps.Script.Type\xca\x02\x17Google\\Apps\\Script\\Type\xea\x02\x1aGoogle::Apps::Script::Typeb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
36
+
37
+ module Google
38
+ module Apps
39
+ module Script
40
+ module Type
41
+ MenuItemExtensionPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.MenuItemExtensionPoint").msgclass
42
+ HomepageExtensionPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.HomepageExtensionPoint").msgclass
43
+ UniversalActionExtensionPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.UniversalActionExtensionPoint").msgclass
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ #### Source proto file: google/apps/script/type/extension_point.proto ####
50
+ #
51
+ # // Copyright 2020 Google LLC
52
+ # //
53
+ # // Licensed under the Apache License, Version 2.0 (the "License");
54
+ # // you may not use this file except in compliance with the License.
55
+ # // You may obtain a copy of the License at
56
+ # //
57
+ # // http://www.apache.org/licenses/LICENSE-2.0
58
+ # //
59
+ # // Unless required by applicable law or agreed to in writing, software
60
+ # // distributed under the License is distributed on an "AS IS" BASIS,
61
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
62
+ # // See the License for the specific language governing permissions and
63
+ # // limitations under the License.
64
+ #
65
+ # syntax = "proto3";
66
+ #
67
+ # package google.apps.script.type;
68
+ #
69
+ # import "google/protobuf/wrappers.proto";
70
+ #
71
+ # option csharp_namespace = "Google.Apps.Script.Type";
72
+ # option go_package = "google.golang.org/genproto/googleapis/apps/script/type";
73
+ # option java_multiple_files = true;
74
+ # option java_package = "com.google.apps.script.type";
75
+ # option php_namespace = "Google\\Apps\\Script\\Type";
76
+ # option ruby_package = "Google::Apps::Script::Type";
77
+ #
78
+ # // Common Manifest protos for G Suite extension-point configuration.
79
+ #
80
+ # // Common format for declaring a menu item, or button, that appears within a
81
+ # // host app.
82
+ # message MenuItemExtensionPoint {
83
+ # // Required. The endpoint to execute when this extension point is
84
+ # // activated.
85
+ # string run_function = 1;
86
+ #
87
+ # // Required. User-visible text describing the action taken by activating this
88
+ # // extension point. For example, "Insert invoice".
89
+ # string label = 2;
90
+ #
91
+ # // The URL for the logo image shown in the add-on toolbar.
92
+ # //
93
+ # // If not set, defaults to the add-on's primary logo URL.
94
+ # string logo_url = 3;
95
+ # }
96
+ #
97
+ # // Common format for declaring an add-on's home-page view.
98
+ # message HomepageExtensionPoint {
99
+ # // Required. The endpoint to execute when this extension point is
100
+ # // activated.
101
+ # string run_function = 1;
102
+ #
103
+ # // Optional. If set to `false`, disable the home-page view in this context.
104
+ # //
105
+ # // Defaults to `true` if unset.
106
+ # //
107
+ # // If an add-ons custom home-page view is disabled, an autogenerated overview
108
+ # // card will be provided for users instead.
109
+ # google.protobuf.BoolValue enabled = 2;
110
+ # }
111
+ #
112
+ # // Format for declaring a universal action menu item extension point.
113
+ # message UniversalActionExtensionPoint {
114
+ # // Required. User-visible text describing the action taken by activating this
115
+ # // extension point, for example, "Add a new contact".
116
+ # string label = 1;
117
+ #
118
+ # // Required. The action type supported on a universal action menu item. It
119
+ # // could be either a link to open or an endpoint to execute.
120
+ # oneof action_type {
121
+ # // URL to be opened by the UniversalAction.
122
+ # string open_link = 2;
123
+ #
124
+ # // Endpoint to be run by the UniversalAction.
125
+ # string run_function = 3;
126
+ # }
127
+ # }