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

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,183 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/apps/script/type/gmail/gmail_addon_manifest.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/apps/script/type/addon_widget_set_pb'
8
+ require 'google/apps/script/type/extension_point_pb'
9
+
10
+
11
+ descriptor_data = "\n8google/apps/script/type/gmail/gmail_addon_manifest.proto\x12\x1dgoogle.apps.script.type.gmail\x1a.google/apps/script/type/addon_widget_set.proto\x1a-google/apps/script/type/extension_point.proto\"\xe7\x02\n\x12GmailAddOnManifest\x12I\n\x10homepage_trigger\x18\x0e \x01(\x0b\x32/.google.apps.script.type.HomepageExtensionPoint\x12M\n\x13\x63ontextual_triggers\x18\x03 \x03(\x0b\x32\x30.google.apps.script.type.gmail.ContextualTrigger\x12I\n\x11universal_actions\x18\x04 \x03(\x0b\x32..google.apps.script.type.gmail.UniversalAction\x12\x46\n\x0f\x63ompose_trigger\x18\x0c \x01(\x0b\x32-.google.apps.script.type.gmail.ComposeTrigger\x12$\n\x1c\x61uthorization_check_function\x18\x07 \x01(\t\"[\n\x0fUniversalAction\x12\x0c\n\x04text\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_type\"\xdb\x01\n\x0e\x43omposeTrigger\x12@\n\x07\x61\x63tions\x18\x05 \x03(\x0b\x32/.google.apps.script.type.MenuItemExtensionPoint\x12O\n\x0c\x64raft_access\x18\x04 \x01(\x0e\x32\x39.google.apps.script.type.gmail.ComposeTrigger.DraftAccess\"6\n\x0b\x44raftAccess\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x0c\n\x08METADATA\x10\x02\"\x89\x01\n\x11\x43ontextualTrigger\x12L\n\runconditional\x18\x01 \x01(\x0b\x32\x33.google.apps.script.type.gmail.UnconditionalTriggerH\x00\x12\x1b\n\x13on_trigger_function\x18\x04 \x01(\tB\t\n\x07trigger\"\x16\n\x14UnconditionalTriggerB\xe0\x01\n!com.google.apps.script.type.gmailB\x17GmailAddOnManifestProtoP\x01Z<google.golang.org/genproto/googleapis/apps/script/type/gmail\xaa\x02\x1dGoogle.Apps.Script.Type.Gmail\xca\x02\x1dGoogle\\Apps\\Script\\Type\\Gmail\xea\x02!Google::Apps::Script::Type::Gmailb\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 Gmail
43
+ GmailAddOnManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.gmail.GmailAddOnManifest").msgclass
44
+ UniversalAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.gmail.UniversalAction").msgclass
45
+ ComposeTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.gmail.ComposeTrigger").msgclass
46
+ ComposeTrigger::DraftAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.gmail.ComposeTrigger.DraftAccess").enummodule
47
+ ContextualTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.gmail.ContextualTrigger").msgclass
48
+ UnconditionalTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.gmail.UnconditionalTrigger").msgclass
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ #### Source proto file: google/apps/script/type/gmail/gmail_addon_manifest.proto ####
56
+ #
57
+ # // Copyright 2020 Google LLC
58
+ # //
59
+ # // Licensed under the Apache License, Version 2.0 (the "License");
60
+ # // you may not use this file except in compliance with the License.
61
+ # // You may obtain a copy of the License at
62
+ # //
63
+ # // http://www.apache.org/licenses/LICENSE-2.0
64
+ # //
65
+ # // Unless required by applicable law or agreed to in writing, software
66
+ # // distributed under the License is distributed on an "AS IS" BASIS,
67
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68
+ # // See the License for the specific language governing permissions and
69
+ # // limitations under the License.
70
+ #
71
+ # syntax = "proto3";
72
+ #
73
+ # package google.apps.script.type.gmail;
74
+ #
75
+ # import "google/apps/script/type/addon_widget_set.proto";
76
+ # import "google/apps/script/type/extension_point.proto";
77
+ #
78
+ # option csharp_namespace = "Google.Apps.Script.Type.Gmail";
79
+ # option go_package = "google.golang.org/genproto/googleapis/apps/script/type/gmail";
80
+ # option java_multiple_files = true;
81
+ # option java_outer_classname = "GmailAddOnManifestProto";
82
+ # option java_package = "com.google.apps.script.type.gmail";
83
+ # option php_namespace = "Google\\Apps\\Script\\Type\\Gmail";
84
+ # option ruby_package = "Google::Apps::Script::Type::Gmail";
85
+ #
86
+ # // Properties customizing the appearance and execution of a Gmail add-on.
87
+ # message GmailAddOnManifest {
88
+ # // Defines an endpoint that will be executed in contexts that don't
89
+ # // match a declared contextual trigger. Any cards generated by this function
90
+ # // will always be available to the user, but may be eclipsed by contextual
91
+ # // content when this add-on declares more targeted triggers.
92
+ # //
93
+ # // If present, this overrides the configuration from
94
+ # // `addOns.common.homepageTrigger`.
95
+ # google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;
96
+ #
97
+ # // Defines the set of conditions that trigger the add-on.
98
+ # repeated ContextualTrigger contextual_triggers = 3;
99
+ #
100
+ # // Defines set of [universal
101
+ # // actions](/gmail/add-ons/how-tos/universal-actions) for the add-on. The user
102
+ # // triggers universal actions from the add-on toolbar menu.
103
+ # repeated UniversalAction universal_actions = 4;
104
+ #
105
+ # // Defines the compose time trigger for a compose time add-on. This is the
106
+ # // trigger that causes an add-on to take action when the user is composing an
107
+ # // email.
108
+ # // All compose time addons are required to have the
109
+ # // gmail.addons.current.action.compose scope even though it might not edit the
110
+ # // draft.
111
+ # ComposeTrigger compose_trigger = 12;
112
+ #
113
+ # // The name of an endpoint that verifies that the add-on has
114
+ # // all the required third-party authorizations, by probing the third-party
115
+ # // APIs. If the probe fails, the function should throw an exception to
116
+ # // initiate the authorization flow. This function is called before each
117
+ # // invocation of the add-on, in order to ensure a smooth user experience.
118
+ # string authorization_check_function = 7;
119
+ # }
120
+ #
121
+ # // An action that is always available in the add-on toolbar menu regardless of
122
+ # // message context.
123
+ # message UniversalAction {
124
+ # // Required. User-visible text describing the action, for example, "Add a new
125
+ # // contact."
126
+ # string text = 1;
127
+ #
128
+ # // The type of the action determines the behavior of Gmail when the user
129
+ # // invokes the action.
130
+ # oneof action_type {
131
+ # // A link that is opened by Gmail when the user triggers the action.
132
+ # string open_link = 2;
133
+ #
134
+ # // An endpoint that is called when the user triggers the
135
+ # // action. See the [universal actions
136
+ # // guide](/gmail/add-ons/how-tos/universal-actions) for details.
137
+ # string run_function = 3;
138
+ # }
139
+ # }
140
+ #
141
+ # // A trigger that activates when user is composing an email.
142
+ # message ComposeTrigger {
143
+ # // An enum defining the level of data access this compose trigger requires.
144
+ # enum DraftAccess {
145
+ # // Default value when nothing is set for DraftAccess.
146
+ # UNSPECIFIED = 0;
147
+ #
148
+ # // NONE means compose trigger won't be able to access any data of the draft
149
+ # // when a compose addon is triggered.
150
+ # NONE = 1;
151
+ #
152
+ # // METADATA gives compose trigger the permission to access the metadata of
153
+ # // the draft when a compose addon is triggered. This includes the audience
154
+ # // list (To/cc list) of a draft message.
155
+ # METADATA = 2;
156
+ # }
157
+ #
158
+ # // Defines the set of actions for compose time add-on. These are actions
159
+ # // that user can trigger on a compose time addon.
160
+ # repeated google.apps.script.type.MenuItemExtensionPoint actions = 5;
161
+ #
162
+ # // Define the level of data access when a compose time addon is triggered.
163
+ # DraftAccess draft_access = 4;
164
+ # }
165
+ #
166
+ # // Defines a trigger that fires when the open email meets a specific criteria.
167
+ # // When the trigger fires, it executes a specific endpoint, usually
168
+ # // in order to create new cards and update the UI.
169
+ # message ContextualTrigger {
170
+ # // The type of trigger determines the conditions Gmail uses to show the
171
+ # // add-on.
172
+ # oneof trigger {
173
+ # // UnconditionalTriggers are executed when any mail message is opened.
174
+ # UnconditionalTrigger unconditional = 1;
175
+ # }
176
+ #
177
+ # // Required. The name of the endpoint to call when a message matches the
178
+ # // trigger.
179
+ # string on_trigger_function = 4;
180
+ # }
181
+ #
182
+ # // A trigger that fires when any email message is opened.
183
+ # message UnconditionalTrigger {}
@@ -0,0 +1,160 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/apps/script/type/script_manifest.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/apps/script/type/addon_widget_set_pb'
8
+ require 'google/apps/script/type/extension_point_pb'
9
+ require 'google/protobuf/struct_pb'
10
+
11
+
12
+ descriptor_data = "\n-google/apps/script/type/script_manifest.proto\x12\x17google.apps.script.type\x1a.google/apps/script/type/addon_widget_set.proto\x1a-google/apps/script/type/extension_point.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xb6\x03\n\x13\x43ommonAddOnManifest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08logo_url\x18\x02 \x01(\t\x12\x44\n\x11layout_properties\x18\x03 \x01(\x0b\x32).google.apps.script.type.LayoutProperties\x12\x42\n\x11\x61\x64\x64_on_widget_set\x18\x04 \x01(\x0b\x32\'.google.apps.script.type.AddOnWidgetSet\x12\x1b\n\x13use_locale_from_app\x18\x05 \x01(\x08\x12I\n\x10homepage_trigger\x18\x06 \x01(\x0b\x32/.google.apps.script.type.HomepageExtensionPoint\x12Q\n\x11universal_actions\x18\x07 \x03(\x0b\x32\x36.google.apps.script.type.UniversalActionExtensionPoint\x12:\n\x16open_link_url_prefixes\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"B\n\x10LayoutProperties\x12\x15\n\rprimary_color\x18\x01 \x01(\t\x12\x17\n\x0fsecondary_color\x18\x02 \x01(\t\"]\n\x0bHttpOptions\x12N\n\x14\x61uthorization_header\x18\x01 \x01(\x0e\x32\x30.google.apps.script.type.HttpAuthorizationHeader*v\n\x17HttpAuthorizationHeader\x12)\n%HTTP_AUTHORIZATION_HEADER_UNSPECIFIED\x10\x00\x12\x13\n\x0fSYSTEM_ID_TOKEN\x10\x01\x12\x11\n\rUSER_ID_TOKEN\x10\x02\x12\x08\n\x04NONE\x10\x03\x42\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"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.apps.script.type.AddOnWidgetSet", "google/apps/script/type/addon_widget_set.proto"],
28
+ ["google.apps.script.type.HomepageExtensionPoint", "google/apps/script/type/extension_point.proto"],
29
+ ["google.protobuf.ListValue", "google/protobuf/struct.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
+ end
36
+ end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
39
+ end
40
+
41
+ module Google
42
+ module Apps
43
+ module Script
44
+ module Type
45
+ CommonAddOnManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.CommonAddOnManifest").msgclass
46
+ LayoutProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.LayoutProperties").msgclass
47
+ HttpOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.HttpOptions").msgclass
48
+ HttpAuthorizationHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.HttpAuthorizationHeader").enummodule
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ #### Source proto file: google/apps/script/type/script_manifest.proto ####
55
+ #
56
+ # // Copyright 2020 Google LLC
57
+ # //
58
+ # // Licensed under the Apache License, Version 2.0 (the "License");
59
+ # // you may not use this file except in compliance with the License.
60
+ # // You may obtain a copy of the License at
61
+ # //
62
+ # // http://www.apache.org/licenses/LICENSE-2.0
63
+ # //
64
+ # // Unless required by applicable law or agreed to in writing, software
65
+ # // distributed under the License is distributed on an "AS IS" BASIS,
66
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
67
+ # // See the License for the specific language governing permissions and
68
+ # // limitations under the License.
69
+ #
70
+ # syntax = "proto3";
71
+ #
72
+ # package google.apps.script.type;
73
+ #
74
+ # import "google/apps/script/type/addon_widget_set.proto";
75
+ # import "google/apps/script/type/extension_point.proto";
76
+ # import "google/protobuf/struct.proto";
77
+ #
78
+ # option csharp_namespace = "Google.Apps.Script.Type";
79
+ # option go_package = "google.golang.org/genproto/googleapis/apps/script/type";
80
+ # option java_multiple_files = true;
81
+ # option java_package = "com.google.apps.script.type";
82
+ # option php_namespace = "Google\\Apps\\Script\\Type";
83
+ # option ruby_package = "Google::Apps::Script::Type";
84
+ #
85
+ # // Add-on configuration that is shared across all add-on host applications.
86
+ # message CommonAddOnManifest {
87
+ # // Required. The display name of the add-on.
88
+ # string name = 1;
89
+ #
90
+ # // Required. The URL for the logo image shown in the add-on toolbar.
91
+ # string logo_url = 2;
92
+ #
93
+ # // Common layout properties for the add-on cards.
94
+ # LayoutProperties layout_properties = 3;
95
+ #
96
+ # // The widgets used in the add-on. If this field is not specified,
97
+ # // it indicates that default set is used.
98
+ # AddOnWidgetSet add_on_widget_set = 4;
99
+ #
100
+ # // Whether to pass locale information from host app.
101
+ # bool use_locale_from_app = 5;
102
+ #
103
+ # // Defines an endpoint that will be executed in any context, in
104
+ # // any host. Any cards generated by this function will always be available to
105
+ # // the user, but may be eclipsed by contextual content when this add-on
106
+ # // declares more targeted triggers.
107
+ # HomepageExtensionPoint homepage_trigger = 6;
108
+ #
109
+ # // Defines a list of extension points in the universal action menu which
110
+ # // serves as a setting menu for the add-on. The extension point can be
111
+ # // link URL to open or an endpoint to execute as a form
112
+ # // submission.
113
+ # repeated UniversalActionExtensionPoint universal_actions = 7;
114
+ #
115
+ # // An OpenLink action
116
+ # // can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links,
117
+ # // the URL must also
118
+ # // [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the
119
+ # // prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS
120
+ # // is assumed. Notice that HTTP links are automatically rewritten to HTTPS
121
+ # // links.
122
+ # google.protobuf.ListValue open_link_url_prefixes = 8;
123
+ # }
124
+ #
125
+ # // Card layout properties shared across all add-on host applications.
126
+ # message LayoutProperties {
127
+ # // The primary color of the add-on. It sets the color of toolbar. If no
128
+ # // primary color is set explicitly, the default value provided by the
129
+ # // framework is used.
130
+ # string primary_color = 1;
131
+ #
132
+ # // The secondary color of the add-on. It sets the color of buttons.
133
+ # // If primary color is set but no secondary color is set, the
134
+ # // secondary color is the same as the primary color. If neither primary
135
+ # // color nor secondary color is set, the default value provided by the
136
+ # // framework is used.
137
+ # string secondary_color = 2;
138
+ # }
139
+ #
140
+ # // Options for sending requests to add-on HTTP endpoints
141
+ # message HttpOptions {
142
+ # // Configuration for the token sent in the HTTP Authorization header
143
+ # HttpAuthorizationHeader authorization_header = 1;
144
+ # }
145
+ #
146
+ # // Authorization header sent in add-on HTTP requests
147
+ # enum HttpAuthorizationHeader {
148
+ # // Default value, equivalent to `SYSTEM_ID_TOKEN`
149
+ # HTTP_AUTHORIZATION_HEADER_UNSPECIFIED = 0;
150
+ #
151
+ # // Send an ID token for the project-specific Google Workspace Add-ons system
152
+ # // service account (default)
153
+ # SYSTEM_ID_TOKEN = 1;
154
+ #
155
+ # // Send an ID token for the end user
156
+ # USER_ID_TOKEN = 2;
157
+ #
158
+ # // Do not send an Authentication header
159
+ # NONE = 3;
160
+ # }
@@ -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/sheets/sheets_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/sheets/sheets_addon_manifest.proto\x12\x1egoogle.apps.script.type.sheets\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/apps/script/type/extension_point.proto\"\xbd\x01\n\x13SheetsAddOnManifest\x12I\n\x10homepage_trigger\x18\x03 \x01(\x0b\x32/.google.apps.script.type.HomepageExtensionPoint\x12[\n\x1don_file_scope_granted_trigger\x18\x05 \x01(\x0b\x32\x34.google.apps.script.type.sheets.SheetsExtensionPoint\"1\n\x14SheetsExtensionPoint\x12\x19\n\x0crun_function\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\xe6\x01\n\"com.google.apps.script.type.sheetsB\x18SheetsAddOnManifestProtoP\x01Z=google.golang.org/genproto/googleapis/apps/script/type/sheets\xaa\x02\x1eGoogle.Apps.Script.Type.Sheets\xca\x02\x1eGoogle\\Apps\\Script\\Type\\Sheets\xea\x02\"Google::Apps::Script::Type::Sheetsb\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 Sheets
43
+ SheetsAddOnManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.sheets.SheetsAddOnManifest").msgclass
44
+ SheetsExtensionPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.sheets.SheetsExtensionPoint").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ #### Source proto file: google/apps/script/type/sheets/sheets_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.sheets;
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.Sheets";
75
+ # option go_package = "google.golang.org/genproto/googleapis/apps/script/type/sheets";
76
+ # option java_multiple_files = true;
77
+ # option java_outer_classname = "SheetsAddOnManifestProto";
78
+ # option java_package = "com.google.apps.script.type.sheets";
79
+ # option php_namespace = "Google\\Apps\\Script\\Type\\Sheets";
80
+ # option ruby_package = "Google::Apps::Script::Type::Sheets";
81
+ #
82
+ # // Manifest section specific to Sheets Add-ons.
83
+ #
84
+ # // Sheets add-on manifest.
85
+ # message SheetsAddOnManifest {
86
+ # // If present, this overrides the configuration from
87
+ # // `addOns.common.homepageTrigger`.
88
+ # google.apps.script.type.HomepageExtensionPoint homepage_trigger = 3;
89
+ #
90
+ # // Endpoint to execute when file scope authorization is granted
91
+ # // for this document/user pair.
92
+ # SheetsExtensionPoint on_file_scope_granted_trigger = 5;
93
+ # }
94
+ #
95
+ # // Common format for declaring a Sheets add-on's triggers.
96
+ # message SheetsExtensionPoint {
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/slides/slides_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/slides/slides_addon_manifest.proto\x12\x1egoogle.apps.script.type.slides\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/apps/script/type/extension_point.proto\"\xbd\x01\n\x13SlidesAddOnManifest\x12I\n\x10homepage_trigger\x18\x01 \x01(\x0b\x32/.google.apps.script.type.HomepageExtensionPoint\x12[\n\x1don_file_scope_granted_trigger\x18\x02 \x01(\x0b\x32\x34.google.apps.script.type.slides.SlidesExtensionPoint\"1\n\x14SlidesExtensionPoint\x12\x19\n\x0crun_function\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\xe6\x01\n\"com.google.apps.script.type.slidesB\x18SlidesAddOnManifestProtoP\x01Z=google.golang.org/genproto/googleapis/apps/script/type/slides\xaa\x02\x1eGoogle.Apps.Script.Type.Slides\xca\x02\x1eGoogle\\Apps\\Script\\Type\\Slides\xea\x02\"Google::Apps::Script::Type::Slidesb\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 Slides
43
+ SlidesAddOnManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.slides.SlidesAddOnManifest").msgclass
44
+ SlidesExtensionPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.apps.script.type.slides.SlidesExtensionPoint").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ #### Source proto file: google/apps/script/type/slides/slides_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.slides;
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.Slides";
75
+ # option go_package = "google.golang.org/genproto/googleapis/apps/script/type/slides";
76
+ # option java_multiple_files = true;
77
+ # option java_outer_classname = "SlidesAddOnManifestProto";
78
+ # option java_package = "com.google.apps.script.type.slides";
79
+ # option php_namespace = "Google\\Apps\\Script\\Type\\Slides";
80
+ # option ruby_package = "Google::Apps::Script::Type::Slides";
81
+ #
82
+ # // Manifest section specific to Slides Add-ons.
83
+ #
84
+ # // Slides add-on manifest.
85
+ # message SlidesAddOnManifest {
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
+ # SlidesExtensionPoint on_file_scope_granted_trigger = 2;
93
+ # }
94
+ #
95
+ # // Common format for declaring a Slides add-on's triggers.
96
+ # message SlidesExtensionPoint {
97
+ # // Required. The endpoint to execute when this extension point is activated.
98
+ # string run_function = 1 [(google.api.field_behavior) = REQUIRED];
99
+ # }
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2023 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,7 +18,7 @@ module Google
16
18
  module Apps
17
19
  module Script
18
20
  module Type
19
- VERSION = "0.a"
21
+ VERSION = "1.0.0".freeze
20
22
  end
21
23
  end
22
24
  end
metadata CHANGED
@@ -1,33 +1,68 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apps-script-type
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.a
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-03 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Placeholder for the future Google-authored gem google-apps-script-type.
14
- This placeholder is being released on 2023-01-03 in order to reserve the name. The
15
- final gem should be available shortly after that date. If it has not been released
16
- in a timely manner, or if this placeholder interferes with your work, you can contact
17
- the Google Ruby team by opening an issue in the GitHub repository https://github.com/googleapis/google-cloud-ruby.
18
- email: googleapis-packages@google.com
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: googleapis-common-protos-types
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: google-protobuf
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.18'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.18'
41
+ description: Common protocol buffer types used by Google Apps Script related client
42
+ libraries
43
+ email:
44
+ - googleapis-packages@google.com
19
45
  executables: []
20
46
  extensions: []
21
47
  extra_rdoc_files: []
22
48
  files:
23
- - LICENSE.md
49
+ - CHANGELOG.md
24
50
  - README.md
51
+ - lib/google/apps/script/type/addon_widget_set_pb.rb
52
+ - lib/google/apps/script/type/calendar/calendar_addon_manifest_pb.rb
53
+ - lib/google/apps/script/type/docs/docs_addon_manifest_pb.rb
54
+ - lib/google/apps/script/type/drive/drive_addon_manifest_pb.rb
55
+ - lib/google/apps/script/type/extension_point_pb.rb
56
+ - lib/google/apps/script/type/gmail/gmail_addon_manifest_pb.rb
57
+ - lib/google/apps/script/type/script_manifest_pb.rb
58
+ - lib/google/apps/script/type/sheets/sheets_addon_manifest_pb.rb
59
+ - lib/google/apps/script/type/slides/slides_addon_manifest_pb.rb
25
60
  - lib/google/apps/script/type/version.rb
26
- homepage: https://github.com/googleapis/google-cloud-ruby
61
+ homepage: https://github.com/googleapis/common-protos-ruby
27
62
  licenses:
28
63
  - Apache-2.0
29
64
  metadata: {}
30
- post_install_message:
65
+ post_install_message:
31
66
  rdoc_options: []
32
67
  require_paths:
33
68
  - lib
@@ -35,15 +70,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
35
70
  requirements:
36
71
  - - ">="
37
72
  - !ruby/object:Gem::Version
38
- version: '3.0'
73
+ version: '2.6'
39
74
  required_rubygems_version: !ruby/object:Gem::Requirement
40
75
  requirements:
41
- - - ">"
76
+ - - ">="
42
77
  - !ruby/object:Gem::Version
43
- version: 1.3.1
78
+ version: '0'
44
79
  requirements: []
45
- rubygems_version: 3.3.26
46
- signing_key:
80
+ rubygems_version: 3.4.2
81
+ signing_key:
47
82
  specification_version: 4
48
- summary: Placeholder for the future Google-authored gem google-apps-script-type
83
+ summary: Common protocol buffer types used by Google Apps Script related client libraries
49
84
  test_files: []