google-apps-script-type 0.1.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16a82e19656b755045bd3e1eca65a90f478cd1713f3305a693fd543236aa8636
4
- data.tar.gz: 196faa284347ee5a5d37b2e3394318e7abe3eea42567743badd53211a24d22a5
3
+ metadata.gz: 61e3bb941b3069c72672be8a808c8082894225f8689602af8cb3e30766a562d5
4
+ data.tar.gz: 072a246d97327649c717aeb4bed2bacd9764107d232277cc14dcd220562fedd9
5
5
  SHA512:
6
- metadata.gz: 3307b1e5c30ba0d3de49a3731485966f1ab2b03b5ef32cf9e661d0f933fa058975d622d93d0cfd2e7f8e2ce82810b7b9096bc0938adc9994447d3a08633d6cb3
7
- data.tar.gz: 00fb5ceb2afb07a90aa247d7aabab7fe286ee06a479c9bc4ddb71bb2fe93459343a7672641d1404ebcd00e59d7e0249f469a764b0702950af82fec3faf3b4ced
6
+ metadata.gz: 2c0a0f97a36dcf9ef18388079a52f75b32ca360b112877ca45d6eed756faf15cb29af8c1d23cc0380d8477c39a8b95d060b79946bb6e91860b81b173fb203896
7
+ data.tar.gz: 94d8cf9744709818ee4936d7cb0bf43b7fa9b0d5d1ada2f36f9f9c3cd26148b41866402f9dd6681aec2bcfcc54a4e7b021a749fdc6a8a634e1dfa1487b877a08
data/CHANGELOG.md CHANGED
@@ -1,7 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.1.0 (2023-11-05)
4
+
5
+ #### Features
6
+
7
+ * Automated update of google-apps-script-type ([#198](https://github.com/googleapis/common-protos-ruby/issues/198))
8
+
9
+ ### 1.0.0 (2023-08-07)
10
+
11
+ #### Features
12
+
13
+ * Updated generated protobuf output to use binary descriptors for better future compatibility
14
+
3
15
  ### 0.1.0 (2023-01-04)
4
16
 
5
17
  #### Features
6
18
 
7
- * Initial generation of google-apps-script-type gem
19
+ * Initial generation of google-apps-script-type gem
@@ -1,24 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/apps/script/type/addon_widget_set.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/apps/script/type/addon_widget_set.proto", :syntax => :proto3) do
8
- add_message "google.apps.script.type.AddOnWidgetSet" do
9
- repeated :used_widgets, :enum, 1, "google.apps.script.type.AddOnWidgetSet.WidgetType"
10
- end
11
- add_enum "google.apps.script.type.AddOnWidgetSet.WidgetType" do
12
- value :WIDGET_TYPE_UNSPECIFIED, 0
13
- value :DATE_PICKER, 1
14
- value :STYLED_BUTTONS, 2
15
- value :PERSISTENT_FORMS, 3
16
- value :FIXED_FOOTER, 4
17
- value :UPDATE_SUBJECT_AND_RECIPIENTS, 5
18
- value :GRID_WIDGET, 6
19
- value :ADDON_COMPOSE_UI_ACTION, 7
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}"
20
28
  end
21
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."
22
32
  end
23
33
 
24
34
  module Google
@@ -31,3 +41,64 @@ module Google
31
41
  end
32
42
  end
33
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
+ # }
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/apps/script/type/calendar/calendar_addon_manifest.proto
3
4
 
@@ -6,33 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/apps/script/type/extension_point_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/apps/script/type/calendar/calendar_addon_manifest.proto", :syntax => :proto3) do
11
- add_message "google.apps.script.type.calendar.CalendarAddOnManifest" do
12
- optional :homepage_trigger, :message, 6, "google.apps.script.type.HomepageExtensionPoint"
13
- repeated :conference_solution, :message, 3, "google.apps.script.type.calendar.ConferenceSolution"
14
- optional :create_settings_url_function, :string, 5
15
- optional :event_open_trigger, :message, 10, "google.apps.script.type.calendar.CalendarExtensionPoint"
16
- optional :event_update_trigger, :message, 11, "google.apps.script.type.calendar.CalendarExtensionPoint"
17
- optional :current_event_access, :enum, 12, "google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess"
18
- end
19
- add_enum "google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess" do
20
- value :UNSPECIFIED, 0
21
- value :METADATA, 1
22
- value :READ, 3
23
- value :WRITE, 4
24
- value :READ_WRITE, 5
25
- end
26
- add_message "google.apps.script.type.calendar.ConferenceSolution" do
27
- optional :on_create_function, :string, 1
28
- optional :id, :string, 4
29
- optional :name, :string, 5
30
- optional :logo_url, :string, 6
31
- end
32
- add_message "google.apps.script.type.calendar.CalendarExtensionPoint" do
33
- optional :run_function, :string, 1
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\"t\n\x12\x43onferenceSolution\x12 \n\x12on_create_function\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x10\n\x02id\x18\x04 \x01(\tB\x04\xe2\x41\x01\x02\x12\x12\n\x04name\x18\x05 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x08logo_url\x18\x06 \x01(\tB\x04\xe2\x41\x01\x02\"4\n\x16\x43\x61lendarExtensionPoint\x12\x1a\n\x0crun_function\x18\x01 \x01(\tB\x04\xe2\x41\x01\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}"
34
32
  end
35
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
36
  end
37
37
 
38
38
  module Google
@@ -49,3 +49,113 @@ module Google
49
49
  end
50
50
  end
51
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
+ # }
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/apps/script/type/docs/docs_addon_manifest.proto
3
4
 
@@ -6,16 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/apps/script/type/extension_point_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/apps/script/type/docs/docs_addon_manifest.proto", :syntax => :proto3) do
11
- add_message "google.apps.script.type.docs.DocsAddOnManifest" do
12
- optional :homepage_trigger, :message, 1, "google.apps.script.type.HomepageExtensionPoint"
13
- optional :on_file_scope_granted_trigger, :message, 2, "google.apps.script.type.docs.DocsExtensionPoint"
14
- end
15
- add_message "google.apps.script.type.docs.DocsExtensionPoint" do
16
- optional :run_function, :string, 1
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\"0\n\x12\x44ocsExtensionPoint\x12\x1a\n\x0crun_function\x18\x01 \x01(\tB\x04\xe2\x41\x01\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}"
17
32
  end
18
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."
19
36
  end
20
37
 
21
38
  module Google
@@ -30,3 +47,53 @@ module Google
30
47
  end
31
48
  end
32
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
+ # }
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/apps/script/type/drive/drive_addon_manifest.proto
3
4
 
@@ -5,16 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/apps/script/type/extension_point_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/apps/script/type/drive/drive_addon_manifest.proto", :syntax => :proto3) do
10
- add_message "google.apps.script.type.drive.DriveAddOnManifest" do
11
- optional :homepage_trigger, :message, 1, "google.apps.script.type.HomepageExtensionPoint"
12
- optional :on_items_selected_trigger, :message, 2, "google.apps.script.type.drive.DriveExtensionPoint"
13
- end
14
- add_message "google.apps.script.type.drive.DriveExtensionPoint" do
15
- optional :run_function, :string, 1
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}"
16
31
  end
17
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."
18
35
  end
19
36
 
20
37
  module Google
@@ -29,3 +46,54 @@ module Google
29
46
  end
30
47
  end
31
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
+ # }